SK
Signal K6mo ago
Tony

Tony - @Matti Airas Does the HALMET PCB support...

@Matti Airas Does the HALMET PCB support multiple i2c sensors? I have two BME 280 sensors I would like to connect and read from the same i2c bus on a single PCB. I am using the adafruit/Adafruit BME280 Library @ ^2.2.4 dependency and attempted to create two pointers with two different addresses; 0x76 and 0x77 without success. I am still trying to determine how to get the addresses of the devices programmatically, and also how to wire two together (like one wire or different?). I appreciate any support even from those who programmed a different ESP32 project and was able to get two i2c sensors operational.
4 Replies
Tony
Tony6mo ago
Also when I scan, I get two addresses: 0x4b, and 0x76. The second address works, but the first is invalid I think the answer is no, unless I have access to the SDO pin. This sensor is enclosed so the board is not accessible. I am going to explore the possibility of a different sensor with a seperate address so they can be combined on the same bus/
Matti Airas
Matti Airas6mo ago
You got everything right, I think. The 0x4b address is for the ADS1115 A/D chip used for the analog inputs while the other one is for your sensor. There are also I2C multiplexer modules that allow you to connect multiple devices with the same I2C address. That would be one option to connect more than one device on the same bus, sharing the same address.
Tony
Tony6mo ago
That makes sense. I am using that analog input. Thanks for confirming. I read the ability to use a multiplexer on the same address, which uses switching. Interesting idea. I think there are other sensors with a different address doing the same thing. I might explore them...or just use the breakout board instead of enclosed version
Matti Airas
Matti Airas6mo ago
Sure, there are plenty of environmental sensors around.
Want results from more Discord servers?
Add your server