YAFLC (Yet Another Flickering LED Candle)

 by Gadre
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 1: The circuit diagram

flickering_candle_sch.JPG
flickering_candle_brd.JPG
led_board_layout.JPG
led_board_sch.JPG
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.
drgabler says: Feb 18, 2009. 6:18 PM
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.
drgabler in reply to drgablerFeb 18, 2009. 6:22 PM
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

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!