Pages: [1]   Go Down
Author Topic: Arduino DHT22 library  (Read 7567 times)
0 Members and 1 Guest are viewing this topic.
Florida, US
Offline Offline
Newbie
*
Karma: 0
Posts: 7
:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have created an Arduino DHT22 library. This is my first post on the forum and can not post the links until my second post  >smiley-sad
Logged

Florida, US
Offline Offline
Newbie
*
Karma: 0
Posts: 7
:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

2nd Post with links
DHT22 humidity and temperature sensor page at sparkfun http://www.sparkfun.com/products/10167
The code is currently posted here http://goo.gl/uy1fV
Post a reply with any comments or questions you may have.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Works perfectly. the only other code i could find for the DHT22 did not work all the time and Aosong's datasheet was remarkably unhelpful.
Kudos Net  Honcho!  8-)
Logged

Florida, US
Offline Offline
Newbie
*
Karma: 0
Posts: 7
:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the kind words. Next version will verify the checksum.
Logged

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I worked with a very similar device, the DHT11. I'd be interested to know if what is at...

http://sheepdogguides.com/arduino/ar3ne1humDHT11.htm

... works with the DHT22.

Neat device, by the way! I got mine from Nuelectronics who do some fun things at good prices. Web page a little untidy, and "hides" things... but dig around! The above links to further comments in this vein.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Net:

As there are similar devices like the DHT11, does your lib support them too? now or in a next release?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Florida, US
Offline Offline
Newbie
*
Karma: 0
Posts: 7
:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I looked at the DHT11 protocol. It looks like the same protocol. It is worth a try. I do not have a DHT11 to test with.
Logged

Florida, US
Offline Offline
Newbie
*
Karma: 0
Posts: 7
:-)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I created a github project for the DHT22 arduino library
https://github.com/nethoncho/Arduino-DHT22
Logged

Pages: [1]   Go Up
Jump to: