Christmas LED Light Teardown


Right from childhood, I was often fascinated by those flashy LED lights which everyone used to put up on Christmas, Diwali or in festive celebrations in my town during Onam. I always used to wonder how these LED strings used to work. “How were they able to get it to sequentially blink”? I tried to search online, but couldn’t really find a schematic for it and whatever I could find, had a wrong schematic.

Last week, something reminded me of these lights and I had to figure it out once and for all as to how these worked and why they were this cheap(I could buy long LED strings with different programmed lighting pattern for less than a dollar).


I went down to the supermarket and got a string of 28 LEDs(Multicolor), they were on a discount sale for INR 50(0.7$).

It plugs into your normal 240V or 120V AC power plug in your home. It has 8 pre-programmed modes which can be cycled by a push button.

The build quality, as you would expect, is not that great, but for less than a dollar, that’s all you can hope for. It’s a dangerous circuit with no protection from the AC main lines. Be extremely careful trying to play around with these circuits while it’s turned ON.(I got a couple of mildly nasty shocks myself) This device, is as cheap as it can get. Just think about the manufacturing costs of these devices, if they are retailing for a dollar.

It says CE certified, but I really dont think so…

It has 28, 3mm diameter LEDs and contains red, blue, white, green LEDs stringed together in a sequence(More on that, a bit later on).

Right, let’s take it apart and get down to the electronics. It consists of a single side PCB with bare minimum components.

It contains a COB or Chip-on-Board(Probably a cheap micro/ or an ASIC).

Most of you would have seen this as a black blob(like the picture above) in cheap electronic devices like calculators and toys. That black stuff is epoxy resin. These are similar to your normal ICs devoid of the external package. It only consists of the raw semiconductor die. The semiconductor die is soldered by an automated machine to the PCB via extremely thin wires. This process is called Wire-Bonding. A blob of black epoxy is poured on top of this wirebond to protect it. If you want to learn more about this, checkout Sparkfun’s blog post on how chip-on-board devices are made from a factory in China. It’s a fascinating read.


I did some reverse engineering by tracing out the circuit and following was the schematic I was able to come up with.

As you can see, it uses a couple of 3-pin SCRs(Silicon Controlled Rectifiers). SCR part number is PCR406(Datasheet). SCRs are usually used as a switch in AC circuits. For those of you who don’t know what an SCR is or have forgotten about from your engineering device classes read on, I will very briefly explain its working. For more detailed explanation checkout this link.

SCR is an unidirectional, four layer p-n-p-n device
as shown below. It consists of an Anode, Cathode and a Gate.

The gate controls the follow of current between the Anode and Cathode. There are different ways of turning ON a gate, we are focused on particular mode, wherein there is a positive voltage being applied to the gate with respect to cathode. When that happens, that junction is forward biased and there is a current flow. This current is called as the Latching current(6mA for PCR406 from its datasheet). Once the gate is turned ON, if there is a positive voltage at the Anode side, a current can actually flow through the SCR. Now even if the Gate pulse is turned OFF, current continues to flow till the point when the current through the SCR drops below a value called as Holding current(5mA for PCR406 from its datasheet). If you are still confused as to how it works, check out this video.

Now, let’s go over the rest of the circuit. There are 28 LEDs split into 2 arms of 14 LEDs each(LAx and LBx). First 4-5 LEDs on each arm have its own current limiting resistor of value 5.1kΩ(Resistor is soldered on to the leg of the LED and heat-shrinked with a sleeve). Each arm is controlled by an SCR whose gates(G1 and G2) are driven by the Chip on Board. During the positive cycle of the AC waveform, a positive voltage pulse from the COB(once the latching current is reached) turns ON the SCR and a current flows in a particular arm. Now the current continues to flow in this arm till the input 230V AC waveform moves to the negative half and the SCR will be turned OFF. The timing triggers of the SCRs from the COB are during the positive half of the AC waveform as it conducts only in the positive half cycle.

Now, how does the LED strip give out all these crazy blinking patterns if they are connected only as 2 arms? There lies the beauty of this design, the LEDs are not wired one after the other in a single arm in appearance although the schematic-wise it’s like that. Meaning, the two arms are intertwined with each other visually.
Following the convention in the schematic above, LEDs are wired as follows,

LA1 –> LB1 –> LA2–> LB2–> …. LA14–> LB14

