Knowledge Base
...
Temperature
LM35 Project
LM35 Project Software
3min
The firmware required to interface with the sensor performs several tasks.
- Configures the microcontroller to read the analog value
- Converts the analog value to a digital number
- Formats that value for export
The device chosen is the PIC16F887, and while it is far more in terms of resources it will provide a good base to build on and with for later projects or adding on additional features.
What is needed from the microcontroller is:
- One of the Analog Inputs
- PORTB for the LCD Display
- Comport to share the data with the outside world
The full code sample is shown below and can be copied from the code block.
The code sample is also available from GitHub.
๏ปฟ
๏ปฟ
Updated 23 Feb 2024
Did this page help you?