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

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.


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

do you have rPi some sensor projects you're thinking of trying?
What sensor projects have you worked on?
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).
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. <br> <br>Any thoughts on WHAT all the various lights could be used for? Home temperature, security, motion sensors...

About This Instructable




Bio: DIY, electronics...and loves getting creative...
More by sajingeo:Amazon Echo starts your car Real World Minecraft Bluetooth Speakers using Raspberry Pi 
Add instructable to: