AHT10 IC2 RH Temp #1837
Replies: 6 comments
-
Posted at 2019-11-23 by AkosLukacs Just looked at the datasheet, but looks like some initialization is needed. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-23 by @MaBecker Take a look at this GitHub repository for the AHT10 written in C++ which might be a nice starting point for writing you javascript code to get temperature and humidity. Give it a try and share what you achieved or where you stuck. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-25 by @gfwilliams Just a note that address 0x38 is almost certainly the right address to do the communications on. If 0x39 is returning 255 it's probably because the AHT10 isn't on that address |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-25 by Gustav Well thank you all for your comments, you all made me realize it was doable hehe.. Maybe i can improve some stuff, like could probaly make the user send in the i2c instance so it can be used with other devices on the same pins ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-25 by @MaBecker Cool, that was quick, thanks for sharing. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-26 by @gfwilliams Thanks! http://www.espruino.com/AHT10 Yes, I think in general sending in the I2C instance is better - if only because that's what everything else does |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-23 by Gustav
Hey im trying to read the temperature and humidity from the AHT10 and im just stuck. I hook up the SCL an SDA with software ic2 and then i try to read on 0x38 and 0x39, 6 bytes.
The response is
[25,0,0,0,0,0]
And
[255,255,255,255,255,255]
These vales doesn't change when i change the temperature. Whats the next thing i could try ?
Beta Was this translation helpful? Give feedback.
All reactions