This post explains how to calculate resistor and capacitor values in transformerless power supply circuits using simple formulas like ohms law.

Before we learn the formula for calculating and optimizing resistor and capacitor values in a transformerless power supply, it would be important to first summarize a standard transformerless power supply design.

Referring to the diagram, the various components involved are assigned with the following specific functions:

C1 is the nonopolar high voltage capacitor which is introduced for dropping the lethal mains current to the desired limits as per the load specification. This component thus becomes extremely crucial due to the assigned mains current limiting function.

D1 to D4 are configured as a bridge rectifier network for rectifying the stepped down AC from C1, in order to make the output suitable to any intended DC load.

Z1 is positioned for stabilizing the output to the required safe voltage limits.

C2 is installed to filter out any ripple in the DC and to create a perfectly clean DC for the connected load.

R2 may be optional but is recommended for tackling a switch ON surge from mains, although preferably this component must be replaced with a NTC thermistor.

We all know how Ohm’s law works and how to use it for finding the unknown parameter when the other two are known. However, with a capacitive type of power supply having peculiar features and with LEDs connected to it, calculating current, voltage drop and LED resistor becomes a bit confusing.

How to Calculate and Deduce Current, Voltage Parameters in Transformerless Power Supplies.

After carefully studying the relevant patterns, I devised a simple and effective way of solving the above issues, especially when the power supply used is a transformerless one or incorporates PPC capacitors or reactance for controlling current.

Typically, a transformerless power supply will produce an output with very low current values but with voltages equal to the applied AC mains (until it’s loaded).

For example, a 1 ÂµF, 400 V (breakdown voltage) when connected to a 220 V x 1.4 = 308V (after bridge) mains supply will produce a maximum of 70 mA of current and an initial voltage reading of 308 Volts.

However this voltage will show a very linear drop as the output gets loaded and current is drawn from the “70 mA” reservoir.

We know that if the load consumes the whole 70 mA would mean the voltage dropping to almost zero.

Now since this drop is linear, we can simply divide the initial output voltage with the max current to find the voltage drops that would occur for different magnitudes of load currents.

Therefore dividing 308 volts by 70 mA gives 4.4V. This is the rate at which the voltage will drop for every 1 mA of current added with the load.

That implies if the load consumes 20 mA of current, the drop in voltage will be 20 × 4.4 = 88 volts, so the output now will show a voltage of 308 – 62.8 = 220 volts DC(after bridge).

For example with a 1 watt LED connected directly to this circuit without a resistor would show a voltage equal to forward voltage drop of the LED (3.3V), this is because the LED is sinking almost all the current available from the capacitor. However the voltage across the LED is not dropping to zero because the forward voltage is maximum specified voltage that can drop across it.

From the above discussion and analysis, it becomes clear that voltage in any power supply unit is immaterial if the current delivering capability of the power supply is "relatively" low.

For example if we consider an LED, it can withstand 30 to 40 mA current at voltages close to its "forward voltage drop", however at higher voltages this current can become dangerous for the LED, so it's all about keeping the maximum current equal to the maximum safe tolerable limit of the load.

While calculating series resistor values with LEDs, instead of using the standard LED formula directly, we can use the above rule first.

That means either we choose a capacitor whose reactance value only allows the maximum tolerable current to the LED, in which case a resistor can be totally avoided.

If the capacitor value is large with higher current outputs, then probably as discussed above we can incorporate a resistor to reduce the current to tolerable limits.

Example: In the shown diagram, the value of the capacitor produces 70 mA of max. current which is quite high for any LED to withstand. Using the standard LED/resistor formula:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,

= (220 - 3.3)/0.02 = 10.83K,

However the 10.83K value looks pretty huge, and would substantially drop the illumination on the LED....none-the-less the calculations look absolutely legitimate....so are we missing something here??

I think here the voltage "220" might not be correct because ultimately the LED would be requiring just 3.3V....so why not apply this value in the above formula and check the results? In case you have used a zener diode, then the zener value could be applied here instead.

Ok, here we go again.

R = 3.3/0.02 = 165 ohms

Now this looks much better.

In case you used, let's say a 12V zener diode before the LED, the formula could be calculated as given below:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,

= (12 - 3.3)/0.02 = 435 Ohms,

Therefore the value of the resistor for controlling one red LED safely would be around 400 ohm.

In the entire transformerless design discussed above, C1 is the one crucial component which must be dimensioned correctly so that the current output from it is optimized optimally as per the load specification.

Selecting a high value capacitor for a relatively smaller load may increase the risk of excessive surge current entering the load and damaging it sooner.

A properly calculated capacitor on the contrary ensures a controlled surge inrush and nominal dissipation maintaining adequate safety for the connected load.

The magnitude of current that may be optimally permissible through a transformerless power supply for a particular load may be calculated by using Ohm's law:

I = V/R

where I = current, V = Voltage, R = Resistance

