14
http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/ Food Living Outside Play Technology Workshop Make a CNC mill with a laser cutter by joebell on April 5, 2014 Table of Contents Make a CNC mill with a laser cutter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intro: Make a CNC mill with a laser cutter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Step 1: Setting expectations, and words of caution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Step 2: Buy parts and find tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Step 3: Laser cut the custom parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Step 4: Assemble the Z-axis and spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Step 5: Assemble the X-axis carriage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Step 6: Assemble the Y-axis and bed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Step 7: Assemble the frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Step 8: Wire it up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Step 9: Tuning, tweaking, and milling tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Step 10: Software you may find useful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Make a CNC Mill With a Laser Cutter

Embed Size (px)

DESCRIPTION

Make a CNC Mill With a Laser Cutter

Citation preview

Page 1: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Food      Living       Outside        Play        Technology       Workshop

Make a CNC mill with a laser cutterby joebell on April 5, 2014

Table of Contents

Make a CNC mill with a laser cutter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro:   Make a CNC mill with a laser cutter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1:   Setting expectations, and words of caution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2:   Buy parts and find tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 3:   Laser cut the custom parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4:   Assemble the Z-axis and spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 5:   Assemble the X-axis carriage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 6:   Assemble the Y-axis and bed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 7:   Assemble the frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 8:   Wire it up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Step 9:   Tuning, tweaking, and milling tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Step 10:   Software you may find useful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Page 2: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Author:joebell    belllab.orgMD-PhD student, neuroscientist, cyclist, robot-lover.

Intro:  Make a CNC mill with a laser cutter

So, you have a CNC laser cutter but you want a CNC mill? Problem solved.

