Project EEE 354 Group 00
Project EEE 354 Group 00
Group No. 45
Group Members
3. Mohtasin Fuad(1902102)
4. Md. Zahidur Rahman (1902111)
Digital thermometers are widely used to measure the temperature and also it is safe to use.
Digital thermometers can be used in houses, offices, hospitals and so on. In this project we have
planned to make a digital thermometer using a temperature sensor and micro-controller. The
design we proposed will also be cost effective and affordable. NTC is the temperature sensor
which is used in our project. The temperature value which is in analog value is converted to
digital and it is displayed using a liquid crystal display. The temperature measured using our
design will be compared with the actual thermometer reading and the result will also be verified.
i
Contents
1 Introduction 1
2.1 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 PCB layout 7
4 Breadboard Implementation 9
5 PCB Implementation 10
6 Price Table 12
7 Future Improvement 13
8 Conclusion 16
9 Plagiarism Declaration 17
References 17
ii
List of Figures
iii
List of Tables
iv
Listings
v
Chapter 1
Introduction
The main aim of this project is to design and develop a thermometer which is safer to use. It
works on the principle of superconductivity.This project deals with the development of digi-
tal thermometers with more accuracy in measuring the temperature like conventional mercury
thermometers. This can be used in houses, hospitals, offices, clinics etc. to measure the temper-
ature[1]. Also, factors such as rising healthcare expenditure and increasing healthcare awareness
boost the concept of self-care management. Digital room temperature is very crucial, since a
certain room or atmosphere needs to be digitally controlled which means that the analog tem-
perature reader uses a tension overwriting which may require more measurements to obtain the
actual ambient temperature. With the NTC temperature sensor this device helps the consumer
1
Chapter 2
Working Principle:
temperature sensor whose resistance decreases as the temperature increases. It’s connected to
of the NTC thermistor into an analog voltage using the built-in ADC. The ADC measures this
voltage and converts it into a digital value that represents the temperature.
table to convert the ADC’s digital value into a temperature value in degrees Celsius. This
calculation is based on the characteristics of the NTC thermistor and its resistance-temperature
relationship.
Display Output: The calculated temperature value is then displayed on the 16X2 LCD display.
The microcontroller sends the temperature value as text characters to the LCD, which shows
it on the screen.
Software Logic: The software programmed into the microcontroller’s memory controls the
entire process. It reads the ADC value, performs the temperature conversion, and sends the
result to the LCD. This logic ensures the accurate representation of temperature readings.
2
Chapter 2. Working and Design of Circuit 2.1. Figures
to 100 degrees Celsius. The software ensures that the displayed temperature value falls within
this range.
User Interaction: Users can monitor the current temperature on the LCD display. Since
you’ve created the system using the PICKit 2 software and miKroC software, you’ve likely
integrated the necessary code for user interaction and display functionality.
2.1 Figures
1. NTC: NTC is a temperature sensor with 3 pins. The temperature is measured in the range
of -10°C to 100°C. The temperature readings will be more accurate compared to the thermistor
. When the temperature is at 0°C the output voltage of the sensor will be 0 volts. And, for
every degree rise in temperature the output voltage increases by 10 mV. The advantages are
3
2.2. Mathematical Formula Chapter 2. Working and Design of Circuit
that it is of low cost, light in weight and has greater accuracy. The applications of NTC include
2. LCD :LCD is the most commonly used electronic display module. LCD is a liquid crystal
display that uses the light modulating property of liquid crystals and displays the content. A
16×2 LCD has 16 columns and 2 rows so that 16 characters can be displayed in a single row.
The advantages of LCD include thin compared with other displays and the power consumption
is low. LCD has various applications it is used in laptops, calculators, mobile phones etc.
3. Potentiometer : Potentiometer is a resistor with three terminals which is used for mea-
suring voltage (electric potential). Potentiometer is nothing but a voltage divider. Variable
potentiometers are used to control current and the voltage. Most commonly potentiometers are
4. PIC 16F877A : PIC 16F877A is a 40 pin IC. PIC16F877 is one of the cheapest micro
controllers with low power consumption. The operating voltage of a PIC16F877 is 4.5V to
5.5V. It has 4 ports. They port A, port B, port C and port D. All the ports are 8 bit and
bidirectional with many functionalities. And each port comes with 8 IO pins. PIC16F877A is
preferred mostly compared to other micro controllers as it executes instructions faster and has
an RISC processor. The applications of PIC16F877A are it can be used where automation plays
a major role and also it can be used in temperature controlling systems, embedded systems etc.
temp=log(10000.0*((1024.0/res-1)))
temp=1/(0.001129148+(0.000234125+(0.0000000876741*temp*temp))*temp)
4
Chapter 2. Working and Design of Circuit 2.2. Mathematical Formula
t e p a r a t u r e code :
char she [ 3 0 ] ;
v o i d main ( )
ADCON1=0x00 ;
TRISA=0xFF ;
Lcd Init ( ) ;
ADC Init ( ) ;
while (1)
d o u b l e temp ;
r e s= ADC Read ( 0 ) ;
temp=l o g ( 1 0 0 0 0 . 0 ∗ ( ( 1 0 2 4 . 0 / r e s − 1 ) ) ) ;
5
2.2. Mathematical Formula Chapter 2. Working and Design of Circuit
temp=temp − 2 7 3 . 1 5 ;
f l o a t t o s t r ( temp , s h e ) ;
Lcd Out ( 2 , 1 , s h e ) ;
Lcd Chr Cp ( 2 2 3 ) ;
L c d c h r c p ( ’C ’ ) ;
Delay ms ( 5 0 0 ) ;
6
Chapter 3
PCB layout
Description: We’ve utilized Proteus software to design the PCB layout. This involves creating
a visual representation of the circuit connections and components that make up your digital
thermometer system. The NTC thermistor sensor is linked to an analog input pin on the
PIC16F877A microcontroller. The microcontroller processes the analog signal using its ADC
and translates it into a digital temperature value. This value is then sent to a 16X2 LCD display
for easy visualization. By designing the PCB layout using Proteus, you’ve efficiently mapped
out the physical connections, component placements, and routing paths, allowing for a clear
and organized representation of your project’s electronic architecture. This step is pivotal in
transitioning your project from the prototype stage to a more refined and manufacturable form.
7
Chapter 3. PCB layout
8
Chapter 4
Breadboard Implementation
necting the NTC thermistor sensor to an analog input pin of the PIC16F877A microcontroller.
The microcontroller reads the analog signal through its ADC, converts it into a digital value
representing temperature, and processes this data using programmed logic. The temperature
reading is then sent to a 16X2 LCD display, showing real-time temperature values within the
specified range of -10 to 100 degrees Celsius. This setup showcases your adeptness in integrat-
ing hardware components and programming to create a functional and informative temperature
9
Chapter 5
PCB Implementation
Transitioning from a breadboard prototype to a real PCB involves transferring our digital
thermometer project from a temporary setup to a more permanent and compact form. After
designing the PCB layout using Proteus software, we’ve manufactured an actual printed circuit
board (PCB) with the designed traces, components, and connections. This real PCB version
encapsulates the same functionality as your prototype but offers several advantages, such as
increased reliability, compactness, and suitability for production. The NTC thermistor sensor
is soldered onto the PCB and connected to the microcontroller’s analog input pin, allowing
for accurate temperature sensing. The microcontroller processes the data, converts it into
digital temperature values, and sends them to the 16X2 LCD display through the integrated
circuit pathways. By implementing the project on a PCB, we’ve transformed our concept
into a tangible, manufacturable, and efficient device that showcases our prowess in electrical
10
Chapter 5. PCB Implementation
11
Chapter 6
Price Table
12
Chapter 7
Future Improvement
This system can be built into a wearable model so that it will be more handy, easily accessible
and allows continuous monitoring. The precision and accuracy could be further improved. The
measurement of different types of temperature sensors can be compared. This project can be
developed as a health monitoring system by measuring parameters other than body temperature
such as heart rate. All these parameters can be sent as a message to the specified user with the
help of the GSM module. Also used as a Fire alarm system by adding a loudspeaker.During
cold weather, the icing level is also determined using thermometers in roadways for the safety
industries.Also used to measure the temperature of food items like cakes and pastries in the
food industry.
CALCULATION OF ERROR:
= (29.34 -28)/28×100
=4.78percent
13
Chapter 7. Future Improvement
14
Chapter 7. Future Improvement
15
Chapter 8
Conclusion
of people by following certain principles. These are the developed version of mercury ther-
mometers. These thermometers offer quick and exact outcomes, eco-friendly and anybody can
utilize them. The design and usage of a digital thermometer with the operating range of -10℃
to +100℃, which is the focus of this project, is accomplished. Highly accurate temperature
16
Chapter 9
Plagiarism Declaration
With the exception of any statement to the contrary, all the material presented in this report is
the result of my own efforts. In addition, no parts of this report are copied from other sources.
I understand that any evidence of plagiarism and/or the use of unacknowledged third party
17
References
[1] B.O .Oyebola1; V. T. Odueso 2, ”NTC Based Digital Room Temperature Meter: A Simple
sumer Electronics, Communications and Networks, Xianning, 2014, pp. 246-249, doi:
10.1109/CECNet.2013.6703317.
[3] G. Wang, W. Wang, K. Li and H. Liu, ”A digitalthermometer with fast response and high
[4] Z. Qian, ”Design of Digital Thermometer Based on NTC Single Chip Microcontroller,”
2011 International Conference on Electrical and Control Engineering, Wuhan, 2011, pp.
18