0% found this document useful (0 votes)
9 views3 pages

Sanjtan

The document outlines an assignment for a digital thermometer project using the 8051 microcontroller, detailing the components involved such as the LM35 sensor and ADC0804 converter. It includes code snippets for the implementation and describes the working mechanism of the system, which displays real-time temperature readings on an LCD. The conclusion emphasizes the project's effectiveness in demonstrating embedded systems principles and its application in temperature monitoring.

Uploaded by

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

Sanjtan

The document outlines an assignment for a digital thermometer project using the 8051 microcontroller, detailing the components involved such as the LM35 sensor and ADC0804 converter. It includes code snippets for the implementation and describes the working mechanism of the system, which displays real-time temperature readings on an LCD. The conclusion emphasizes the project's effectiveness in demonstrating embedded systems principles and its application in temperature monitoring.

Uploaded by

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

S.D.M.

College of Engineering and Technology, Dharwad


Department of Electronics &Communication Engineering
IV semester Microcontroller Assignment1 - 2025
Faculty In-charge: Dr. S. V. Viraktamath

Title: Digital Thermometer using 8051


Photo Student Name: Sanjeev N Pattanshetty
Cell No:7975695085 USN:2SD23EC095
Email Id: sanjeevpattanshetty75@gmail.com
Permanent Address: Near, ram raheem colony, charantimath
garden dharwad 580001

Student Sign

Photo Student Name: Tanish Bekal


Cell No:88616 22510 USN:2SD24EC410
Email Id: bekaltanish697@gmail.com
Permanent Address: #102,Ragavendra Nilaya shirur park 1st stage
vidyanagar Hubli-580021

Student Sign

Proteus Simulation circuit


Digital Thermometer Using 8051 Microcontroller
Code for the Following circuit
#include<reg51.h> void cmdwrt (unsigned char x)
{
sbit rs=P2^7; P0=x;
sbit rw=P2^6; rs=0;
sbit en=P2^5; rw=0;
en=1;
sbit rd_adc=P3^0; delay(1);
sbit wr_adc=P3^1; en=0;
sbit intr_adc=P3^2; }
void datawrt (unsigned char y)
void delay(unsigned int); {
void cmdwrt(unsigned char); P0=y;
void datawrt(unsigned char); rs=1;
void convert_display(unsigned char); rw=0;
en=1;
void main(void) delay(1);
{ en=0;
unsigned char i; }
unsigned char void convert_display(unsigned char value)
cmd[]={0x38,0x01,0x06,0x0c,0x82}; {
unsigned char data1[]="Temperature:"; unsigned char x1,x2,x3;
unsigned char value;
cmdwrt(0xc6);
P1=0xFF;
P0=0x00; x1=(value/10);
x1=x1+(0x30);
for(i=0;i<5;i++) x2=value%10;
{ x2=x2+(0x30);
cmdwrt(cmd[i]); x3=0xDF;
delay(1);
} datawrt(x1);
datawrt(x2);
for(i=0;i<12;i++) datawrt(x3);
{ datawrt('C');
datawrt(data1[i]); }
delay(1);
} void delay(unsigned int z)
{
intr_adc=1; unsigned int p,q;
rd_adc=1; for(p=0;p<z;p++)
wr_adc=1; {
for(q=0;q<1375;q++);
while(1) }
{ }
wr_adc=0;
delay(1);
wr_adc=1;
while(intr_adc==1);
rd_adc=0;
value=P1;
convert_display(value);
delay(1000);
rd_adc=1;
Working
The presented circuit is a digital thermometer designed to measure and display ambient temperature using an
LM35 temperature sensor, an ADC0804 analog-to-digital converter, and an AT89C51 microcontroller. The
LM35 sensor provides an analog voltage output that is linearly proportional to the temperature in degrees
Celsius (10 mV/°C). This analog signal is fed into the ADC0804, which converts it into an 8-bit digital
value suitable for processing. The AT89C51 microcontroller reads this digital data through its input port,
performs the necessary calculations to interpret the temperature, and outputs the result to a 16x2
alphanumeric LCD. The LCD continuously displays the current temperature in real-time. Control signals for
both the LCD and ADC are managed by the microcontroller through dedicated I/O pins, ensuring
synchronized operation and accurate temperature readings. This system provides a reliable and efficient
solution for digital temperature monitoring applications.

Conclusion
The designed digital thermometer circuit effectively demonstrates the integration of a temperature sensor,
analog-to-digital converter, and microcontroller to measure and display temperature in real time. By
utilizing the LM35 sensor for accurate analog temperature sensing, the ADC0804 for precise digital
conversion, and the AT89C51 microcontroller for data processing and display control, the system provides a
reliable, low-cost solution for temperature monitoring. This project showcases fundamental principles of
embedded systems and serves as a practical application in environmental sensing and control systems.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy