• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How to Use I2C LCD with ESP32 two  probes  on one pin

Q&A Forum › Category: ESP32 › How to Use I2C LCD with ESP32 two  probes  on one pin
0 Vote Up Vote Down
Jean Pierre Daviau asked 3 years ago

Hi,
 
Ther is only one pin GPIO21  marked  wire SDA.
 
Can I put two or three wires on this pin if I call the two or more  probes  (for example an I2C capacitive probe) one after   the other?
 
Regards
 
JPD

Question Tags: ESP32, I2C LCD, two  probes  on one pin
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
You can wire more than one I2C peripheral on the same I2C pins as long as each peripheral uses a different I2C address.
Alternatively, you can also set up other ESP32 pins to act as I2C pins.
We recommend reading this guide that covers those topics: https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/
I hope this answers your question.
Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 3 years ago

As Sara mentions you can use multiple I2C peripherals on the same bus (Pins) so long as they have different addresses. Some I2C boards have solder pads or jumpers so this is easy. Other boards, like displays, do not have these. In this case you can use an I2C multiplexer – https://tronixstuff.com/2019/10/29/tutorial-using-the-tca9548a-1-to-8-i2c-multiplexer-breakout-with-arduino/

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.