Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

What is the I2C protocol?

The I2C protocol is used in many electronic devices. We use it to connect one master device to multiple slave devices, or multiple master devices to multiple slave devices. The main advantage of the I2C protocol is that the master needs only two pins to communicate with multiple slave devices.

In an I2C bus, all devices are connected in parallel to the same two-wire bus. We can connect a total of 128 devices using 7-bit addressing, and a total of 1,024 devices using 10-bit addressing, as shown in the following diagram:

Each device connected using the I2C protocol has a unique ID, which makes it possible to communicate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content