DHT22 returning zeros

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
jfedor
 
Posts: 6
Joined: Sat Oct 12, 2013 10:03 pm

Re: DHT22 returning zeros

Post by jfedor »

Just another datapoint: Adafruit's library worked for my DHT22 with an Arduino Micro, but returned zeros with a 3.3V Trinket. ringerc's library works fine on the Trinket.

jxlbbb
 
Posts: 2
Joined: Sun Nov 17, 2013 7:01 pm

Re: DHT22 returning zeros

Post by jxlbbb »

I have the same problem

DHT22 returning 00 for temp and humidity.

I have tried the same sensor, same setting with Mega2560 using 3.3V and it work fine.
Definitely from the Fio. Maybe because of the 8Mhz clock ?

jxlbbb
 
Posts: 2
Joined: Sun Nov 17, 2013 7:01 pm

Re: DHT22 returning zeros

Post by jxlbbb »

In addition to my previous post, I confirm that with the library
https://github.com/ringerc/Arduino-DHT22
it works well.

In the DHT22.cpp file, there is a hardcoded limit at 2000 ms for calling the sequence.
if(currentTime - _lastReadTime < 2000)

I have relaxed this limit and search how far I could go without additional errors.
delay(400);
was the minimal interval between two calls.
As I intend to make a call every min for saving power, it should be OK.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”