[last updated: 2017-10-16]
-----
- i2C is a protocol for serial communication:
it only requires 2 signal lines plus ground:
- SCL = serial Clock (usu pin A5)
- SDA = serial Data (usu pin A4)
- SDA & SCL lines need pullup resistors,
however the Wire.h library enables the Arduino's internal pullups
when initializing with Wire.begin().
- Two or more nodes communicate according to:
- one master
(however there are ways to use more than one master - see details later)
- one or more slaves
- Range is probably 1 - 3 meters.
- researching this subject on the net reveals lots of different opinions:
- The answer apparently depends mostly on capacitance between the wires.
- There are reports of achieving 25m or even more.
- At some point I'll just get some longer wires and test it myself...
- Most common library is built-in Wire.h
--------------------------------------
- Projects:
- See also:
i2C on DigiSpark
i2c on rPi for GMC
.
.
.
eof