Reader small image

You're reading from  Hands-on ESP32 with Arduino IDE

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781837638031
Edition1st Edition
Right arrow
Author (1)
Asim Zulfiqar
Asim Zulfiqar
author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar

Right arrow

I2C communication with ESP32

I2C is another serial communication protocol, but unlike the UART protocol, it is a synchronous communication protocol that is used for communications between integrated circuits or devices on a shared bus. Since it is a synchronous communication protocol, it requires a clock signal and works in the master-slave architecture. Therefore, it is commonly used in scenarios where multiple devices need to communicate with the master/central device.

In this section, we will explore the following topics related to I2C communication in the context of ESP32 and Arduino IDE:

  • How I2C communication works
  • I2C communication example using ESP32
  • Sensors that use I2C communication

By the end of this section, you will be able to explain the I2C protocol, differentiate it from UART, use it with ESP32 using Arduino IDE, and understand some of the common sensors available on the market that can be interfaced using I2C.

How I2C communication works...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-on ESP32 with Arduino IDE
Published in: Jan 2024Publisher: PacktISBN-13: 9781837638031

Author (1)

author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar