Follow up on Candle Flicker LEDs

I previously reported on reverse engineering a candle flicker LED. My approach was to extract the “flicker” pattern from the input current variation and to deduce the algorithm from statistical analysis.

Reverse engineering the controller chip

Of course there is another, more involved, approach. And that is to reverse engineer the circuit directly from the die. Andrew Zonenberg from Siliconpr0n decapsulated and imaged the controller chip from one of my LEDs. You can find his report here.

He managed to obtain very high-resolution optical microscopy images of the top-level metal. It turns out that the controller chip is manufactured in a relatively coarse CMOS process with one metal layer and 1-2 ┬Ám resolution. This is 1980ies technology. But of course, that is all that is needed for a circuit as simple as a flicker-LED.

candle_bf_neo40x_small

An initial survey reveals that there are two RC-oscillators. The two large rectangles in the lower part are the capacitors. The driving circuit is between the caps and the resistors are the stretched structures below the caps. One of these is probably a general clock generator, while the second one could be a part of a hardware random number generator. It is also obvious that there is no counter or shift register longer than 5-bit. This does indeed seem to confirm that no LFSR is used for the random number generator. This was already suggested by the statistical analysis.

Reverse engineering the exact circuit is a more involved effort, which yet needs to be done. Are you up to the challenge?

Another Candle Flicker-LED

It turns out there is more than one flicker-LED-controller-chip. Natecaine commented on the original story on Hack-a-Day and followed up with a micrograph of the controller chip of one of his LEDs. This is a much simpler controller, as shown below. Nothing is known about the flicker-pattern so far. This controller only uses a single RC-oscillator (bottom) and several counter or shift-registers and is probably LFSR based.

7cafiA3

Home-brewing a Candle Flicker LED using the tiniest MCU

In other news, picatout took the code I reverse engineered from the original LED and used it to create his own Candle-flicker-LEDs by embedding a PIC10F200 into a normal LED [french]. That’s a pretty cool hack in my opinion. Of course it would also work with an ATtiny 4/5/9/10.

About these ads

3 thoughts on “Follow up on Candle Flicker LEDs

  1. There is one really clever solution used for implementing candle LEDs that are sometimes used, namely a music chip such as the one used in musical birthday cards etc. Instead of a piezo speaker, a LED is used and it does flicker quite convincingly modulated by the tune.

  2. I was going to say, almost all of the ones i’ve seen are ol music chips from greeting cards. just connect a photodiod to a microphone plug, and you can listen to ‘em

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s