-
• #2
Just looked at the datasheet, but looks like some initialization is needed.
BTW looks like that guy is doing some serious testing: https://wiki.liutyi.info/download/attachments/35291508/Humidity_sensors_board_v7s1.jpg?version=1&modificationDate=1572380072453&api=v2 :) -
• #4
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
-
• #5
Well thank you all for your comments, you all made me realize it was doable hehe..
Here you go
https://github.com/espruino/EspruinoDocs/pull/530Maybe 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 ?
-
• #6
Cool, that was quick, thanks for sharing.
-
• #7
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
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 ?