Projects   /   Communication & Interfacing   /   PIC16F877A

Lm35 interfacing with pic 16f877 through adc0808

Here I discus on very good project on digital thermometer. I made this project by Lm35 interfacing with pic 16f877 through adc0808.

Published

At a glance

CategoryCommunication & Interfacing
PIC modelPIC16F877A
IncludesCircuit diagram
Reading time~3 min

Summary of Lm35 interfacing with pic 16f877 through adc0808

This article describes a digital thermometer project using an LM35 temperature sensor, an external ADC0808 for analog-to-digital conversion, and a PIC16F877 microcontroller to process data and display results on an LCD. The author chose the external ADC to simplify calculations compared to using the microcontroller's built-in ADC.

Parts used in the Digital Thermometer Project:

  • LM35 Temperature Sensor
  • ADC0808 Analog-to-Digital Converter IC
  • PIC16F877 Microcontroller
  • Liquid Crystal Display (LCD)
  • Power Supply (5V VCC for LM35)

Here I discus on very good project on digital thermometer. I made this project by Lm35 interfacing with pic 16f877 through adc0808. Pic16f877 microcontroller has inbuilt ADC (Analog to Digital Converter  but I use external ADC IC (adc0808) because of simplicity of project if I use inbuilt adc then I have to take consideration on lots of mathematical calculation to get desire output.

Lm35 interfacing with pic 16f877 through adc0808

To build my project I use LM35 (Temperature sensor) to sense temperature ,  IC ADC0808 for converting analog value to digital and microcontroller PIC16f877 for process and display the temperature in LCD. In bellow see the block diagram of my project.

LM35 : LM35 IC is a temperature Sensor. It sense the temperature and covert it equivalent voltage label. I supply 5 volt VCC on LM35 and it convert o.o1v per 1° of voltage change. Let take an example if I have to measure 35° C temperature then it will give output 0.35v.

ADC (adc0808) : The output of ADC then directly feed to channel 0 of IC ADC0808. And this IC convert the input voltage in 8-bit binary number. For voltage 0.01v the output will be generated 00000001 in 8-bit position. So if your LM35 sense 2°C temperature then you will get 00000010 in output of adc. Keep in mind I set 2.56v +Vref in adc0808 to get output for change of every 1°C.

Lm35 interfacing with pic 16f877 through adc0808 schematic

Pic16f877: I use this Pic16f877 for just taking the output of adc to and process it and send the display to LCD. For that I have to define PORTB as a input port to take the data form ADC. And I initialized LCD at port PORTD to display our result.

 

For more detail: Lm35 interfacing with pic 16f877 through adc0808

  • Why was the external ADC0808 used instead of the PIC16F877s inbuilt ADC?
    The external ADC was chosen for simplicity because using the inbuilt ADC would require handling lots of mathematical calculations to get the desired output.
  • How does the LM35 sensor convert temperature into voltage?
    The LM35 converts temperature by producing 0.01v per degree Celsius change when supplied with 5 volts.
  • What reference voltage was set for the ADC0808 in this project?
    A reference voltage of 2.56v was set on the ADC0808 to ensure accurate output for every 1°C change.
  • How does the ADC0808 output data for a specific temperature?
    The IC converts the input voltage into an 8-bit binary number, such as 00000010 for a 2°C reading.
  • Which ports are configured on the PIC16F877 for this project?
    PORTB is defined as an input port to receive data from the ADC, while PORTD is initialized to drive the LCD display.
  • Where is the output from the LM35 connected in the circuit?
    The output from the LM35 is directly fed to channel 0 of the ADC0808 IC.
Beginner Tutorials · PIC16F877A

PIC16F877 Driving LCD in 4-Bit Mode using PIC16F877 with Proteus Simulation

Introduction This microcontroller project shows how a PIC16F877 can drive an LCD display using 4-bit mode inside a Proteus simulation.The project demonstrates...

Programmers & ICSP · PIC16F877A

EPE PIC/LCD Demo using PIC16F877 with Proteus Simulation

IntroductionThe EPE PIC/LCD Demo is a classic microcontroller project that demonstrates how a PIC16F877 can fully control a PG12864F graphical LCD.Designed as...

Motors & Robotics · PIC16F877A

Efficient Sun-Following Robot: A Solar Tracker with Microcontroller Control

Abstract The impending global challenge of dwindling non-renewable fuel resources underscores the urgency of transitioning towards renewable energy alternatives like solar power....

Communication & Interfacing · PIC18F4520

CAN FD Node based on a PIC18 Microcontroller

The introduction sets the stage for an embedded systems project that involves developing a Embedded C CAN FD project using the MCP2517FD...

Communication & Interfacing

LAN9662 Gigabit Switch: Optimized for Industrial Ethernet

Introduction It should come as little surprise therefore that one element of what is now more commonly referred to in some circles...

Communication & Interfacing

PIC Microcontroller: Fundamentals & Applications for Students

Introduction Microcontrollers are the key components in the embedded systems market. A variety of embedded systems was formed and developed after the...

Ibrar Ayyub

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough...