rebelrider.mike
Member
- Joined
- May 25, 2017
- Messages
- 554
Hi folks, I want to build a power supply as a learning project. Before I started this, my knowledge of a power supply was: 120VAC -> magic box -> 5VDC. I aim to understand the magic box part by building one.
I'll share what I think I know from searches and videos, and maybe you guys can help fix errors and fill in blanks? Here goes:
First, there is a transformer that takes the 120VAC and steps it down to something above 5V.
Then there's a full wave rectifier that converts AC to DC, and also changes the voltage a bit.
Then there is a capacitor that smooths the DC current from super squiggly to kinda squiggly.
Then an IC regulates the kinda squiggly voltage down to a nice flat 5V.
And there's some math involved. Rather than simply recreate a circuit from the internet (there's tons out there) I want to understand the function of the components and learn how to choose them based on the results I want and the math involved. So throwing all that together, here's what I've come up with:
I guess the equation in the picture should be I x t / dV, but I forgot and put A for Amps. Even though it has to be mA to get uF at the end.
It turns out, that I've got to kind of work backward to figure out what I need. Starting with the final output, 5V 2A. It seems most folks are happy with 1A and use a regulator called a 7805. I want 2A, so I searched around and found an L78S05CV. The data sheet says I need at least 8V in to make it work.
For the rectifier I picked a GBU806, because I already have one. I was able to find a datasheet and it said I can put up to 600V 8A through it, though I'll lose 1V per "element". I'm guessing that's 1V per diode? or 1V per rectifier? I went with 1V per diode. Each path has 2 diodes so that's 2V.
But then there is this constant of 1.414 that everyone seems to use when the rectification happens, so 12V turns into 17V (ish) and loses the 2V to become 15V. So there is a net gain in voltage across the rectifier? The internet seems to think so. I assume there must be some power loss, but I guess it's in Amps.
So with the highest voltage being 15V, and the lowest being 8V (for the regulator) the dV is 7V. The output current I want is 2,000mA, and the time is 8.3ms since I'm using a 60Hz AC. With all the math done, the first capacitor should be a minimum of 15V 2382uF. I have a 16V 2200uF capacitor. I wonder if that's close enough.
I originally thought a voltage off the transformer would be better if it were closer to 5V, so less regulating would be needed. Seems though, the lower the transformer voltage, the more capacitance I need for the smoothing effect.
I also don't understand the purpose of the two other capacitors. The ones just before and after the regulator. People seem to throw those in without any explanation. Why are they there? What capacitance should they have? Can it also be calculated?
Also, If 8V 2A is going into the regulator, and only 5V 2A is coming out, is the difference being converted to heat? Can that be calculated? Does the rectifier also produce enough waste heat to need a heat sink? And is there a way to calculate that?
Where do people go to find all these little components? Especially if you know specs but not part numbers? I found a site called Mouser Electronics. Anyone heard of them?
I have even more questions, but I'll save those for later.
I'll share what I think I know from searches and videos, and maybe you guys can help fix errors and fill in blanks? Here goes:
First, there is a transformer that takes the 120VAC and steps it down to something above 5V.
Then there's a full wave rectifier that converts AC to DC, and also changes the voltage a bit.
Then there is a capacitor that smooths the DC current from super squiggly to kinda squiggly.
Then an IC regulates the kinda squiggly voltage down to a nice flat 5V.
And there's some math involved. Rather than simply recreate a circuit from the internet (there's tons out there) I want to understand the function of the components and learn how to choose them based on the results I want and the math involved. So throwing all that together, here's what I've come up with:
I guess the equation in the picture should be I x t / dV, but I forgot and put A for Amps. Even though it has to be mA to get uF at the end.
It turns out, that I've got to kind of work backward to figure out what I need. Starting with the final output, 5V 2A. It seems most folks are happy with 1A and use a regulator called a 7805. I want 2A, so I searched around and found an L78S05CV. The data sheet says I need at least 8V in to make it work.
For the rectifier I picked a GBU806, because I already have one. I was able to find a datasheet and it said I can put up to 600V 8A through it, though I'll lose 1V per "element". I'm guessing that's 1V per diode? or 1V per rectifier? I went with 1V per diode. Each path has 2 diodes so that's 2V.
But then there is this constant of 1.414 that everyone seems to use when the rectification happens, so 12V turns into 17V (ish) and loses the 2V to become 15V. So there is a net gain in voltage across the rectifier? The internet seems to think so. I assume there must be some power loss, but I guess it's in Amps.
So with the highest voltage being 15V, and the lowest being 8V (for the regulator) the dV is 7V. The output current I want is 2,000mA, and the time is 8.3ms since I'm using a 60Hz AC. With all the math done, the first capacitor should be a minimum of 15V 2382uF. I have a 16V 2200uF capacitor. I wonder if that's close enough.
I originally thought a voltage off the transformer would be better if it were closer to 5V, so less regulating would be needed. Seems though, the lower the transformer voltage, the more capacitance I need for the smoothing effect.
I also don't understand the purpose of the two other capacitors. The ones just before and after the regulator. People seem to throw those in without any explanation. Why are they there? What capacitance should they have? Can it also be calculated?
Also, If 8V 2A is going into the regulator, and only 5V 2A is coming out, is the difference being converted to heat? Can that be calculated? Does the rectifier also produce enough waste heat to need a heat sink? And is there a way to calculate that?
Where do people go to find all these little components? Especially if you know specs but not part numbers? I found a site called Mouser Electronics. Anyone heard of them?
I have even more questions, but I'll save those for later.