Difference between revisions of "Sensors: DHT22"

From HiveTool
Jump to: navigation, search
m (Paul moved page DHT22 to Sensors: DHT22)
Line 1: Line 1:
[[File:Dht22 wiring1.jpg|thumb|right|500px]]
+
[[File:Dht22 wiring1.jpg|thumb|right|500px|Left: DHT22 from Adafruit mounted on PCB with pullup and bypass capacitor.<br>Right: Bare sensor from EBay without pullup or bypass.]]
 
The AM2302 (DHT22) is a 3 wire (Vcc, data, gnd) temperature and humidity sensor manufactured by Aosong.
 
The AM2302 (DHT22) is a 3 wire (Vcc, data, gnd) temperature and humidity sensor manufactured by Aosong.
  
Line 30: Line 30:
 
3.Read the sensor minimum time interval for the 2S; read interval is less than 2S, may cause the temperature and humidity are not allowed or communication is unsuccessful, etc..
 
3.Read the sensor minimum time interval for the 2S; read interval is less than 2S, may cause the temperature and humidity are not allowed or communication is unsuccessful, etc..
 
4.Temperature and humidity values are each read out the results of the last measurement For real-time data that need continuous read twice, we recommend repeatedly to read sensors, and each read sensor interval is greater than 2 seconds to obtain accurate data.
 
4.Temperature and humidity values are each read out the results of the last measurement For real-time data that need continuous read twice, we recommend repeatedly to read sensors, and each read sensor interval is greater than 2 seconds to obtain accurate data.
 +
 +
WARNING:  The spec sheet refers to this a a "1-wire" device.  This is not a "1-Wire" bus trademarked by .  The later spec sheet has a disclaimer.

Revision as of 18:35, 13 April 2016

Left: DHT22 from Adafruit mounted on PCB with pullup and bypass capacitor.
Right: Bare sensor from EBay without pullup or bypass.

The AM2302 (DHT22) is a 3 wire (Vcc, data, gnd) temperature and humidity sensor manufactured by Aosong.

Spec Sheets

AM2302 spec sheet
New AM2302/DHT22 spec sheet

Test Results

http://www.kandrsmith.org/RJS/Misc/calib_dht22.html


Pull Up Resistor

The Adafruit module (left) includes a 5.1K pull up resistor and a bypass capacitor.

The Pi does have internal pull ups that are turned on.

The new DHT22 spec sheet shows it as 1K in Figure 5. The old spec sheet said: "single bus usually require an external about 5.1kΩ pull-up resistor."

Read Time

You must wait at least 2 seconds before reading again or you will get a bad read (the checksum will fail).

The new spec sheet: "the interval of whole process must beyond 2 seconds."

The old spec sheet:

3.Read the sensor minimum time interval for the 2S; read interval is less than 2S, may cause the temperature and humidity are not allowed or communication is unsuccessful, etc.. 4.Temperature and humidity values are each read out the results of the last measurement For real-time data that need continuous read twice, we recommend repeatedly to read sensors, and each read sensor interval is greater than 2 seconds to obtain accurate data.

WARNING: The spec sheet refers to this a a "1-wire" device. This is not a "1-Wire" bus trademarked by . The later spec sheet has a disclaimer.