0% found this document useful (0 votes)
8 views11 pages

CAM Project GK

The document is a course project report detailing the development of a digital thermometer using the 8051 microcontroller and LM35 sensor for temperature measurement. It includes sections on components, circuit diagrams, code, simulation, and conclusions, highlighting the system's design, implementation, and potential for future enhancements. The project successfully demonstrates accurate temperature readings displayed on an LCD, with considerations for further improvements such as wireless connectivity and IoT integration.

Uploaded by

alenshaju4698
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views11 pages

CAM Project GK

The document is a course project report detailing the development of a digital thermometer using the 8051 microcontroller and LM35 sensor for temperature measurement. It includes sections on components, circuit diagrams, code, simulation, and conclusions, highlighting the system's design, implementation, and potential for future enhancements. The project successfully demonstrates accurate temperature readings displayed on an LCD, with considerations for further improvements such as wireless connectivity and IoT integration.

Uploaded by

alenshaju4698
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

COURSE PROJECT REPORT ON

DIGITAL THERMOMETER USING 8051


MICROCONTROLLER

In partial fulfilment of the requirements for the award of the degree of

BACHELOR OF TECHNOLOGY
in
ELECTRONICS AND COMMUNICATION ENGINEERING

Submitted by

GOUTHAM KRISHNA (SJC22EC032)

ST. JOSEPH’S COLLEGE OF ENGINEERING & TECHNOLOGY


CHOONDACHERRY P.O., PALAI– 686579
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
APRIL 2024
CONTENTS

TABLE OF CONTENTS

CHAPTER 1 INTRODUCTION 1
CHAPTER 2 COMPONENTS 2
2.1 8051 2
Microcontroller
2.2 ADC0804 Board 2
2.3 16*2 LCD Display 3
2.4 LM35 Sensor 3
2.5 Potentiometer 4
2.6 Jumper Cables 4
CHAPTER 3 Circuit Diagram 5
CHAPTER 4 Code 6
CHAPTER 5 Simulation 8
CHAPTER 6 Conclusion 9

i
Course Project Report

CHAPTER 1
INTRODUCTION

This project deals with the development of a simple Digital


thermometer using 8051 microcontroller in which LM35 sensor is used
for measuring the temperature. The system comprises of a temperature
sensor, which interfaces with the microcontroller to capture temperature
readings. The microcontroller processes these analog signals through
analog-to-digital conversion, facilitating precise temperature
measurements. These measurements are then displayed on an LCD
screen, providing users with instant temperature readings in a user-
friendly format.

The flexibility of the 8051 microcontroller allows for customization


and expansion of the thermometer's capabilities. For example, it can be
enhanced to enable temperature data to be stored for analysis or
monitoring purposes. Moreover, the system can be interfaced with other
devices or systems, enabling remote temperature monitoring or
integration into larger control systems.

. By using the 8051 microcontroller's capabilities, this project shows


a cost-effective and efficient solution for digital temperature sensing
applications, suitable for various field s such as industrial, medical, or
household settings.

Dept. of ECE,SJCET,Palai Page 1


Course Project Report

CHAPTER 2
COMPONENTS

2.1-8051 Microcontroller
8051 microcontroller is an 8 -bit microcontroller which has 128 bytes
of on chip RAM , 4K bytes of on chip ROM, two timers, one serial port
and four 8 bit ports.

2.2 –ADC0804 Board

The ADC0804 IC is an 8-bit parallel ADC in the family of the ADC0800


series from National Semiconductor. It works with +5 volts and has a
resolution of 8 bits.

Dept. of ECE,SJCET,Palai Page 2


Course Project Report

2.3-16*2 LCD display

16*2 LCD is a widely used display for embedded applications. There are
two very important registers inside the LCD called data register and
command register. Command register is used to send commands such as
clear display, cursor at home etc., data register is used to send data which
is to be displayed on 16*2 LCD.

2.4-LM35 Sensor
The LM35 is a temperature sensor whose output voltage is linearly
proportional to Celsius temperature. The LM35 comes already calibrated
hence requires no external calibration. It outputs 10mV for each degree of
Celsius temperature.

Dept. of ECE,SJCET,Palai Page 3


Course Project Report

2.5-Potentiometer

A potentiometer is a variable resistor that allows users to adjust the


resistance manually. By turning the knob or slider, the resistance between
its terminals changes, making it useful for controlling the volume,
brightness, speed, or other parameters in electronic circuits.

2.6-Jumper Cable

Jumper wires are used to establish connections between various


components on a breadboard or electronic circuit. They enable the
transfer of electrical signals or power between different points,
facilitating the prototyping and testing of electronic circuits without the
need for soldering.

Dept. of ECE,SJCET,Palai Page 4


Course Project Report

CHAPTER 3
CIRCUIT DIAGRAM

Fig no 3.1 Main circuit diagram

WORKING:- LM35 sensor is used to detect the temperature of the


surroundings. It produces voltage corresponding to temperature. As the
temperature increases, the voltage also increase
increases accordingly. This
voltage is converted to digital (0 to 256) by ADC0804 and it is fed to
8051 microcontroller. 8051 microcontroller converts this digital value
into temperature in degree Celsius. Then this temperature is converted
into ASCII form which is suitable for displaying. This ASCII values are
fed to 16*2 LCD which displays the temperature on its screen. This
process is repeated after specified interval.

Dept. of ECE,SJCET,Palai Page 5


Course Project Report

CHAPTER 4
8051 C-CODE

#include<reg51.h>
sfr LCD = 0xA0; //P2=LCD Data pins
sbit RS=P0^5; //Register select (RS) pin of 16*2 lcd
sbit RW=P0^6;
sbit EN=P0^7;

sfr ADC = 0x90;


sbit RD_ADC=P3^0;
sbit WR_ADC=P3^1;
sbit INTR=P3^2;

void LCD_CMD(unsigned char x);


void LCD_DATA(unsigned char w);
void LCD_INI(void);
void Send_Data(unsigned char *str);
void msDelay(unsigned int);

void convert_display(unsigned char);


unsigned char i,value;

void main(void)
{
msDelay(20);
LCD_INI();
Send_Data("TEMPERATURE");

INTR=1;
RD_ADC=1;
WR_ADC=1;

while(1)
{

WR_ADC=0;
msDelay(1);
WR_ADC=1;
while(INTR==1);
RD_ADC=0;
value=ADC;
convert_display(value);
msDelay(1000);

Dept. of ECE,SJCET,Palai Page 6


Course Project Report

RD_ADC=1;
}

void convert_display(unsigned char value)


{
unsigned char x1,x2,x3;

LCD_CMD(0xc6);

x1=(value/10);
x1=x1+(0x30);
x2=value%10;
x2=x2+(0x30);
x3=0xDF;

LCD_DATA(x1);
LCD_DATA(x2);
LCD_DATA(x3);
LCD_DATA('C');
}
void LCD_CMD(unsigned char x)
{
LCD = x;
RS = 0;
RW = 0;
EN = 1;
msDelay(1);
EN = 0;
return;
}
void LCD_DATA(unsigned char w)
{
LCD = w;
RS = 1;
RW = 0;
EN = 1;
msDelay(1);
EN = 0;
return;
}
void Send_Data(unsigned char *Str)
{
while(*Str)
LCD_DATA(*Str++);
}

Dept. of ECE,SJCET,Palai Page 7


Course Project Report

void LCD_INI(void)
{
msDelay(100);
LCD_CMD(0x38);
LCD_CMD(0x0E);
LCD_CMD(0x01);
}
void msDelay(unsigned int Time)
{
unsigned int y,z;
for(y=0; y<Time; y++)
for(z=0; z<500; z++);
}

CHAPTER 5
SIMULATION

Dept. of ECE,SJCET,Palai Page 8


Course Project Report

CHAPTER 6
CONCLUSION

In conclusion, the development of a digital thermometer utilizing the


8051 microcontroller has been successfully achieved. Through the course
of this project, we have accomplished several significant objectives:

1. Design and Implementation: We have designed and implemented


a robust digital thermometer system using the 8051
microcontroller. The system accurately measures temperature and
displays it on an LCD screen, providing users with real-time
temperature readings.
2. Sensor Integration: By integrating a temperature sensor with the
microcontroller, we have ensured precise and reliable temperature
measurements. The sensor's output is processed efficiently by the
microcontroller to produce accurate digital readings.
3. User Interface: The system incorporates a user-friendly interface
through the LCD display, allowing users to easily interpret
temperature readings. Additionally, we have incorporated features
such as calibration options to enhance usability and accuracy.
4. Performance Evaluation: Extensive testing has been conducted to
evaluate the performance of the digital thermometer system. The
results demonstrate its reliability, stability, and accuracy across a
range of temperature conditions.
5. Future Considerations: While the current implementation meets
the project requirements, there is still room for further
improvement and expansion. Future enhancements could include
wireless connectivity for remote monitoring, integration with IoT
platforms for data logging and analysis, and compatibility with
mobile applications for enhanced user interaction.

In conclusion, the development of this digital thermometer system


represents a significant achievement in the field of temperature
measurement and control. The project has provided valuable insights into
the design and implementation of embedded systems using the 8051
microcontroller. We believe that this project serves as a foundation for
further exploration and innovation in this domain.

Dept. of ECE,SJCET,Palai Page 9

You might also like