EveryCircuit
Contact
Reviews
Home
CristianDL
modified 3 years ago

Connecting LEDs directly to AC mains

3
2
172
02:06:14
Easy circuit for connecting LEDs directly to AC mains without a DC power supply. The RMS current through the circuit can be approximated by Vrms/sqrt(R²+1/(2pi*f*C)²), since diode forward voltage is small compared to AC mains voltage. For a single LED, connect a normal diode in anti-parallel config (diode cathode goes with LED anode and vice-versa), in order to avoid DC currents in power lines, which can be detrimental to them.
published 3 years ago
nordistu
3 years ago
It's OK :).... Just modify LED's value for 2V and 20mA, and capacitor value at 470nF.... You'll see light :)
CristianDL
3 years ago
Well, this was actually a circuit for AC mains detection using a H11AA1, which is an AC input optoisolator. This is the input part of the circuit, and the datasheet indicates forward voltage of 1.2V and typical forward current of 10mA, so... joke's on you :P

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy