5 LED Chaser Help

nerdegutta

Joined Dec 15, 2009
2,684
Hello Again

I think I FINALLY understand what you are trying to say to me. I did the math and if I understand you, the ONLY value that changes with 6v and 12v is the LED protection resistors, the other resistors and capacitor around the 555 , their values are the same including the adjustable resistor.

So for 12v at the 555, R2-5.8k, R3-8.2k, R4 adjustable-5k, C2-100microF
At the 4017 LED protection Resistors- 440ohm each

For 6v at the 555 the same value Yes / NO ???
At the 4017 LED protection Resistors - 140ohm each

Is this Correct ?

And before I forget, Thank You ALL especially nerdegutta for your help.

George
I would say that it is correct.

You are welcome.

Please report back, with pictures. :)
 

sheldons

Joined Oct 26, 2011
613
also heres a way to reset your 4017 when you have reached your desired count by feeding the output from the next 4017 op to reset the counter....
 

Attachments

Thread Starter

george0039

Joined Oct 15, 2008
167
Hi sheldons

Thank You for your circuit BUT I what I am after is a continuous flashing LED chasing circuit that can have the flash rate adjusted by me. It is turned on by me and turned off when No longer needed.

George
 

sheldons

Joined Oct 26, 2011
613
all the 4017 does when its reset is start counting again from the first output,it wont actually freeze its count unless you take the inhibit pin high,the inhibit being pin 13,also chase speed is dependant on how fast or slow your clock osc is-in this case your 555 circuit
 

Thread Starter

george0039

Joined Oct 15, 2008
167
Hi sheldons

For me, all I want to do is turn the power on and the flasher starts then when I am done, I turn off the power and the flasher stops. I don`t care at what LED it stops as long as it continues from fist to last around and around when powered up and also in one direction only.

Thanks

George
 

jayanath

Joined Dec 11, 2010
17
I have following code. but all leds are fading and getting on together. no running action. how can i make chaser action with fading effect. i mean comet tail. pls help me?



#include <pic.h>
#define FADE_RATE 12
#define INITIAL_WIDTH 128
void fade()
{
unsigned char rate = FADE_RATE;
unsigned char pulse_width = INITIAL_WIDTH;
unsigned char count;
while(pulse_width){
PORTB= 0b11111111;
for(count=0; count<pulse_width; count++){
asm("NOP");
}
PORTB=0b00000000;
for(; count; count++){
asm("NOP");
}
if(!rate--){
pulse_width--;
rate = FADE_RATE;
}
}
}
int main(void) {
char b;
TRISB = 0b00000000;
while(1){
for(b=0x02; b; b<<=1){
PORTB = b;
fade(b>>1);
}
for(b=0x40; b; b>>=1){
PORTB = b;
fade(b<<1);
}
}
}
 
Top