TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

A Cheap Mains-Operated LED Light Circuit

Murugavel Ganesan
by
1
Share Facebook X LinkedIn WhatsApp Email
An idea for the festival season. This basic circuit can be easily modified for 120v operation and more LEDs can be added as well.



Please use extreme caution while handling this circuit since the mains is not isolated and so there is a risk of heavy electric shock.

What this circuit does

This is the simplest way to run a short string of LEDs straight from 220 V AC mains, without a transformer. A capacitor in series with the mains limits the current, a bridge rectifier turns the AC into DC, and a second capacitor smooths it so the LEDs do not flicker. It needs only a handful of low-cost parts.

The price of that simplicity is safety. Nothing in the circuit isolates the LEDs from the mains, so every part of it, including the LED legs, can be at a dangerous voltage. Build it only inside a closed insulating enclosure, never touch it while it is plugged in, and remember that the capacitors can stay charged for a while after it is unplugged.

How it works, block by block

  • Cx (472K/400 V): the dropper. A capacitor passes alternating current but offers an opposition to it called reactance. Placed in series with the mains, it behaves like a resistor that does not get hot, and it sets how much current the LEDs get.
  • R1 (470 kΩ, 1 W): the bleeder. It sits across Cx and drains its charge when the lamp is unplugged, so the plug pins do not give you a shock.
  • Bridge rectifier (four 1N4007 diodes, labeled 1N007 in the drawing). It turns both halves of the AC wave into current flowing one way through the LEDs.
  • R2 (470 Ω, 1 W): the surge limiter. If the lamp is switched on at the peak of the mains wave, the empty capacitors look like a short circuit for an instant. R2 limits that inrush current.
  • C1 (100 µF/25 V): the smoothing capacitor. It stores charge between the half-cycles so the LEDs see a steady current instead of 100 pulses a second.
  • The LED string. Four LEDs in series share the same current. More LEDs can be added in series, as the original note says, because the current is set mainly by Cx, not by the number of LEDs.

When to use it, and when not to

A capacitive dropper suits small, fixed, low-current loads inside a sealed product: indicator lamps, decorative strings, night lights. It is the wrong choice for anything a person can touch, anything that needs more than a few tens of milliamps, or anything that must be efficient at light load from a weak supply. For those, a small isolated switch-mode LED driver is the safer design.

Deep dive: the numbers and details

This part holds the equations, the worked values for the parts in the drawing and the changes for 120 V. Skip it if the overview is all you need.

Reading the capacitor code

"472K" is the standard three-digit code: 47 followed by two zeros, in picofarads, so 4,700 pF or 4.7 nF. The letter K is the tolerance, plus or minus 10 percent. The 400 V is the rated voltage.

The key equation

The reactance of a capacitor is XC = 1 / (2πfC). Because the LED string drops only a few volts against a mains peak of hundreds of volts, the current is very close to I = Vmains / XC = 2πfCVmains.

Worked example: the circuit as drawn

  • At 220 V, 50 Hz with Cx = 4.7 nF: XC = 1 / (2π x 50 x 4.7 nF), about 677 kΩ.
  • LED current: 220 V / 677 kΩ, about 0.33 mA RMS.

That is a very small current. Ordinary 5 mm indicator LEDs are usually run at 5 to 20 mA, so with 4.7 nF the string will glow only faintly. For brighter light the dropper capacitor has to be much larger, as the next table shows.

Choosing Cx for a target current

Rearranging the equation gives C = I / (2πfV).

MainsCxApproximate LED current
220 V, 50 Hz4.7 nF (as drawn)0.33 mA
220 V, 50 Hz0.22 µF15 mA
220 V, 50 Hz0.33 µF23 mA
120 V, 60 Hz4.7 nF0.21 mA
120 V, 60 Hz0.33 µF15 mA

This is the "modification for 120 V" the note at the top refers to: at 120 V the same current needs roughly 1.5 times the capacitance, because the voltage is lower even though the frequency is a little higher. The rest of the circuit can stay the same.

Checking the other parts

  • Bleeder R1. The discharge time constant is R1 x Cx. With 4.7 nF it is about 2.2 ms; with 0.22 µF it is about 0.1 s, so the plug is safe within about half a second. R1 dissipates about 2202 / 470 kΩ, roughly 0.1 W, well inside its 1 W rating.
  • Surge resistor R2. The worst case is switching on at the mains peak, 220 x 1.414, about 311 V, with both capacitors empty. R2 then limits the inrush to about 311 / 470, roughly 0.66 A. The 1N4007 is rated for 1 A average forward current, a 30 A one-cycle surge and 1,000 V reverse voltage (onsemi 1N4001 to 1N4007 data sheet, maximum ratings table), so the diodes have a large margin. At 15 mA, R2 dissipates only about 0.1 W.
  • Smoothing capacitor C1. After full-wave rectification the ripple is at 100 Hz. Peak-to-peak ripple voltage is roughly I / (fripple x C): at 15 mA, 0.015 / (100 x 100 µF) gives about 1.5 V; at the 0.33 mA of the drawn circuit it is only about 0.03 V.
  • C1 voltage rating. Four red LEDs drop roughly 8 V together, so 25 V is fine while the string is intact.

Common mistakes

  • Using a plain DC capacitor for Cx. Cx sits directly across the line in series with the load. Use a film capacitor rated for continuous mains AC; parts sold as class X2 are made for this job.
  • No protection if an LED fails open. Cx then keeps pushing current into C1, and its voltage climbs past 25 V until C1 fails. A Zener diode across C1, rated a few volts above the string voltage, clamps it.
  • Leaving out R2. Without it, the switch-on surge stresses the LEDs and the diodes every time the lamp is plugged in at the wrong moment.
  • Measuring with a grounded oscilloscope. The circuit is not isolated; a grounded probe clip on it can short the mains. Use a differential probe or an isolation transformer.

Interview angle

Capacitive droppers are a favorite question for power and analog roles: why does the capacitor not get hot (its current and voltage are 90 degrees apart, so it stores and returns energy instead of dissipating it), what does the bleeder do, why is there a series resistor, and why is the supply unsafe to touch. Being able to do the 2πfCV calculation in your head is the expected answer.

Murugavel Ganesan
About the Author
Murugavel Ganesan
Product Director | SerDes · IVN · Edge AI · Compute | Ex Intel · Infineon

A semiconductor product leader working across product architecture, definition, strategy, and silicon and software execution, from concept through volume production. He has worked with teams across Asia, Europe and the USA, including at Intel, Infineon and ArrayComm.

His work covers ASICs, SoCs, FPGAs and chiplets for wireless, wireline, automotive, IoT and AI, including PCIe, CXL and DDR interfaces alongside RF and mixed-signal design.

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

1 Comments

Your comments will be moderated before it appears here.

Post a Comment

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!