Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-on ESP32 with Arduino IDE

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

Product type Book
Published in Jan 2024
Publisher Packt
ISBN-13 9781837638031
Pages 294 pages
Edition 1st Edition
Languages
Author (1):
Asim Zulfiqar Asim Zulfiqar
Profile icon Asim Zulfiqar

Table of Contents (15) Chapters

Preface 1. Part 1 – Introduction: Getting Familiar with ESP32
2. Chapter 1: IoT with ESP32 using Arduino IDE 3. Chapter 2: Connecting Sensors and Actuators with ESP32 4. Chapter 3: Interfacing Cameras and Displays with ESP32 5. Part 2 – IoT Protocols and ESP32
6. Chapter 4: Implementing Network-Based Protocols with ESP32 7. Chapter 5: Choosing the Right Data-Based Protocols for Your ESP32 Projects 8. Part 3 – Practical Implementation
9. Chapter 6: Project 1 – Smart Plant Monitoring System Using ESP32, Messaging Services, and the Twitter API 10. Chapter 7: Project 2 – Rent Out Your Parking Space 11. Chapter 8: Project 3 – Logging, Monitoring, and Controlling using ESP32 12. Chapter 9: From Arduino IDE to Advanced IoT Development – Taking the Next Steps 13. Index 14. Other Books You May Enjoy

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 chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}