I2C + Arduino

From ESE205 Wiki
Revision as of 21:31, 13 December 2016 by Djsullivan (talk | contribs)
Jump to navigation Jump to search
I2cA.png

The (Wire library) allows communication between the Arduino and other I2C compatible devices, for example another Arduino. To connect an I2C device, you must connect data(SDA) and clock(SCL) pins together, on the Uno these are pins A4 and A5. Also, both devices must share the same ground. Below is an example of a master reading from a slave.

Master.png
Slave.png