AM2320 temp/ hum sensor. Same as DHT22?
Posted: Wed Jan 31, 2018 8:28 am
Hello,
This sensor appears to be just the ticket for the project I am working on, with its 12 bit
accuracy in both temp/hum. No need for calibration,price, and other features.
However, upon reading the datasheet for the AM2320, it appears to be a I2C device,
yet the only talk I have seen of it on the discussion boards treats it as a 1 Wire device.
I personally would like to use it as a I2C device, the macro for it shows no connection for the clock line.
I really could use some help getting started with some working sample code (Pic 16f1789, FC7, running clock at 19.660800Mhz)
A simple read/ write routine would be great, I can work out the math, and from a previous post that explains the data stream,
I think I can get going once I get a 2 finger grip on using this device. I will admit however that communications has not been
something I have much experience in. I am however willing to put in the research necessary to get this down pat.
This is a situation where I know what I don't know, and that is alot..
If anyone is successfully using this device, I would appreciate you sharing a simple as possible read/write routine. in FC6 or 7.
Thank You,
-Craig C
This sensor appears to be just the ticket for the project I am working on, with its 12 bit
accuracy in both temp/hum. No need for calibration,price, and other features.
However, upon reading the datasheet for the AM2320, it appears to be a I2C device,
yet the only talk I have seen of it on the discussion boards treats it as a 1 Wire device.
I personally would like to use it as a I2C device, the macro for it shows no connection for the clock line.
I really could use some help getting started with some working sample code (Pic 16f1789, FC7, running clock at 19.660800Mhz)
A simple read/ write routine would be great, I can work out the math, and from a previous post that explains the data stream,
I think I can get going once I get a 2 finger grip on using this device. I will admit however that communications has not been
something I have much experience in. I am however willing to put in the research necessary to get this down pat.
This is a situation where I know what I don't know, and that is alot..
If anyone is successfully using this device, I would appreciate you sharing a simple as possible read/write routine. in FC6 or 7.
Thank You,
-Craig C