Electronic – How do alternating Christmas tree lights work

led

I saw these alternating Christmas lights:

Christmas lights with all lights on

Christmas lights with odd-numbered lights onChristmas lights with even-numbered lights on

The top image has all lights on, the bottom left image has odd-numbered lights on, and the bottom right image has even-numbered lights on.

The LEDS are joined by two enameled wires, and three AA batteries power the lot.

How does the controller turn the odd-numbered lights on and off?

Best Answer

These kinds of lights have LEDs connected in an alternating polarity fashion. Take look at the following circuit.

schematic

simulate this circuit – Schematic created using CircuitLab

Lights with this kind of configuration are cheaper to make and adequately serve their purpose.

The controller is able to power the LEDs in the following two ways to create the effect:

  1. P1 (HIGH), P2 (LOW)... all even LEDs are on.
  2. P1 (LOW), P2 (HIGH)... all odd LEDs are on.
  3. AC ... all LEDs on (actually just alternating too fast to see)