Realistic Flickering Flame Effect with Arduino and LED's

 by earthshine
Picture 1.jpg
Picture 2.jpg
Picture 3.jpg
In this project we will use 3 LED's and an Arduino to create a realistic fire effect that could be used in a diorama, model railway or a fake fireplace in your home or put one inside a frosted glass jar or tube and no-one would know it wasn't a real candle inside.

This is a really simple project suited to beginners.
 
Remove these adsRemove these ads by Signing Up

Step 1: Step 1 - Wire up the LED's

Project 2x.png
Wire up 3 LED's. Use 2 x Diffused Yellow and 1 x Diffused RED. You can increase the number of LED's if you wanted a larger or brighter display. Consider the use of transistors if your amperage will go over that which can be supplied by the Arduino.

Use resistors that suit your particular type of LED.
admin says: May 11, 2009. 1:50 PM
Hey, this is a great instructable and is very informative. Just one thing is missing... pictures! It really helps a lot when trying to follow directions so you should consider taking some photographs. Once you do that and leave me a message when you have so that we can publish your work. Thanks! Thanks for the cool instructable and we hope to publish this soon!
admin says: May 12, 2009. 11:35 AM
Hey, this is a great instructable and is very informative. Just one thing is missing... pictures! It really helps a lot when trying to follow directions so you should consider taking some photographs. Once you do that and leave me a message when you have so that we can publish your work. Thanks! Thanks for the cool instructable and we hope to publish this soon!
doktorvortexx says: Nov 14, 2012. 4:41 PM
Thanks for the great Instructable! Saved me a bunch of time writing the code myself!
SubEclipse says: Oct 24, 2012. 10:09 AM
Easy and looks great.
tinker234 says: Jun 6, 2012. 6:19 PM
i wonder i saw a video where some one used a smoke maching thourgh tube with holes in it with a simallar led array with yellow to create a realstic fire
HSTH says: Apr 23, 2012. 2:16 AM
Great project - it works great - anyone with an Arduino ought to give it a try.
ddagieu salcido says: Feb 22, 2012. 11:03 AM
what would it thake to make a torch instead of a candle flame... im thinking on use them as lightning for a corrior in my house, ill like to draw electricity direclty from the wall
0_Nvd_0 says: Jul 8, 2009. 9:28 PM
Very COOL Earthshine. You have invented a very nice thing.
earthshine (author) in reply to 0_Nvd_0Jul 10, 2009. 2:43 PM
Thanks
bigdeee says: Jun 26, 2009. 12:34 PM
That's a great little effect that goes a long way! I'm sure it's going to come in handy in my little video experiments. Thanks for posting it.
earthshine (author) in reply to bigdeeeJul 3, 2009. 2:10 PM
Glad you like it. It's very effective in real life.
ReCreate says: Jun 25, 2009. 3:21 PM
Instead of using all those resistors...Couldn't you just use one from ground to the led's negative terminal? and put all of the positives directly to the board?
earthshine (author) in reply to ReCreateJun 25, 2009. 4:10 PM
No because the LED's go ON/OFF so the current would then increase/decrease and could damage one or more of the LED's. If each one has it's own resistor then it will be individually protected.
ReCreate in reply to earthshineJun 25, 2009. 4:15 PM
what about for cases when only 1 LED is on at a time?
Rob K says: May 24, 2009. 10:08 PM
Random brightness neet little effect. Try that with a RGB LED.
Rob K in reply to Rob KJun 14, 2009. 8:09 PM
Actually using RGB LEDs is a nice effect.
earthshine (author) in reply to Rob KJun 14, 2009. 10:00 PM
The reason individual LED's are better, rather than an RGB LED, is that the seperate LED's cause the shadows to come from slightyl different points. This increases the realism as a flickering candle has a flame that dances about causing the shadows to shift slightly. If you use an RGB LED then all of the points of light come from the same location and the shadows remain stationary.
Rob K in reply to earthshineJun 14, 2009. 10:39 PM
I meant red green and blue LEDs not just a singe RGB one sorry. I just got my starter kit working again and this is one of the first sketches I tried.
earthshine (author) in reply to Rob KJun 16, 2009. 5:38 PM
Cool :)
koensadza says: May 13, 2009. 4:05 AM
Those Fritzing images are really nice!
koensadza in reply to koensadzaMay 13, 2009. 4:08 AM
I just noticed the two resistors on the right are not located right. As they are now, they are between + and ground.
earthshine (author) in reply to koensadzaMay 13, 2009. 7:34 AM
You were right! I've fixed it. Thanks.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!