Saturday, February 14, 2015

Component Testing and Box Wiring (Part 1)

Not long after I had the holes drilled in the enclosure for everything, I bolted everything down excitedly, wired up the power supply, plugged it in and... nothing. The LED would not light, and checks with a multimeter indicated that there was no DC power coming from the output terminals. After dissassembly of everything and using a different power cord with similar results, I opened up the power supply (brand was AGT, for 'Advanced German Technology', looks like a Meanwell clone). I didn't see anything obvious (busted capactitors, burned resistors, etc), so bolted it back together with no success. I will say that these switched power supplies are not simple for the non-electronics type, and I suspect troubleshooting would be a pain.

This was a little over a year from when I originally bought it, and sure enough, long past a return period (though it probably would have been more trouble than it was worse). I sucked it up and bought a new Mean Well branded supply off Ebay, and when it arrived, went straight to checking it with an old cord I had cut up for this purpose.

LED Lit! Success! A Working Power Supply!

My original plan was to reuse some of the D-Sub connectors and wiring that came with the machine, but I decided it was going to be a pain to get these rewired and I wanted to use shielded wiring for the motors to limit interference into the limit switch cables. I really liked the GX16 style connector (4-pin) that is available on many of the hobbyist CNC suppliers, but they often ran $4 to $6 per connector... to pricy for me. I found I could get 10 for a little over $10 on Ebay, so went ahead and order some up.

I decided to use five connectors on the control box, and five connectors on the machine. For each side they would be:
  • X Stepper Motor (using bipolar wiring, so only four wires needed)
  • Y Stepper Motor
  • Z Stepper Motor
  • Emergency Stop (this uses two wires, leaving two left over if I ever wanted to add spindle speed control)
  • Limit Switches (common power, one line for each axis)