This project is a small CNC mill that can be assembled from store-bought and laser-cut parts for about $800 without machine tools. (If you have access to a shop with achop saw and a drill press that'll be helpful, but you can get by with a hacksaw and some wrenches.) As pictured it has about a 4" x 6" x 1.5" working volume, but it caneasily be expanded and modified.

The killer app for this is making custom printed circuit boards. But it can also make plastic and wood machine parts (including all its own parts), mill custom aluminuminstrument panels, create stencils, and make artistic etchings for print-making.

I've included both Adobe Illustrator and Autocad DXF files for the custom parts, as well as an Arduino sketch for controlling the brushless motor.

The Steps:

(1) Setting expectations, and words of caution

(2) Buy parts and find tools

(3) Laser cut the custom parts

(4) Assemble the Z-axis and spindle

(5) Assemble the X-axis carriage

(6) Assemble the Y-axis and bed

(7) Assemble the frame

(8) Wire it up

(9) Tuning, tweaking, and milling tips

(10) Software you may find useful

Step 1: Setting expectations, and words of cautionPrior art:

openMill is really cool, but it's not the first or the best table-top mill out there. We're huge fans of the MTM projects at MIT (particularly the work of Jonathan Ward, IlanMoyer, and Nadya Peek), and Othermill, which were great sources of inspiration and ideas, many of which we shamelessly duplicated. The Shapeoko is another greatexample, and there are tons of other people doing neat DIY CNC projects, each with their own strengths and weaknesses.

Expectations:We focused on making openMill easy to source parts for, build, and modify - even at the expense of design elegance or performance. You'll almost certainly see parts ofthis design you want to change - that's the point! We've tried to make it easy for you to make the changes you want.

How well will openMill perform? It depends on how well you build it and how well you use it. If it's well built, lubricated, and aligned and you keep the materials feeds lowyou should be able to get precision in the .001" range. But if you don't make sure the frame and rails are square and try to mill hard materials too fast then you'll getbacklash and chatter.

More generally, even though it may only take you a few hours to assemble the mill, this project isn't really plug and play. Machining is hard, so expect a learning curvebefore you go from functioning mill to quickly making useful parts. You'll probably break some bits by trying to run bad G-Code. You may not get the axes well aligned on

Page 3: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

your first try. openMill can't stop you from doing things wrong (including things that will destroy the mill). But the fact that the parts are all cheap makes this a fun way tolearn and experiment.

Budget:

We've also worked hard to keep the costs low and the design robust, so you can make an openMill for about $800. But you should budget some extra money forduplicate parts in case you make a mistake or break something. And once it's working you'll find that you want to buy a few more endmills and some raw material toexperiment with. We've tried to make it easy to upgrade. For instance, if you want to add a fancy lead-screw and wear-compensating nut (and boost the project cost byabout $200), the parts already include mounting holes for them.

Safety:openMill is a high-speed super-sharp rotary cutting tool that moves robotically by itself without regard to the presence of valuable objects (read: fingers) in its path. It caneasily put a hole all the way through your iPhone and the hand holding it, throw a metal shaving (or broken bit) clear through your eye, or set material on fire with friction.It also doesn't have shields or safety interlocks. So respect the potential for injury and danger, don't let it run unattended, wear safety glasses, and keep your hands awayfrom it while the spindle is on. Seek adult supervision if you're under, say, 40.

Step 2: Buy parts and find tools

I sourced the parts from:

McMaster-Carr (T-slot framing, acrylic, linear shafts, bearings, fasteners)SDP-SI (Rotary shaft, timing belt pulleys, rigid coupler)Inventables (Helical couplers, stepper motors, Arduino, GRBL shield)Hobby king (Brushless motor and controller)Digikey (Power supplies)

MSC Direct (Endmills and drill bits)

A full parts list is attached as a CSV file.

You can cut the laser-cut parts yourself, or send them off to an online service. I've had good experiences with http://www.pololu.com

Tools you'll need:

Chop saw for aluminum framing (or hack saw and some elbow grease)Drill press or vertical mill for boring out the rotary shaft (optional, but helpful)Bench vise for press-fitting bushings (But you can get by with a 1/4-20 bolt and some wrenches)Imperial and metric hex wrench setsPhilips screw driver7/32 crescent wrenchSoldering iron, wire clippersMetric ruler

Page 4: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

File Downloads

partsList.csv.zip (2 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'partsList.csv.zip']

Step 3: Laser cut the custom parts

Now you'll need to fabricate the custom parts from 1/4" (6 mm) acrylic. Acrylic is a fantastic material because it's cheap, it laser cuts great, and is very rigid. Most of theholes in the custom parts are clearance holes, so it doesn't really matter if they come out a little big or a little small. But many of the bushings are press-fit, so these holesneed to be the right size. This is tricky, because if your laser spot is bigger, out of focus, or just very hot you'll get a slightly larger hole. I put the press-fit holes on aseparate layer in each file so you can adjust their size (after cutting test-holes) until you get a nice firm press-fit. (Make sure the hole centers stay in the same place!) Ifyou're sending the files off, error on the size of holes that are too small. It's much easier to open them up with some sandpaper than to make them smaller. (However,lining them with epoxy will work for this in a pinch.) You'll notice that the top side of the cut hole is usually a little larger than the bottom side. This can act as a wedge tohelp you seat your press fit parts.

All of the 1/4" thick parts can be cut from two 12"x24" sheets of acrylic. White acrylic is easy to get and looks great, but you could use clear or any other color for acustom look. There are also a small number of 1/8" thick parts (These are the captive teflon nut holders, in the layer "Thin"). These will all fit easily on a 6"x6" sheet.

If you want to try making your parts out of a different material (MDF, aluminum, delrin) then go for it. But acrylic works pretty well...

File Downloads

openMill Parts.dxf.ai.zip (109 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'openMill Parts.dxf.ai.zip']

Page 5: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

openMill Parts.dxf.zip (53 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'openMill Parts.dxf.zip']

Step 4: Assemble the Z-axis and spindleNow you'll actually start assembling! We'll start with the Z-axis.

(1) Use 4 flanged bushings and 2 1-inch brass sleeves to join the top and bottom plate of the Z-axis. Use a bench vise to press the flanged bushing into the sleeves toclamp the acrylic in place. (This is a very firm press, but is necessary to keep the joints from rattling apart due to milling vibration.) If you don't have a vise you can makeone using some washers, a 1/4-20 bolt, a 1/4-20 nut, and some wrenches. Don't over-press or you'll crack the acrylic. Once the bushings and sleeves are mounted to theplates, make sure that a 3/8" shaft will slide smoothly through each assembly. If not your bushings are probably misaligned. A little more pressing will straighten them out.If you don't get smooth sliding motion your Z-axis won't travel well, so fiddle with this until you get it right.

Pro Tip: If you've got a press-fit that won't quite go in, cool the inside part on ice to shrink it.

(2) Now add the spindle sleeve. This is clamped with a flanged bushing in the top plate, but extends through the bottom plate. Again, use a bench vise to seat the bushinginto the sleeve.

(3) Mount the captive teflon nut assembly.

(4) Add the 1" stand-offs (and the 4-40 screws that hold them in place).

(5) Drill out the rotary shaft. This is optional but helpful - if you drill out the shaft you'll be able to choke up farther on your endmills and drill bits, which will reduce flex andvibration. But to do it you'll need a drill press and a vise to hold the shaft. Use a #29 bit and plenty of cutting fluid. Starting the hole with a center drill is also quite helpful.

(6) Add the ball bearings, 1/4" rotary shaft, thrust washers, rigid shaft coupler, and timing belt pulley. When you tighten the timing belt pulley onto the shaft, press downon the pulley to create preload on the shaft. You should have enough preload that the shaft can't slide up and down through the bearings, but it should still spin freely.

(7) Mount the motor to the lower plate using M3 screws, but don't tighten them down all the way. Then add the 2nd timing belt pulley and belt. Now you can tension thebelt by pulling the motor away from the spindle shaft and tightening down the M3 screws. The belt doesn't need to be tight - just snug. You should now be able to spin thespindle shaft by turning the motor. If you feel resistance ease up on the shaft preload or belt tension.

Page 6: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Page 7: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Step 5: Assemble the X-axis carriage

This X carraige holds the Z-axis assembly and allows it to move up and down, and also slides along the X-axis rails.

(1) Start by press fitting flanged bushings into the rail holes, and clamp them by press fitting them into 1/2" brass bushings. Again, a 1/4-20 bolt can function as a vise topress fit these in a pinch.

(2) Mount the 20 mm right angle brackets to the side plates (with M5 screws and locknuts), and one NEMA17 stepper motor (with helical coupler) to the top plate (with M3screws). Also, add the captive teflon nut assembly to the side plates (4-40 screws and nuts). You only really need one captive teflon nut. But if you're clever you canprobably figure out how to preload two of them to reduce backlash.

(3) Mount the 4" rails and the Z-axis parts that go on them. Don't forget the thrust bearing and shaft collars!

(4) Use M5 screws and locknuts to screw the side and top-plates together. But before you tighten them down, slide 3/8" shafts through the X-axis bearings. This willensure that you don't tighten down the assembly in a way that's misaligned. If the bearings on each side aren't lined up, the carriage won't slide smoothly. You may needto un-tighten and re-tighten the screws holding the carriage together until you get smooth sliding from both rails. Also make sure that the Z assembly will slide smoothlyalong the vertical rails. This is critical to getting smooth motion - the motors will be able to push a poorly aligned carriage along the rail, but it will stick and slip and causebacklash, rather than sliding smoothly.

Page 8: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Step 6: Assemble the Y-axis and bed

This part is easy, but again, don't tighten everything down until the rails are placed in the bushings in order to ensure alignment.

(1) Press fit the flanged bushings into the 1/2" sleeves on the bed face plates.

(2) Mount the teflon captive nuts to the bed face plates.

(3) Screw each bed face-plate into the 3" stand-offs using 4-40 screws.

(4) Thread 3/8" rods through the face plates and tighten everything down.

(5) The mill bed is made of two layers of 1/4" acrylic. The bottom layer has small holes that are designed to be tapped for 8-32 threads. These are super-useful forclamping to the bed, so tap these holes. (This is a little bit of a project with a hand tap - you'll be sore afterwards.) Once the holes are tapped, fit the bed over the pegs inthe top of the face plates, and secure it with acrylic cement or epoxy. The top layer is a waste board, and has 8-32 clearance holes so 8-32 screws can reach the tappedholes in the bed.

Step 7: Assemble the frame

The aluminum T-slot framing is a little expensive, but it's super easy to modify and re-use, and it's also quite rigid when assembled correctly.

(1) First, cut the 4-foot lengths of framing to size. You'll want pieces that are: [piece lengths]. A chop saw works great for this, but you can do the same job by hand with ahack saw.

(2) Now use 20 mm spacers (with M3 screws) to assemble the rail mounts, and mount them to the cut T-slot framing (with M5 screws). (This turns out to be a lot easier todo before the frame is assembled than after.) You don't need to tighten the screws down - you'll want to be able to slide the mounts around to align them. Also mount thefoot plates and rubber feet.

(3) Now assemble the framing using end-feed fasteners and corner brackets. However, as you build it, you'll want to mount the rails, shaft collars, and carriageassemblies.

(4) Once everything is basically put together you'll want to ensure that the X- and Y- assemblies slide smoothly on the rails, and are perpendicular to each other. If not,loosen up the rail mounts and nudge them a little before retightening them. This is a critical stage - your mill will only be as good as the smoothness of the travel and theperpendicularity of the rails. Also make sure that the Z-rails are pointed up, rather than canted forwards or backwards.

Page 9: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

(5) Once everything is sliding smooth and straight, add the threaded rails and couple them to the motors using helical couplers.

(6) Use standoffs to mount your Arduino to the mounting board, and end-feed fasteners to mount it to a rail.

Page 10: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

Step 8: Wire it up

Now it's time to wire things up! Pop the GRBL shield into the Arduino, then:

(1) Wire motors to the GRBL shield. If your motors don't have connectors on them, you can just take them straight to the screw headers. If they already have a Mate-N-Lok connector (or similar) on them it's worth the time to make an adaptor. (Mate-N-Lok to bare wire.) Check the GRBL shield documentation to make sure you wire theleads correctly.

(2) Wire a power adaptor to the GRBL shield. Again, it's worthwhile to make an adaptor so you can easily unplug power from the shield. I used a 2.1 mm barrelconnector.

(3) Connect the brushless motor to its Electronic Speed Controller (ESC) using the 3 press-plugs. (Don't worry about getting the lead mapping right - if the motor spinsthe wrong direction when we eventually power it up you'll just need to swap two of these plugs.)

(4) Program the 2nd Arduino to control the ESC using the provided autoSpindleDriver.ino sketch. This sketch sends PWM signals to initialize the ESC (which will beep),and then slowly increases the throttle to speed up the motor. You can set both the rate and top speed by changing variables in the sketch. Don't connect the Arduino toyour computer (eg. for programming) and the ESC at the same time. The ESC may overdraw current from your USB port and hurt your computer or theArduino. Once the Arduino is programmed, disconnect it from your computer, and connect it to the ESC. On my ESC, the black wire goes to "Ground", the red wire to theArduino's "Vin," and the white wire to a PWM pin, pin 10. The Arduino will draw power from the ESC once the ESC is powered.

(5) Fire up the ESC by plugging in the power supply. You should hear several beeps from the motor, and then it will start spinning up. If your motor starts, then suddenlystops it's probably because you ran it too fast and drew too much current for the ESC or power supply. Re-program the Arduino to drive it at a slower speed and try again.To stop the spindle, unplug the ESC from its power supply. If you notice the spindle spinning the wrong direction, turn everything off, swap two of the leads from the ESCto the motor, then try again.

(6) Power up the GRBL shield. Detailed instructions for setting motor current and configuring GRBL for your design are at: https://www.synthetos.com/project/grblshield/You'll need to give the shield some information about your mill, such as the amount of travel each step produces. With 200 steps/rev. motors, 20 rev./inch leadscrews,and 8x microstepping the shield will need to produce 1259.8 steps to move 1 mm.

Page 11: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

File Downloads

autoSpindleDriver.ino.zip (542 bytes)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'autoSpindleDriver.ino.zip']

Step 9: Tuning, tweaking, and milling tips

Learning how to mill is a big job, but a few specialized hints for the openMill will help get you started.

(1) Really make sure the axes move smoothly and are parallel. Use a machinists square (or any other reliable right angle) to make sure.

(2) If you have too much vibration and noise from the spindle with the motor on, try changing the motor speed (up or down), and also check the preload on the spindleshaft. If the shaft is clamped by the pulley too tightly it won't spin smoothly - too loose and it won't rattle.

(3) It's common that the bed surface isn't totally flat relative to the tool movement. But you can fix this by using a large endmill to mill the bed (or part of it) flat. This isespecially useful for doing fine etching, as with PCBs.

Step 10: Software you may find usefulAll these tools are really cool, but sometimes they make mistakes. I always check the G-code they generate in a simulator to make sure they don't do anything crazy.Remember that GRBL can't always interpret all of the G-code that CAM programs generate, and this can cause problems too. Use at your own risk, and realize you maybreak some tools.

Universal G-code Sender - Cross-platform GRBL compatible software for sending G-code to the mill.

https://github.com/winder/Universal-G-Code-Sender

PCBgCode - This Eagle ULP generates G-code for isolation routing PCBs from EagleCAD.

http://pcbgcode.org/read.php?12,803

Inkscape - Open-source vector graphics drawing.

