In this post we’re going to connect a 7-segment LED display to a PIC18F452 and set it up so that it will show numbers from 0 to 9 in regular intervals, like a stopwatch. This will be useful for calibration of an IR sensor and generally for displaying any number output when debugging.
In this post, we’ll design and build a circuit which will blink an LED controlled by a PIC18F452 microcontroller. We’ll use a power supply, 5V voltage regulator, some safety elements, signalization LED and the microcontroller with an LED we’re going to blink. After building the circuit, we’re going to program the PIC to blink the LED in regular intervals. I’ll be using the programming environment MPLABX and the PICkit3 programmer.