111Equation Chapter 1 Section 1HANOI UNIVERSITY OF SCIENCE AND
TECHNOLOGY
SCHOOL OF ELECTRONICS AND TELECOMMUNICATION
FUNDAMENTAL OF TECHNICAL MEASUREMENT
PROJECT
DESIGN MEASUREMENT TEMPERATURE DEVICE
AND DATA PROCESSING
Instructor: Dr. Nguyen Tien Hoa
Class: CTTT Điện Tử 01
Member: Cao Sỹ Dương 20213603
Hanoi, 26/01/2023
CONTENTS
CHAPTER 1. THE BLOCK DESI
GN AND BACKGROUND OF TEMPERATURE MEASUREMENT DEVICE....................5
1.1. Block design................................................................................................................5
1.2. Sensor’s Background...................................................................................................5
1.2.1. DHT11 sensor.........................................................................................................5
1.2.2. DALLAS DS18b20 sensor...................................................................................7
CHAPTER 2. MEASUREMENT RESULTS AND DATA PROCESSING......................9
2.1. Measurement results....................................................................................................9
2.2. Data processing...........................................................................................................9
2.2.1. DHT11..................................................................................................................9
2.2.2. DALLAS DS18b20............................................................................................10
2.2.3. Evaluation..........................................................................................................11
LIST OF FIGURES
Figure 1 Block design of temperature measurement device with 2 different sensors.......3
Figure 2 DHT11 and its pin.....................................................................................................4
Figure 3 DHT11 setup to measure temperature....................................................................4
Figure 4 DS18b20 sensor.........................................................................................................5
Figure 5 Schematic circuit of measurement temperature device using DS18B20 sensor..6
Figure 6 ADC accuracy of Arduino UNO (Spec-sheet)........................................................8
LIST OF TABLES
Table 1 Pin configuration of DHT11......................................................................................5
Table 2 Measurement results of both 2 temperature sensors..............................................8
CHAPTER 1. BLOCK DESIGN AND BACKGROUND OF
TEMPERATURE MEASUREMENT DEVICE
1.1. Block design
Figure 1 Block design of temperature measurement device with 2 different sensors.
Description about block design:
In this project, we proposed to use 2 different temperature sensors which are DHT11
and DALLAS to measure the environment temperature.
DHT11 is connected to Analog gate of Arduino UNO.
DALLAS is connected to Digital gate of Arduino UNO.
Arduino DUE will be connected to PC to display the result of real-time temperature of
environment.
Operating principle:
1st temperature sensor (DHT11) produces voltage corresponding to temperature.
DHT11 is connected to Analog gate of Arduino UNO and this voltage is converted to
digital (0 to 1024) by ADC of Arduino UNO. Then this temperature will be
converted into ASCII form which is suitable for displaying. This ASCII values are
fed to PC screen which displays the temperature on its screen. The process is
repeated after specified interval (1s)
2nd temperature sensor (DALLAS):
1.2. Sensor’s Background
1.2.1. DHT11 sensor
Figure 2: Typical Application
Note: 3Pin – Null; MCU = Micro-computer Unite or single chip Computer
Power and Pin:
The power supply is 3-5.5V DC.
One capacitor valued at 100nF can be added between VDD and GND for
power filtering.
Pin 1: Signal
Pin 2: VCC
Pin 3: Ground
Figure: DHT11 pins
Main Parameter
Main Characteristics of the DHT11 Sensor
Input voltage from 3V to 5.5V (typical 5V).
Current supply from 0.5mA to 2.5mA.
The temperature has ranged from 0°C to 50°C.
Accuracy has ranged from ± 1°C to ± 2°C.
The humidity has ranged from 30%RH to 90%RH at 0°C.
The humidity has ranged from 20%RH to 90%RH at 25°C.
The humidity has ranged from 20%RH to 80%RH at 50°C.
Accuracy typically ± 4%RH at 25°C and ± 5% at 0-50°C (Maximum)
Arduino boards contain a multichannel, 10-bit ADC, which will map input voltages between
0 and the operating voltage 5V into integer values between 0 to 1023. So, to convert this
value back into the output voltage of the sensor, we use the following formula:
Figure: Set up
1.2.2. DALLAS DS18b20 sensor
Figure 3 DS18b20 sensor
DS18B20 is 1-Wire digital temperature sensor from Maxim IC. Reports
degrees in Celsius with 9 to 12-bit precision, from -55 to 125 (+/-0.5).
Each sensor has a unique 64-Bit Serial number etched into it - allows
for a huge number of sensors to be used on one data bus.
Features:
Unique 1-Wire® interface requires only one port pin for communication
Each device has a unique 64-bit serial code stored in an onboard ROM
Multidrop capability simplifies distributed temperature sensing applications
Requires no external components
Can be powered from data line.
Power supply range is 3.0V to 5.5V
Measures temperatures from –55°C to +125°C (–67°F to +257°F)±0.5°C accuracy
from –10°C to +85°C
Thermometer resolution is user-selectable from 9 to 12 bits
Converts temperature to 12-bit digital word in 750ms (max)
User-definable nonvolatile (NV) alarm settings
Alarm search command identifies and addresses devices whose temperature is outside
of programmed limits (temperature alarm condition)
Applications include thermostatic controls, industrial systems, consumer products,
thermometers, or any thermally sensitive system
Figure 4 Schematic circuit of measurement temperature device using DS18B20 sensor
First plug the sensor on the breadboard the connect its pins to the Arduino using the jumpers
in the following order: pin 1 to GND; pin 2 to any digital pin (pin 2 in our case); pin 3 to +5V
or +3.3V, at the end put the pull-up resistor.
CHAPTER 2. MEASUREMENT RESULTS AND DATA
PROCESSING
2.1. Measurement results
Table 1 Measurement results of both 2 temperature sensors
We measured the environment temperature with both 2 temperature sensors for almost 4
minutes and obtained 220 different temperature results. For full details, we stored data in
attached excel file.
2.2. Data processing
2.2.1. DHT11
Mean value:
Standard deviation (s.d):
Mean Standard deviation (S.D):
Result:
Figure 5 ADC accuracy of Arduino UNO (Spec-sheet)
Due to DHT11 is connected to Analog gate of Arduino UNO, but PC Screen only display
digital value of temperature, so ADC of Arduino UNO must convert analog to digital value.
This process will cause error of ADC.
Result which has taken into account the error of ADC:
2.2.2. DS18b20
Mean value:
Standard deviation (s.d):
Mean Standard deviation (S.D):
Result:
2.2.3. Evaluation
After doing the experiment, we have the following several conclusions:
- Temperature sensor DB18b20 is more expensive than DHT11 but DB18b20 gives us
a high measurement accuracy and low error than DHT11 because DHT11 sensor has a
ADC error.
- Temperature that we obtained by DB18b20 (29.85 ℃ ) is higher than DHT11 (28.23
℃ ).