The only fuses I was reusing in the control box were the main fuse and the spindle fuse, so the remaining fuse holes were good spots for additional connectors. To go along with these three locations I added two more nearby. Unfortunately, the fuse holder cutouts were too small, so I had to enlarge them (the GX16 connectors require a through hole for an M16 thread, or a hair bigger than 5/8". I removed everything from the control box to avoid chips in the electronics and drilled them out with a step bit, which work very well in thin metal like this. Since this is not a tool I use often, I picked up the bit at Harbor Freight for cheap.

Step Bit Used To Drill Connector Holes
Connector Holes Drilled
 With that, the box was cleaned back up to get rid of any chips or shavings that wouldn't agree with the electronics, and reassembly began.

First up, putting the wiring back in. I wired from the incoming outlet to the existing switch, then to the main fuse (I will try to find a good way to document the wiring if someone requests it). From here, power was split between the 36V power supply, the 5V power supply, the case fan, which runs on 120VAC, and the spindle fuse. The spindle power runs through the existing solid state relay, then over into the spindle outlet to go to the machine. Wire colors for the AC portions follow US wiring colors, with yellow or green as ground, white as neutral, and black as hot. Don't forget to ground everything.

The open fork connectors below go to the main power supply. The unconnected spade terminals are for the 5VDC supply, and the ring terminals go to the ground point, which I attached right near where the 5VDC supply goes.
AC Power Distribution Wiring In Place

Rechecking the Power Supply Again

Stepper Drives In Place


Next update I will cover the rest of the wiring.


Saturday, February 7, 2015

Enclosure and Power Supply For Spectralight Mill

With my new electronics in hand, I wanted to reuse the old enclosure for a few reasons. First, it was setup with proper plugs for the spindle, along with fuses and a fan in there already. It has graphics for 'spectraLIGHT' on the front. And lastly, turns out enclosures aren't particularly cheap, so best to reuse and save the cash.

I took out the old control board and the power supply, but kept the fuse holders and the solid state relay for the spindle. I then rough mapped out where I wanted the components: main power supply in the front corner, stepper drivers across the center, and the C10 breakout board at the back, positioned such that the port would attach right where the 'MACHINE' decal was, which got it close enough to center to have good wiring access.


Rough Layout of Enclosure Box


To get the DB25 (printer/parallel) port on the C10 board out the back, I had to increase the size of the existing cutout. A little Google searching led to these dimensions for a DB25 port from cabledepot.com:

DB25 Cutout Dimensions


I rigged this up on my mill and cut in the new port. This could easily be expanded with a Dremel tool or similar for those without a mill that has enough Z travel to fit the box.

Milling Enlarged DB25 Opening
After that was some CAD work to punch in new holes for the drives, power supply, and breakout board. I've attached the hole pattern in an image below in case someone wants to use this as a starting point. I stress this was based off rough measurements, and some adjustment was required, especially with the breakout board (had to slot the holes slightly to get it to fit, so please verify on your own. This fits the KL-4030 stepper drives pretty well (a little tight), such that the flats of the nut hit the sides so you do not need to get a wrench in there. All these holes were punched in on the mill as well.


Enclosure Hole Pattern


Link to the higher resolution .pdf: PDF of Bolt Pattern

The documentation on the C10 board from cnc4pc (see here) states that the board should always be powered up if the computer is, due to risk of interference causing unintended movement. Instead of having a separate power supply to worry about or running another cable from the PC, I wanted to run a small power supply off of the same power switch as the main, such that they both turned on at the same time. The C10 requires 5 VDC at 400 mA. I've had several Android phones over the years, so pulled out an old charger to see it fit the bill. Sure enough, most that I found give 5VDC at over 400 mA, so I busted one open to see if I could adopt it here.

Here's what I'm talking about. This is a different charger but I've lose the image of what the charger looked like originally. I suspect almost any cell phone charger will do, as long as it has enough output capacity. All the phones I've got have a USB output.

Phone Charger Similar To That Used For 5VDC Supply


To mount it, I grabbed a couple of Nylon spacers from Home Depot and tapped the ends for a 10-32 screw. I roughed up the other ends with some coarse sandpaper and then used JB Weld epoxy to attach them to the bottom of the board (I did a little research, didn't seem to be a standout solution for bonding Nylon. The JB Weld is working for me, but is probably pretty fragile, so I handled it with care. JB Weld is non conductive.). Not a lot of room there due to the components, so it didn't come out looking very fancy.

Spacers For 5V Power Supply


 
5VDC Power Supply Board With Spacers In Its Proposed Location

 I soldered on some wire to the two line power contacts with some quick contacts at the ends. On the charger I used, along with my others, the plug does not appear polarized, so I don't think you need to worry too much about figuring out which contact is hot and which is neutral.

5VDC Power Supply With Wires and Supports Attached


In the next post I'll talk about why it's important to try you equipment when you receive it.


Tuesday, February 3, 2015

Updates Coming

It's been quite awhile since I posted on here (a year and a half roughly). I've done quite a few things in the garage since then, but have yet to post anything up (pretty obvious). I have, however, been trying to take photos along the way, so I can try to backfill on some of this stuff. So hopefully I'll get a regular set of posts going in the next few days. Things complete that I plan to have a few posts about:
  • Finishing up my small Spectralight mill electronics
  • Cleaning and low-dollar refresh of my Lagun mill
  • New (bigger and badder) lathe
  • A few product reviews
Cheers,
Joel

Thursday, September 5, 2013

Unloading, Storage, and Placement of the New Mill

So digging back in my pictures, I realized I picked up this mill in March... long time ago. The original plan was to place it on a trailer, back it into the garage, and use an engine hoist to get it off. Long story short, the trailer wasn't strong enough, the mill was too tall to fit in the garage since it was now in the bed of my truck, and then I had to do this:

Cranking It Up The Driveway
My driveway is pretty steep, so I ended up having to place it on a skid made of 2 x 4s and winch it up with a come along. Oddly enough, this also happened to be a day with the very rare northern Alabama snow flurries. Super fun...

Once in the garage it sat for a long time since it was a pain to work on when on the ground and I didn't have anywhere to place it up high.

Storage spot. Notice the ATC sticking out on top.
 
Eventually, I got around to designing a small stand, and conned convinced some friends to help me weld it up. The stand was put together from 1.5" x 0.065 and 0.75" x 0.035 square tubing with a MDF top. Small, but sturdy enough. I used vibration isolating feet on the bottom, which ended up being a little softer (read: wobbly) than I had planned, even though they are rated to 300 lbs each. It was originally designed to be skinned with sheet metal, with doors in the front, a tray on the bottom for computer and coolant system, and a pull out keyboard tray. Since buying sheet metal would have tripled the cost of the project, it's open air for the time being. The stand:


Stand Skeleton


On the rare chance some has the same mill and needs some plans for a stand, drop me a line.

And after some fun with a rented engine hoist (bigger than the typical HF ones), it has finally come to rest at it's new home.

Final resting place.

Now on to cleanup and rewiring. A teaser:

Now on to the real fun...

Monday, September 2, 2013

A Long Absence and a New Machine

I must once again apologize for a long absence from this blog... between work and some other things going on, I haven't spent too much time working on any of my garage projects.

The one bit of news it that almost immediately after starting to purchase the parts for my Spectralight mill upgrade, I found the hobby mill of my dreams on Craigslist for a good price: a Light Machine Benchman MX (specifically a BXT-4021). For those that aren't familiar with the Benchman mills, they were the industrial line from Light Machines, and a very distant relative to the STEM style mills like my other machine. Cool features of the Benchman MX:
  • One piece composite (i.e. similar to epoxy granite) base/column
  • Preloaded ground ballscrews for all axes
  • Servo motor control for all axes
  • Recirculating ball bearing linear rails for all the axes 
  • 2 hp AC servo motor for spindle (big power for a small mill, ability to rigid tap)
  • Rapids of 200 ipm (a little faster than the Spectralights 12 ipm...)
  • Full enclosure
  • On my machine, the optional 7500 rpm spindle speed
  • And finally, a 20 position automatic tool changer
 The work envelope of the machine isn't too much bigger than the Spectralight, but everything is substantially bigger and beefier. Here's the machine today:

Benchman As It Stands Today


The kicker (and why the machine was cheap) is that the interface card for the computer was missing, along with any software. I did some research on this, and these cards, if you can find them (machine was from 1998), are in the thousands of dollars to replace. I found a much better alternative, a interface card combo from Mesa Electronics, that will control this thing in the end.

That's it for today. I've got some catching up on the progress here, so expect a few more posts in the coming days to get to where the project is currently.

Monday, February 11, 2013

First Parts Unboxed!

Alright, so the project is getting into full swing (or at least as full as I can find free time to work it, which isn't much). I'm trying to order the parts that I have confirmed I'll use, along with finishing up the mechanical design of a new anti-backlash saddle and designing a total of three electronics boards for the add-on features.

Now to the more exciting part. I've got the major electronics in a few days back. These include new stepper motors, drives, and a breakout board from Keling (now Automation Technologies), and a cheap switching power supply off Amazon (appears to be the same Chinese made power supply that everyone stocks).

I went with two new 185 in-oz 8 wire NEMA 23 steppers for the X and Y axis and a 270 in-oz 4 wire NEMA 23 stepper for the Z. From what limited info I've been able to find on the stock steppers, they appear to be in the range of 100 in-oz (bipolar). Sherline supplies 120 in-oz steppers (unipolars) with their factory kit, so I figured these guys should give me what I need and some room to spare. The Z-axis is always the one that drags due to lifting the weight of the motor and head, so the extra power here should help as well. The motors from Keling were very well priced, look good, and spin smoothly (far more smoothly by hand than the stock motors, which makes we wonder if the stock ones were less than 200 steps/rev). Can't wait to put them to use.



New Steppers
New steppers from Keling. These came very well packed.

Since the original electronics looks like they utilized the first integrated circuits ever created, I decided to upgrade, both to have something that I had some documentation (and know what motor specifications they could run), and to get some features such as microstepping and idle current reduction. The Keling KL-4030s got me all that for a good price (I originally was very interested in Keling's new digital drives, but alas, am on a budget). The drives have gotten good reviews (as has many of Keling's items) and look easy to wire up.


KL-4030 Driver
New Keling KL-4030, one each for the three axes.




Stock Stepper Driver
The not so modern motor controller they will be replacing...

The last item from Automation Technologies/Keling was the C10 breakout board, which actually comes from CNC4PC. Research indicates it's a cheap and effective solution for getting the parallel port signals to the drives, with inputs and outputs to spare. Exactly what I need. No pictures just yet; I'm waiting to unwrap the packing until I'm ready to use it. I should be able to get my home switches, E-stop, reed switch (enclosure open switch), and spindle control signal through this guy.

My intent is to use the stock cables to get from the control box to the mill, which use D-sub connectors at the box interface (one DB9, one DB15). These are only partially filled with pins, but I was pleasantly surprised to cut away some of teh cable insulation and find the missing wires cut off just past the connector. With some addition D-Sub pins, I'll be able to make use of all the wires (all of which I think I'll need). Unfortunently, the connectors on the box are part of the main board I'm replacing, so I'll need to get new ones before I can use any of the new toys.

The final item to get up and running will be a 5V power supply for the breakout board. If you buy a kit from Keling, they give you a wall wart power supply to use. I wanted a solution tied to the main power supply for two reasons: one, to prevent having yet another cord and another connector to hook up, and two, to ensure the BOB is always powered when the stepper drives have power (there was a word of caution in the BOB manual about how an unpowered board could cause erroneous signals to get to the drives and cause unwanted behavior). I'm trying to finish up a simple power supply board to use (for an upcoming post).

Last item I got was a 36V/9.7A power supply from a seller off Amazon. Looks the same as the Keling one, only cheaper. Should provide all the power I need for both the steppers (3A max. per phase, but won't pull the full amount to my understanding), the breakout board (500 mA), and whatever other small add-ons I've got. Even though the mill currently has a nice unregulated power supply, it appears to be putting out something in the range of 40-48 volts, above what the KL-4030 drives are good for. While I considered upgrading the drives to something that could handle the voltage, it was actually cheaper to get this new power supply, and it'll let me save the transformer and rectifier for another project down the road.

Power Supply
Cheapo power supply.


Here's the rundown on the purchases thus far (and the hit to the budget).

Budget Update


Next up is to finish the electrical design so that parts can get ordered and the new motors can be put into action.

Monday, February 4, 2013

Upgrade for the Old Spectralight 0200 CNC Mill

I must apologize, it's been a long time for a real first post. Since the introduction I have moved and added several machines to the garage, but this will be for a later post.

The purpose of this post is to start a series on the upgrade of my small CNC mill. Long ago I purchased a Light Machines Spectralight 0200 Mill, partially on impulse to get back into some metalworking. The 0200 uses a Sherline mill as the base machine, and adds in a nice dose of 80's tech in a complete package that was aimed at schools and the like for STEM education. At the time, it probably worked great.

Spectralight 0200


The specs out of the factory are, by today's standards, well... not great. While max feed rates are listed at 12 ipm, I'm lucky to get that with the steppers on my machine (rapids are out of the question). Accuracy is lacking, both in the worn out leadscrew nuts and stepper system, which seems to have good and bad days when it comes to skipping steps (oh, did I mention there is no microstepping and the motors sounds like they're grinding rocks at the lower RPMs that most cutting is done at).

There's been some minor upgrades along the way, but it's time to do a major overhaul and get this thing ready for some more serious CNC duty. So here's the plan: with a budget goal of $550, working to accomplish the following.
  • Upgrade stepper controls (add microstepping, upgrade from 80's tech)
  • Upgrade to newer steppers (more powerful and with known specs)
  • Add home switches to all three axes
  • Add anti-backlash nuts for all axes (similar to A2Z CNC's kit)
  • Replace the enclosure shield
  • Add enclosed motor mounts
  • General repair (repaint, replace E-stop switch)
And, if money holds up, some optional items:
  • Variable speed control (for control from LinuxCNC)
  • Tachometer (with readout on machine)
  • LED lighting within enclosure
  • Mist coolant
Stay tuned.