63Views3Replies

Author Options:

Will two or more IIC devices share the same IIC pins on arduino? Answered

HI,All

I got 4 IIC soil moiture sensors, could be named A,B,C,D.but my arduino nano only have one set of IIC pins.i want to set IIC soil moisture sensor's chips internal timer to go sleep mode each at diffirent period.so arduino could take correct readings from one sensor at a time.i want to know if the sensor overlapping of same ardiuno IIC pins feasible?my second question is suppose it is feasible.how can arduino to know which sensor is being taking readings.i mean arduino may think signal taken from the IIC pins several time in a day may mean only one IIC device is being connected.it could not distinguish which is A or B,etc..I wanted it to distinguish which is which.But i don't know how.

gada888




Discussions

0
None
verence

Best Answer 3 years ago

Yes, devices can share the pins of an IIC bus (that's why it is called a bus). BUT devices on an IIC have to have different, unique addresses. So, if there is a means to set a different address for each sensors, they can live all on one IIC bus. Check the documentation of the sensors, there may be jumpers or pads to soldered together.

0
None
icengverence

Answer 3 years ago

+1

Give us the URL for the sensor so we can be sure you have addressable moist sensors...

0
None
robobot3112

3 years ago

Yes it is possible.