piclist 2002\09\13\124810a >
Thread: How to fade a LED?
www.piclist.com/techref/index.htm?key=how+fade+led
face picon face BY : Wouter van Ooijen email (remove spam text)



> I would like to make a LED fade up and down by using a PICF628.
> I imagine that it could be done by alternating periods of on/off.

Be glad you don't use a 16f84, because a 16f628 has a PWM output that is
meant exactly for this purpose. Just wire a LED to the PWM output pin,
suitable resistor sets the 'full on' current, and use the pwm setting to
reduce the average current.

An example (just replace the low-pass filter with a LED + resistor):
http://www.voti.nl/fader/

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspam@spam@mitvma.mit.edu


<000201c25b45$33d93860$0b00a8c0@PAARD> 7bit

In reply to: <000001c25b42$4cb22e30$0100a8c0@vonrosen>
See also: www.piclist.com/techref/index.htm?key=how+fade+led
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) How to fade a LED?

month overview.

new search...