in a project based on Arduino I used the AM2320 with the following library:
I couldn't find any informations how to use it with espruino.
Can you help me with that?
Thanks in advance
the AM2320 can handle I2C and single-bus.
Check chapter 8.3 Single bus communication (ONE-WIRE) how to wire this sensor and then try to use module DHT22/AM230x/RHT0x Temperature and RH Sensor
thank you for your response. I will try that.
"single bus" is NOT the same as OneWire!!!
OneWire is a specific protocol used almost exclusively by Dallas Semiconductor products. The slave devices all have a unique serial number, there's a way to parasite power so you don't need a separate power wire, etc. The Aosong temperature/humidity sensors do not use OneWire, they use their own single wire protocol; calling it a bus is misuse of that term, IMO, as well - "bus" sort of implies that more than two devices can be connected to it - but with no provision for addressing, the single wire protocol that the Aosong sensors use can only ever have two devices connected to it - the sensor, and the controller it talks to (I mean, I guess you could have multiple controllers connected to it, but I still don't think this counts!).
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem