Digital Therometer
Digital Therometer
Abstract
INTRODUCTION
1. Introduction
The advent of digital technology has revolutionized various aspects of our daily
lives, including the way we monitor and measure temperature. This project
focuses on the development of a digital thermometer, a device that provides
accurate and real-time temperature readings. The project utilizes an
microcontroller, a DS18B20 temperature sensor, and an LCD display to create
an efficient and user-friendly digital thermometer.
3. Objectives
This section details the materials and components required for the project,
including the MC, DS18B20 temperature sensor, LCD display, and other
necessary accessories. It also outlines the step-by-step process of assembling
and programming the digital thermometer, providing detailed instructions for
each stage of the project.
The system design and architecture of the digital thermometer are explained in
this section. It includes block diagrams, circuit diagrams, and flowcharts to
illustrate the overall structure and functionality of the device. The integration of
hardware components and software algorithms is discussed in detail.
7. Software Implementation
This section focuses on the software aspect of the project, including the coding
and programming of the ATMEGA microcontroller. The logic and algorithms
used to process temperature data and display it on the LCD screen are
explained. Additionally, the challenges encountered during software
development and their solutions are discussed.
8. Testing and Validation
The testing and validation process is crucial to ensure the accuracy and
reliability of the digital thermometer. This section covers the various tests
conducted to verify the performance of the device, including calibration,
accuracy, response time, and environmental factors. The results of these tests
are presented and analyzed.
WORKING PRINCIPLE
BLOCK DIAGRAM
BLOCK DESCRIPTION
CHAPTER 4
CIRCUIT DIAGRAM
CIRCUIT DESCRIPTION
The schematic diagram for the digital thermometer project illustrates the
connections between an ATMEGA 328p Micrcocontroller, a DS18B20
temperature sensor, and an LCD display (LM044L). The microcontroller acts as
the central component, with specific pins labelled for clear understanding. The
DS18B20 temperature sensor, labelled with its data line, is connected to the
Arduino's analog pin ADC0 for temperature data transmission. It is powered by
the 5V pin and grounded to the GND pin of the Arduino. The LCD display,
labelled LM044L, is connected to multiple digital pins of the Arduino: pins D2
to D7 are connected to the LCD's data pins (D0 to D5), pin D8 to the LCD's RS
pin, pin D10 to the LCD's RW pin, and pin D9 to the LCD's E pin. The VCC
and GND pins of the LCD are connected to the 5V and GND pins of the
Arduino, respectively. A potentiometer, labelled R9, is used to adjust the
contrast of the LCD display by connecting its wiper (middle pin) to the VEE pin
of the LCD, with the other two pins connected to VCC and GND. The entire
system is powered by a suitable power source, such as a USB connection or an
external power adapter, ensuring the operation of the Arduino, temperature
sensor, and LCD display. Calibration is performed to ensure the accuracy of the
temperature measurements
CHAPTER 5
HARDWARE DETAILS
ATMEGA 328
DESCRIPTION OF INPUT:
ANALOG INPUT:
DIGITAL INPUT:
Digital inputs can be defined as the non continuous time signal with
discrete input pulses. It can be represented as 0’s and 1’s. These digital inputs
can be either on state or in off state. Arduino atmega328 microcontroller also
consists of 12 digital input pins. It can be stated as D0 to D11. Nearly 12 inputs
can be used for digital input/output applications. The working of the digital
input ports is where the discrete input pulses can be triggered and supplied to
the ports. These ports receive the input and therefore the port can be used for
both input and output process. These digital pins can access only the digital
inputs.
ATMEGA-328 IC:
This ATMEGA-328 integrated chip consists of 28 pins. It consists of 6
analog inputs that are shown in the pin diagram. Analog inputs can be
represented as PC0 to PC5. These analog input pins possess the continuous time
signal which acts as an analog input for the system. Further it also consists of 12
digital inputs. It can be represented as PD1 to PD11 which act as a digital input
ports based on pulse width modulation (PWM). These PWM, which transmits
the signal in the form of discredited form. Both analog and digital input ports
can be used for various applications for the input power supply, VCC and GND
pins are used. Pins PB6 and PB7, which acts as a crystal to generate a clock
signal. By using these crystal, we can generate the clock signals and by these
clock signals, we can use this clock signals for input sources. PC6 pin are the
one where it can be used for the reset option. Resetting the program can be done
by using this PC6 pin.
The table below gives a description for each of the pins, along with their
function.
Pin
Description Function
Number
1 PC6 Reset
8 GND Ground
22 GND Ground
Features:
APPLICATIONS:
Applications
Thermostatic Controls
Industrial Systems
Consumer Products
Thermometers
Thermally Sensitive Systems
Parasitic Power Mode Requires Only 2 Pins for Operation (DQ and
GND)
Simplifies Distributed Temperature-Sensing Applications with Multidrop
Capability
Pin Configurations
Pin Description
SO μSOP TO-92
5 4 1 GND Ground
DC Electrical Characteristics
-30°C to 1
+100°C
-55°C to 2
+125°C
Drift - - - - 0.2 °C
Operation—Measuring Temperature
The 1-Wire bus system uses a single bus master to control one or more slave
devices. The DS18B20 is always a slave. When there is only one slave on the
bus, the system is referred to as a “single-drop” system; the system is
“multidrop” if there are multiple slaves on the bus. All data and commands are
transmitted least significant bit first over the 1-Wire bus. The following
discussion of the 1-Wire bus system is broken down into three topics: hardware
configuration, transaction sequence, and 1-Wire signaling (signal types and
timing).
LCD DISPLAY
Liquid Crystal Displays (LCDs) have materials, which combine the
properties of both liquid and crystals. Rather than having a melting point, they
have a temperature range within which the molecules are almost as mobile as
they would be in a liquid, but are grouped together in an ordered form similar to
a crystal. An LCD consists of two glass panels, with the liquid crystal material
sand witched in between them. The inner surface of the glass plates are coated
with transparent electrodes which define the character, symbols or patterns to be
displayed polymeric layers are present in between the electrodes and the liquid
crystal, which makes the liquid crystal molecules to maintain a defined
orientation angle. One each polarizer are pasted outside the two glass panels.
This polarizer would rotate the light rays passing through them to a definite
angle, in a particular direction. When the LCD is in the off state, light rays are
rotated by the two polarizer and the liquid crystal, such that the light rays come
out of the LCD without any orientation, and hence the LCD appears transparent.
When sufficient voltage is applied to the electrodes, the liquid crystal molecules
would be aligned in a specific direction.
The LCDs are lightweight with only a few millimeters thickness. Since
the LCD’s consume power, they are compatible with low power electronic
circuits, and can be powered for long durations. The LCD does don’t generate
light and so light is needed to read the display. By using backlighting, reading is
possible in the dark. The LCD’s have long life and a wide operating temperature
range. Changing the display size of the layout size is relatively simple which
makes the LCD’s more customers friendly. The LCD’s used exclusively in
watches, calculators and measuring instruments are the simple seven-segment
displays, having a limited amount of numeric data. The recent advances in
technology have resulted in better legibility, more information displaying
capability and a wider temperature range. These have resulted in the LCDs
being extensively used in telecommunications and entertainment electronics.
The LCDs have even started replacing the cathode ray tubes (CRTs) used for
the display of text and graphics, and also in small TV applications.
LCD module 16×4
It has 16 pins and can be operated in 4-bit mode or 8-bit mode. Here we
are using the LCD module in 4-bit mode. Before going in to the details of the
project, let’s have a look at the JHD162A LCD module.
FEATURES:
Suitable for TTL, DTL, HTL, C-MOS Power supply.
Internal short-circuit current limiting.
Internal Thermal Overload Protection.
Maximum Output Current of 150mA.
Packaged in TO-92.
OTHER COMPONENTS
CAPACITORS:
Features:
Enabled high ripple current by a reduction of impedance at high
frequency range.
Load Life : 105°C 2000~5000hours.
Operating Temperature Range :-40~+105°C
Rated Voltage Range :6.3~100V.DC
Capacitance Tolerance :±20%(20°C, 120Hz).
RESISTORS:
Features:
Choice of various viewing angles
Available on tape and reel.
Reliable and robust
Consumes very power.
Electrical characteristics:
Forward Current (IF) : 15 mA
Operating Temperature (Topr) : -40 to +85 ℃
Storage Temperature (Tstg) : -40 to +100 ℃
Soldering Temperature( Tsol) : 260 ± 5 ℃
Power Dissipation (Pd) : 45 mW
Peak Forward Current (IF Peak) :50 mA
Reverse Voltage (VR) :5 V
CHAPTER 6
SOFTWARE DETAILS
Two set ups on the program are important and should be considered.
a) The board that you want to connect, has to be selected on the arduino
software.
The “Funduino Uno” is here known as “Arduino / Genuino Uno”.
b) You have to choose the right “Serial-Port”, to let the Computer know to
which port theboard has been connected. That is only possible if the USB driver
has been installedcorrectly. It can be checked this way:
At the moment the Arduino isn't connected to the PC. If you now choose “Port”,
under thefield “Tool”, you will already see one or more ports here (COM1/
COM2/ COM3…).
The quantity of the shown ports doesn't depend on the quantity of the USB ports
on thecomputer. When the board gets connected to the computer, YOU WILL
FIND ONE MOREPORT.
Installation of the USB driver
How it should be:
1. You connect the board to the computer.
2. The Computer recognizes the board and suggests to install a driver
automatically.
ATTENTION: Wait a second! Most of the time the computer can't find the
driverautomatically to install it. You might choose the driver by your own to
install it. It can befound in the Arduino file under “Drivers”.
Control: At the control panel of the Computer you can find the “Device
manager”. If theboard has been installed successfully, it should appear here.
When the installation hasfailed, there is either nothing special to find or you will
find an unknown USB device with ayellow exclamation mark. In this case:
Click on the unknown device and choose “updateUSB driver”. Now you can
start over with the manual installation.
Programming
Now we can start properly. Without to much theoretical information we
start directly withprogramming. Learning by doing. On the left side you can
find the “sketches”, on the rightthe accompanying explanation for the
commands in grey. If you work through the tutorials with this system, you will
soon understand the code and be able to use it by yourself. Lateron you can
familiarize yourself with other features. These tutorials are only meant as
firststeps to the Arduino world. All possible program features and codes are
referred onwww.arduino.cc under „reference“.
First of all a short explanation for possible error reports that can appear while
working withthe Arduino software. The two most common ones are:
1) The board is not installed right or the wrong board is selected. After
uploading the sketch, there will appear an error report underneath the sketch. It
looks like the one in the picture on the right. The note“not in sync” shows up in
the error report.
Advantages:
1. Accurate
2. Real-time
3. Reliable
4. Efficient
5. Portable
Applications:
1. Healthcare
2. Home
3. Industry
4. Environment
5. Automation
CHAPTER 9
CONCLUSION
REFERENCE