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.
Interfacing lm35 temperature sensor with pic microcontroller 16f877a pdf.
The output of the lm35 temperature sensor is connected to analog channel 0 ra0 of the pic12f1822 microcontroller.
Interfacing lm35 sensor with pic microcontroller c code.
For example in lm35 temperature sensor the output voltage is 10mv per degree centigrade.
In this tutorial we ll discuss how to interface the lm35 temperature sensor with a pic microcontroller.
A d result low register adresl a d control register 0 adcon0 a d control register 1 adcon1 learn more about adc in pic microcontroller here.
In this tutorial we will learn how to interface lm35 temperature sensor with pic18f4520 microcontroller and display its output on the lcd module.
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.
The code is self explained with comment lines and just involves the concept of interfacing a lcd with pic.
Lm35 mikroc pro for pic.
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.
This page shows how to connect the lm35 sensor with pic16f887 and build a simple diy thermometer.