Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
C
Temperature measurement accuracy: 2
C
Digital signal output
4 pins with 0.1r 2.54mm spacing
2
USER MANUAL DHT11
Module SnapShot
Following gure contains the Snapshot of the DHT11 Sensor and its
adapter board.
Figure 1: DHT11 Sensor
Figure 2: Interfacing with Arduino
www.elementzonline.com 3
Connection Details
User can connect any I/O pin of host microcontroller to DHT11 out
pin. Power supply should be preferably the same as the Host controller.
Hardware Description
Following gure shows the application circuit for interfacing DHT11
sensor with a microcontroller. It only requires a pull up resistor at the
output pin of DHT11.
Figure 3: DHT11 application circuit
Typical application circuit recommended a short cable length of 20
meters on connecting 5.1K as pull-up resistor. For length greater
than 20 meters the pull-up resistor can be lowered.
4
USER MANUAL DHT11
When using a 3.5V voltage supply cable length shall not be greater
than 20cm. Otherwise, the line voltage drop will cause the sensor
power supply shortage, which may cause measurement error.
Each read the temperature and humidity values returned are the
results of the last measurement. For real-time data, sequential read
twice, but is not recommended to repeatedly read the sensors. Each
read sensor interval should be greater than 5 seconds for obtaining
accurate data.
Software description
Once DHT detects the start signal, it will send out a low-voltage-level
response signal, which lasts 80us. Then the programme of DHT sets Data
Single-bus voltage level from low to high and keeps it for 80us for DHTs
preparation for sending data. When DATA Single-Bus is at the low volt-
age level, this means that DHT is sending the response signal. Once DHT
sent out the response signal, it pulls up voltage and keeps it for 80us and
prepares for data transmission. When DHT is sending data to MCU, ev-
ery bit of data begins with the 50us low-voltage-level and the length of the
following high-voltage-level signal determines whether data bit is "0" or "1".
The 40-bit data from the sensor has the following structure.
Data (40-bit) = Integer Byte of RH + Decimal Byte of RH +
Integer Byte of Temp. + Decimal Byte of Temp. + Checksum
Byte
For DHT11 sensor, the decimal bytes of temperature and humidity
measurements are always zero. Therefore, the rst and third bytes of
received data actually give the numeric values of the measured relative
humidity (%) and temperature (