Lickometer

From MagnetoWiki
Revision as of 16:02, 8 April 2018 by Houpt (talk | contribs) (add links to adafruit tutorial and software)
Jump to navigation Jump to search

Raspberry PI Lickometer

Touch Sensor

Datasheet for MPR121: https://cdn-shop.adafruit.com/datasheets/MPR121.pdf

Materials

Total: $124.80 (not including shipping, about $30)


Software

Adafruit Tutorial

Adafruit Python library

Patch for I2

"the latest Raspbian Jessie and Stretch releases have an updated I2C driver that isn't compatible with how this library enables repeated I2C start bits. From the thread about this issue there's a workaround to enable the older I2C driver. Edit the /boot/config.txt on your SD card and add:

dtoverlay=i2c-bcm2708

Dependencies

sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip git