Electronic – Indicator LED directly to AC mains. Which method would you use

acledmains

Some EE would do it like this, or another variant here using a capacitor and a resistor in serie with the led and a diode in parallel with the led (see links).

But what's the advantage (or disadvantage) over simply joining a resistor and a diode in serie with the led (see schematic below)?
(R1 value calculated for 380 VAC. LED 20mA, 2V)

schematic

simulate this circuit – Schematic created using CircuitLab

After reading the first comment, I designed this variant: Would the diode in serie with the LED (instead of being in reverse parallel) save energy during the unused half cycle?

The Cap has an impedance of 15K. Does the calculation of power loss and heat apply in the same way as with a 15K resistor?

schematic

simulate this circuit

Best Answer

The Cap has an impedance of 15K. Does the calculation of power loss and heat apply in the same way as with a 15K resistor?

No, the impedance of the capacitor is purely reactive. It dissipates no real power.

EDIT: as drawn the circuit does not work. You want this:

schematic

simulate this circuit – Schematic created using CircuitLab

The value of C1 must be chosen to limit the current to the correct value. 470nF gives a current of 21mA, which flows alternately through D1 and D2.

R2 serves to 'bleed off' the high voltage on C1 when the device is disconnected, to prevent the user from being shocked. R1 limits the current to C1, preventing a spark when the device is plugged in, and also protects C1 against brief voltage surges.