Hi there.
Christmas is coming closer, and I was wondering if I could put some candles in my room to get in the "christmas mood".
But after a friends house burned down of christmas tree candles, I don't want to burn real candles into my room.
So why don't let the Arduino light for you?!

This Instructable will show you, how to flicker up to 6 LEDs using an Arduino Microcontroller.
For more information about Arduino visit http://www.arduino.cc/

Step 1: What you need...

Here are the things you will need:

-Arduino Microcontroller (or similar)
-USB cable
-LEDs (up to 6 LEDs are possible)
-Resistors (equal to the number of used LEDs)

LED resistor calculator

if you don't want to solder the circuit:
-Jumper wires

-DC power source

-Arduino IDE
Get it here!

-TrueRandom Library
Get it here! (Instructions included)
Unzip it to your "Libraries" folder.

<p>The question is how to add a potentiometer to Arduino, making the 6 leds dimmable. That they flicker at high or low intensity, just like when you dim an old oil lantern and leave it all night flicker at very low intensity ?? it is easy to hook a 5K pot to arduino input, but can someone suggest how to modify the sketch please ?</p>
I like very much ! Thank you and Happy Holidays ! <br>Build_it_Bob
Great project, simple to implement and just perfect for the application I needed (inside a carved Halloween pumpkin display for my son). Thank you!!!
This was a great starter tutorial and introduction to Arduino. I'd like to slow down the randomness in the blinking, to make it look more like fire flies. Any suggestions on how to tweak the TrueRandom library to do this?
Hey phatguppy. <br> <br>After reading this instructable and looking at the code it looks as if the delay between flickers comes from the written code instead of the library. <br> <br>In the line 'delay(TrueRandom.random(40,70)); //Limits the speed.' <br> <br>I believe the '(40,70)' are ms. It's setting a range for time between flickers. Change them for a longer delay.
this i awesome keep it up
Hey,<br><br>thanks for the infromtation,but somehow i can't add the needed lines in the instructable.<br><br>For those wanting to use the code: put &quot; &quot;<br>after &quot;#include&quot;
Hi Gotcha,<br><br>Great little script. I am planning to use it to drive lights on a wreath. I noticed that you left out the library name in your include statement.<br><br>For those looking to duplicate this code, note that you need to download and install the TrueRandom library into your Arduino folders, then complete the include statement in the script as follows:<br><br>#include <br><br>the library can be found here:<br>http://code.google.com/p/tinkerit/wiki/TrueRandom<br>

About This Instructable


35 favorites


More by gotcha99: Flicker up to 6 LEDs with Arduino
Add instructable to: