Difference between revisions of "PIC Analog-Digital-Converter Example"
From Mech
Jump to navigationJump to searchLine 1: | Line 1: | ||
__TOC__ |
__TOC__ |
||
==Introduction== |
|||
This is a simple project that uses a PIC18F4431's ADC to sample an analog signal, which is used to control the brightness of an LED. A potentiometer is used to create an analog voltage signal, and the PIC reads the analog signal and outputs a PWM duty cycle corresponding to the voltage level. The PWM signal drives the LED, which will appear brighter or dimmer depending on the duty cycle. |
|||
==Project Files== |
|||
Download the MPLAB project here: [[media:PIC_tutorial_ADC.zip|PIC ADC Tutorial Files]]. |
Revision as of 22:37, 8 September 2007
Introduction
This is a simple project that uses a PIC18F4431's ADC to sample an analog signal, which is used to control the brightness of an LED. A potentiometer is used to create an analog voltage signal, and the PIC reads the analog signal and outputs a PWM duty cycle corresponding to the voltage level. The PWM signal drives the LED, which will appear brighter or dimmer depending on the duty cycle.
Project Files
Download the MPLAB project here: PIC ADC Tutorial Files.