Closed octplane closed 11 years ago
I tried to reply to http://jeelabs.net/boards/7/topics/1469 but the forum won't let me write anything. Note that I am not mikeacar from the forum. I just joined the forum a few minutes ago and I think my account needs to be validated in order to post there...
I'll look into this. Last time I tried a DHT22 here, it all seemed to work. No idea what could have messed this up...
Hi,
I reported this on the (old) forum, you need to edit line 1017 and 1021 in ports.cpp to read humi = h and temp = t
http://forum.jeelabs.net/node/1487.html
Ideally the initialisation for this sensor should take a parameter to say if it is a DHT22 or not.
Dan
@octplane - your Forum access is confirmed now.
Hello,
I've been attempting to read data from a DHT22 sensor and the Jeelib built-in DHT calls give wrong data:
I've used the example from http://jeelabs.org/2012/04/14/reading-out-dhtxx-sensors/ and got the following data out of the board:
Although the humidity value seemed weird, the temperature value is definitely false.
I then tried using the Adafruit DHT22 Library (living at https://github.com/adafruit/DHT-sensor-library) and get much better result:
From looking at the code, it seems that the DHT library handles temperature a bit differently il the DHT22 case (cf https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp#L37 and following).
Thank you for your time :)