Monday, February 18, 2013

Power Supply Pt. 4: Putting it all together

September-October 2012:

Since dewinding the transformer took me a bit to get finished, all my other components had shown up and I found a huge heatsink to mount everything on. So I started moving things around on the backplane and figuring out how I wanted to lay things out:

DSCF1168



In case you are wondering, the black box is an inrush current limiter. I'm told it uses a resistor to slowly bring the transformer core up to saturation and prevent downstream voltage spikes. Another ebay find for $20 + SH, and cheap insurance if it does what it is advertised to.

I mounted the rectifiers to the heatsink using self-tapping screws which walked and that was (in retrospect) a mistake without doing some proper layout and pre-drilling first.

DSCF1172



Ugly though it may be, it will still work so I moved on to soldering connectors onto the secondaries of the transformer:

DSCF1174



Since I knew that I was going to try and make this look pretty, I took the old nema box off and had it blasted and powder coated, while it was off I used a judicious amount of carb cleaner to get all the oxidized coolant and metal chips off the side of the mill:

DSCF1175



Powdercoater did the outside of the nema box but not the inside (facepalm!):

DSCF1176



I guess its ok, nobody will see much of it once electronics are mounted anyways right? Grumble grumble…

Now at least I can mount the backplane to the inside of the box, when I discover that my capacitors are too tall to mount up straight out the backplane without touching the inside of the lid and shorting out. So for now they get to stand up inside the cabinet:

DSCF1178



With the filter caps disconnected from the rectifiers and my new OTC portable scope hooked to the rectifier output, I can see the peaks and valleys where the AC voltage is rectified into DC:

DSCF1179



With filter caps connected and no load, I have slightly lower voltage than I anticipated but very smooth power:

DSCF1183



I didn't take any photos, but did hook up a mechanically disconnected servo just to hear it take off and spin at speed. And it was good to hear!

Power Supply Pt. 3: Assembly!

September 2012:

Ok so after going on an ebay buying spree my transformer and glass tape arrived and I had some ideas about dewinding the transformer to get my required ~57 VAC. The more complex and time consuming idea was to dewind and re-space the secondaries, but after consulting a couple of friends who are or are becoming EE's I decided to just remove enough turns to get my desired voltage.

I was excited to get things torn apart and didn't take my first picture until I already started removing the original glass tape and a few windings:

DSCF1147

DSCF1158



It should go without saying I did so with the power OFF but after removing a few turns I would hook power and my DMM up so that I could monitor change in voltage. During this time I removed no more of the original glass tape or insulator than absolutely necessary. Once I had gotten between 57 and 58 volts AC I cut my secondary output wires short, sanded the ends clean,, and promptly discovered as I was all ready to start re-insulating my transformer that my roll of 3M 27 Glass tape was too wide to fit through the center of my toroid. Crap!

DSCF1160



So, noting how large the cardboard center of the glass tape roll was, I used a small impact driver to wrap the tape around a small bolt instead. Success! (forgive the mess)

DSCF1162



Now I was able to start re-wrapping, careful to keep the loose wires tight and the coils tight as well. I started from where the original tape was still tight and wound near the most complex part (where the most wires meet up near the primary entrance) first, then moved towards the other side of the disturbed sections of transformer:

DSCF1163

DSCF1164



I then re-soldered on my secondary stranded wires and heatshrinked them, before re-wrapping the connections with insulator and glass taping over that too:

DSCF1165



Completed Transformer:

DSCF1166



Power Supply Pt. 2: Buying stuff!

August-2012 to near-present day and beyond…

In my last posting I reviewed some of the math involved to get our power supply components. 1500VA @ 58 VDC for the transformer, at least 26,666 uF for the capacitor bank, and 6 bridge rectifiers capable of handling the output from the transformer.

I can't stress enough that if you want to just go out and buy these things, there are a few different manufacturers making questionable grades of products, and few if any descent, objective and comparative reviews. I may write an article in the future on confirmation bias and compulsive forum posters, but it should go without saying that there are very few people who aren't in this professionally that will buy more than one version of essentially the same piece of hardware and the hardware to test it in order to review it for free for a limited audience. I am no different and just as cheap.

I originally decided I wanted to wind my own, and after deciding that was too much work, I settled on the idea of buying an Antek AN-15458, a 1500 VA @ 58 VAC toroid, with two 12v additional secondaries and split primaries allowing the use of 120 or 240V input voltage. That plan went away when I found a new Antek AN-15468 on eBay for less than half the cost of a new one, and bought it and some glass tape with the intentions of dewinding it until I got my intended voltage.

DSCF1147 About this same time I looked all over eBay to find some decently priced DC capacitors that would make a sufficient cap bank for my CNC. After poring over what must have been thousands of listings trying to find the best deal, I stumbled upon a set of 6 NOS, 200V, 56000 (!) uF electrolytic caps with mounting brackets for $5.75 each plus shipping, on an auction that showed them listed incorrectly as 5600 uF, and made a Buy-It-Now offer of $4.50 ea, and took the whole lot home for only $27 + SH! By comparison caps of similar size and voltage were looking to cost me in the range of $40-70 + SH/ea!

