Page 1 of 1

Multiple Devices on same I2C Address

Posted: 15 May 2017, 10:19
by ftrueck
Hi,
I have INA219, BHP1750 and a SI7021 which listen to the same address: 0x40.

Is there a way to read out all of them? Currently only INA219 is managed correctly.

I could set BHP1750 and INA219 via address line to a different address but I doubt the modules will handle this correctly. Or am I wrong and this is no problem at all as the modules can handle this?
Current software version is:
Build: 120
Core Version: 2_3_0

Any help would be great.

Thanks and best regards,
Florian

Re: Multiple Devices on same I2C Address

Posted: 15 May 2017, 11:10
by krikk
ina219 supports 4 different addresses, bh1750 has 2, if you work with the github version or latest dev build, these are all supported

... si7021 only has one address, so to use multiples of this on one bus you need an i2c multiplexer like the TCA9548A, but this is not supported till now, but i have already done a pull request for it...

Re: Multiple Devices on same I2C Address

Posted: 19 Sep 2018, 10:38
by wutu
Hey krikk, good idea.
Do not think about writing plugin for ESPEasyPluginPlayground?