How to make a LED simulate candle light

This tutorial will show you how to use a ARDUINO board with a LED to make simulated candle light…

click on video below for tutorial.

Check us out on Facebook!

parts list:

ARDUINO nano

LED

resistor

breadboard

jumper wires

battery or power suply

SCHEMATIC:

ARDUINO CODE:

#define led 11
int rn;

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

}

void loop() {
rn=random(50,255);
analogWrite(led,rn);
delay(200);

}