Introduction: Haunted House Spooky Light
creepy, spooky, flickering light
Step 1: The Story
in horror movies, you know things are about to get really scary when all of a sudden the lights start to flicker. i had seen a few instructables about spooky lights, but none of them really caught my interest. so, i wrote my own code that i feel is, not necessarily better, but just more my style.
Step 2: What You Need
1, Arduino Pro Mini
1, 6v wall wart
2, 1w leds
a few, jump wires
ALSO
soldering iron
solder
flux pen (if you chose)
shrink wrap
and something to house everything (i used a very unconventional method so its your choice)
Step 3: Upload the Code
// this sketch has a 12 second pause before the flicker that will run in a loop without the 12 second pause coming back around in the loop.
// this sketch will work with any arduino, however it is best with the pro mini.
// connect the led positive to pin 9 and the ground to any ground.
int ledPin = 9;
void setup() { pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH); // long on pause for led on delay(12000);
}
void loop() {
digitalWrite(ledPin, LOW);
delay(220);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(35);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(10);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(220);
digitalWrite(ledPin, HIGH); // led on
delay(40);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(10);
digitalWrite(ledPin, HIGH); // led on
delay(50);
digitalWrite(ledPin, LOW);
delay(35);
digitalWrite(ledPin, HIGH); // led on
delay(50);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(445);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on................
delay(510);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW); //
delay(160);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(40);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(45);
digitalWrite(ledPin, HIGH); // led on
delay(550);
digitalWrite(ledPin, LOW);
delay(20);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(35);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(10);
digitalWrite(ledPin, HIGH); // led on
delay(30);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(20);
digitalWrite(ledPin, HIGH); // led on
delay(40);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(10);
digitalWrite(ledPin, HIGH); // led on
delay(50);
digitalWrite(ledPin, LOW);
delay(35);
digitalWrite(ledPin, HIGH); // led on
delay(50);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(20);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(15);
digitalWrite(ledPin, HIGH); // led on
delay(35);
digitalWrite(ledPin, LOW);
delay(30);
digitalWrite(ledPin, HIGH); // led on
delay(45);
digitalWrite(ledPin, LOW);
delay(60);
digitalWrite(ledPin, HIGH); // led on
delay(40);
digitalWrite(ledPin, LOW);
delay(50);
digitalWrite(ledPin, HIGH); // led on
delay(10);
digitalWrite(ledPin, LOW);
delay(45);
digitalWrite(ledPin, HIGH); // led on
delay(50);
digitalWrite(ledPin, LOW);
delay(60);
}
Step 4: Wiring
Be sure to upload the code first, just to be sure there aren't any issues.
The Leds positive will be placed on the 9 pin, then the negative to the positive of the second Led, and then the negative to ground on the Arduino.
Also connect the RAW, and VCC together with the 6v power input.
Step 5: Enjoy
at this point you have a bench model that works. the housing and application of this circuit is up to you.
if you have any additions or improvements that you see could be made, feel free to put them in the comments below.