You might look at setting your pwm values with a lookup table if you want to have a smooth bloom and dim cycle. LED's aren't linear on their percieved light output. When I did them the table was more logrithmic. I ran into this when working on a magic trick a few years ago... -Dal ----- Original Message ----- From: "Magnus von Rosen" Subject: [EE] How to fade a LED? > Hi, > > 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. > > However, it seems like a _lot_ of experimentation is required, or a > little experince. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu