0
\$\begingroup\$

I want to connect multiple voltage sensors to the nucleo board. Lets say 4 voltage sensors of same kind with same address. So, I thought I could connect all the 4 sensors with the nucleo board with the help of I2C communication protocol.

Is this possible?

If possible I had a doubt that all the 4 voltage sensors will be having same addresses. But I want to call all the fours sensors at a time. How can I do this.

Please any help.

\$\endgroup\$
3
  • \$\begingroup\$ Please provide document. what do you mean by voltage sensor? which nucleo board? \$\endgroup\$
    – sinany1
    Nov 6, 2020 at 9:15
  • \$\begingroup\$ I have not decided any voltage sensor yet. But I need to buy it in few days. The nucleo board is STM32 NUCLEO-F070RB. \$\endgroup\$ Nov 6, 2020 at 9:17
  • \$\begingroup\$ NUCLEO-F070RB has two I2C line(i2c1, i2c2). you can use them to read exact same addresses. as you mentioned you haven't decided which sensor you want to use yet so you should consider some of the chips has i2c address pins. this pins changes the i2c address according to pull-up or pull-down states. electronics.stackexchange.com/questions/5096/… here is an another question about your problem. \$\endgroup\$
    – sinany1
    Nov 6, 2020 at 9:27

1 Answer 1

0
\$\begingroup\$

As per my knowledge, you cannot have same address for all the slaves on I2C bus especially if you want to read them one by one.

If you want to do so, i suggest that you have an i2C multiplexer something like this as well in your circuitry.

Using it is fairly straight-forward: the multiplexer itself is on I2C address 0x70 (but can be adjusted from 0x70 to 0x77) and you simply write a single byte with the desired multiplexed output number to that port, and bam - any future I2C packets will get sent to that port. In theory, you could have 8 of these multiplexers on each of 0x70-0x77 addresses in order to control 64 of the same-I2C-addressed-part.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.