Upload
yeokm1
View
646
Download
0
Embed Size (px)
Citation preview
1
DHT11 Temperature and Humidity
Sensorwith Arduino
By: Yeo Kheng Meng ([email protected])https://github.com/SustainableLivingLab/dht-sensor-usageStartathon (20 Feb 2016)
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
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
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 -
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
6
Importing libraries• Import DHT-sensor-library-master.zip library
7
Sample results