However as we can see, in the above formula R is an odd parameter since we are dealing with a capacitor as the current limiting member.

In order to crack this we need to derive a method which will translate the capacitor's current limiting value in terms of Ohms or resistance unit, so that the Ohm's law formula could be solved.

To do this we first find out the reactance of the capacitor which may be considered as the resistance equivalent of a resistor.

The formula for reactance is:

where Xc = reactance,

pi = 22/7

f = frequency

C = capacitor value in Farads

The result obtained from the above formula is in Ohms which can be directly substituted in our previously mentioned Ohm's law.

Let's solve an example for understanding the implementation of the above formulas:

Let's see how much current a 1uF capacitor can deliver to a particular load:

We have the following data in our hand:

pi = 22/7 = 3.14

f = 50 Hz (mains AC frequency)

and C= 1uF or 0.000001F

Solving the reactance equation using the above data gives:

Xc = 1 / (2 x 3.14 x 50 x 0.000001)

= 3184 ohms approximately

Substituting this equivalent resistance value in our Ohm's law formula, we get:

R = V/I

or I = V/R

Assuming V = 220V (since the capacitor is intended to work with the mains voltage.)

We get:

I = 220/3184

= 0.069 amps or 69 mA approximately

Similarly other capacitors can be calculated for knowing their maximum current delivering capacity or rating.

The above discussion comprehensively explains how a capacitor current may be calculated in any relevant circuit, particularly in transformerless capacitive power supplies.

WARNING: THE ABOVE DESIGN IS NOT ISOLATED FROM MAINS INPUT, THEREFORE THE WHOLE UNIT COULD BE FLOATING WITH LETHAL INPUT MAINS, BE EXTREMELY CAREFUL WHILE HANDLING IN SWITCHED ON POSITION.

## Analyzing a Capactive Power Supply

Before we learn the formula for calculating and optimizing resistor and capacitor values in a transformerless power supply, it would be important to first summarize a standard transformerless power supply design.

Referring to the diagram, the various components involved are assigned with the following specific functions:

C1 is the nonopolar high voltage capacitor which is introduced for dropping the lethal mains current to the desired limits as per the load specification. This component thus becomes extremely crucial due to the assigned mains current limiting function.

D1 to D4 are configured as a bridge rectifier network for rectifying the stepped down AC from C1, in order to make the output suitable to any intended DC load.

Z1 is positioned for stabilizing the output to the required safe voltage limits.

C2 is installed to filter out any ripple in the DC and to create a perfectly clean DC for the connected load.

R2 may be optional but is recommended for tackling a switch ON surge from mains, although preferably this component must be replaced with a NTC thermistor.

## Using Ohm's Law

We all know how Ohm’s law works and how to use it for finding the unknown parameter when the other two are known. However, with a capacitive type of power supply having peculiar features and with LEDs connected to it, calculating current, voltage drop and LED resistor becomes a bit confusing.

How to Calculate and Deduce Current, Voltage Parameters in Transformerless Power Supplies.

After carefully studying the relevant patterns, I devised a simple and effective way of solving the above issues, especially when the power supply used is a transformerless one or incorporates PPC capacitors or reactance for controlling current.

## Evaluating Current in Capacitive Power Supplies

Typically, a transformerless power supply will produce an output with very low current values but with voltages equal to the applied AC mains (until it’s loaded).

For example, a 1 ÂµF, 400 V (breakdown voltage) when connected to a 220 V x 1.4 = 308V (after bridge) mains supply will produce a maximum of 70 mA of current and an initial voltage reading of 308 Volts.

However this voltage will show a very linear drop as the output gets loaded and current is drawn from the “70 mA” reservoir.

We know that if the load consumes the whole 70 mA would mean the voltage dropping to almost zero.

Now since this drop is linear, we can simply divide the initial output voltage with the max current to find the voltage drops that would occur for different magnitudes of load currents.

Therefore dividing 308 volts by 70 mA gives 4.4V. This is the rate at which the voltage will drop for every 1 mA of current added with the load.

That implies if the load consumes 20 mA of current, the drop in voltage will be 20 × 4.4 = 88 volts, so the output now will show a voltage of 308 – 62.8 = 220 volts DC(after bridge).

For example with a 1 watt LED connected directly to this circuit without a resistor would show a voltage equal to forward voltage drop of the LED (3.3V), this is because the LED is sinking almost all the current available from the capacitor. However the voltage across the LED is not dropping to zero because the forward voltage is maximum specified voltage that can drop across it.

From the above discussion and analysis, it becomes clear that voltage in any power supply unit is immaterial if the current delivering capability of the power supply is "relatively" low.

For example if we consider an LED, it can withstand 30 to 40 mA current at voltages close to its "forward voltage drop", however at higher voltages this current can become dangerous for the LED, so it's all about keeping the maximum current equal to the maximum safe tolerable limit of the load.

