ProdBoard Support

Power switch

The ProdBoard has an onboard power switch using the the same design as Nanomesher Raspberry Pi Power Switch

For software installation, please follow the “Software Installation” section in http://nanomesher.com/diy/raspberry-pi-support/

Samples Code

Examples for using the ProdBoard are here.

In order to use the examples, you will need to install the following dependent libraries.

Python GPIO

sudo apt-get install python-dev python-rpi.gpio

Luma.OLED Python Library – For OLED display

ProdBoard using i2c OLED display with SH1106 driver.

Library Info: https://pypi.python.org/pypi/luma.oled
Install Instructions: http://luma-oled.readthedocs.io/en/latest/install.html

More display examples from Luma.OLED: https://github.com/rm-hull/luma.examples

To run the examples from Luma.OLED, dont forget to use “-d sh1106” option.

python pi_logo.py -d sh1106

LIRC library

LIRCDemo.py required LIRC to be installed.

To be able to run the example, do the following (assuming Raspbian):

  • Install LIRC

sudo apt-get install lirc

  • In /boot/config.txt, add/edit the following line
dtoverlay=lirc-rpi,gpio_in_pin=17,gpio_out_pin=22
  • Setup for i2c communications with display and LIRC for infrared in /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.
i2c-dev
lirc_dev
lirc_rpi gpio_in_pin=17 gpio_out_pin=22
  • If using Raspbian Stretch, in /etc/lirc/hardware.conf , add/edit the following line

LIRCD_ARGS=”–uinput –listen”
LOAD_MODULES=true
DRIVER=”default”
DEVICE=”/dev/lirc0″
MODULES=”lirc_rpi”

  • If using Raspbian Stretch, in /etc/lirc/lirc_options.conf, add/edit the following line
[lircd]
nodaemon        = False
#driver          = devinput
#device          = auto
driver          = default
device          = /dev/lirc0

Inline image 4

 

  • Install LIRC python library: https://pypi.python.org/pypi/python-lirc/  or use this method if you dont want to use python-lirc.

#For python 3.x, Raspbian Jesse or earlier

sudo apt-get install python3-lirc

 

#For python 2.x, Raspbian Jesse or earlier

sudo apt-get install python-lirc

 

#For python 3.x, Raspbian Stretch
wget https://github.com/tompreston/python-lirc/releases/download/v1.2.1/python3-lirc_1.2.1-1_armhf.deb
sudo dpkg -i python3-lirc_1.2.1-1_armhf.deb

 

#For python 2.x, Raspbian Stretch
wget https://github.com/tompreston/python-lirc/releases/download/v1.2.1/python-lirc_1.2.1-1_armhf.deb
sudo dpkg -i python-lirc_1.2.1-1_armhf.deb