es project sensor

20
LCD humidity LCD humidity temperature reader temperature reader Presented by Presented by : : Waed shagareen Waed shagareen Ayat bdyrat Ayat bdyrat

Upload: waed-shagareen

Post on 09-Jan-2017

34 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Es project sensor

LCD humidity temperature LCD humidity temperature readerreader

Presented byPresented by::Waed shagareen Ayat Waed shagareen Ayat

bdyratbdyrat

Page 2: Es project sensor

Presentation outline• Project purpose• Project idea• Project component• Project block diagram• Project Mechanism• Project programming

Page 3: Es project sensor

Project purpose• Humidity and temperature are common

parameters to measure environmental conditions

• LCD humidity and temperature reader useful in remote weather stations, home environment control systems, and agricultural/garden monitoring systems.

Page 4: Es project sensor

Project idea• In this Arduino based project we are

going to measure ambient temperature and humidity then display it on a 16x2 LCD screen.

Page 5: Es project sensor

Project component • Arduino Uno • DHT11 temperature and humidity

sensor • Backlit LCD (16x2) characters Liquid

Crystal Display • Breadboard Electronic Components • Jumper cables • potentiometer • ohm resistor

Page 6: Es project sensor

Project component• Arduino Uno

Arduino is an open-source electronics Arduino is an open-source electronics prototyping platform based on flexible, easy-prototyping platform based on flexible, easy-to-use hardware and softwareto-use hardware and software

Page 7: Es project sensor

Topic 1: Meet Arduino Uno

Page 8: Es project sensor

DHT11 temperature and humidity sensor

• The DHT11 humidity and temperature sensor measures relative humidity (RH) and temperature.

• The formula for relative humidity is as follows: Relative Humidity = (density of water vapor /

density of water vapor at saturation) x 100%• The DHT11 uses one signal wire to transmit

sensor readings to the Arduino digitally.•

Page 9: Es project sensor

Backlit LCD (16x2) characters Liquid Crystal Display

• . A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments .

Page 10: Es project sensor

Project block diagram

Page 11: Es project sensor

Project Mechanism• DHT11 module works on serial

communication i.e. single wire communication. This module sends data in form of pulse train of specific time period. Before sending data to arduino it needs some initialize command with a time delay.

Page 12: Es project sensor

• liquid crystal display is used for displaying temperature and humidity which is directly connected to arduino in 4-bit mode. Pins of LCD namely RS, EN, D4, D5, D6 and D7 are connected to arduino digital pin number 2, 3, 4, 5, 6 and 7. And a DHT11 sensor module is also connected to digital pin 12 of arduino with a 5k pull-up resistor

Page 13: Es project sensor
Page 14: Es project sensor

Project Programming • In programming using Arduino IDE , we are

going to use pre-built libraries for DHT11 sensor and LCD display module. 

• Then we have defined pins for LCD and DHT sensor and initialized all the things in setup.

• Then in a loop by using DHT function reads DHT sensor and then using some dht functions we extract humidity and temperature and display them on LCD.

Page 15: Es project sensor

Arduino IDE

Page 16: Es project sensor

Select Serial Port and Board

Page 17: Es project sensor

Project Code#include <dht.h>#include <LiquidCrystal.h>

dht DHT;

#define DHT11_PIN 3

LiquidCrystal lcd(12,11,4,5,6,7);

void setup() { // put your setup code here, to run once: Serial.begin(9600); lcd.begin(16,2); lcd.setCursor(0,0); lcd.print(" Welcome"); delay(2000); lcd.clear();}

Page 18: Es project sensor

void loop() { // must issue this command to store the temp and humid data in DHT object int chk = DHT.read11(DHT11_PIN);

int temp = DHT.temperature , humid = DHT.humidity ;

Serial.println('$'); Serial.println(temp); Serial.println(humid); lcd.print(temp); lcd.print(" Celsius"); lcd.setCursor(0,1); lcd.print(humid); lcd.print("% Humid"); delay(8000); lcd.clear(); lcd.print("Have a Nice Day"); lcd.setCursor(0,1); lcd.print(" -Home Weather"); delay(4000); lcd.clear();

}

Page 19: Es project sensor
Page 20: Es project sensor

Thank You