Ho Ho Ho… Why can’t my sodding LED Christmas lights just glow?

Is it really this difficult to get modern LED Christmas lights to default to “on” ?

Wrapped your house in LED Christmas lights, put it all on timer (or some other automated control mechanism), only to discover that the default setting for your LED Christmas lights is an annoying comically blinky pattern, certain to invoke questions about your standing in society?

That happens to be just the position I recently found myself in and apparently this is a common annoyance of 2-wire LED Christmas lights, presently the most common type. In this YouTube video Big Clive reveals that some power supplies have an unpopulated option for a memory chip, which preserves the selected pattern after power-off.

Unfortunately you probably didn’t get the option to have that installed in your lights, and also like me have discovered that even if such an option exists inside the power supply, opening it non destructively is near impossible. Some of these units have an 8 hours on, 16 hours off timer which sort of half solves this problem, but not in my, and many others opinion.

A typical 2-wire LED Christmas light supply. This particular unit is 36 volt, a little higher than average.

Rather than messing around modifying an existing LED Christmas light power supply, I was keen to see how an entirely new LED Christmas light supply could be built, in particular one which defaults to “all lights on, no blinking or patterns of any sort”.

The challenge

I went ahead and attached the output of my supplied unit to a scope to see what is outputted in the “steady on” setting, the one you most likely are to want, the one which you have to push the button 7 sodding times to get.

There appears to be a little bit of ‘off’ time at the crossover. We can do better.

From the above we can see that it outputs a 72 volt peak-to-peak (36 VAC) square wave alternating current voltage, at around 500 hertz. In theory this is simple to generate, just find a 36 volt DC source and swap the polarity 500 times a second, but in practice it is annoyingly difficult. The voltage will vary depending on the manufacturer, but will always be printed on the side of the unit.

Finding a source of 36 volts (or whatever may be required)

Inkjet printers are typically supplied with power bricks with voltages around this range. A quick search on eBay reveals a number of units with voltage outputs ranging from 28 to 36 volts. You may be lucky and find one that outputs the correct voltage for your lights. If not, purchase one with a higher output, and trim the voltage as needed by adding a string of, for example 1N4001 rectifier diodes.

An HP DeskJet Power supply I happened to have to hand. It only outputs 30 volts, so the lights ended up a little dimmer but still good enough for now. In the end I connected another 6V supply in series with it to get what I wanted.

Converting DC to AC

A cheap board purchased off eBay which has an L298 fitted. Given the price of this board, it is unlikely to be a genuine part.

The most straight forward way to do this is with an H Bridge. In this example I’ll be using the L298, a primitive, inefficient device, from the ark. As much as I’m not a fan of the L298, it does do the job with as fewer components as possible, and can handle the higher voltage requirement and is available cheaply fitted to a ready-to-use PCBs.

The next thing we need is two alternating 500hz square signals, 180° out of phase with respect to each other. The most straight forward way I could think to do this is with a 555 timer and a 74HC74 D type flip flop. This results in two perfect square wave signals with exactly 50% duty cycle (preferable to getting into long, detailed, opinionated discussions about how to do this without a flip-flop). Yes, it could be done with an 8 pin microcontroller but then the software has to be built, chip programmed etc. What a hassle.

The output of the 555 (Yellow) and the Q and /Q outputs of the flip-flop (Blue, Pink) ready to drive the L298.
And finally, the output of the L298. An near perfect square wave AC source, better than the original, at around 500Hz. My test input voltage is only 12V resulting in a lower output voltage. In the final solution the L298 board is connected to the aforementioned printer power brick.

Something a bit more proper

At the time I built all of this, Christmas was fast approaching and I really just needed to throw something together quick.

I’ve started working on a PCB which combines all of this together in a more elegant design, with a convenient 12V DC input.

It won’t be ready for Christmas, but even if it was, genuine L298’s (used on this board) are presently back-ordered until late 2022 because of the chip shortage. Suspect, potentially counterfeit equivalents were available on eBay when I checked.

Schematic

This schematic is exactly the same as what I built on prototype board, only difference being that I’ve used an external power supply at present rather than the on-board booster this board will include.

Posted in Circuit snippets

Leave a Reply

Your email address will not be published. Required fields are marked *