This is a quick project I did so that I'd have a low power consumption lamp, but also so I'd have a bed reading lamp that wouldn't startle me when I turn it on or off. This design uses a PIC16F684 for the microcontroller and a TIP102 for the PWM out.
See some other junk at http://smackaay.com/
The brilliant thing about this video (I expect you've noticed this already) is that the refractions show the pulse width modulation perfectly! That's actually a great visual example of how PWM works.
WaterpigMaster 11 months ago