Page 12: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

http://www.inkscape.org/

MakerCAM - Free open-source G-code generation from uploaded SVG files.

http://www.makercam.com/

OtherPlan - Free CAM software for G-code generation.

http://othermachine.co/products/otherplan/

Related Instructables

CNC Stomp PadProject | CNCProgramming |G-CodeProgramming |CNC PlasmaCutting byivanirons

Creating a casefor a CNCcontroller byrborsuk

The DIYLILCNC:Open-SourcePlans For aLow-Cost, Easy-to-Build CNCMill. (v1.0.2) byDIYLILCNC

How to makePCBs easily byjohn1a

From SketchUpto CNCFabrication(video) byphooddaniel

Easy CNCconversion of asmall mill byfred27

Advertisements

Comments

26 comments Add Comment

 ??DIY says:  Jul 9, 2014. 6:37 PM  REPLYI want to buy the where is unpowered spindle?

 dronecz says:  Jul 2, 2014. 1:41 PM  REPLYHi, I´m planning to use same brushless motor and ESC for my spindle but what I can not figure out from text and images is what power source are you usingto power up ESC? Thanks for reply.

 joebell says:  Jul 3, 2014. 4:20 AM  REPLYThe spindle power source a 12V, 3A wall wart. (See the parts list for a part number.)

