Anda di halaman 1dari 22

Humidity and Temperature

Measurement Using
Arduino

Submitted By:-
Jitender (160131500021)
Mithlesh (160131500026)
Rohit (160131500042)
Sagar (160131500026)
Humidity and Temperature Measurement
Using Arduino
Humidity and temperature are common parameters
to measure environmental conditions. In this Arduino
based project we are going to measure ambient
temperature and humidity and display it on a LCD
screen.
Humidity and Temperature Measurement
Using Arduino
In this work, We are mainly using :-

 Arduino
 DHT11
 16*2 LCD
DHT 11
Temperature Range 0-50ºC/±2ºC

Humidity Range 20-80%/±5%

Sampling Rate 1Hz (one reading per


second)
Body Size 15.5mm x 12mm x 5.5mm

Operating Voltage 3 - 5V

Maximum Current During 2.5mA


Measuring
DHT 11 Working Principle

As the humidity changes, the conductivity of the Substrate


change. Therefore the resistance between two electrodes
changes.
DHT 11 Working Principle

The Resistance decreases with the increase of


Temperature
Data transfer protocol
Step 1:
After power on DHT11 waits 1S across the unstable state.
It tests environment temperature and humidity data,
and records the data.

Step 2:
The MCU initiates data transmission by issuing a “Start”
signal. It first pulls the data line low for at least 18 ms and
then pulls it high for next 20-40 micro s before it releases it.
Step 3:
Next, the sensor responds to the MCU “Start” signal
by pulling the line low for 80 micro s followed by a logic high
signal that also lasts for 80 micros.

Step 4:

The MCU pin must be configured to input after finishing the


“Start” signal. Once detecting the response signal from the sensor,
the MCU should be ready to receive data from the sensor.
Data Format

 The 8bit humidity integer data +


 8 bit the Humidity decimal data +
 8 bit temperature integer data +
 8bit fractional temperature data +
 8 bit parity bit.
Example:

40 bit data is received:


0011 0101 0000 0000 0001 1000 0000 0000 0100 1101
High humidity 8 Low humidity 8 High temp. 8 Low temp. 8 Parity bit

Calculate:
0011 0101+0000 0000+0001 1000+0000 0000= 0100 1101
Received data is correct.

Humidity:0011 0101=35H=53%RH
Temperature:0001 1000=18H=24℃
Arduino Uno
Flow Diagram of Humidity and
Temperature Measurement system

Display
humidity
Pass the and temp
data to on LCD
Arduino
Sense the
humidity
and temp
using DHT11
Circuit Diagram of Humidity and Temperature
Measurement system
Humidity and Temperature Measurement
Using Arduino
Humidity and Temperature Measurement system
(Data line Diagram)
 Ardunio sends
signal to DHT11.
 After detects it will
send signal to
ardunio.
 Prepare data
transmission.
Code for display Humidity and Temperature

In programming, we are going to use pre-built libraries for DHT11 sensor and LCD
display module.

 #include <dht.h>
 #define dataPin 8 // Defines pin number to which the sensor is connected
 dht DHT; // Creats a DHT object
 void setup() {
 Serial.begin(9600);
 }
Code for display Humidity and Temperature
 void loop() {
 int readData = DHT.read11(dataPin); // Reads the data from the sensor
 float t = DHT.temperature; // Gets the values of the temperature
 float h = DHT.humidity; // Gets the values of the humidity
 // Printing the results on the serial monitor
 Serial.print("Temperature = ");
 Serial.print(t);
 Serial.print(" *C ");
 Serial.print(" Humidity = ");
 Serial.print(h);
 Serial.println(" % ");
 delay(2000); // Delays 2 secods, as the DHT22 sampling rate is 0.5Hz
 }
Why it is beneficiary

Its technology ensures the high reliability and excellent


long-term stability.
This sensor includes a resistive element and a sense of
wet NTC temperature measuring devices. It has excellent
quality, fast response, anti-interference ability ...
Limitations

 Measures temperature from 0-50


degree C. soo, it will not work for
temperature below 0 degree C.
 The accuracy is (+/-) 2 degree.
There is a chance of error in
collected data.
 Humidity range is 20-80% only.
Precautions
The quality of the signal wire will affect the quality of the
voltage output, it is recommended to use high quality shielded
cable.
Manual welding, in the maximum temperature of 300℃ under
the conditions of contact time shall be less than 3 seconds.
The high concentration of chemical pollution (such as
ethanol) will lead to the complete damage of the sensitive
layer of the sensor.
To reduce the thermal conductivity sensor and printed circuit
board copper
plating should be the smallest possible and leaving a gap
between the two.
Thank you

Anda mungkin juga menyukai