Interactive Media & Game Development Worcester Polytechnic Institute |
IMGD |
---|
Objective: | The main objective for this exercise is to get you familiar and comfortable using I2C programming with the Arduino. This tutorial teaches the basic steps for allowing two Arduinos to communicate over the I2C bus. This configuration is useful when, for example, your application calls for more I/O pins than are available on a single Arduino, or when the devices you are controlling are distant from each other. |
---|---|
What to do: |
Background
To get an idea about what I2C is, please read this part of the Programming Interactivity book. Initial set up
|
More Info: |
A Wire reference page can be found here: http://arduino.cc/en/Reference/Wire A set of Wire examples is available also. Many off-the-shelf devices use I2C, so this code should come in handy. |