Page 13: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

 dronecz says:  Jul 3, 2014. 7:22 AM  REPLYOk, I´m not in USA but this will help me find right power source. Are you powering just GRBL shield with this power source or whole setup? ESC isconnected to power source through GRBL shield or directly? Do you have some schematic how is everithing wired together?Thanks

 adexhoo says:  May 26, 2014. 8:39 PM  REPLYis the grblShield compatible with arduino mega?

 joebell says:  Jul 3, 2014. 4:18 AM  REPLYNo idea.

 pasqua says:  May 15, 2014. 6:54 AM  REPLYCan you please explain how the carriages sliding the slide in the grooves of the aluminum bars? From the photographs is the one thing you can not seeclearly. Sorry for my low quality English. Thanks

 joebell says:  May 15, 2014. 1:42 PM  REPLYHmm. During normal operation nothing should slide on the aluminum T-slot framing - the T-slot nuts clamp those parts in place. Instead, the parts slidealong the round steel rails when the lead-screws turn.

However, during adjustment you can loosen the bolts fixed to the T-slot nuts, and then the nuts can slide along the channel. Does this answer yourquestion?

 pasqua says:  May 16, 2014. 10:19 AM  REPLYYes, thank you. You've been very kind. Now I understand how it works. Great project.

 ril3y says:  May 5, 2014. 8:28 PM  REPLYHonestly, you should just use a TinyG as this is what the othermill software uses. You could use othercam then.

 joebell says:  May 6, 2014. 7:28 AM  REPLYFair point. I picked the Arduino / GRBLshield config. because it gives you a little more mod. flexibility. And Othercam does a great job of making G-codepaths and exporting them...

 ril3y says:  May 6, 2014. 6:29 PM  REPLYI would have to disagree :) grbl is quite limited. That is why we made TinyG :) However I am biased!

 davisbr9 says:  May 3, 2014. 7:46 PM  REPLYDon't forget about PyCAM!

 joebell says:  May 6, 2014. 7:29 AM  REPLYGreat point! I didn't include it because I haven't actually used it yet. But it's rising to the top of my queue...

 davisbr9 says:  May 6, 2014. 11:06 AM  REPLYAlso, as an afterthought...

