LED Flickering Torch

 by neilh
Featured
CIMG0011.jpg

Starting in 2009 for Halloween, we needed a realistic looking flickering light effect that would mimic an actual fire torch, but not use real flame. 

I'd also been wanting to experiment with using AVR Microcontrollers for some time, and this seemed like a good opportunity to get started.

The controller design is such that it can be used for many other things in the future, so it is massive overkill, but I will present that here as well.
 
Remove these adsRemove these ads by Signing Up

Step 1: The Controller Design Schematic


The controller is based on an ATMega324P in a 44 pin TQFP package.  The schematic was drawn in gEDA's gschem tool.  Looking at the schematic which is attached in both PNG and in gEDA/gschem format. 

An RGB common anode LED is connected at CONN2, this is a 3W model from Everlight that I found surplus.  Each segment of this LED can handle 3W so it was necessary to drive the cathodes with power transistors Q4,A5, and Q6.  This particular AVR was chosen since it brings out 3 PWM channels of the internal timers to pins.  This allows independent brightness control of the R,G, and B color channels.

Both an ISP header (J9) and JTAG (J12) are brought out for programming and debugging.  Only the ISP header is required, but I wanted to experiment with JTAG as well.

The CPU (U1) is clocked by a 20MHz crystal, X1. 

The board is powered by 5V, with the option of a 12V pass-through at a later time.

Other functions that are not needed for this purpose include U2 a ULN2803A high power buffer for driving other loads from Port A of the CPU, as well as 3 channels that can drive relays at 12 V on J2, J3, and J4.  The other timer outputs that are not used are pinned out on J8 and J11 to eventually control servo-motors.    General Purpose IO (GPIO) is provided on J5, J7 and J10.



tinker234 says: Mar 9, 2012. 10:30 PM
amazing job i love the idea i read flickering leds orange and yellow and a fog can create a realistic flame
neilh (author) in reply to tinker234Oct 30, 2012. 12:27 PM
Tinker234,

Why, yes, you are most correct in what you read. Check this video out at just under the 4:00 mark.

http://www.youtube.com/watch?v=KyE6zW2D76Q

It's exactly the same circuit mounted in a fire breathing (well fog breathing) dragon made of paper mache.

--neil.
tinker234 in reply to neilhNov 19, 2012. 6:32 PM
thanks
burnerjack01 says: Apr 1, 2012. 7:15 AM
Sounds like EXACTLY what I have been thinking about. I wish you would post a short video as I don't think a still picture does it justice.
neilh (author) in reply to burnerjack01Apr 1, 2012. 10:30 AM
Thanks! There are videos of the torch as part of our halloween display for a haunted castle on youtube:

http://www.youtube.com/watch?v=KyE6zW2D76Q
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!