Flicker up to 6 LEDs with Arduino

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/

LEDs with Arduino

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:
-Breadboad
-Jumper wires

Optional:
-DC power source

Downloads:
-Arduino IDE
Get it here!

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

Step 2: Wire it up!

LEDs with Arduino circuit

Connect the resistor to the PWM pins (e.g. 6, 9…) on the Arduino board.
Now connect the second “leg” of the resistor to the anode of the LED (long “leg”)
Then connect the cathode (short “leg”) of the LED to ground (GND) on the Arduino board.

Repeat this step for each LED you want to use.

When the wiring is done, continue to the next step!

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]-Arduino
-USB cable
-LEDs
-Resistors
[/box]

 

For more detail: Flicker up to 6 LEDs with Arduino


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top