






Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!







Your specialist in innovating humidity & temperature sensors Digital-output relative humidity & temperature sensor/module DHT22 (DHT22 also named as AM2302) Capacitive-type humidity and temperature module/sensor Thomas Liu (Business Manager) 1
Your specialist in innovating humidity & temperature sensors
Your specialist in innovating humidity & temperature sensors Pin sequence number: 1 2 3 4 (from left to right direction). Pin Function 1 VDD----power supply 2 DATA--signal 3 NULL 4 GND Thomas Liu (Business Manager) 4
Your specialist in innovating humidity & temperature sensors
5. Electrical connection diagram: 3Pin---NC, AM2302 is another name for DHT 6. Operating specifications: (1) Power and Pins Power's voltage should be 3 .3- 6 V DC. When power is supplied to sensor, don't send any instruction to the sensor within one second to pass unstable status. One capacitor valued 100nF can be added between VDD and GND for wave filtering. (2) Communication and signal Single-bus data is used for communication between MCU and DHT22, it costs 5mS for single time communication. Data is comprised of integral and decimal part, the following is the formula for data. DHT22 send out higher data bit firstly! DATA=8 bit integral RH data+8 bit decimal RH data+8 bit integral T data+8 bit decimal T data+8 bit check-sum If the data transmission is right, check-sum should be the last 8 bit of "8 bit integral RH data+8 bit decimal RH data+8 bit integral T data+8 bit decimal T data". When MCU send start signal, DHT22 change from low-power-consumption-mode to running-mode. When MCU finishs sending the start signal, DHT22 will send response signal of 40-bit data that reflect the relative humidity Thomas Liu (Business Manager) 5
Host computer send start signal Sensor send out response signal and keep this signal at least 1ms and keep this signal 80us Host pull up voltage -and wait sensor's response Sensor pull up bus's voltage Signal from host Start data transmission Signal from sensor Single-bus signal
Step 2: DHT22 send response signal to MCU When DHT22 detect the start signal, DHT22 will send out low-voltage-level signal and this signal last 80us as response signal, then program of DHT22 transform data-bus's voltage level from low to high level and last 80us for DHT22's preparation to send data. Check bellow picture for step 2: Thomas Liu (Business Manager) 7
Start transmit 1bit data Start transmit next bit data 26-28us voltage-length means data "0" Host signal Sesnor's signal Single-bus signal
Step 3: DHT22 send data to MCU When DHT22 is sending data to MCU, every bit's transmission begin with low-voltage-level that last 50us, the following high-voltage-level signal's length decide the bit is "1" or "0". Check bellow picture for step 3: Thomas Liu (Business Manager) 8
Your specialist in innovating humidity & temperature sensors
8. Attentions of application: (1) Operating and storage conditions We don't recommend the applying RH-range beyond the range stated in this specification. The DHT22 sensor can recover after working in non-normal operating condition to calibrated status, but will accelerate sensors' aging. (2) Attentions to chemical materials Vapor from chemical materials may interfere DHT22's sensitive-elements and debase DHT22's sensitivity. (3) Disposal when (1) & (2) happens Step one: Keep the DHT22 sensor at condition of Temperature 50~60Celsius, humidity <10%RH for 2 hours; Step two: After step one, keep the DHT22 sensor at condition of Temperature 20~30Celsius, humidity
70%RH for 5 hours. (4) Attention to temperature's affection Relative humidity strongly depend on temperature, that is why we use temperature compensation technology to ensure accurate measurement of RH. But it's still be much better to keep the sensor at same temperature when sensing. DHT22 should be mounted at the place as far as possible from parts that may cause change to temperature. (5) Attentions to light Long time exposure to strong light and ultraviolet may debase DHT22's performance. (6) Attentions to connection wires The connection wires' quality will effect communication's quality and distance, high quality shielding-wire is recommended. (7) Other attentions * Welding temperature should be bellow 260Celsius. * Avoid using the sensor under dew condition. * Don't use this product in safety or emergency stop devices or any other occasion that failure of DHT22 may cause personal injury. Thomas Liu (Business Manager) 1 0