Exact match. Not showing close matches.
'[PIC]: LED brightness using ADC'
|Grr. Re-sent with the correct tag, sorry.
I've put another page on line with a description and example code for
controlling the brightness of LEDs using analog input to the ADC, rather
than controlling the current to the LEDs. I use the ADC value to set
up TMR0 to call an interrupt function that turns the LEDs on and off at a
variable duty cycle determined byu the position of a variable resistor
connected to the ADC input. I've used this with both directly-driven LEDs
and with a large array driven by 2n2222 type transistors, all with no
current limiting resistors for the LEDs. The page is at:
Hope someone finds this helpful.
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- New search...