0% found this document useful (0 votes)
7 views10 pages

Robotics 4.3

The DHT11 is a digital temperature and humidity sensor that operates within a temperature range of -20 to 60°C and relative humidity of 5-95%. It requires a supply voltage of 3 to 5.5V and is used in various applications such as HVAC, home appliances, and weather stations. The document includes electrical characteristics, pin descriptions, wiring diagrams, and sample code for implementation.

Uploaded by

rhenzmarduhig10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views10 pages

Robotics 4.3

The DHT11 is a digital temperature and humidity sensor that operates within a temperature range of -20 to 60°C and relative humidity of 5-95%. It requires a supply voltage of 3 to 5.5V and is used in various applications such as HVAC, home appliances, and weather stations. The document includes electrical characteristics, pin descriptions, wiring diagrams, and sample code for implementation.

Uploaded by

rhenzmarduhig10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 10

Temperature and

Humidity Module
Temperature and
Humidity Module

DHT11 digital temperature and humidity


sensor is a composite Sensor which
contains a calibrated digital signal output
of the temperature and humidity.
The sensor includes a resistive sense of
wet components and an NTC
temperature measurement devices, and
connects with a high-performance 8-bit
microcontroller.
Temperature and
Humidity Module

A module with a temperature/humidity sensor type DHT11.


Temperature range: -20 - 60°C
Rel. humidity: 5-95%
Supply voltage: 3 to 5.5V
With a built-in 10 K ohm pull up resistor.
Temperature and
Humidity Module
Applications:
1.) HVAC 9.) home appliances
2.) dehumidifier
10.) humidity regulator
3.) testing and inspection equipment
4.) consumer goods
5.) automotive
6.) automatic control
7.) data loggers
8.) weather stations
Temperature and
Humidity Module

Electrical Characteristics
Power supply: DC 3.5 ~ 5.5V
Supply Current: 0.3mA standby60μA
Pin Description:
1. the VDD power supply 3.5 ~ 5.5VDC
2. DATA serial data, a single bus
3. NC, empty pin
4. GND ground, the negative power
Temperature and
Humidity Module
Schematic
Temperature and
Humidity Module
Wiring Diagram
Temperature and
Humidity Module
Sample Output
Temperature and
Humidity Module

#include <SimpleDHT.h> void loop() {


// start working...
// for DHT11,
// VCC: 5V or 3V Serial.println("======================
// GND: GND ===========");
// DATA: 2 Serial.println("Sample DHT11...");
int pinDHT11 = 2;
SimpleDHT11 dht11; // read with raw sample data.
byte temperature = 0;
void setup() { byte humidity = 0;
Serial.begin(9600); byte data[40] = {0};
} if (dht11.read(pinDHT11, &temperature,
&humidity, data)) {
Serial.print("Read DHT11 failed");
return;
}
Serial.print("Sample RAW Bits: ");
for (int i = 0; i < 40; i++) {
Serial.print((int)data[i]);
if (i > 0 && ((i + 1) % 4) == 0) {
Serial.print(' ');
}
}
Serial.println("");

Serial.print("Sample OK: ");


Serial.print((int)temperature); Serial.print(" *C, ");
Serial.print((int)humidity); Serial.println(" %");

// DHT11 sampling rate is 1HZ.


delay(1000);
}

You might also like