KEMBAR78
DHT11 with Arduino | PPTX
DHT11
Temperature and Humidity Sensor
with Arduino
By: Yeo Kheng Meng (yeokm1@gmail.com)
https://github.com/SustainableLivingLab/dht-sensor-usageStartathon (20 Feb 2016) 1
Equipment check
1. Laptop installed with Arduino IDE
• https://www.arduino.cc/en/Main/Software
2. Arduino Uno
3. USB cable
4. DHT11 on breakout
5. Breadboard
6. 3 jumper wires
2
What is an DHT11?
• Temperature and Humidity Sensor
3
Raw DHT11
• Requires resistor (10kohm) pull-up to VCC
• Connections from left: VCC (3-5V), Data Out, None, GND
• Humidity: 20 – 90% ± 5%
• Temperature: 0 - 50°C ±2°C
DHT11 with breakout
Onboard pull-up resistor
Connection from left: VCC, Data Out, GND
*A better DHT22 version exists so use that if you have a choice
Connectivity with Arduino
4
• This is for the raw DHT11
• A raw 10k ohm resistor is required between Data and VCC
• For DHT11 breakout:
• 5V to +
• Arduino Pin 3 to Out
• GND to -
Code
• Download and extract zip file
• https://github.com/yeokm1/dht-sensor-usage
• Remove “-master” from directory name
• dht-sensor-usage-master -> dht-sensor-usage
• Open “dht-sensor-usage.ino”
• Try to verify/upload
5
Importing libraries
6
• Import DHT-sensor-library-master.zip library
Sample results
7

DHT11 with Arduino

  • 1.
    DHT11 Temperature and HumiditySensor with Arduino By: Yeo Kheng Meng (yeokm1@gmail.com) https://github.com/SustainableLivingLab/dht-sensor-usageStartathon (20 Feb 2016) 1
  • 2.
    Equipment check 1. Laptopinstalled with Arduino IDE • https://www.arduino.cc/en/Main/Software 2. Arduino Uno 3. USB cable 4. DHT11 on breakout 5. Breadboard 6. 3 jumper wires 2
  • 3.
    What is anDHT11? • Temperature and Humidity Sensor 3 Raw DHT11 • Requires resistor (10kohm) pull-up to VCC • Connections from left: VCC (3-5V), Data Out, None, GND • Humidity: 20 – 90% ± 5% • Temperature: 0 - 50°C ±2°C DHT11 with breakout Onboard pull-up resistor Connection from left: VCC, Data Out, GND *A better DHT22 version exists so use that if you have a choice
  • 4.
    Connectivity with Arduino 4 •This is for the raw DHT11 • A raw 10k ohm resistor is required between Data and VCC • For DHT11 breakout: • 5V to + • Arduino Pin 3 to Out • GND to -
  • 5.
    Code • Download andextract zip file • https://github.com/yeokm1/dht-sensor-usage • Remove “-master” from directory name • dht-sensor-usage-master -> dht-sensor-usage • Open “dht-sensor-usage.ino” • Try to verify/upload 5
  • 6.
    Importing libraries 6 • ImportDHT-sensor-library-master.zip library
  • 7.