3
\$\begingroup\$

I am building a transformerless power supply to power 60 RGB color changing 2 pin LEDs in series from 230 VAC mains. These LEDs need DC to function properly.

In the circuit below, I understand that the load voltage on capacitor C will be the peak at 230 * 1.414 = 325 VDC (ignoring the diode drop for simplicity) under no load condition.

If I connect a load of 60 3 V, 20 mA LEDs in series, what should be the value of the resistor R assuming the capacitor C is 47 μF, 400 V?

I can't seem to apply Ohm's law V = IR here as both V and R are unknown.

LED series circuit

\$\endgroup\$
7
  • 2
    \$\begingroup\$ LED data sheet required. \$\endgroup\$
    – Andy aka
    Oct 19, 2022 at 10:23
  • \$\begingroup\$ But they are not unknowns. You mentioned them already. \$\endgroup\$
    – Justme
    Oct 19, 2022 at 10:47
  • 1
    \$\begingroup\$ Will the capacitor charge to 325V since load is already connected which is discharging it simultaneously? \$\endgroup\$
    – Sumedik
    Oct 19, 2022 at 10:51
  • 2
    \$\begingroup\$ Do you really need DC? If yes, your first step should have been to calculate the capacitance from the allowable voltage ripple. You also need to be sure that you don't exceed the capacitor ripple current. \$\endgroup\$
    – Mattman944
    Oct 19, 2022 at 10:58
  • \$\begingroup\$ 47uF is very large. You will get a huge "starting" current ... Something as 5 A. \$\endgroup\$
    – Antonio51
    Oct 19, 2022 at 11:46

3 Answers 3

4
\$\begingroup\$

An approximation: 3 V * 60 pcs = 180 V dropped across LEDs.

230 VAC * 1.414 (AC to rectified DC) = 325 VDC - (0.7 V * 2 since there are diode-drops in the bridge rectifier) = 323 VDC.

So you have 323 VDC, the LEDS drop 180 VDC, so 143 VDC must be dropped across the resistor.

If 20 mA should go through this resistor, then 20 mA = 143 V / R. Rearranging, R = 143 V / 20 mA = 7,150 Ohms.

Wait! Not done yet. Watts = V * A, so 143 V * 0.020 A = 2.86 Watts of dissipation. Resistors are always specified at twice their operating power, so this would be a 7.15 kΩ, 5 W or 6 W resistor. If you can only get a 10 W one then great, but a 4 W one will be asking for trouble. You could also combine resistors in parallel to share the power, such as 2 * 7.15 k = 14.3 k and if each one is 3 W, then the total wattage capability of the parallel pair is 6 W. In either case, ensure there is adequate convective airflow to keep it cool.

This is all Ohm's Law. Keep in mind this is an approximation; real-world results require a datasheet for the LEDs to know exactly what their forward voltage is at 20mA. This might even change with temperature. The value will not be exactly 3.00 V, and can vary wildly for different colors of LEDs due to different process chemicals (bandgap voltages) implemented.

Note, if you move the resistor to before the capacitor, then the inrush surge current will be lessened by the resistor. It should then be a pulse-rated type of resistor, for longest life. And you can't turn it on-off-on-off several times quickly, or the resistor could overheat.

Also note, these "transformerless" supplies are dangerous. If you were to accidentally touch the wiring while it was running, there is nothing preventing full mains current from flowing through your body. Since the AC neutral is probably connected to Earth ground at the panel, this means that touching either positive or negative will give a shock. The outlet may be rated for 15 A, but that doesn't mean that 150 A can't flow through you for a short time. It only takes 0.01A to be dangerous. And this relatively high DC voltage makes it much easier to be critically shocked. And being DC, may cause muscle contraction which makes it impossible to let go... is this all worth the risk?

\$\endgroup\$
3
  • 2
    \$\begingroup\$ +1 for the "this is a dangerous circuit - I'd recommend not doing this and using a constant current offline isolated DCDC with series & parallel LEDs rather than a huge string." From a green perspective it's really inefficient too due to the power lost in the resistor. \$\endgroup\$
    – Jay M
    Oct 19, 2022 at 13:01
  • \$\begingroup\$ Thanks for the detailed response. Yes i understand that this circuit is dangerous. However such circuits are common in Chinese LED strings...that too for only those strings which need proper DC to function (like RGB LEDs). Others simply employ a series of LEDs and a suitable resistor to be directly plugged in the mains ! Guess safety is not the concern for "Rice Lights" ! \$\endgroup\$
    – Sumedik
    Oct 19, 2022 at 13:52
  • \$\begingroup\$ Most of the danger of mains connected circuits like this can be mitigated by using a GFCI receptacle, or in-line adapter. That will limit current to less than 5-20 mA. \$\endgroup\$
    – PStechPaul
    Oct 19, 2022 at 20:22
3
\$\begingroup\$

If you don't want any modulation, then you need a cap. But realize that many lights around your house probably modulate at twice the mains frequency.

Cap equation:

\$i = C \frac{dv}{dt}\$

If the current is constant, and \$\Delta v\$ is Vripple:

\$I = C \frac{\Delta v}{\Delta t}\$

For a full-wave rectifier:

\$\Delta t = \frac{1}{2f}\$

Combining equations and solving:

\$Vripple = \frac{I}{2f C}\$ = about 4Vp-p

When you connect the circuit to the mains with a switch or plugging it in a socket, you could have a huge current spike if this happens at a voltage maximum of the sine wave. I recommend a small resistor in series with the mains.

And follow all of rdtsc's warnings.

schematic

simulate this circuit – Schematic created using CircuitLab

enter image description here

\$\endgroup\$
1
\$\begingroup\$

As @rdtsc pointed out ... SAFETY first.

47 uF is very hard for such a "goal".

Try and simulate this example (checking all voltages, currents, and powers !!!).
Don't forget to insert your "diode model", Vd & rd at least (my R1, D5 and D6).

EE&O. Note that the power consumed for Leds is 180 V * 20 mA = 3.6 W.
The power at the AC input is 8.7 VA, for a global efficiency of 3.6/8.7= 41%.
I dare not calculate the input power in the case of a 47 uF capacitor, i.e. 80 VA for the first second ... (with a peak at 600 VA) and 13 VA in steady state.

enter image description here

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.