View previous topic :: View next topic |
Author |
Message |
matheuslps
Joined: 29 Sep 2010 Posts: 73 Location: Brazil
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Sergeant82d
Joined: 01 Nov 2009 Posts: 55 Location: Central Oklahoma
|
LED Candles |
Posted: Sat Dec 11, 2010 7:23 pm |
|
|
Back in 2005, Nuts'n Volts magazine published an article on LED candles, where the author used the Basic Stamp. I converted it at the time to PICBASICPro, but do not have the code available now... you might be able to find the article on their website.
As I recall, it was something of a random number generator which produced the PWM in software. You could adjust the generator variable to modify the flickering effect. If you used, say, two orange, a red and a yellow LED together, you could get a pretty good effect. I liked it and was going to make up a batch, but life got in the way... (I was in Afghanistan with the US Army at the time...)
HTH. |
|
|
matheuslps
Joined: 29 Sep 2010 Posts: 73 Location: Brazil
|
|
Posted: Sat Dec 11, 2010 9:18 pm |
|
|
Well, yes it is helping! For now I am reading the topic you suggested and trying to understand the concept of the "Phase Shifted Counters".
Well, It is not too difficult to do... I just did 3 PWM channel...
But now I will do a couple of optimizations....
Look:
http://img690.imageshack.us/img690/7772/semttulojjz.png
Let´s study more now...
bye |
|
|
|