Presenters
Presentation links
Things that have been done
Packages that have been added
bc
dc
dos2unix
emacs
i2c-tools
git-core
libi2c-dev
lighttpd
python-dev
python-pip
python-pyside
python-rpi.gpio
python-smbus
tightvncserver
Files that have been downloaded to your workshop directory
- WiringPi distribution in the directory wiringPi
- WebIOPi distribution in the directory src/WebIOPi
- sample programs in the examples directory
- for GPIO
Things that you must do
Enable the I2C devices
The I2C
suboption
of the Advanced Options
menu of
raspi-config should do this, but
it may not be on your distributino and it may miss a few.
It is best to check it out.
Comment out the following line in /etc/modprobe.d/raspi-blacklist.conf.
blacklist i2c-bcm2708
Add the following lines in /etc/modules and then reboot.
i2c-bcm2708 i2c-dev
You should also put yourself in the i2c
group.
Use the following command.
pi@ … $ sudo usermod -a -G i2c pi
Build the wiring Pi library
pi@ … $ cd wiringPi pi@ … $ ./build
Documentation
GPIO
I2C
- I2C specification
- LSM303DLHC — accelerometer and magnetometer datasheet
- L3GD20 — gyroscope datasheet
- BMP180 — barometer datasheet
Linux kernel interfaces
Python interfaces
Software the may be useful for Windows users