Posted by SainSmart on

You will need:

Raspberry Pi + SD card loaded with Raspbian Wheezy OS
powered USB hub with a 5V power supply.
micro USB cable to power the Pi
network connection or USB wifi dongle for the Pi
webcam
SainSmart 1602 I2C display
Logic level shifter
Some connection to the Pi GPIO – IDC connector, ribbon cable and electonics prototyping breadboard
resitors
LED
microswitches
a length of thin wire
Some kind of box (we used lego)

The Python code required is on GitHub:

https://github.com/paulbarber/raspi-gpio.git

Required files:
take_picture_and_email.py
send_gmail_attachment.py
lcd_display.py
i2c_lib.py

Run with:
sudo python take_picture_and_email.py
(root access with sudo is required to access the GPIO)

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.