Introduction: Use a Computer Power Supply for Desktop Electronic Projects
Building electronics with Arduinos, motors and other gadgets, I came up against a common problem: powering the circuits with a consistent voltage and adequate current. Like many people, I realized that a computer power supply can be a perfect solution, albeit with some modifications. It provides regulated 3.3V, 5V and 12V power at a current level high enough to satisfy almost any project requirement.
Most of the examples I found online did not fit my requirements, so I decided to modify my own. The requirements I set out were:
- ability to switch 24 pin ATX connector for other projects
- variety of connectors
- ample power
Bill of Materials
1x 300W power supply with a rear fan - $30 - Newegg
1x Cytron ATX Power supply breakout board - $9 - Robotshop
1x Power distribution block - $2 - Adafruit
5x 2.1mm DC barrel jack connectors - $5 - Various
5x 5mmx20mm fuse holders - $5 - Various
4x M3 brass standoffs
5x 5mmx20mm fuses (assorted of 5A, 3A, 1A) - $10 - Various
5x 5mm screw terminal pairs - $2 - Various
Assorted drill bits
Step drill with 3/16", 3/8" and 1/2" sizes
The core component that makes this project easy is the ATX breakout board. It takes a 24 pin ATX power cable and splits the components out to their different voltages, while also providing indicator lights, an ON/OFF switch, and room for screw terminals.
Be sure to properly research the power supply: you'll need to select one with a full 24 pin ATX power cable, rear fan instead of the top and enough connectors for your project. If you decide to copy my barrel jack configuration, you'll be using 1 4 pin Molex and 1 SATA cable.
Please remember that a computer PSU provides a dangerous amount of power and has a warranty sticker on it. Since this is a hacking contest and website, I'm sure this won't deter many people. Just be smart.
Step 1: Planning
Since I'm an engineer, I did a lot of planning before actually drilling any holes. This included loading as many parts as possible into a 3D CAD application. Not only would this let me lay out the parts, but I could print a template for drilling each hole in the shell. This step becomes more important as as each project becomes more complicated.
By the end of my design stint, I confirmed that my particular power supply unit would fit 5x barrel jacks, a power distribution block, the ATX board and 5 fuses. The barrel jacks would have 2 with 12V, 2 with 5V and 1 with 3.3V.
If you plan on using similar components in your project, here are some notable dimensions:
3/8" - 2.1 mm DC panel jack
1/2" - 5mm fuse holder chassis jack
1/8" - M3 standoff holes
3/16" - M4 holes for power distribution block
Step 2: Open and Cut the Power Supply
Use the screwdriver to open the shell of the power supply and make sure your planned connector layout will work with the internal setup of the PSU. This means confirming the fuses on the side don't reach the heatsinks and the top connectors don't meet the capacitors and bottom shell.
Once you're satisfied with the layout, crack out the drill and have at it. I suggest printing the template and using a center punch to dent the sheet metal enough for the drill to bite. My step drill started at 3/16" so I was able to use it for the fuses and barrel jacks. Despite the shifting of the paper I used, the holes ended up being spaced properly.
As a result of the thin sheet metal, you'll likely have to deburr the underside of the holes with a file or Dremel tool. Once that's done, you can install the jacks and fuses in the holes you've drilled. Do the same for the ATX breakout board holes and install the standoffs at the same time.
Step 3: Make the Wired Connections
Start the electrical connections by cutting the Molex and SATA connectors off the cables you'll need. For my setup here, you'll need to cut 1x peripheral cable and 1x SATA cable. Slide the cables through the shell so you can access them directly from the PCB at the bottom.
The wires exiting the PCB are as follows:
orange - 3.3V
red - 5V
yellow - 12V
black - common ground
To make the connections work, the positive wires from the PCB go to the fuse block, then to the barrel jack. The associated ground wire can go directly from the PCB to the barrel jack. By cutting the wires to the correct length, you should be able to tuck them all in the available space.
After soldering the connections in place, assemble the power supply back together for testing.
Step 4: Test It Out
After reassembling the shell, add the desired fuses and break out the voltmeter to test the connections. I'm testing the ATX breakout board power in the photos, but be sure to do the same for the barrel jacks.
It's worth noting that in its current configuration, the power distribution block has no power of its own. That way it can distribute power at whatever voltage is required.
With the breakout board's screw terminals, it's easy to hook a breadboard up to all of the different voltages and power whatever project you have in mind.