touch 34 Posted April 16, 2011 Share Posted April 16, 2011 I picked up some cheap DHT11 humidity and temperate sensors, they use some sort of 1 wire protocol (not the dallas one wire). From the testing I did on my Arduino, they seem fairly accurate for a $3 sensor. From reading the datasheet I've gathered that you start temp conversion by pulling the data line low for 18ms then high for 40us, then it will acknowledge with a 80us low and then an 80us high signal and then start sending the 40bit temperature/humidity data. It seems that the length of time that the data line is high determines if its sending a 1 or a 0. Here's the datasheet if anyone wants to take a look: http://www.micro4you.com/files/sensor/DHT11.pdf I paid 2.59$ for mine here: http://www.satistronics.com/humidity-te ... p2860.html What would be the best way to go about reading this? It seems like the proper way would be using a timer that is triggerd when the data line goes high and counts how long its high, is this possible using TimerA? Are there any reading materials that explains in laymens terms how timers work? I was goggling around but a lot of stuff I found was way over my head. Would love to hear how you guys would go about this! Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.