Components Required
- · LM35 Temperature sensor
- · 4MHz Resonator
- · PIC16F876A microcontroller
- · 28-pin DIL socket, for the PIC microcontroller
- · LCD
- · 1KΩ Resistor
- · 4.7KΩ Resistor
- · 220Ω Resistor
- · 1N4148 diode
- · 100nF capacitor
- · Green LED, a power ON LED
- · 6-way male header row, a connector for programming the PIC.
- · 3AA Batteries
- · Battery Holder
- · Veroboard
- · Jumper wires
Tools Required
- · Soldering iron
- · Solder
- · Crimping tools
- · Wire cutter
- · Solder sucker
- · Voltmeter
Connect the circuit as shown in the figure below in
Proteus ISIS or any other suitable simulation software. The code should be
tested first in simulation before it is built physically on a veroboard.
The code written was in C and was compiled using CCS compilier on the MPLAB platform. The screen below shows an excerpt of the code.
When the compiled HEX file was loaded into the PIC, and the circuit simulated, the result is as shown below.
The circuit was built on a veroboard as shown below
When the PIC was programmed and power applied, the output is as shown below
The cost of this project is not more than £20! Why not try it today.