With the extra change rattling around my pockets I got a little cocky and bought a lot of a dozen 50A 600V bridge rectifiers for under $30. I figured it would be good to have a couple extras on the shelf if I needed them. I don't have a ton of semiconductor experience but my considerations for purchase required them to be US or Japanese made with a metal casing for better thermal conduction to a heatsink. I'm not sure what the rate of failure is (and don't care to find out myself), but beware that eBay is absolutely flooded with cheap rectifiers, it was easiest for me to identify them by the rough castings of the metal cases and sorting the location to only show items in North America. There are still American sellers of the poorly made imports but sorting by location reduced their numbers greatly.

Next up, a power supply build!

Sunday, February 17, 2013

Power Supply Pt. 1: Planning stages

This planning/reading/thinking about buying stage took place between April and August 2012 So I'll start this entry by saying that this mill didn't have a power supply or any servo drives when I brought it home. I'll assume that most of you reading this who get a mill with intentions of retrofittting it won't have to go thru this sort of headache since you'll already have most of the power supply and drive components.

There are some excellent bits of info out there most notably a power supply basics paper on www.geckodrive.com. The long and short of it is that you need a significant amount of power to sling around a several hundred pound table + a heavy work holding fixture + a potentially heavy part in 2-3 axis + a spindle depth axis and (eventually) I hope to add a rotary axis too. For the sake of future expansion and the expensive heartbreak that comes from watching undersized components fail to perform or let the smoke out, I decided I want a good amount of overkill in the size of my power supply.

Many CNC machines use an "unregulated" power supply which basically means that its output can fluctuate based on the load placed on its output or the voltage fed to its input. For the size demanded of our power supply in voltage and kVA, a regulated supply would cost at least $500 and probably more, without much additional benefit since the drives I expect to use are capable of running over a wide range of voltages.

*if* and this is a big IF, I had a lot of money to throw at this machine I would probably have invested in a turn-key solution to these problems from a company like Kollmorgen, who can set you up with a power supply, drivers and motors all at once and reputation that it will all work once installed. I hope that by posting some of my concerns and how I came to a workable solution that this can be of help to other people chasing the same problems.

The first concern is going to be voltage. Since I originally planned on using Gecko servo drives I check their spec sheet and see that they top out at 80VDC with some (but not much) gimme space around that voltage. I'm told that the original servos on the Lagun operate near the same voltage so I want to use the maximum possible voltage to get the best reaction time and torque out of my servo motors, without exceeding the maximum of either the servo or drive.

Since I am going with a transformer-fed supply, my first concern is stepping down from a ~220VAC mains voltage down to 80VDC, but since there is going to be a transition from AC to DC, the desired AC voltage needs to be less than the DC voltage desired by a factor of 1.4, I.E. AC volts * 1.4 = DC volts because of how AC voltage is measured versus what we need for rectified DC volts. So if we need 80 VDC then we need to divide 80 by 1.4 to get approximately 57 volts.

Next question is going to be how big it needs to be, expressed in VA or kVA (kilo-Volt-Ampere), in a DC circuit for our example its basically the same as wattage (volts * amps). For this I read a few different papers about sizing power supplies and a lot of build logs but ultimately decided that I needed a 1500 VA or 1.5 kVA transformer to deliver the power that I expected to need and leave some room for expansion in the future.

Determining necessary VA seems harder than it needs to be because so many items are rated in "maximum capacity" and building a power supply large enough to handle the max capacity of 5 axis worth of Gecko G320 drives would be ludicrously expensive - it would have to be capable of delivering 100 Amps DC, requiring a mains input of ~40 Amps @ 220VAC for just the motion, never mind the spindle, coolant pump, lights, brake, logic step-down transformer or any other powered accessories. Nevermind the fact that such a transformer that can deliver 100% duty cycle would be as big or bigger than a decently sized welder, it would also cost a lot of money to buy, ship and consume a lot of power once plugged in!

Fortunately its unlikely that we'll be running all 5 (planning for the future) axis at full draw at the same time - the maximum draw will come from a rapid change in direction at speed and it would be unwise and unlikely to be accelerating all axis at maximum speed with maximum load at the exact same time.

With a linear unregulated supply like we're going to build around a toroidal transformer, we can briefly overload the transformer for a few seconds with no ill effects (from Antek's data sheet "In most of the cases, this transformer can be output 20% more power from its rating at 60Hz power source without any problem." In addition to this, when a servo decelerates it feeds some energy back into the capacitor bank that can be re-used, provided it doesn't decelerate so rapidly that it back feeds more power than the drives or capacitor bank can handle.

While you can calculate out the necessary wattage needs for your mill, and the power supply and servo vs. stepper papers on Gecko's site show you how to calculate that, I considered the calculation I drew from that as well as looking at a number of other similarly sized mill build logs on CNCzone and what was available at reasonable prices thru a few online distributors, Antek being a very popular and well recommended one. I decided that I wanted to buy an Antek AN-15458, rated 1500 VA @ 58 volts.

Next I needed to worry about rectifying all that current from AC into DC, and had been advised by a number of people that I should double up bridge rectifiers for redundancy and power handling on my servo voltage supply, so I knew I was going to need 4 for the 2x58V secondaries, plus two more for each of the 12 volt secondaries.

Last I was going to need some capacitors, and we calculate the minimum value by the formula (80,000 * I) / V = C, where I is amps, V is voltage and C is capacitance in uF. (80,000*25)/75 = ~26,666 uF, but more capacitance on your filter isn't necessarily a bad thing (within reason of course).

I should also mention that you should probably have some sort of plan to mount all this stuff, cords to get power to it, a switch to turn it on and off and a box to put it in too. Until next time…