Hi All
I have read a few articles about using a PIC to limit the current to an LED by measuring the voltage drop across an LED using the ADC input pin. The current to the LED is controlled using the pwm command.
The PWM output to the LED is adjusted to control the length of time the LED is on by measuring the voltage drop across the LED and comparing it to a set value. By using this method apparently the brightness can also be controlled?
I was wondering if any one has tried this and may have a link to the project or if someone has any ideas as to how I can get this to work.
Thankyou
JPU
I have read a few articles about using a PIC to limit the current to an LED by measuring the voltage drop across an LED using the ADC input pin. The current to the LED is controlled using the pwm command.
The PWM output to the LED is adjusted to control the length of time the LED is on by measuring the voltage drop across the LED and comparing it to a set value. By using this method apparently the brightness can also be controlled?
I was wondering if any one has tried this and may have a link to the project or if someone has any ideas as to how I can get this to work.
Thankyou
JPU