Improving the Menorah kit

Scale

One of our favorite little kits is our Deluxe LED Menorah kit. Since we introduced it two years ago, one of the most common questions that we get asked is this: "Can you use candle-flicker LEDs in it?" And that turns out to be a very interesting question.


The simple-- but, alas, naive --answer is "yes." We have discussed candle-flicker LEDs in the past, and in most cases, yes you can directly substitute them for regular LEDs.

But if you do go ahead build up a menorah kit with the candle-flicker LEDs, what you will find is that the performance is simply terrible: Not only do these LEDs fail to perform properly-- (there is no "candle flickering"), but they actually exhibit behavior that we might categorize as "not even wrong"-- the LEDs are not particularly steady either, but are rather a bit weak and jittery.

The reason for this is that in the kit, the LEDs are not left continuously it, but are instead continually-- and far too quickly for the eye to see --pulsed on and off. This is done because the menorah kit uses pulse-width modulation (PWM) dimming to produce a range of different brightness levels. Not only does the menorah have two different selectable brightness levels, but it also has the ability to softly "fade in" and "fade out" the LEDs when they light up or switch between the brightness levels.

In most ways, this PWM dimming is a wonderful thing. It allow us to create these gentle fades and different brightness levels, and allows us to really fine-tune the performance for better power efficiency. While this works extremely well for regular LEDs, each of the so-called "candle-flicker LEDs" is not just an regular LED, but is actually a regular LED packaged with a tiny integrated circuit that executes the "random flicker" program. And, that chip can only execute its program properly if it's left on continuously. If instead, it is continually pulsed on, we might indeed expect to end up with the kind of jittery, inconsistent behavor that we do see in the kit.


How could we go about fixing this, if we wanted the LEDs in our menorah to flicker? It would be straightforward to remove the dimming features from the software, and actually use the self-flickering LEDs in a mode where we leave them on continuously. But in doing so, we would lose a couple of our favorite features: the gentle fade-ins that make the kit so elegant, and the ability to have multiple brightness settings.


So that's a tough choice: Do we forgo flickering, or live without our elegant gray scale fades?

But fortunately, there is a way out. The right solution is to remember that we do have a microcontroller-- an ATtiny2313 --running the show, and to start acting like it. If we go back to regular (non-flickering) LEDs, we should be able to write a "random walk" flickering algorithm and add that to our existing firmware. In doing so, we can keep our original fades and brightness modes. We also can keep the kit price the same (since we don't need the more expensive flickering LEDs), and as a huge added bonus, we can now turn on or turn off the flickering at will-- something that you can't do with LEDs that always flicker.

Today we're releasing the new version of the menorah kit software, and shipping it in the kits. And, we made a little video (embeded below) to show off the new flicker modes and what happens when you try and use flickering LEDs with PWM:


The new source code-- Menorah kit software version 1.3 --is available here, and it can be used to upgrade any older Deluxe LED Menorah kit as well. :)

14 comments

The following comments are owned by whomever posted them. This site is not responsible for what they say.
Authored by: Ugi on Thursday, December 01 2011 @ 04:27 AM PST Improving the Menorah kit
You can turn off the flickering on a flicker LED - you just can't turn it back on again after!

My six-yer-old connected a flicker LED briefly to a 9-volt PP3 battery. It (unsurprisingly) turned the flicker circuit into a black mess but rather more surprisingly the LED still worked, absent the flicker.

Overall, I think your way is better!
Authored by: Windell on Thursday, December 01 2011 @ 04:42 AM PST Improving the Menorah kit
Wow-- didn't know that was possible. 8P

---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/
Authored by: JamesS on Thursday, December 01 2011 @ 04:37 AM PST in circuit programmable?
does not look like an arduino bootloader in there, can I add header pins and re-program inline? I dont think I own the right programmer to do that yet, but I’m willing to upgrade ;)
Authored by: Windell on Thursday, December 01 2011 @ 04:58 AM PST in circuit programmable?
The '2313 does not actually support an Arduino-style bootloader. This board does have a 6-pin "ISP" header location for an AVR ISP programmer, the same type used (for example) to program the bootloader on an Arduino board. A good choice is Adafruit's USBtinyISP.