(Please note that the two arms are not connected in series, it’s just that the final arrangement is intertwined so that when one arm is active(when the gate is turned ON), it looks like just the alternate LEDs are lit up, although, say, LA1, LA2, LA3, … LA14 are all ON at the same time)

Now control the timing of turning ON section of these SCRs with a controller and you can get those fancy LED sequences along with Fade effect (depending on which point in the positive AC wave you trigger) on the SCR’s gate.

The push button is connected probably to one of the I/O ports of the COB and it tells the controller to cycle through the prerecorded LED sequences. The resistor, capacitor and the diode path(R1–>C1–>D1) helps provide a DC voltage across the power pins of the COB. I am still unclear about the function of the resistor R2(1MΩ) which is connected between the one of the AC terminals and the COB. Maybe it’s a pull down resistor? (If you know what it is for, do let me know in the comments below. POST EDIT: Check comments. Its used as a reference resistor).

Well, this design is scalable to any number of LEDs and any number of patterns. For really crazy patterns, all you need is more parallel LED arms and each of those arms being controlled by individual SCRs.

So that’s it. Hope you learned something new today. You have to hand it to the Chinese, to make something so cheap. You can complain all you want, but it does take some sort of skill and innovation to come up with something absolutely dirt cheap(Even though it’s by cutting corners)

Do let me know in comments or via email at if there are any issues with the schematic or the working principle. Feedback is welcome.

If you enjoyed this one, you might enjoy my following posts as well on
How to electronically track your Currency Notes
Hacking Indian Electronic Voting Machines
A Smart Chair: For those Lazy Workaholics
you can sign up for the spam free newsletter which will allow you to get update mails whenever I write a new tech article. ?

Till next time,
Happy Hacking…

Post Script

I didn’t have oscilloscope lying around while I was doing this teardown, it might have been great to see some working waveforms. Maybe I should simulate this circuit online in EasyEDA. If there is enough interest, I might go ahead and do it in my free time.

If you liked the post, Share it with your friends!
  1. Sushama left a comment on October 29, 2017 at 1:45 pm

    Informative and a nice piece.

  2. R2 is most likely for zero crossing detection.

    • One of my other friends did also agree to something similar that it might for getting an AC phase reference.
      Quoting him

      “It seems reasonable to me to get the AC wave for reference. And tap the wave at different levels (or dare I say phase) depending on the current mode of operation. I think this is necessary to have gate pulses to be generated in timely and synchronized manner.”

  3. […] was, or wasn’t, inside these blinky LED strings which made them so cheap. He’s done a Christmas LED Light Teardown and shows how blinky LED string lights can be built with the bare minimum of […]

  4. Kirby left a comment on November 22, 2017 at 9:30 am

    If you use an oscilloscope with this circuit, you better install an isolation transformer between your scope and the power output, otherwise when you probe the circuit you will damage your scope.

    Circuits like these scare me… no mains voltage electrical isolation … and no approval markings on the LED wires. The question is how lucky are you? If the wire has crappy insulation and/or is not rated for the voltage, one could get a very nasty shock.

    That being said it is amazing at how inexpensive a lot of Chinese items are… well, perhaps not that amazing, as no “real” approvals were done on this design (which is costly). And if one had to litigate the vendor, good luck finding them.

    • Thanks for that tip. I will keep that in mind.

      I did get a couple of shocks in the initial probing around though. But that was just me accidentally touching where I wasn’t supposed to. I fully agree with the point of these things being of poor quality build. I would assume the current carrying wires are barely sufficient to get the job done.

      These are usually a catastrophe waiting to happen, but these units are sold off in huge numbers during festive seasons here. People just buy for its cheap price.

  5. Geoff left a comment on November 22, 2017 at 12:36 pm

    An official CE mark is more widely spaced, so that the circles that the letters are formed from touch, but don’t overlap. See here:

    The “CE” on stuff like this stands for “China Export” or “Cheeky Engineer” or anything else you feel like making up.

  6. I don’t understand how the micro controller gets it’s power. Normally you need a VCC of 5v or 3.3v and GND. I assume the positive side of the cap is VCC, but where is GND?

  7. dg1sek left a comment on December 11, 2017 at 4:39 pm

    You should be aware that the CE marking is a “self declaration” of the vendor and doesnt give you any guarantee on any product.

Comments are closed.