Go Down

Topic: {annoying} Christmas lights (Read 1 time) previous topic - next topic

Onions

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:
http://www.youtube.com/watch?v=Nhgmxig2UNY
or a picture here:
http://i.imgur.com/HpDob.jpg


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
My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) :D

Onions

The picture is bad quality as it is from a bad camera.
The LED lights were from a garden center last year.
They are driven from a transistor attatched to pin 2 and 3v3.

Hopefully this covered everything I forgot to add in the last post.
My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) :D

Go Up