---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/
Authored by: JamesS on Thursday, December 01 2011 @ 05:33 AM PST in circuit programmable?
Is it really 5am where you are? Time for evil mad scientists to get some sleep. I do have an Olimex icd2-pocket that claims avrdude compatibility. I may play with this later on ;) Otherwise adafruit getting some more business later.
Authored by: Windell on Thursday, December 01 2011 @ 05:45 AM PST in circuit programmable?
You can also use an Arduino as an ISP programmer, with just a little bit of rewiring. (Or with our ISP shield, if you're allergic to running small wires.)

Some details here, but the process is actually general:

http://arduino.cc/en/Tutorial/ArduinoISP

http://wiki.evilmadscience.com/Using_The_ISP_Shield_2#...To_use_the_ISP_Shield_2.0_in_place_of_an_AVR_ISP

---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/
Authored by: Wikkit on Friday, December 02 2011 @ 08:53 PM PST Improving the Menorah kit
Hi Oskay,

Did you reverse engineer the flickering LED at all? A recording digital scope or other reading across a resistor to the flickering LED would give a nice plot of its current draw and flicker pattern. I'm a bit curious if a flicker LED is more efficient than another LED of the same peak brightness, or if they manage to waste the power in the flicker circuit.

Ben
Authored by: Windell on Saturday, December 03 2011 @ 01:03 AM PST Improving the Menorah kit
We haven't done a technical analysis or real data recording of it. I can tell you that it's simply on-off in its operation, and that it does take a tiny bit of voltage headroom. So does it use less power? I believe so, but it's also *not* 100% as bright, even in the on portion of its duty cycle. There's more information in our previous article as well, here.


---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/
Authored by: Ugi on Monday, December 05 2011 @ 11:35 AM PST Improving the Menorah kit
If it's any measure, the white candle-flicker LEDs lasted well over 3 weeks on a CR2032 Li battery, where a normal white/blue LED lasts somewhat over 2 on the same batch of batteries (the lamps from the Halloween pumpkins were kept long after the organic part had been disposed of). Not exactly a controlled test but I think it suggests that they draw a lower average current, even allowing for the losses in the flicker circuit.
Authored by: mightyohm on Saturday, December 03 2011 @ 10:18 AM PST Improving the Menorah kit
Brilliant - no pun intended. I will definitely take a look at your flicker algorithm, I am curious how you implemented it. The end result is beautiful.

Very nice work, Windell!

-Jeff

Authored by: Anonymous on Tuesday, December 06 2011 @ 07:33 AM PST Flashback
Just came across your site. Love it. The Menorah brought back a lot of memories of my time as a sonarman riding diesel submarines in the 60s. At slow moments on patrol, some us (ETs, Radioman, and us Sonarman would basically raid electronic spare parts and try to create different gizmos and gadgets. The Menorah reminds me of what we called an idiot box. It was simply a wooden index file (do they even make them anymore?) in which we put a 9volt lantern battery. Internal wiring consisted of various resistors and capacitors connected to a series of NE51 bulbs fastened to the top of the box. The bulbs, depending on the wiring pattern would flash either randomly or sequentially. I have not played with electronics, other than building my own computers, since the early 70s. You gentlemen/ladies have gone way beyond our simple puttering. I am glad to find this site.
Authored by: Anonymous on Tuesday, December 06 2011 @ 03:06 PM PST Improving the Menorah kit
I made my own enclosure and it's a bit tight. Anybody know what the current draw of this is using the white LED's in flickering mode? I'm trying to figure out how long it will last if I use 3 AAA's instead. I kind of messed up and didn't leave enough room for 3 AA's. I just need it to stay on for 8 days, obviously.

Thanks
Authored by: Windell on Tuesday, December 06 2011 @ 03:39 PM PST Improving the Menorah kit
You really only need it to stay on for an hour or two each day, right?

---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/
Authored by: Anonymous on Tuesday, December 06 2011 @ 04:09 PM PST Improving the Menorah kit
This is a gift for someone else, I'm not jewish. Does it not stay on all of the time?
Welcome to Evil Mad Scientist Laboratories. New projects are posted on most Wednesdays.


Bookmark EMSL

EMSL RSS

Evil Mad Linkblog

Twitter: @EMSL

Facebook page
del.icio.us
feedburner
Feed on Google Reader
YouTube Channel

Subscribe to get new articles by E-mail:

E-mail address:


Preview | Powered by FeedBlitz

My Account





Sign up as a New User
Lost your password?

Who's Online

Guest Users: 26

DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

Forumposts

Order: New Views Posts
Latest 10 Forum Posts
 
Re: StippleGen
 By:  Bob Hewson
 Tuesday, May 15 2012 @ 01:40 PM PDT
Re: Servo does not respond
 By:  Lenore
 Tuesday, May 15 2012 @ 12:31 PM PDT
Re: solar panel with led light..
 By:  Pedro Ribeiro
 Tuesday, May 15 2012 @ 02:22 AM PDT
Servo does not respond
 By:  Gordon Nezich
 Tuesday, May 15 2012 @ 12:37 AM PDT
Re: Skew
 By:  Windell
 Monday, May 14 2012 @ 10:47 PM PDT
Re: StippleGen
 By:  Windell
 Monday, May 14 2012 @ 09:26 PM PDT
Re: solar panel with led light..
 By:  Jeff in Texas
 Monday, May 14 2012 @ 08:55 PM PDT
StippleGen
 By:  Bob Hewson
 Monday, May 14 2012 @ 05:49 PM PDT
Skew
 By:  tastewar
 Monday, May 14 2012 @ 02:40 PM PDT
Re: solar panel with led light..
 By:  Pedro Ribeiro
 Monday, May 14 2012 @ 05:20 AM PDT