Sizing Decoupling Capacitors for 240AC to 5VDC Conversion

  • Thread starter Pagedown
  • Start date
In summary, the conversation is about using a step down transformer 20:1, 240Vac to 12Vac to get +5VDC. Are decoupling capacitors sized correctly? C2 needs to be 50 to 100 times larger and C1 needs to be 10 times larger. Just keep in mind, the "rule of thumb" value for C2 is 1000uF / Amp of current, so in this case the 7805 is capable of 750mA to 1A if properly heatsunk. C2 needs to be sized according to load. If you expect to use this at 1 amp average current output, the rectifier should be rated at at least 3 amp peak repetitive surge current.
  • #1
Pagedown
92
0
I am using a step down transformer 20:1, 240Vac to 12Vac
then to full wave bridge rectifier, then to the 7805 voltage regulator to get +5VDC.

Are my decoupling capacitors sized correctly? I tried to read a lot about those capacitors choosing, but i still don't really get it... thanks for anyone whos helping...
 

Attachments

  • ps5.jpg
    ps5.jpg
    70.4 KB · Views: 789
Engineering news on Phys.org
  • #2
C2 needs to be 50 to 100 times larger and C1 needs to be 10 times larger.
 
  • #3
Just keep in mind, ...
on the DC output of a bridge rectifier, the "rule of thumb" value of the smoothing capacitor is 1000uF / Amp of current.
So in your case the 7805 is capable of ~ 750mA to 1A if properly heatsunk. Therefore you should have a minimum of 1000uF Electrolytic at 25V rating for C2 on the input of the 7805 regulator.

Dave
 
Last edited:
  • #4
You could also allow for the negative output to be ground.

To do this, connect the bottom of the transformer secondary to the bottom of the bridge and remove the ground connections to these points. Then just ground the left side of the bridge.

This way, the negative side of the power supply would be connected to ground. Or, you could leave the ground off and have a floating supply.
 
  • #5
C2 needs to be sized according to load. You haven't supplied a load, whether resistive or capacitive or inductive. What is the maximum expected load?

Also, if you plan to build this, 78xx's don't like to be reverse biased, and can fry is they are. Put a reverse biased 1N400x diode across the 7805 from IN to OUT if there will be other loads across the bridge.
 
  • #6
The load is just a small microcontroller. The datasheet has its properties right? Then how can I calculate when i get the properties? Maximum I think should be 1A.

Okay, I will find out about that diode, must it be that particular diode? I dun really understand how the diode can protect the 7805 from being reverse biased?
Reverse biased means the 7805 has negative on its IN/OUT right?
 
  • #7
No. You need a diode because the output capacitor can hold a charge when the input voltage is removed.

Then you have more voltage on the output than the input, so the chip is reverse biased

The diode just shorts out this voltage.

It is mainly a problem if the output capacitance is greater than the input capacitance, but it is cheap insurance anyway.

Usually the output capacitance is much smaller than the input capacitance.
 
  • #8
Thanks, I finally understand the diode now.

But I still don't really know how to estimate the best value for both input and output caps.
 
  • #9
Two things:

1) You have a lot of voltage headroom between the peak dc output of the rectifier and the minimum voltage input for the 7805, so you could allow for a repetitive 4 volt drop in the capacitor voltage between the 120-Hz recharging cycles at 1 amp average current output. Using the relation Q = CV, ΔQ = C ΔV. At 1 amp and 120 Hz, ΔQ = 1/120 Coulombs. Using ΔV = 4 volts max droop between recharge cycles, The minimum capacitance for C2 is ΔQ/ΔV = 1/480 = 2,000 uF.

2) The MDA3551 bridge rectifier choice is inappropriate for this application. If you expect to use this at 1 amp average current output, the rectifier should be rated at at least 3 amp peak repetitive surge current.

Bob S
 
  • #10
Pagedown said:
The load is just a small microcontroller. The datasheet has its properties right? Then how can I calculate when i get the properties? Maximum I think should be 1A.

Search the datasheet for "electrical properties". As an example, a small 8 bit micros like the Microchip PIC16F15xx runs a typical 1.3 mA supply current at 5V and 20 MHertz. But still, 1 amp. is good to have available if you want to run a few LEDs or something, but to utilize the full 1 amp. you will need to heat sink the 7805.

An LM317 could be a better choice for a simple regulated 5V supply using lower input voltage. But BobS has given you some solid design values already.
 
  • #11
the datasheet suggest a 0.1uF output cap and 0.22uF input cap. Any idea why?
 
  • #12
These capacitors are for very high frequency (transients). This is because the larger value (electrolytic) capacitors also used do not respond at very high frequencies and might as well not be there. Luckily the current in these transients is quite small so the capacity need is small.

These should be in parallel with the 500 - 1000 microfarad input capacitor I have already suggested and with the 100microfarad output capacitor.

You should also incorporate a 10 -100 microfarad capacitor at the other end of the power supply line near to each integrated circuit you are supplying. This is very important and your system will be unreliable without them.

go well
 
  • #13
Hello Pagedown-

