Download - Es project sensor
![Page 1: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/1.jpg)
LCD humidity temperature LCD humidity temperature readerreader
Presented byPresented by::Waed shagareen Ayat Waed shagareen Ayat
bdyratbdyrat
![Page 2: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/2.jpg)
Presentation outline• Project purpose• Project idea• Project component• Project block diagram• Project Mechanism• Project programming
![Page 3: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/5.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/7.jpg)
Topic 1: Meet Arduino Uno
![Page 8: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/10.jpg)
Project block diagram
![Page 11: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/12.jpg)
• 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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/13.jpg)
![Page 14: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/14.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/15.jpg)
Arduino IDE
![Page 16: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/16.jpg)
Select Serial Port and Board
![Page 17: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/19.jpg)
![Page 20: Es project sensor](https://reader035.vdocuments.mx/reader035/viewer/2022070516/5873786e1a28ab3c1a8b6ca9/html5/thumbnails/20.jpg)
Thank You