Go Down

Topic: Multiple SCL/SDA sensor at same pin (Read 104 times) previous topic - next topic

sedus

Jan 23, 2021, 06:06 pm Last Edit: Jan 23, 2021, 06:15 pm by sedus
Hello everyone,
I have UNO R3 and I am curious about can I use multiple sensor (for example one lcd display with i2c and one RTC module) at same SCL/SDA pin?
I just looked at circuito.io and it shows I can, but I want to be sure because I can't test myself yet.

gilshultz

Because it is designed to do just that. It is a bus where each device has its own unique address. You address the device you want to communicate with. This allows several devices on the same 2 wire bus. Just do not forget the pull up resistors. When you start testing do it with one device at a time and use the included examples until you get a few to work, that way you will be comfortable with the interface. 
This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil

groundFungus


Go Up