I show a 12-volt 60Hz sinewave driving a full-wave rectifier and a voltage regulator in the attached thumbnail. The green waveform is the voltage across the filter capacitor, and the red waveform is the regulator output. With the 500 uF filter capacitor and a 1 amp output, the voltage droop between charging cycles is about 9 volts, and the regulator is dropping out of regulation. Very clearly, the 500 uF capacitor used in the simulation is too small for this application.

You should learn how to do "back of the envelope" estimations of the required capacitor size like shown in post #9, or use actual Spice simulations like in the thumbnail.

Bob S

[Sorry. LTSpice did not have a 5.6 volt zener, so I had to use a 6.2 volt one. ]
 

Attachments

  • regulator1.jpg
    regulator1.jpg
    39.9 KB · Views: 408
  • #14
Bob S, my input to rectifier is 12V 60Hz, why do you use 120Hz in ur calculation in post 9?
And why 4V headroom?
 
  • #15
I used the specifications suggested,simulated and found out the output results were great.

But the input voltage seems to be distorted? Is it because of the additional diode?
 

Attachments

  • ps7.jpg
    ps7.jpg
    69.3 KB · Views: 459
  • #16
Pagedown said:
Bob S, my input to rectifier is 12V 60Hz, why do you use 120Hz in ur calculation in post 9?
And why 4V headroom?
The 120Hz frequency arises because the full-wave bridge rectifier changes the negative half cycle of the 60-Hz sinewave to a positive half cycle, thus creating 120 positive half cycles per second.
If you look at my LTSpice simulation in post #13, the voltage on the capacitor drops from +15 volts to +6 volts every half cycle (for a 1-amp load). This 9-volt droop is too large with the 500 uF capacitor. The 7805 I believe requires at least 8 volts input to meet all regulation specs, so the input voltage droop can be a maximum of 15 volts minus 8 volts = 7 volts "headroom" at full current (1 amp). You should select the filter capacitor to maintain a minimum of 8 volts out under worst case conditions (max dc current output, minimum input line voltage, tolerances on components, etc.).

In your simulation, you have no resistive load. You should add a 5 ohm resistor to test the circuit at 1 amp (or another resistor for a lesser load). Be sure to graph the filter capacitor voltage in your simulation to see the voltage droop. Also, you are using one side of the transformer secondary as a ground reference. This then requires that both sides of the 5-volt regulated output be floating. You should consider floating the transformer secondary in order to be able to ground the negative side of the 5 volts out.

Bob S
 
  • #17
bob, that really clears everything up, thanks alot.

About the grounding, is there a disadvantage grounding the secondary side while have others floating? Or merely for easier implementation that I should reverse this configuration?
 
  • #18
1.now that I know how to size my input cap, how about my output cap?
how about my powerline cap mentioned?(near the load)

I should not have any headroom like my input cap, as I want to get constant DC voltage of +5V. and max load should be 1A.

2.Micro-controller/LEDs = resistive loads?

3.components are without datasheet can I determine their properties whether resistive/inductive/capacitive?

4.what if I have a capacitive/inductive load? I have to size output cap differently?
 
  • #19
Since none of my posts seem to have been acknowledged I don't know why I bother, but all the information you require is in them.
 
  • #20
The recommended output cap is 0.22 uF. See page 5 of datasheet http://focus.ti.com/lit/ds/symlink/tl780-05.pdf
The reverse diode across the 7805 is a good idea. You might be able to get away with an input filter capacitor of 1000 uF at 1 amp output (5 ohm load), even with worst case conditions (capacitor voltage dropping below 8 volts). You might want to consider using 2,000 uF for a little safety factor. Microcontroller and LEDs are a very light load. Don't worry about capacitive/inductive loads unless you are using a large capacitor or inductor (relay, solenoid, etc.) on the output. Too large a capacitor on the output may force the 7805 into a current foldback (overcurrent) mode at turn-on.

On grounding, it is possible that the negative side of the 5 volts becomes a common ground on a printed circuit board, or connected to other circuits via I/O signals, so don't ground either side of the transformer secondary. (The only configuration where the transformer secondary is grounded is in a full-wave CT (center-tap) configuration, which you do not have).

Bob S
 
Last edited by a moderator:
  • #21
One other thing occurs to me.

Many microcontrollers are fussy about their rail voltage and the spread of the 78XX series is pretty wide, so your 7805 output might be to far off 5 volts.

You should either incorporate a trimpot to cope with this or use a better reg IC.
 
  • #22
I read all of the contributors, and I appreciate all of their contributions and help.
Thanks, studiot.

Studiot recommended a 100microfarad for output cap. But in the datasheet Bob sent me, it is not needed? 0.1uF/0.22uF for transient?
 
  • #23
In your original circuit you had C2 & C3 at the input with C1 and C4 at the output.

I agree C1 is not always used, but you asked about your circuit, which was nearly there.
C3, C4 are the transient suppressors.

Incidentally is this only a simulation or are you building it for real?
Some of my comments only apply to real hardware - a simulator will not give you 4.85 volts for a 7805, but a real one might.
 
  • #24
I will build it for real =)

