7
DHT11 Temperature and Humidity Sensor with Arduino By: Yeo Kheng Meng (yeokm1@gma https://github.com/SustainableLivingLab/dht-senso artathon (20 Feb 2016) 1

DHT11 with Arduino

  • Upload
    yeokm1

  • View
    646

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DHT11 with Arduino

1

DHT11 Temperature and Humidity

Sensorwith Arduino

By: Yeo Kheng Meng ([email protected])https://github.com/SustainableLivingLab/dht-sensor-usageStartathon (20 Feb 2016)

Page 2: DHT11 with Arduino

2

Equipment check1. Laptop installed with Arduino IDE• https://www.arduino.cc/en/Main/Software

2. Arduino Uno3. USB cable4. DHT11 on breakout5. Breadboard6. 3 jumper wires

Page 3: DHT11 with Arduino

3

What is an DHT11?• Temperature and Humidity Sensor

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 breakoutOnboard pull-up resistorConnection from left: VCC, Data Out, GND

*A better DHT22 version exists so use that if you have a choice

Page 4: DHT11 with Arduino

4

Connectivity with Arduino

• 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 -

Page 5: DHT11 with Arduino

5

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

Page 6: DHT11 with Arduino

6

Importing libraries• Import DHT-sensor-library-master.zip library

Page 7: DHT11 with Arduino

7

Sample results