Driving Leds with ac

I think, in any conditions, for example, contact bounce, amplitude of pulse LED current must be not more than 20 mA.
There needs to be a 100 resistor to limit the current if the switch opens at the peak of the line waveform. (27 to 220 ohms)
1783191608129.png
Often there is a 1meg to 4.7meg resistor across C1 to blead down the voltage.

It is typical for a 20mA LED to handle 30mA under some conditions and 100mA for a short time. You could add a 1k resistor to limit the worst-case current.
 
Last edited:
For many years Arcolectric (now part of Bulgin) have manufactured mains driven LED indicators (as a substitute for neons) by having a resistor in series with a silicon diode in series with the LED. Calculate the resistor value according to the desired average current recognizing that current only lights the LED half the time. Resistor to be 1/2 watt, not for power reasons but to withstand the voltage drop. The three components housed in a transparent plastic injection moulding for safety. The components are in series because the silicon diode offers a high resistance in reverse polarity so the reverse current is low enough for the LED to withstand its much lower reverse voltage
 
Changes:
V2 timing changed. I did not understand your test. I turned S1 at about the peak of the line voltage and kept it on until 95mS point.
Red= LED current; about 160mA at the start of the switch closed at the worse time.
1783192883778.png
Because the peak current is 20mA and the average is very low, you could make C1 larger and get the peak current to 30mA if you need more brightness.
The startup current lasts for 0.5mS and could be reduced by changing R1.
1783193350002.png
 

Attachments

Danko

Joined Nov 22, 2017
2,186
The components are in series because the silicon diode offers a high resistance in reverse polarity so the reverse current is low enough for the LED to withstand its much lower reverse voltage
For longer life time of LED, leakage and capacitive current of diode should be shorted by additional diode:
1783210665917.png 1783211614597.png
 
Last edited:
For longer life time of LED, leakage and capacitive current of diode should be shorted by additional diode:
The LED model might be made wrong. Many LEDs conduct at -5V. I don't think you will ever see -170V across the LED. I think placing a 0.1uF cap across the LED will eat up the reverse recovery current in the 1N4007 and leakage current in the 1N4007.
 

Danko

Joined Nov 22, 2017
2,186
The LED model might be made wrong. Many LEDs conduct at -5V. I don't think you will ever see -170V across the LED. I think placing a 0.1uF cap across the LED will eat up the reverse recovery current in the 1N4007 and leakage current in the 1N4007.
It is not about wrong model. It is about reverse LED current.
Capacitor instead parallel diode helps, but diode is much cheaper.
 

crutschow

Joined Mar 14, 2008
38,572
Below is the LTspice sim of my suggested circuit to use a bridge to provide a full-wave signal to the LED and prevent 60Hz flicker from a LED powered by a half-wave signal:
Instead of the LED being off for about 8.5ms once each cycle ( likely causing visible flicker), it's off for <1ms twice each cycle.

It uses a series capacitor to limit the LED current to about 6mA average (bottom trace waveform window) with minimum power loss, which should give sufficient brightness for a red LED.

R1 limits the maximum transient turn-on spike (if turned on at the peak of the sinewave) to 100mA (middle trace).
It dissipates <100mW average so a 1/4W resistor should be adequate.

Of course, a small rectifier bridge module could replace the four 1N4148's.

1783231169519.png
 
Last edited:

Externet

Joined Nov 29, 2005
2,641
In the circuit above, D1, D2, D3, D4 could also be LEDs, providing efficiently much more light instead of only D5. Or replacing D5 with a wire.
 
Top