Do you want to learn how to build your own power supplies from scratch?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Th3_uN1Qu3
    Believe in
    • Jul 2010
    • 6031
    • Romania

    #1

    Do you want to learn how to build your own power supplies from scratch?



    If anyone's interested, i'll share my knowledge so far. I will address designing a SMPS from zero, taking you thru the basic building blocks and their interactions, and keeping theory to a minimum. It's your business if you want to learn the theory or not, in 90% of cases you won't need it.

    This topic will be for aspiring engineers from an aspiring engineer, as there are some things that i do not truly understand at the moment of writing and i learn them as i build them myself. One such example is loop compensation, which is IMO the most complicated aspect in designing a regulated SMPS because it can make or break the whole device, and it is tricky to implement by calculations only because real-world parts have quite high tolerances.

    I've put together a spreadsheet which does most of the math for you and also avoids the exponents found in most textbook equations - lose one zero and you mess up by an order of magnitude, or worse - the spreadsheet takes all the data exactly as it's given in manufacturer data sheets. Using it you will be able to make your own power supplies or upgrade existing ones - adding capacitors, rewinding transformers, using bigger inductors or heavier size wire. The spreadsheet also integrates several tables for convenience - a wire size table in both AWG and metric dimensions, with current handling and skin effect calculated for all wire sizes. There's also a frequency to time converter with duty cycle, a voltage divider calculator, a transistor peak current calculator and lots more goodies that make your troubleshooting easier.

    Best of all, the design tables are all linked to each other. Modify the operating frequency or change the core, and the number of turns changes accordingly. This is just a small example of what the spreadsheet currently does - and for the most part i've just gotten started! So... what do you think?
    52
    Yes
    0%
    48
    No
    0%
    2
    Don't care
    0%
    2
    Originally posted by PeteS in CA
    Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
    A working TV? How boring!
  • Khron
    Badcaps Legend
    • Sep 2006
    • 1350
    • Finland

    #2
    Re: Do you want to learn how to build your own power supplies from scratch?

    That's... enterprising, to say the least

    Count me in!

    PS: "Happy" (new year's) hangover
    Khron's Cave - Electronics - Audio - Teardowns - Mods - Repairs - Projects - Music - Rants - Shenanigans

    Comment

    • PCBONEZ
      Grumpy Old Fart
      • Aug 2005
      • 10661
      • USA

      #3
      Re: Do you want to learn how to build your own power supplies from scratch?

      At one time or another I learned all that's needed but as I never used it for anything much of it leaked out the ears and evaporated.

      I would love such a read.
      .
      Mann-Made Global Warming.
      - We should be more concerned about the Intellectual Climate.

      -
      Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

      - Dr Seuss
      -
      You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
      -

      Comment

      • Agent24
        I see dead caps
        • Oct 2007
        • 4951
        • New Zealand

        #4
        Re: Do you want to learn how to build your own power supplies from scratch?

        Sure, I always like to learn new things (or at least try, anyway)
        "Tantalum for the brave, Solid Aluminium for the wise, Wet Electrolytic for the adventurous"
        -David VanHorn

        Comment

        • goodpsusearch
          Badcaps Legend
          • Oct 2009
          • 2850
          • Greece

          #5
          Re: Do you want to learn how to build your own power supplies from scratch?

          We are waiting.

          Comment

          • Th3_uN1Qu3
            Believe in
            • Jul 2010
            • 6031
            • Romania

            #6
            Re: Do you want to learn how to build your own power supplies from scratch?

            Originally posted by Khron666
            PS: "Happy" (new year's) hangover
            Thanks. I've gotten started already.

            Anyway back on topic. I've been trying to wrap my head around magnetic amplifiers, with not much luck. Probably due to the fact that i don't have the possibility to build one right now and observe how it works in real time.

            But i see most new power supplies have done away with this approach and use a dc-dc converter approach to the 5v and 3.3v rails. That's most likely what i'm going to do as well.

            After all is said and done, the intention is to eventually have my efforts result in a totally custom power supply for my dual-PIII. I've built a couple SMPS supplies until now, but nothing of the complexity that a PC power supply requires. Even with 2 PSUs in parallel the motherboard reports 5v a tad low (4.78v) so i will need an independently regulated design, because i don't think i break 3A of 12v usage on this thing, while the 5v and 3.3v rails are overloaded.
            Originally posted by PeteS in CA
            Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
            A working TV? How boring!

            Comment

            • Th3_uN1Qu3
              Believe in
              • Jul 2010
              • 6031
              • Romania

              #7
              Re: Do you want to learn how to build your own power supplies from scratch?

              I decided to satisfy my curiosity and bust out the TrueRMS amp meter. At maximum load (IntelBurnTest and Furmark together) she peaked at 1A drawn from the wall. With regular gaming (CS Source) she hovers around 0.93, and web browsing around 0.85 on a mains voltage of 225v.

              So it's really not that much power - at 80% efficiency this means that the system itself only asks for 180W at most, and honestly i think that the efficiency of my PSUs hovers around the 75% mark, so that's 170W. And i need 2 PSUs to sustain this... i think it becomes obvious that my worst enemy here is group regulation. On the other hand, independently regulated units seem to be found at high powers only and would set me back too much $$ and leave me with a ton of unused 12v, so a custom job still seems like the best idea.

              Now... 90% of 170W divided by 5 gives 30,6A, since the 3.3v rail is derived from the 5v one that's probably correct. Indeed, not something i'd trust my Xilence to handle on its own (and it doesn't). But not that difficult to achieve IMO. I think i'll mod a random power supply rather than build one from scratch. The primary part will stay mostly intact, but all other windings on the transformer will be removed and a fat 12v rail installed instead. Then dc-dc my way down from there. Reasoning is simple - i need a 40A 5v rail to be on the safe side, and that requires very thick wire (or a lot of strands of thin wire), which would be difficult to wind. A 25A 12v rail on the other hand will be easy.
              Originally posted by PeteS in CA
              Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
              A working TV? How boring!

              Comment

              • goodpsusearch
                Badcaps Legend
                • Oct 2009
                • 2850
                • Greece

                #8
                Re: Do you want to learn how to build your own power supplies from scratch?

                An Antec Smartpower SP 450W would do the job in my opinion... (40A @ 5V)

                Comment

                • ss627
                  Super Member
                  • Mar 2008
                  • 52

                  #9
                  Re: Do you want to learn how to build your own power supplies from scratch?

                  You can start building http://www.onsemi.com/PowerSolutions/content.do?id=1331 or a 80 plus silver rated unit here http://www.onsemi.com/PowerSolutions...nt.do?id=16599.

                  I started designing the schematic/pcb a while ago but never finished due to calculating the costs. It would be cheaper if you scavenged some parts but I really doubt many people on here would be interested once they knew the total price of such a project. You can buy a 80 plus gold rated 750 watt seasonic for much cheaper.

                  Comment

                  • Th3_uN1Qu3
                    Believe in
                    • Jul 2010
                    • 6031
                    • Romania

                    #10
                    Re: Do you want to learn how to build your own power supplies from scratch?

                    Originally posted by ss627
                    You can buy a 80 plus gold rated 750 watt seasonic for much cheaper.
                    Depending on how many parts you have lying around. For me the only cost will be the PCB, and since i etch that myself, $2 for a copper clad board really isn't that much. Besides that, i'll only have to buy resistors and 2 power transistors at $1 a piece, the standby one i already have.

                    I'm quite sure the Antec Smartpower wouldn't handle it either - simply because it's still a group regulated design and i'm barely using any 12v. Group regulated power supplies are built with the assumption that the rails will see equal usage (+/-20% in the worst case). While my dualie uses 80-90% 5v and 3.3v. I'm back to the initial plan of designing a PSU from scratch since the dc-dcs will need to be synced to the master (off-line) switching IC, and the typical 33kHz used in cheap halfbridge PSUs is too low for achieving high current in a reasonable size.

                    Besides, this topic isn't about building computer power supplies, my dual-PIII is an exception. It's about general SMPS for general use. Like a bench supply, or something lightweight for a power amplifier, or maybe even for a solar powered cellphone charger. I still have some quirks to fix in the spreadsheet but once those are done i'll post the first version up.
                    Last edited by Th3_uN1Qu3; 12-28-2010, 06:25 AM.
                    Originally posted by PeteS in CA
                    Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
                    A working TV? How boring!

                    Comment

                    • Th3_uN1Qu3
                      Believe in
                      • Jul 2010
                      • 6031
                      • Romania

                      #11
                      Re: Do you want to learn how to build your own power supplies from scratch?

                      First version up.

                      Notes: Please let me know if there are any locale problems (you know, with . and , ). For now it deals with 2 transistor forward only and there are some things to consider:
                      • The output cap calculator is based on a general formula for low-ESR caps, you cannot enter the ESR of your particular cap. Should be safe but i'll give it more attention later.
                      • The primary cap ripple calculator uses a cheat. It's pretty accurate though.
                      • The wire tables aren't there yet. You can grab 'em off the 'net for now.
                      • There is no provision for rectifier voltage drop in the secondary. This is because the number of turns is rounded up to the nearest integer which in practice will certainly overcome the diode drop.
                      • The lower the minimum current, the larger the output inductor needed. The dI value is what actually hits your output caps, so the larger the inductor, the less stress on the caps. I'll explain minimum current later on or you can look it up yourself. It's not as critical as one might think.


                      The feature i'm most proud of is the temperature compensated copper loss calculator. This breaks from cookbook constants, most of which are too conservative today - as frequency rises less turns are needed, and since resistance is a function of both cross-sectional area and length, with less turns, you can get away with thinner wire. It gives the loss in watts instead of simply an estimate of how many strands you need because thermal calculations you must do yourself.

                      Basic version: Apply 1W of heat to your transformer core and see how much it heats up... this gives temp rise in C/W, now multiply by the copper loss you got, add 50C to it and get the operating temp. Oh and keep in mind there's also core losses to think about... But those are usually given in core datasheets.

                      Oh yeah and it needs some organizing, i'll split it up in several sheets once i do the halfbridge section as well. And color the input and output values differently... But for now i hope you'll find it useful the way it is. Stay sharp - lots more goodies to come.
                      Attached Files
                      Last edited by Th3_uN1Qu3; 01-05-2011, 12:23 PM.
                      Originally posted by PeteS in CA
                      Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
                      A working TV? How boring!

                      Comment

                      • Th3_uN1Qu3
                        Believe in
                        • Jul 2010
                        • 6031
                        • Romania

                        #12
                        Re: Do you want to learn how to build your own power supplies from scratch?

                        Updated table...
                        • Fixed an embarrassing calculation mistake in the wire calculator (sorry! everyone please use this version. all other equations have been verified good, i'm actually doing a 800W supply using this spreadsheet right now).
                        • Added wire diameter to area conversion. Next up is a AWG/SWG table.
                        • Applied color scheme. Blue are input parameters (ie what you want), yellow are calculation results.


                        Enjoy.
                        Attached Files
                        Last edited by Th3_uN1Qu3; 03-21-2011, 03:02 PM.
                        Originally posted by PeteS in CA
                        Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
                        A working TV? How boring!

                        Comment

                        • Th3_uN1Qu3
                          Believe in
                          • Jul 2010
                          • 6031
                          • Romania

                          #13
                          Re: Do you want to learn how to build your own power supplies from scratch?

                          Updated again.
                          • Organized into two pages
                          • Added a new color - light gray - for linked values (values that track each other).
                          Attached Files
                          Originally posted by PeteS in CA
                          Remember that by the time consequences of a short-sighted decision are experienced, the idiot who made the bad decision may have already been promoted or moved on to a better job at another company.
                          A working TV? How boring!

                          Comment

                          • ben7
                            Capaholic
                            • Jan 2011
                            • 4059
                            • USA

                            #14
                            Re: Do you want to learn how to build your own power supplies from scratch?

                            Originally posted by Th3_uN1Qu3
                            Updated again.
                            • Organized into two pages
                            • Added a new color - light gray - for linked values (values that track each other).
                            Do you have any updates on this?

                            I know I'll probably get yelled at for bringing up an OLD topic, but I'm still curious about this, and I don't want to end up making a whole bunch of threads on the same topic - better to keep it in one place.

                            -Ben
                            Muh-soggy-knee

                            Comment

                            • goontron
                              5000!
                              • Dec 2011
                              • 4108
                              • US

                              #15
                              Re: Do you want to learn how to build your own power supplies from scratch?

                              i already do! replacing the PSU section of tube radios.....
                              Things I've fixed: anything from semis to crappy Chinese $2 radios, and now an IoT Dildo....

                              "Dude, this is Wyoming, i hopped on and sent 'er. No fucking around." -- Me

                              Excuse me while i do something dangerous


                              You must have a sad, sad boring life if you hate on people harmlessly enjoying life with an animal costume.

                              Sometimes you need to break shit to fix it.... Thats why my lawnmower doesn't have a deadman switch or engine brake anymore

                              Follow the white rabbit.

                              Comment

                              • ben7
                                Capaholic
                                • Jan 2011
                                • 4059
                                • USA

                                #16
                                Re: Do you want to learn how to build your own power supplies from scratch?

                                Originally posted by goontron
                                i already do! replacing the PSU section of tube radios.....
                                That's easier than a switching power supply
                                Muh-soggy-knee

                                Comment

                                • goontron
                                  5000!
                                  • Dec 2011
                                  • 4108
                                  • US

                                  #17
                                  Re: Do you want to learn how to build your own power supplies from scratch?

                                  Originally posted by ben7
                                  That's easier than a switching power supply
                                  till you kill a tranny. then you need to trade an arm, leg, liver and kidney to get one!
                                  Things I've fixed: anything from semis to crappy Chinese $2 radios, and now an IoT Dildo....

                                  "Dude, this is Wyoming, i hopped on and sent 'er. No fucking around." -- Me

                                  Excuse me while i do something dangerous


                                  You must have a sad, sad boring life if you hate on people harmlessly enjoying life with an animal costume.

                                  Sometimes you need to break shit to fix it.... Thats why my lawnmower doesn't have a deadman switch or engine brake anymore

                                  Follow the white rabbit.

                                  Comment

                                  • CapSwapper
                                    Senior Member
                                    • Feb 2014
                                    • 69
                                    • USA

                                    #18
                                    Re: Do you want to learn how to build your own power supplies from scratch?

                                    not very cost effective. you can get a decent modern PSU for $20 to $30 after MIB

                                    Comment

                                    • ben7
                                      Capaholic
                                      • Jan 2011
                                      • 4059
                                      • USA

                                      #19
                                      Re: Do you want to learn how to build your own power supplies from scratch?

                                      Originally posted by CapSwapper
                                      not very cost effective. you can get a decent modern PSU for $20 to $30 after MIB


                                      Ugh I dunno how many times I've had to say this.

                                      The point is to LEARN how to design and build them, to gain more understanding of them, for practical purposes like repairing other power supplies, or making a custom one that requires certain dimensions or output voltages. Also, some people like to learn how to make them just for the fun of it.

                                      -Ben
                                      Muh-soggy-knee

                                      Comment

                                      • everell
                                        Badcaps Legend
                                        • Jan 2009
                                        • 1514
                                        • USA

                                        #20
                                        Re: Do you want to learn how to build your own power supplies from scratch?

                                        Originally posted by ben7

                                        .......some people like to learn how to make them just for the fun of it.

                                        -Ben
                                        Just for the fun of it?????

                                        I have been getting lots of lectures about that one. Something about not being economical....................
                                        Old proverb say.........If you shoot at nothing, you will hit nothing (George Henry 10-14-11)

                                        Comment

                                        Related Topics

                                        Collapse

                                        • Document Archive
                                          HP 14-am047tx + 1 YR Full Standard Extended Warranty + McAfee Scratch Card 1PC User (1 YR) Notebook Specification for Upgrade or Repair
                                          by Document Archive
                                          This specification for the HP 14-am047tx + 1 YR Full Standard Extended Warranty + McAfee Scratch Card 1PC User (1 YR) Notebook can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the 14-am047tx + 1 YR Full Standard Extended Warranty + McAfee Scratch Card 1PC User (1 YR) boardview and 14-am047tx + 1 YR Full Standard Extended Warranty + McAfee Scratch Card 1PC User (1 YR) schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon...
                                          09-06-2024, 08:30 AM
                                        • leotron
                                          [No stupid question] Can I build an atx psu from scratch?
                                          by leotron
                                          I have some good spare parts of electronics and deads PSUs from good brands,it is possible to buiild from scratch a psu ? I know it's sound stupid but I take a shot just for fun. Guessing with my little electronic expertise it could work only if you maintain certacin consumption, let's see a small mining rig that consume exactly 500w and no more no less, the problems start when that consumption starts waving around. Another thing I notice it's that the more powerful the psu is it's contains more "referees" to mantain the match in order if you understand wtf i'm saying.

                                          ...
                                          02-22-2022, 04:04 AM
                                        • iMic
                                          Vintage AT Power Supplies - Selecting Capacitors
                                          by iMic
                                          Hi,

                                          Back after a long hiatus with some old power supplies that need repairing. I've recently picked up a couple of 386SX systems, two 486DX systems, a SiliconGraphics Indy and an iMac G3 that either have verified leaking capacitors in their power supplies, or are likely to in the near future. For the sake of simplicity, instead of tackling all at once, I'm starting with the 386's and one of the 486's.


                                          The 386's power supplies are Seasonic SS4040A's, with caps that are visibly leaking, and 9 replacement caps per unit are required. Most appear to be from the Rubycon...
                                          02-19-2023, 06:45 PM
                                        • Dobrowol
                                          Dell Latitude 3520 help with bios build/repair
                                          by Dobrowol
                                          Hello. Ive got problem with Dell Latitude 3520. After power on, no display and fan goes crazy. Standard job, I exported a clean bios from update via pfs extract.



                                          Steps i done and results:

                                          I exported a clean bios from update file via pfs extract.

                                          1. Build clean bios with clean ME, PMC, PCH in flash image tool.
                                          Result: Dead

                                          2. Build clean bios with no changes in ME, new PMC, PCH
                                          Result: Dead

                                          3. Build old bios with clean ME, new PMC, PCH
                                          Result: The same



                                          ...
                                          09-22-2023, 02:43 AM
                                        • Document Archive
                                          ACER Revo M2-601 Revo Build i3-6100U Specification for Upgrade or Repair
                                          by Document Archive
                                          This specification for the ACER Revo M2-601 can be useful for upgrading or repairing a desktop PC that is not working. As a community we are working through our specifications to add valuable data like the Revo M2-601 boardview and Revo M2-601 schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification, datasheet, or download for ACER Revo...
                                          09-12-2024, 03:28 PM
                                        • Loading...
                                        • No more items.
                                        Working...