User Tools

Site Tools


tutorials:learn:sensors:dht.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:learn:sensors:dht.html [2011/06/23 00:14]
daigo
tutorials:learn:sensors:dht.html [2011/06/23 17:29]
ladyada
Line 41: Line 41:
 As you can see, the [[http://​www.adafruit.com/​products/​385|DHT22]] is a little more accurate and good over a slightly larger range. Both use a single digital pin and are '​sluggish'​ in that you can't query them more than once every second or two. As you can see, the [[http://​www.adafruit.com/​products/​385|DHT22]] is a little more accurate and good over a slightly larger range. Both use a single digital pin and are '​sluggish'​ in that you can't query them more than once every second or two.
  
-**You can pick up both the [[http://​www.adafruit.com/​products/​386|DHT11]] and DHT22 from the adafruit shop!**+**You can pick up both the [[http://​www.adafruit.com/​products/​386|DHT11]] and [[http://​www.adafruit.com/​products/​385|DHT22]]  ​from the adafruit shop!**
  
  
Line 86: Line 86:
  
 {{  http://​www.ladyada.net/​images/​sensors/​dhttester.gif?​nolink&​566x600 ​ |}} {{  http://​www.ladyada.net/​images/​sensors/​dhttester.gif?​nolink&​566x600 ​ |}}
 +<class center>
 If you're using a **DHT11** sensor, comment out the line that sets the type: If you're using a **DHT11** sensor, comment out the line that sets the type:
 +<​code>​
  //#​define DHTTYPE DHT22   // DHT 22  (AM2302)  //#​define DHTTYPE DHT22   // DHT 22  (AM2302)
 +</​code>​
 and uncomment the line that says and uncomment the line that says
 +<​code>​
 #define DHTTYPE DHT11   // DHT 11  #define DHTTYPE DHT11   // DHT 11 
 +</​code>​ 
 +</​class>​
  
  
/home/ladyada/public_html/wiki/data/pages/tutorials/learn/sensors/dht.html.txt · Last modified: 2016/01/28 18:05 (external edit)