Interfacing DHT11 Humdity & Temperature Sensor with Arduino & LCD

//Interfacing DHT11 Humdity & Temperature Sensor with Arduino & LCD

Interfacing DHT11 Humdity & Temperature Sensor with Arduino & LCD


Introduction

In this project we will be Interfacing DHT11 Humdity & Temperature Sensor with Arduino & LCD. We will design a device that will be capable of measuring room temperature and environmental humidity. Simply we will design a digital humidity and temperature meter using Arduino and DHT11 sensor with the value displayed on LCD.

This DHT11 Temperature and Humidity Sensor features a calibrated digital signal output with the temperature and humidity sensor complex. Its technology ensures the high reliability and excellent long-term stability. A high-performance 8-bit microcontroller is connected. This sensor includes a resistive element and a sense of wet NTC temperature measuring devices. It has excellent quality, fast response, anti-interference ability and high cost performance advantages.


Components Required

For Interfacing DHT11 Humidity & Temperature Sensor with Arduino & LCD we need the following components:

1. Arduino UNO Board
2. 16*2 LCD
3. DHT11 Humidity & Temperature Sensor (You can use DHT22 as well)
4. Breadboard
5. Connecting Jumper Wires


Interfacing DHT11 Humdity & Temperature Sensor with Arduino & LCD

Now after managing this components do this following connections for Interfacing DHT11 Humdity & Temperature Sensor with Arduino.

LCD Pins 1, 3 ,5 ,16 ——— GND
LCD Pins 2, 16 ————— VCC (+5V)
LCD Pin 4 ——————– Arduino pin D7
LCD Pin 6 ——————– Arduino pin D6
LCD Pin 11 ——————- Arduino pin D5
LCD Pin 12 ——————- Arduino pin D4
LCD Pin 13 ——————- Arduino pin D3
LCD Pin 14 ——————- Arduino pin D2
Humidity Sensor Pin -ve —— GND
Humidity Sensor Pin +ve —— VCC
Humidity Sensor Pin Signal — Arduino Pin D8

A connection diagram is given below as well. Simply assemble the circuit as this.

Interfacing DHT11 Humdity & Temperature Sensor with Arduino


DHT11 Humidity & Temperature Sensor

Introduction

Interfacing DHT11 Humdity & Temperature Sensor with Arduino
This DHT11 Temperature and Humidity Sensor features a calibrated digital signal output with the temperature and humidity sensor complex. Its technology ensures the high reliability and excellent long-term stability. A high-performance 8-bit microcontroller is connected. This sensor includes a resistive element and a sense of wet NTC temperature measuring devices. It has excellent quality, fast response, anti-interference ability and high cost performance advantages.

Each DHT11 sensors features extremely accurate calibration of humidity calibration chamber. The calibration coefficients stored in the OTP program memory, internal sensors detect signals in the process, we should call these calibration coefficients. The single-wire serial interface system is integrated to become quick and easy. Small size, low power, signal transmission distance up to 20 meters, making it a variety of applications and even the most demanding applications. The product is 4-pin single row pin package. Convenient connection, special packages can be provided according to users need.

Features:

1. Low cost
2. 3 to 5V power and I/O
3. 2.5mA max current use during conversion (while requesting data)
4. Good for 20-80% humidity readings with 5% accuracy
5. Good for 0-50°C temperature readings ±2°C accuracy
6. No more than 1 Hz sampling rate (once every second)
7. Body size 15.5mm x 12mm x 5.5mm
8. 4 pins with 0.1" spacing

Working

The sensor consist of a humidity sensing component, a NTC temperature sensor (or thermistor) and an IC on the back side of the sensor.

Interfacing DHT11 Humdity &Temperature Sensor with Arduino

On the other hand, for measuring temperature these sensors use a NTC temperature sensor or a thermistor. A thermistor is actually a variable resistor that changes its resistance with change of the temperature. These sensors are made by sintering of semiconductive materials such as ceramics or polymers in order to provide larger changes in the resistance with just small changes in temperature. The term “NTC” means “Negative Temperature Coefficient”, which means that the resistance decreases with increase of the temperature.


Arduino Source Code

So here is a source code for Interfacing DHT11 Humdity & Temperature Sensor with Arduino. Simply you need to add the dht11 library. Download the dht11 arduino library from here: Dht11 Library

After updating the dht11 library simply upload the following code from below using Arduino IDE to Arduino UNO Board.

#include <dht.h>      // Including library for dht
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, );
#define dht_dpin 8
dht DHT;
byte degree[8] = 
              {
                0b00011,
                0b00011,
                0b00000,
                0b00000,
                0b00000,
                0b00000,
                0b00000,
                0b00000
              };
void setup()
{
 lcd.begin(16, 2);
 lcd.createChar(1, degree);
 lcd.clear();
 lcd.print("   Humidity   ");
 lcd.setCursor(0,1);
 lcd.print("  Measurement ");
 delay(2000);
 lcd.clear();
}
void loop()
{
  DHT.read11(dht_dpin);
  lcd.setCursor(0,0);
  lcd.print("Humidity:");
  lcd.print(DHT.humidity);   // printing Humidity on LCD
  lcd.print(" %");
  lcd.setCursor(0,1);
  lcd.print("Temp:");
  lcd.print(DHT.temperature);   // Printing temperature on LCD
  lcd.write(1);
  lcd.print("C");
  delay(500);
}

Video Preview & Explanation

Here is a video preview and full explanation for Interfacing DHT11 Humdity & Temperature Sensor with Arduino and LCD as well as details information about DHT11 Sensor and program.


By |2018-04-02T11:20:27+00:00April 2nd, 2018|Electronics|0 Comments

You May Like




Author

Posted by
This author has not yet filled in any details.
So far the author has created 4 blog entries.
April 2nd, 2018

Recent Posts

Categories

For You

%d bloggers like this: