loading
Picture of Raspberry pi loves Sensors and LEDs
This tutorial teaches you how to talk to I2C devices on a raspberry pi, this is based on the ADAfruit tutorials but i have made the code more generic and you can easily modify them to work with any sensors.

This tutorial uses the distro provided by adafruit, if you dont have the distro up an running re-visit one of my old tutorial on raspberry pi.

Step 1: Parts

Picture of Parts
i am using a Mblink and PMODtemp (from digilent) for this tutorial, this approach would work for most I2C devices. connect the I2C sensor to the I2C pins refer the connection diagram from here, make sure you connect the a 3.3v I2C sensor.

connect 
SCL>>> SCL
SDA >>> SDA
GND >>>GND
VCC >>>VCC


the diagram below is from http://elinux.org/RPi_Low-level_peripherals

 
Pigumon1 year ago
Sadly I still know very little about sensors and electronics. But it seems like this would be a great way to make a Star Trek / Ultraman / '60s blinking panel that actually means something.

Any thoughts on WHAT all the various lights could be used for? Home temperature, security, motion sensors...
do you have rPi some sensor projects you're thinking of trying?
sajingeo (author)  amandaghassaei2 years ago
Yes i do have a couple of I2C EEPROMs and Color Sensors that i would like to try very soon(just cant find the time).