
uCHobby has a helpful primer on interfacing electronic components via the handy I2C protocol and Arduino –
I²C uses only two bidirectional open-drain lines, Serial Data (SDA) and Serial Clock (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V although systems with other, higher or lower, voltages are permitted.
[…]
What exactly does the I2C protocol and usage mean to the average robot builder? Well, it can mean a lot of different things,such as easily accessible devices like temperature sensors, accelerometers, and even setting up a small on board network on a robot.
8 thoughts on “Understanding I2C”
Comments are closed.
Should the master and slave 2 share a ground with slave 1? In the schematic they’re not connected.
Yeah, thats not the greatest schematic.
But you will notice a lot of bus documentation tends to leave out a ground connection as it is implied.
yups – opamp +/- supply connections are also often left out of schematics. I understand why, but it’s still always buged me a bit :
Implied, yes, but here the connections are explicitly shown as not connected which has a strong meaning.
Anyway I just wanted to clarify because I wasn’t certain, and I’m planning on using I2C for a project soon (and it’s an otherwise good read), though it’s a bit vauge about how to use the wiring library, the software level explaination was more confusing than helpful. Particulairly what makes the master and slave different, is it just that the slaves “agree” not to speak unless spoken to?