Hi all!
Earlier on today I chucked together an annoying christmas lights flasher.
I posted the details in a thread started a while ago and then realised it was
in frequently asked questions. So here it is, in a more appropriate place.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1290802813/
was the origional, but to save you the effort of going to it, I will post it
here:
What it is, is a set of bright LED lights connected to the arduino to flash
at random intervals. The code is simple and can be seen below:
int delayVal;
const int ledpin = 2;
void setup(){
pinMode(ledpin, OUTPUT);
}
void loop(){
randomSeed(analogRead(A0));
delayVal = random(15, 500);
digitalWrite(ledpin, HIGH);
delay(delayVal);
delayVal = random(15, 500);
digitalWrite(ledpin, LOW);
delay(delayVal);
}
a video can be seen here:
or a picture here:
It is simple, but useless. Hopefully by posting it here someone can make
some use of it, or modify it to improve an existing project.
Thanks,
Onions