CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How can I do an effect like this one?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
matheuslps



Joined: 29 Sep 2010
Posts: 73
Location: Brazil

View user's profile Send private message MSN Messenger

How can I do an effect like this one?
PostPosted: Sat Dec 11, 2010 6:10 pm     Reply with quote

Hello people.

Well, christmas is just around the corner and I am thinking to make some LEDs lghts....

So, I was searching over the youtube some inspiration and found one.

Look this small piece of a video:

http://www.youtube.com/watch?feature=player_detailpage&v=SKe67xZG8Sg#t=91s

Would anyone know how I can make the effect that he did? Like a PWM over the 8 outputs...

Maybe he has done 8 pwm in software?

Here is his website with the source code, but he did in assembly.

http://picprojects.org.uk/projects/ledchaserpwm/index.htm

Just need an idea.

thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 6:13 pm     Reply with quote

Here is a previous thread on the Knight rider effect
that may or may not be of help:
http://www.ccsinfo.com/forum/viewtopic.php?t=43139
Sergeant82d



Joined: 01 Nov 2009
Posts: 55
Location: Central Oklahoma

View user's profile Send private message

LED Candles
PostPosted: Sat Dec 11, 2010 7:23 pm     Reply with quote

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

View user's profile Send private message MSN Messenger

PostPosted: Sat Dec 11, 2010 9:18 pm     Reply with quote

PCM programmer wrote:
Here is a previous thread on the Knight rider effect
that may or may not be of help:
http://www.ccsinfo.com/forum/viewtopic.php?t=43139


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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group