I have ommited the output cap,C1.

I have used input cap, C2 as 2000uF.
and C3,C4 as transient suppressors - Bob, my 7805 datasheet recommended this. Is it ok?
 

Attachments

  • ps8.jpg
    ps8.jpg
    70.8 KB · Views: 411
  • #25
I don't have specs for your bridge. The only MDA3551 I can find is a diode voltage multiplier assembly for televisions.

However assuming there is indeed such a bridge rectifier check the peak current that a 2000 microfarad capacitor will draw. This would be too much for some bridges.
You might consider a pie filter instead. That is two x 1000 microfarad caps connected by a low value resistor of a few ohms. This would need to be a power resistor.
 
  • #26
Looks good. The 7805 output voltage specs at 1 amp show 4.95 volts min, 5.05 volts max at 25 degrees C; 4.90 volts min, 5.10 volts max up to 125 degrees C. Use the 7805 TO-220 package and mount it to heat sink for operation at 1 amp. It will get very hot.

Why don't you substitute the Radio Shack 4 amp bridge ($2.59) for the one in the circuit diagram.

Please put the oscilloscope directly across the 2000 uF capacitor in your simulation and look at the voltage droop. If the voltage droop is less than 3 volts, you can decrease the input filter cap to 1000 uF, but make sure the minimum input voltage to the 7805 is always over 8 volts. Use Studiot's idea of using two 1000 uF caps separated by a 1 or 2 ohm resistor.

Bob S
 
  • #27
Here is the circuit with Studiot's pi filter with a 2-ohm (5 watt) resistor. Green trace is the cap filter output, and red is the regulator output. Looks good.

Bob S
 

Attachments

  • regulator2.jpg
    regulator2.jpg
    35.2 KB · Views: 398
Last edited:
  • #29
I note Bob is using single discrete transistors in his simulations, rather than a 78xx regulator.

The regulator's performance will be far better than this at 1 amp output.

Perhaps Bob is doing this for emphasis?

go well
 
  • #30
my rectifier is rated at 1.5Amps, should i need a pi filter?

I can't simulate my rectifier, as the component is not there in Multisim. So I don't know whether the capacitor is drawing too much current? any calculations? Help!
 
  • #31
It's a pretty basic calculation, that doesn't need a simulator.

The reactance of your capacitor = 2[tex]\pi[/tex]fC in ohms. Note this is 2 time pi, not 2 raised to the power pi. D__mmed Latex

This value is slapped across the rectifier output at switch on and so draws an initial current of

Vrect/2[tex]\pi[/tex]fC

Until the voltage builds up on the capacitor.

To protect the bridge, you only need a current limiting resistor. In addition to protection, the pi filter also reduces input ripple to the regulator considerably.

go well
 
Last edited:
  • #32
Studiot said:
I note Bob is using single discrete transistors in his simulations, rather than a 78xx regulator.

The regulator's performance will be far better than this at 1 amp output.

Perhaps Bob is doing this for emphasis?
My LTSpice simulator doesn't have 78xx regulators in its repertoire, so I had to substitute a simple NPN regulator to provide a constant current sink. Bob S
 
  • #33
Bob S said:
My LTSpice simulator doesn't have 78xx regulators in its repertoire, so I had to substitute a simple NPN regulator to provide a constant current sink. Bob S

So add a stack of 5 diodes to simulate the overhead requirements and see what you get.

(incredibly, this has gone on to three pages) It's like a McDonald's shake consumed through a cocktail straw.
 
  • #34
using the calculation Current drawn by cap=Vrect/2pifC.

I get 12v/(2 pi x 120hz x 2000uF)= 8 amps of current!

So how do I size my resistor?
why do you need 1000u + 1000u rather than a single 2000u cap?
 
  • #35
I plot the currents at thee places in the regulator circuit in the attached thumbnail. (I have added two very small resistors to measure the current.) The current into the first resistor (green) is about 5 amps peak repetitive. The current into the second resistor (pink curve) is about 2 amps peak. The current into the regulator transistor (red curve) is about 1 amp dc.

Using two 1,000 uF caps separated by a 2-ohm resistor reduces the power dissipation in the regulator transistor and simultaneously increases the inter-cycle minimum voltage, because the pi-filter configuration suggested by Studiot integrates over the 120-Hz cycle (RC = 2 milliseconds). See thumbnail plot in post #27.

Bob S
 

Attachments

  • Regulator2A.jpg
    Regulator2A.jpg
    41.5 KB · Views: 378
Last edited:

Similar threads

  • Electrical Engineering
2
Replies
63
Views
5K
  • Electrical Engineering
Replies
8
Views
1K
  • Electrical Engineering
Replies
5
Views
3K
  • Electrical Engineering
Replies
21
Views
1K
  • Electrical Engineering
Replies
10
Views
2K
  • Electrical Engineering
Replies
7
Views
3K
  • Electrical Engineering
Replies
5
Views
2K
  • Electrical Engineering
Replies
4
Views
3K
  • Electrical Engineering
Replies
7
Views
3K
Replies
9
Views
2K
Back
Top