This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:learn:sensors:dht.html [2011/06/23 00:13] daigo created |
tutorials:learn:sensors:dht.html [2011/06/23 00:16] daigo |
||
---|---|---|---|
Line 5: | Line 5: | ||
- | This tutorial covers the low cost [[http://www.adafruit.com/category/35_66|DHT temperature & humidity sensors]]. These sensors are very basic and slow, but are great for hobbyists who want to do some basic data logging. The DHT sensors are made of two parts, a capacitive humidity sensor and a[[http://www.ladyada.net///thermistor.html| thermistor.]] There is also a very basic chip inside that does some analog to digital conversion and spits out a digital signal with the temperature and humidity. The digital signal is fairly easy to read using any microcontroller. | + | This tutorial covers the low cost [[http://www.adafruit.com/category/35_66|DHT temperature & humidity sensors]]. These sensors are very basic and slow, but are great for hobbyists who want to do some basic data logging. The DHT sensors are made of two parts, a capacitive humidity sensor and a[[http://www.ladyada.net/learn/sensors/thermistor.html| thermistor.]] There is also a very basic chip inside that does some analog to digital conversion and spits out a digital signal with the temperature and humidity. The digital signal is fairly easy to read using any microcontroller. |
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> | ||