potentiometer (ADC in) - bright led (PWM out) (by Alex)
hello, i know this is been answered before, but iīve been having problems doing a simple control brightness led with a 1K potentiometer, could some one give an example for PIC , since arduino canīt use ADC inputs as digital when using at least one as an ADC read
(no subject) (by Alex)
here is the schematic i did on my pic plataform, i still reading about pwm but it is a little hard for me to understand, i would like the applicaction ladder i described at the top of this post to understand much better and use it in my future applications, thanks
(no subject) (by MGP)
Here your program, made with V4402
Some remarks:
The 2 capacitors on the crystal must be 22pF
You must connect a >10K resistor from the MCRL pin to the Vcc.
Switch the outer connections of the potentiometer if the led works in revers.
I simulated it, if you have problems I make it on a breadbord.