3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

YAFLC (Yet Another Flickering LED Candle)

YAFLC (Yet Another Flickering LED Candle)
«
  • cand1.JPG
  • cand2.JPG
There are numerous posts on Instructables about how to make a flickering LED candle. This is my version.

The project requires the following components:
1. Tiny45 AVR Microcontroller (Tiny13 would also do)
2. 1W Warm white (or yellow) LED
3. Perspex tube
4. AA or AAA size batteries- 4 (alkaline or NiMH)
5. PCB stock (or a general purpose veroboard)
6. Battery holders
7. 1/4W resistors 50 Ohm- 4 and 10K -1.
8. On/Off switch
9. Connecting wire
10. piece of wood for the base
11. masking tape

Tools:
1. Solder iron and solder
2. Hot glue gun
3. AVR ISP Programmer
4. screwdriver, files, drilling machine and suitable drilling bits.


 
Remove these adsRemove these ads by Signing Up
 

Step 1The circuit diagram

The circuit diagram
The required circuit diagram for the candle is here. Also seen is the board layout. In the board layout, the blue tracks are handled as jumper wires. The complete circuit is split in two boards, one containing the controller and the has the 1-W LED. The two boards are arranged in a double-decker, circular PCBs. The idea is to have a smaller total diameter for the circuit. four 2-pin connectors are used to connect the controller board to the LED board. The fifth connector on the controller board is for the power supply.
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Feb 18, 2009. 6:18 PMdrgabler says:
Trying to compile the code you listed but it does not compile. Error: candle.c:11: error: called object lfsr >> 1 is not a function. Any thoughts? Also your code comments dont jive with your pcb. PCB LED PCB has SL1 being the cathode while 2-4 are the anodes. CODE says 1-4 are cathode and anode is just direct hooked.
Feb 18, 2009. 6:22 PMdrgabler says:
seems that instructables buggered the code when you posted it. the shift 6 got translated to exp. Fixed and now it compiles.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
33
Followers
9
Author:Gadre