Introduction: PIC16F877A Analog to Digital Converter (ADC)

PIC MCUs and other MCUs have analog to digital converter modules inside them. We will use PIC16F877A for this time.

Here are the required parts:

1- PIC16F877A or any PIC MCU.

2- Any 16x2 LCD.

3- Breadboard.

4- Breadboard wires.

5- Soldering station -> just to prepare the LCD itself with pins.

6- MPLAB X IDE from Microchip.

7- PICKit 3 or PICkit 4. now you are ready to start.

Step 1: Video Tutorial

See all the steps in the video, then follow the rest of the steps.

Step 2: Code

Here is the code:

https://pastebin.com/PmVeHw4K

remember to see the video for complete description of the steps and the code... writing it here won't help.