Tuesday, 17 June 2014

Building Your Own Bench Power Supply Part Deux

And I'm back!
DEMONSTRATION VIDEO

Bench power supply is finished!



ALSO, look at my previous blog to see my first part of this project.


The end result is a bench power supply with a 5v, 12v and variable output. The variable side goes from ~1.25 to 16.5v. It is based on the popular voltage regulator packages 7805, 7812, LM317. These are all linear regulators, which work well, but are not efficient. Both the 7805 and 7812 can supply 1 amp, and the 317 can supply 1.5 amps, but due to the nature of these things, amps out = amps in, which eats up a little more juice than you would usually like for current heavy projects, but again, this is for working on the bench, so it's more than enough for my needs.

This is the rough sketch I made to get things rolling. The spill looking red tint at the bottom is not wine, it's liquid that leaked out of grease gun which is full of red grease which dripped when it got super warm in my garage. Two differences between this and the final are that I never did find a transformer I liked, so It's still using a laptop PSU (I haven't put a fuse in either because of this), and also, rather than a 5k pot (I had a 5k, but it burned up while I was playing around), I used a 10k, which didn't give much resolution, and the top 2/3's of its range didn't impact output, so I put it in series with a 1k pot, which gave me a nice fine adjust - which I might encourage you to do even if you have the 5k. Here is the LM317 schematic lifted from the TI data sheet:

I also included 3300uF caps at the front end of each rail to help isolate each output. I also am planning to one day find a suitable transformer and install it, so the caps will clean up any ripple. The ideal transformer I would like to see go in this would be a 75VA with a 24V secondary. I even included a bridge rectifier on the board in anticipation of one day finding one! (Having it there with a DC supply going in won't hurt anything, but I am losing 1.4V across the diodes in the the rectifier.
Other additions that went on top were a little voltage meter. I originally bought a voltage/amp meter off of eBay but it got lost for a few months, and when it finally did show up, the amp range was out to lunch, so I bought one for a few bucks at a local new supplier - http://www.elelsu.com/, I also purchased some small heat sinks there for the TO-220 package voltage regulators as well as the project board for soldering it all together. The 3300uF caps, the bridge rectifier and the knobs for the pots came off of eBay. I also out of frustration and lack of patience used a 12v cooling fan, rather than beefy heat sinks and relying on convection to cool them (These things get ridiculous hot when you have a large change of voltage and you're pulling a lot of current).

Okay, let's put this thing together!

This is as far as my prototyping went. At this stage of the bread boarding, I wanted to make sure everything was stable. I originally dropped a 12v regulator in, then followed it with a 5v regulator behind it - This is a good idea because then the 5v wouldn't have as much of a step from the input voltage down to the 5 volts. This is also a bad idea because the 7812 I'm using is rated for one amp, and already running a fan, so if I wanted to use them both at the same time, I would be limited to a little less than 900mA between the 5v and 12v rails - On the final board, I dedicated a rail to each so they both have access to about a full amp.
The good news with the fan was that it seemed to fix any heat issues that occurred with the undersized heatsinks.



RIPPLE TEST! I also had a little power LED at this stage, which I removed on the final piece, as the always on voltage meter performed the same function. But yeah, great! I was using the multimeter to show me the output on the 5v rail, and the scope was showing the 12v and variable rails. (Scopes are darn handy even as multimeters!)




I started soldering it together onto this prototype board. I'm usually pretty aggressive about testing at every opportunity that I get - and it usually pays off. I ended up having to rework the LM317. The pin out of this regulator doesn't seem to work well with putting it on a board, and I mixed something up, so I'm glad I troubleshot and fixed the problem before I assembled the entire supply. The variable part of this was by far the more challenging part.

Board with soldering finished.

Tested and working!

This is the board when I was done with it trimmed down. Cutting the board was easily done with a steel rule and a carpenters knife. The top screw terminals are for the pots to control variable voltage, the three facing the right are the three different outputs, and the bottom screw terminal excepts the input voltage (not the bridge rectifier directly above it). I'll also mention that I did have to reposition a few thing, I DID NOT get this right the first try.



This is a side view. Notice the small resistor left of the bridge rectifier and in front of the capacitor? It was removed and jumped. I was doing what I do, and I put a heavy load on the supply to see what would happen and.................


This is what happened to it! The purpose of the resistor was to limit the current going in when first turned on - when you first power up something with capacitors, they act as a short, I figured I would put this on to limit the current going to the capacitors when I first flicked it on. It worked great with no load on, but when I tested the supply, all current had to go through this thing. Under my test, I put a 15 ohm ceramic resistor on. Even at 5VDC you end up with 333mA, which doesn't sound like a big deal, but because of these regulators, It pulls 333mA at the input side, in this case ~17 volts. Power = .333mA * 17V = 5.6 watts. This is a 1/4 watt resistor, and she burned. So yeah, not included in final revision. TEST TEST TEST!

So anyway...

Enclosures are expensive online! I tried to find something around the house and turned up nothing. I asked my wife to find something that was plastic and about "yey big" at dollarama. She found this, and at $2.50, I couldn't complain.





This is the enclosure with all the knobs and bits installed in it. This was all done using a drill and a carpenter's knife. The only downside was that I don't have a finger guard for the fan - and these will cut and hurt you if you stick your finger in! I'm sure it will happen eventually. If I come across a finger guard, I'll be sure to add it. I already owned the banana plug posts as I use them for home theatres (which is something I do on the side). I bought a pack of knobs to go on the potentiometers for another project. Power switch was also salvaged from old gear.


This is just me going crazy and driving a bunch of holes into one side to provide an intake for the air being extracted by the fan. Hopefully the position will draw air over the hot components, as well as the transformer if one ever goes in.






Here's a pretty view of everything before it all gets seated and connected in. Pretty fancy!












Everything installed. Everything fits nicely, dollarama has served me well!








Final finished product! It works great, I saved some money! Since I built it, I should also be able to fix it should something ever happen. It turned out to be a nice little project, and I worked pretty hard to make sure the cost was low (I avoided adding features just to keep it simple).
But yeah, if you make one, good luck! Hopefully I provided some guidance or at the very least, stopped you from making a few mistakes! Check out the YouTube video at the top for a demonstration.

The next blog will probably be about a shortwave radio project (just a brief post), but the next major project will be... well.... here is a clue:


No comments:

Post a Comment