Interfacing Lm35 Temperature Sensor With Pic Microcontroller 16f877a Pdf

In this tutorial we will learn how to interface lm35 temperature sensor with pic18f4520 microcontroller and display its output on the lcd module.
Interfacing lm35 temperature sensor with pic microcontroller 16f877a pdf. For example in lm35 temperature sensor the output voltage is 10mv per degree centigrade. Using the adc to get the analog output voltage of the sensor then converting it back to celsius degrees and finally display the result on an lcd and also send it via serial port to a host pc to monitor the temperature remotely. The output of the lm35 temperature sensor is connected to analog channel 0 ra0 of the pic12f1822 microcontroller. That means if output is 300mv then the temperature is 30 degrees.
In this project the pic12f1822 microcontroller runs with its internal oscillator 8 mhz mclr pin is configured as an input pin. In this tutorial we ll discuss how to interface the lm35 temperature sensor with a pic microcontroller. The code is self explained with comment lines and just involves the concept of interfacing a lcd with pic. Interfacing the analog temperature sensor lm35 with pic microcontroller is very easy all what we need is an analog to digital converter adc module associated with the pic microcontroller.
Since the lm35 output varies with dependent to the temperature we need adc analog to digital converter module to measure this voltage. Interfacing lm35 sensor with pic microcontroller c code. Interfacing pic16f877a with lm35 temperature sensor ccs c the lm35 temperature sensor is three pin device vcc out and gnd with an output voltage linearly related to centigrade temperature. This page shows how to connect the lm35 sensor with pic16f887 and build a simple diy thermometer.