DHT on the pyboard
Posted: Fri Mar 29, 2019 9:51 am
I have been using the AM2322 on the ESP/ESP32 for several years successfully.
I have just tried to read the device on the pyboard and are unable to get any data:
Pins 3&4 (SCL>GND) are linked and connected to ground so that it uses the native connection mode, same as on the ESP8266
I know this device is working for sure as the same device plugged into the ESP8266 returns it's data correctly ?!
Any suggestions ?
I have just tried to read the device on the pyboard and are unable to get any data:
Code: Select all
import dht, pyb
dhti = dht.DHT22(pyb.Pin('Y6',pyb.Pin.IN,pyb.Pin.PULL_UP))
dhti.measure()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "dht.py", line 16, in measure
OSError: [Errno 110] ETIMEDOUT
I know this device is working for sure as the same device plugged into the ESP8266 returns it's data correctly ?!
Any suggestions ?