## Calculating Resistor Values

While calculating series resistor values with LEDs, instead of using the standard LED formula directly, we can use the above rule first.

That means either we choose a capacitor whose reactance value only allows the maximum tolerable current to the LED, in which case a resistor can be totally avoided.

If the capacitor value is large with higher current outputs, then probably as discussed above we can incorporate a resistor to reduce the current to tolerable limits.

### Calculating a 20 mA LED Resistor

Example: In the shown diagram, the value of the capacitor produces 70 mA of max. current which is quite high for any LED to withstand. Using the standard LED/resistor formula:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,

= (220 - 3.3)/0.02 = 10.83K,

However the 10.83K value looks pretty huge, and would substantially drop the illumination on the LED....none-the-less the calculations look absolutely legitimate....so are we missing something here??

I think here the voltage "220" might not be correct because ultimately the LED would be requiring just 3.3V....so why not apply this value in the above formula and check the results? In case you have used a zener diode, then the zener value could be applied here instead.

Ok, here we go again.

R = 3.3/0.02 = 165 ohms

Now this looks much better.

In case you used, let's say a 12V zener diode before the LED, the formula could be calculated as given below:

R = (supply voltage VS – LED forward voltage VF) / LED current IL,

= (12 - 3.3)/0.02 = 435 Ohms,

Therefore the value of the resistor for controlling one red LED safely would be around 400 ohm.

## Finding Capacitor Current

In the entire transformerless design discussed above, C1 is the one crucial component which must be dimensioned correctly so that the current output from it is optimized optimally as per the load specification.

Selecting a high value capacitor for a relatively smaller load may increase the risk of excessive surge current entering the load and damaging it sooner.

A properly calculated capacitor on the contrary ensures a controlled surge inrush and nominal dissipation maintaining adequate safety for the connected load.

### Using Ohm's Law

The magnitude of current that may be optimally permissible through a transformerless power supply for a particular load may be calculated by using Ohm's law:

I = V/R

where I = current, V = Voltage, R = Resistance

However as we can see, in the above formula R is an odd parameter since we are dealing with a capacitor as the current limiting member.

In order to crack this we need to derive a method which will translate the capacitor's current limiting value in terms of Ohms or resistance unit, so that the Ohm's law formula could be solved.

### Calculating Capacitor Reactance

To do this we first find out the reactance of the capacitor which may be considered as the resistance equivalent of a resistor.

The formula for reactance is:

**Xc = 1/2(pi) fC**where Xc = reactance,

pi = 22/7

f = frequency

C = capacitor value in Farads

The result obtained from the above formula is in Ohms which can be directly substituted in our previously mentioned Ohm's law.

Let's solve an example for understanding the implementation of the above formulas:

Let's see how much current a 1uF capacitor can deliver to a particular load:

We have the following data in our hand:

pi = 22/7 = 3.14

f = 50 Hz (mains AC frequency)

and C= 1uF or 0.000001F

Solving the reactance equation using the above data gives:

Xc = 1 / (2 x 3.14 x 50 x 0.000001)

= 3184 ohms approximately

Substituting this equivalent resistance value in our Ohm's law formula, we get:

R = V/I

or I = V/R

Assuming V = 220V (since the capacitor is intended to work with the mains voltage.)

We get:

I = 220/3184

= 0.069 amps or 69 mA approximately

Similarly other capacitors can be calculated for knowing their maximum current delivering capacity or rating.

The above discussion comprehensively explains how a capacitor current may be calculated in any relevant circuit, particularly in transformerless capacitive power supplies.

WARNING: THE ABOVE DESIGN IS NOT ISOLATED FROM MAINS INPUT, THEREFORE THE WHOLE UNIT COULD BE FLOATING WITH LETHAL INPUT MAINS, BE EXTREMELY CAREFUL WHILE HANDLING IN SWITCHED ON POSITION.

**Need Help? Please send your queries through Comments for quick replies! And please Bookmark my site :)**

## Comments

Please explain what type calculation behind "220v X 1.4=308v",why we using and where we get 1.4 here to multiple, any standard or calculation.

Thanking you,

kumaran muthu

Please research "RMS voltage" you will get answer

https://homemade-circuits.com/2015/01/calculating-capacitor-current-in.html

R1 is not important, you can use any resistor above 330K and below 2M2 for this resistor

how I will calculate the current limiting resistor of transformerless power supply. Please feedback my question

you can use Ohm's law for calculating the parameters

I have done this project using 2.2uF, 100R and 5.1V Zener. i got output voltage perfectly but i got 90V DC after bridge, How can i reduce that voltage??

https://homemade-circuits.com/scr-shunt-for-protecting-capacitive-led/

my question is , is there any difference between placing zener diode before or after the electrolytic capacitor?

thanks

https://www.homemade-circuits.com/how-to-design-a-flyback-converter-comprehensive-tutorial/