Arduino Mad Scientist Laboratory EP #4 simulated candle light using a LED controlled by Arduino

In this episode of the arduino mad scientist laboratory we will try to take over the world by removing the 110 volt light fixture from a plastic Halloween jack-o’-lantern and replace it with a Arduino controlled LED simulated candle light DIY device.

 

 

Check us out on Facebook!

 

Parts List:

affiliate links

ARDUINO Board

Resistor

Pirana LED

Bread Board

Jumper Wires

 

 

ARDUINO CODE:

#define led 3
int lvl;
int del;

void setup() {
pinMode(led,OUTPUT);

}

void loop() {
lvl=random(50,255);
del=random(100,500);
analogWrite(led,lvl);
delay(del);
}