Fakenflicker: LED Candle

8.7K219

Intro: Fakenflicker: LED Candle

Celebrate Christmas the old fashioned way the fakenflicker LED candle!

The fakenflicker is a tiny, battery powered candle simulator. 3 colored LED's authentically flicker and fade, just like a real candle, controlled by a PICaxe 08M.

This project was designed by propellanttech. You can get the kit or bare pcb from Gadget Gangster and download a PDF version of this howto.  If you get the kit, the PICaxe will come pre-programmed, but the board has a programming cable connector if you'd like to reprogram it.

Here's a little video of the candle in action:


Warm up your soldering iron and get started!

STEP 1: Parts List

Let's start by checking to make sure you have all the parts necessary;
  • Fakenflicker PCB
  • 3xAA Battery Box
  • PICaxe 08M and 8 Pin dip socket
  • 3x 120 ohm Resistors (Brown - Red - Brown)
  • 1x 10k ohm Resistor (Brown - Black - Orange)
  • 1x 22k ohm Resistor (Red - Red - Orange)
  • 2x .1 uF ceramic capacitors
  • 3x colored LCD's
  • Optional - 3.5mm headphone jack to program the PICaxe

STEP 2: Make: Resistors

First, add the 120 ohm resistors (Brown - Red - Brown) to the board at R1, R2, and R3.

These resistors limit the current that flows through the LED's and keeps them from burning out.  Using a lower resistor value will make the LED's brighter, but will shorten it's lifespan.

STEP 3: Make: More Resistors

Two more resistors;

A 10k ohm Resistor (Brown - Black - Orange) goes at R5

A 22k ohm Resistor (Red - Red - Orange) goes at R4

STEP 4: Make: Caps

Add the 2 ceramic caps at C1 and C2. These caps aren't polarized, so it doesn't matter which way they go in.

These caps are for power conditioning - the power that comes out of the battery pack is pretty stable, but these caps help 'smooth-out' current fluctuations as the microcontroller switches LED's on and off. 

STEP 5: Make: LED's

Now, let's add the LED's to the board. Note that the LED's will go on the opposite side of the board (The side where's the no silkscreen or printing).

The LED's are polarized - it's easy to figure it out: The shorter lead goes through the square shaped hole. Same for all of the LED's.


STEP 6: Make: LED's - Other Side

Here's what the other side of the board looks like.

STEP 7: Make: PICaxe

Pop the IC socket in the board at U1. Notice that the notch goes as indicated on the silkscreen. Once the socket has been soldered down, push the PICaxe in the socket.

STEP 8: Make: Battery Box

Almost done! Add the battery box as indicated in the photo. Note that the wires go though the holes in the box labeled 'BATT' and the red wire goes on the left (near the + sign) and the black wire goes through the right hole (near the - sign).

In the photo, I put the two wires though the hole at the corner of the board and tied them in a knot before soldering them in.  This is for stress relief - tugging on the wires that connect to the battery box won't put any stress on the solder connection.  This isn't necessary, however.  

To turn the fakenfliker on, add batteries and flip the switch on the battery box.

STEP 9: Programming (Optional): Adding the Jack

If you've ordered a kit, the PICaxe will come pre-programmed, so there's no need to add the programming jack (aka headphone jack) unless you want to re-program it.

If you add the jack, be sure to add it to the other side of the pcb (on the same side as the LED's), as shown in the photo.  You don't need to solder it down, the curved pins on the headphone jack should be fine. 

STEP 10: Programming (Optional): Guide

To program a PICaxe, you'll need;

1 - A programming cable. You can hack up a Serial cable fairly easily, or you can buy a USB cable from Sparkfun for $25 or so.

2 - The Programming Editor. Revolution Education (the makers of the PICaxe) offer a free editor, here.

3 - Knowledge. This is the easiest part - coding for the PICaxe is very simple, just like basic.  RevEd's manual (pdf) is pretty helpful.

The fakenflicker is connects:
Pin 3 (port 4)to the top left LED
Pin 5 (port 2)to the top right LED
Pin 6 (port 1)to the bottom middle LED

All LED's are connected so that 'sinking' them makes them illuminate.  For example, to turn on the bottom middle LED, you'll use the command "low 1". 


STEP 11: External Power (Optional)

Your Fakenflicker will run for many hours running with AA batteries, but you can also hook up an alternate power source if you'd prefer.

1 - 5V power source
If your source is 5V (like a regulated power supply), you can just connect it where the battery box is connected.

2 - 6V+ power source
To connect to a 6V+ power source, the board supports a voltage regulator.  Here's how you set it up;
  • Disconnect any battery, if it's connected
  • Add a regulator at U2.  Note, the regulator should be, Pin1:ground, Pin2:Vout, Pin3:Vin.  The tab is connected to Vout.  You should probably also use larger capacitors (10uF). 
  • Connect your power source to the board at the box labeled 'ext'. 
That's it!  Enjoy your fakenflicker!

9 Comments

I presume this group or company is no longer around? Their site link says the domain is for sale. Too bad, I would have liked to have ordered a couple of these projects.

Its MUCH easier with the 08M to use it's ability to play music.

Happy birthday is a good inbuilt tune - Just connect the yellow LED to the output your sending the tune to and lo, it flickers just like a candle.

I tried to download for BAS but realized that Pro Member only as must pay, I hacked got full download with BAS done, thanks, its great.
 I think maybe the video did not load with your Instructable.  I see the space for it, but no video.

This looks interesting.
Click on it to activate. It looks a bit "windy" to me, but the effect is good.

L
It was windy in my bathroom :)

It's a fairly good effect - not perfect, but pretty good.  One cool thing about the board, though, is that the headphone jack is right there if you want to reprogram or modify the software.  And the sourcecode and board design are on the project page. 
Really?  Can you try it again?  I also put it on youtube (here).  Not that's an exciting video (and my camera is pretty wimpy), but it gives you an idea of how the candle looks. 
The video link does not appear in my Apple's Safari browser.  But, when I realized lemonie was able to view the video, I tried Microsoft's Internet Explorer.  The link appears in IE and I have been able to view it.  Thanks.