Dear Experienced Arduino Users!
I have a big question with the AM2320 type Digital Temperature and Humidity Sensor, manufactured by Aosong.
I have chosen this digital sensor device to measure humidity & heat with one compact device BECAUSE of it's I2C compatibility.
In the previous months I used 3 wire DHT sensors. These could not be placed on the same wire, every device needed an own dataline.
But now I got an exercise to solve, that more humidity sensors could be connected onto the same dataline.
So I started to search and found this device, as I mentioned : AM2320
It's datasheet tells that it has a standard I2C line. Also, as I looked into the datasheets, it mentions (on site 3 or 4, as I remember) bidirectional dataline... I'm not really in an intermediate level of the English language, but I thought, this also means the two-directional I2C communication, so I can change it's address, etc. to do what I mainly want.
Also, there was an image in that PDF sheet too, which showed a very simple image, about that multiple AM2320 sensor devices can be connected onto the same dataline - like the Dallas DS18B20 devices (but those are only heat-meters)
But I really could not find any example source code to use multiple of this devices. I looked onto it's public library too, here: AM2320/AM2320.h at master · thakshak/AM2320 · GitHub
And as I see, the address is fixed. ![]()
I have been thinking about that should it be used as in the case of the 16×4 character LCD panels? See: 4 LCD displays on 1 Arduino - hackmeister.dk
But there the address can be changed and the call of the initialization is different.
![]()
Could anyone help me int this case??
How can I - programatically - use multiple AM2320 Sensors connected to the same arduino, on the same SDA & SCL ports???
If it is not much to ask, an example code would be the best to understand! :![]()