DHT22 AM2302 - sensor stops working - NaN
Posted: 27 May 2016, 01:01
I am using DHT22 ( wired version with the pull up resistor - AM2302) - https://www.adafruit.com/product/393
using two of them on two different boards:
Lolin - NodeMcu V3 with the NodeMcu Base Board - http://www.aliexpress.com/item/NodeMcu- ... 29505.html
http://www.aliexpress.com/item/Free-Shi ... 09072.html
Amica - http://www.aliexpress.com/item/Update-I ... 64766.html
both connected using du-pont connectors, on GPIO13, all wired up properly, secured with hot glue.
The problem seems to be the same on both, happening on stable r_78, and 105 and 106.
Everything seems to work fine for a day, or several days and then suddenly I get a NaN (Not a Number) displayed on the little OLED and when looking at the web interface, serial stops reporting readings, just keep updating uptime.
One of the boards has BMP180 running alongside the DHT22, the other DS18b20 and they work just fine, even after dropping the DHT, they keep updating my domoticz server and thingspeak (so it's not the server settings).
None of the board freeze, just drops the DHT22 but continues to work.
To get it working again:
- sometimes the web interface reboot feature is enough (that leads me to believe that it's not a mechanical connection issue as I don't even touch the board to reset it)
- sometimes I have to physically disconnect power to get the readings back
One board is powered by a dedicated 2A power supply, another directly from USB on my MB. No other issues, disconnects or whatnot....
I am not sure what else I can do to provide more info on this or how to debug further but will be very happy to try anything you guys would suggest, Thanks in advance (and in general for this awesome software!).
using two of them on two different boards:
Lolin - NodeMcu V3 with the NodeMcu Base Board - http://www.aliexpress.com/item/NodeMcu- ... 29505.html
http://www.aliexpress.com/item/Free-Shi ... 09072.html
Amica - http://www.aliexpress.com/item/Update-I ... 64766.html
both connected using du-pont connectors, on GPIO13, all wired up properly, secured with hot glue.
The problem seems to be the same on both, happening on stable r_78, and 105 and 106.
Everything seems to work fine for a day, or several days and then suddenly I get a NaN (Not a Number) displayed on the little OLED and when looking at the web interface, serial stops reporting readings, just keep updating uptime.
One of the boards has BMP180 running alongside the DHT22, the other DS18b20 and they work just fine, even after dropping the DHT, they keep updating my domoticz server and thingspeak (so it's not the server settings).
None of the board freeze, just drops the DHT22 but continues to work.
To get it working again:
- sometimes the web interface reboot feature is enough (that leads me to believe that it's not a mechanical connection issue as I don't even touch the board to reset it)
- sometimes I have to physically disconnect power to get the readings back
One board is powered by a dedicated 2A power supply, another directly from USB on my MB. No other issues, disconnects or whatnot....
I am not sure what else I can do to provide more info on this or how to debug further but will be very happy to try anything you guys would suggest, Thanks in advance (and in general for this awesome software!).