Asked
Viewed 13 times
0
1
I have a Raspberry Pi 3B+ and I bought two BME280 sensors (specifically these) and I would like to connect them via I2C. I read that you can do software multiplexing but all the information I am finding is incomplete, makes assumptions, or people are commenting that it doesn’t work. Can anyone please let me know what I need to do? For the record, I’ve already hooked up one of them and am getting the readings correctly, but I need both of them connected.
New contributor
-
Quick comment. Rpi4B has 4 I2C channels. Does it help? There is another I2C switcher which can handle more than one I2C device with same address. – tlfong01 11 hours ago
-
@tlfong01, I have the 3B+, and have no background on electronics. I would love to be told what to connect to which GPIOs and what commands to run to get it working, if at all possible, unless I’m asking for too much… – Mark Cilia Vincenti 11 hours ago
-
Hi @Mark Cilia Vincenti, but only Rpi4B have more than one I2C bus. Perhaps you can try Lady Ada’s goody: Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout learn.adafruit.com/…. AdaFruit’s tutorial is usually newbie friendly. – tlfong01 11 hours ago
-
@tlfong01 would something like this work? aliexpress.com/item/… – Mark Cilia Vincenti 11 hours ago
-
1Yes, AdaFruit’s hardware is almost always open source. Actually I never buy anything from her. But I am grateful to her (and SparkFun) , so I always recommend AdaFruit. AliExpress is usually OK, though I always buy from TaoBao which is even cheaper than AliExpress but also OK. – tlfong01 11 hours ago
-
Thanks @tlfong01 – Mark Cilia Vincenti 11 hours ago
-
How to connect the same device multiple times via I2C has been asked and answered multiple times. – joan 11 hours ago
-
And yet I failed to find a definite and comprehensive answer anywhere, @joan. – Mark Cilia Vincenti 10 hours ago
-
raspberrypi.stackexchange.com/questions/94194/… – CoderMike 9 hours ago
Categories: Uncategorized
