Can any one help me please
I am making some christmas lights out of led
and plan to have about 12-15 led per chanel and about 10 chanels .
I would like to know if its possible to say have a chasing effect for say 2 minutes , then a blinking effect for 2 minutes and so on . So the light have a bit of variation , if it is possible has any one got a sutable sketch or could any one help me write one.
i intend controling the built led pattern via a relay so im not limited on the power from the aduino
i have found some sketches that chase the led and flash the led but my problem is i woul like a total sequence so the light ar not just flashing the same all the time
I made 10 star shapes about 2ft tall with 17 phirana led in each last year and they look fantastick flashing and chasing allong the roof of the house so definatly not over kill
I have found two sketches one is flashing and one is chasing how can i modifiy them to say repeat 20 times then go on to the next sketch
In your loop, run the routine that does chasing for x number of times .. then run your other pattern x times and so on .. when the loop ends, it will start at the first routine.
void setup(){
}
int loopMax = 500;
//variable in case you want to adjust the times for each one using input mechanism
void runPattern1(){
delay(100);
}
void runPattern2(){
delay(100);
}
void runPattern3(){
delay(100);
}
void loop(){
for( int i = 0 ; i < loopMax ; i++ ){
runPattern1();
}
for( int i = 0 ; i < loopMax ; i++ ){
runPattern2();
}
for( int i = 0 ; i < loopMax ; i++ ){
runPattern3();
}
}