You can also use LinuxCNC, which is an open source OS designed to handle G-code interpretation and communication with the motor drivers...basically it turns a partition on your HD into a MCU + GRBL.

GRBL seems really awesome, but I haven't got it to run code yet. The only thing I don't like about it is there's no tool change protocol yet (or havethey added that already?).

Lastly, if you need a good motor driver shield designed to run with Arduino and GRBL, check this out! I got one, it's awesome.

http://blog.protoneer.co.nz/arduino-cnc-shield/

 liquidhandwash says:  May 4, 2014. 8:11 PM  REPLYThats a great project, Im in the process of building a similar project but its a 3D printed mill, just waiting for parts to finhish it off .

Page 14: Make a CNC Mill With a Laser Cutter

http://www.instructables.com/id/Make-a-CNC-mill-with-a-laser-cutter/

 joebell says:  May 6, 2014. 7:29 AM  REPLYThat looks awesome!

 pshoemaker1 says:  May 6, 2014. 6:55 AM  REPLYlooks like a nice little mill, but I need a laser cutter - can this be modded into one? What would need to be changed out other than the tooling head?

 joebell says:  May 6, 2014. 7:25 AM  REPLYCool idea! But I think it's probably ill-advised for safety reasons: to make it work well you'd need an IR opaque, fire-proof, and very well ventilatedenclosure, and probably also positive pressure air for lens protection.

You could mount a diode laser (1 W-ish) on the head and etch away paint, and get through paper and thin cardboard. But you probably couldn't do thekind of sturdy plastics you'd need to make more laser cutters... And I think the software mods to GRBL might actually be a little tricky, because you haveto modulate laser power with travel speed.

 shwp says:  May 4, 2014. 7:25 AM  REPLYCool,that is an huge project!

 jiajunwang says:  May 4, 2014. 7:20 AM  REPLYNeat!!!

 karcsika922 says:  May 4, 2014. 5:03 AM  REPLYThat is so awesome, i like it!

 Jan_Henrik says:  May 4, 2014. 3:42 AM  REPLYAwesome project!

 ASCAS says:  May 3, 2014. 6:21 PM  REPLYSUPERB! A month ago I started a CNC project. I was stuck on the g-code stage, until you posted those links! Thanks bro, this is very useful!

 ElectricSlim says:  May 3, 2014. 11:38 AM  REPLYThis is fantastic! I have a feeling I will be building one in the near future.

 andrea biffi says:  May 3, 2014. 11:21 AM  REPLYI'm really impressed, that's an huge project! Awesome!