SparkFun Blocks for Intel® Edison - I2C Breakout Block

Pages
Contributors: CaseyTheRobot
Favorited Favorite 2

Using the I2C Breakout Block

To use the I2C Breakout Block, attach an Intel Edison to the back of the board or add it to your current stack. Blocks can be stacked without hardware, but it leaves the expansion connectors unprotected from mechanical stress.

alt text

I2C Block Installed

We have a nice Hardware Pack available that gives enough hardware to secure three blocks and an Edison.

alt text

NOTE: The I2C Breakout Block does not have console access or a power supply. It is recommended to use a console communication block in conjunction with this block like ones found in the General Guide to Sparkfun Blocks for Intel Edison.

Example

In our example, we will show how to connect and scan for the SparkFun RGB and Gesture Sensor. Solder a 4-pin section of our Right Angle Break Away Male Headers to the breakout board. Plug the board into the I2C Brekaout Block, and you're done with the hardware connection.

alt text

SparkFun RGB and Gesture Sensor Installed

To find the I2C device in the console, type the following command. Note the I2C bus we will use is bus 1.

i2cdetect -y -r 1

We see that the device appears on address 0x39 as expected.

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

To use the SparkFun RGB and Gesture Sensor in your project, you can modify the code from the RGB and Gesture Sensor Hookup Guide to run on your Edison. Using the Arduino IDE for Edison, the demo should work out of the box!

Using 5V Devices

There is a way to modify the I2C block to accept 5V logic. Cut the voltage select jumper, but do not re-connect to either VSYS or 3.3V. You will now need to supply your own 5V voltage (for your sensors) externally. You can solder a 5V supply to the center pad OR use the VOUT pin on the connector. Supplying 5V through the VOUT trace will allow you to plug sensors in without modification.

alt text