pcbway




Interfacing of LM35 with PIC Microcontroller, lm35 with pic, lm35 temperature snesor with pic, lm35 with pic microcontroller, pic microcontroller with lm35Hello friends, I hope you all are fine and having fun with your lives. In today’s post, I am going to share How to interface LM35 with PIC Microcontroller. I have already shared Interfacing of LM35 with Arduino so now we are gonna interface this same temperature sensor with PIC Microcontroller. Interfacing LM35 with PIC isn’t much difficult as its a simple sensor which gives us analog output and we just need to read this output and convert it into temperature format. Before going into details, you should first read the Interfacing of LM35 with Arduino as I have given the basic details of this LM35 sensor in that post.

So, today I am not gonna go into the details of this temperature sensor. Instead let’s start with Interfacing of LM35 with PIC Microcontroller. I have used Proteus software for simulation purposes but you can also test it on hardware. It will work fine on hardware as I have already tested it. I have used PIC 16F876A Microcontroler for this simulation and the PIC Compiler used for writing the programming code is MikroC Pro for PIC. If you have any problem then as k in comments and I will try to resolve them as soon as possible.

I have already posted the tutorial on Arduino and today we are having a look at interfacing of LM35 with PIC Microcontroller and soon I will also post the tutorial on Interfacing of LM35 with 8051 Microcontroller. ITs a simple sensor which you can interface with any kind of Microcontroller like PIC, Atmel, Arduino or 8051 Microcontroller. Anyways let’s get started with interfacing of LM35 with PIC Microcontroller.

Interfacing of LM35 with PIC Microcontroller

  • First of all, design a simple circuit as shown in the below figure:

Interfacing of LM35 with PIC Microcontroller, lm35 with pic, lm35 temperature snesor with pic, lm35 with pic microcontroller, pic microcontroller with lm35

  • As you can see in the above figure, we have used LM35 sensor in Proteus which is connected with PIC Microcontroller.
  • Moreover, we have also connected LCD with PIC Microcontroller.
  • PIC Microcontroller we have used is PIC16F876A, but you can use any other PIC Microcontroller here.
  • LCD is used to display the Termperature Sensor LM35 value.
  • Now copy the below code and place it in your MikroC Pro For PIC Compiler and get the hex file.

  • When you get the hex file upload it in your Proteus software and run your Proteus simulation.
  • If everything goes fine then you will get something as shown in below figure:

Interfacing of LM35 with PIC Microcontroller, lm35 with pic, lm35 temperature snesor with pic, lm35 with pic microcontroller, pic microcontroller with lm35

  • As you can see in the above figure, LCD is displaying the same temperature values as in LM35 temperature sensor.
  • Now you can change this temperature value and the updated value will be displayed in LCD as you can see in below figure:

Interfacing of LM35 with PIC Microcontroller, lm35 with pic, lm35 temperature snesor with pic, lm35 with pic microcontroller, pic microcontroller with lm35

  • Now you can see in above figure that the temperature sensor LM35 value is 100 and same is displayed on LCD.
  • You can download the complete simulation along with programming code by clicking on the below button:

Download LM35 Code and Simulation

That’s all for today. That’s how you can interface LM35 with PIC Microcontroller and can get the temperature of your room. Will meet you guys in the next tutorial, till then take care and have fun!!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment