Multiple Devices on same I2C Address

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ftrueck
New user
Posts: 2
Joined: 21 Jun 2016, 00:18

Multiple Devices on same I2C Address

#1 Post by ftrueck » 15 May 2017, 10:19

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

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: Multiple Devices on same I2C Address

#2 Post by krikk » 15 May 2017, 11:10

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...

wutu
Normal user
Posts: 35
Joined: 05 Feb 2016, 07:33

Re: Multiple Devices on same I2C Address

#3 Post by wutu » 19 Sep 2018, 10:38

Hey krikk, good idea.
Do not think about writing plugin for ESPEasyPluginPlayground?

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests