Ready for some hard core gadget creation? If you thought your dremel tool was handy before, in today's How-To we'll start building our own CNC machine. Aside from the geek factor, it can be handy for making things like PC boards without chemicals or maybe some little styrofoam voodoo heads of all your
enemies, uh friends.
Gentlemen, start your soldering irons.
Computer controlled mills have been around for a long time. If you just want to buy oneone,
Sherline makes mills that are ready to go (pictured is their CNC ready model -- just add your own motors and controller). But then again, if you wanted to buy one, you probably wouldn't be reading this, now would you? A CNC machine is a lot like a precision drill press with a table that moves in two directions -- seeing a commercial unit like the one above should help you visualize the end goal. We'll be making ours from scrounged, recycled, and adapted parts; today we'll be going over the basic parts we'll need to build our own.
[Update: If you're not quite sure what a CNC machine is, check out the
Wikipedia article, mkay.]
Parts HuntingFor Part 1 of the How-To, we'll go over all the major components of the project and get started with the controller.
The major components of the DIY CNC machine:
- Stepper motors
- drive positioning screw
- 3 Axis stepper motor controller
- Linear slides
The most important component to determine the construction of your milling machine is the motor. Motors can be purchased from surplus houses, but the cheapest place to get them is from old dot matrix printers. Apple Imagewriters are one of our favorite sources. They contain multiple stepper motors, and the primary is pretty beefy. As a bonus, just about every dot matrix printer has a hardened steel rod that can be useful for our nefarious goals.

A stepper motor is an odd beast. Most motors spin when power is applied, stepper motors contain multiple coils. If the coils are energized in the proper order, the motor will rotate a small amount (a step). We'll take full advantage of the nature of stepper motors with this project. To simplify your life later on, you'll want to find stepper motors with more than four wires. Four wire motors are usually Bipolar motors. They produce more torque, but end up complicating the control circuit. The preferred type of motor for the frugal hobbiest is Unipolar. These usually have five or six wires, and they're pretty easy to work with.

Most stepper motors are labeled. The major points of interest include the voltage, resistance and the number of degrees per step. Knowing the number of degrees per step is vital for configuring the software to properly control the machine later on. For a three axis machine, at the very least you'll want the X and Y axis to both have identical motors. It's not the end of the world if they don't match, but it's more of a pain later on.
The drive screw is the next piece of our project. Commercial units use linear ball screws or linear gears. The commercial parts aren't cheap, but you can get away with some 1/4-inch threaded rod from the hardware store. Instead of anti-backlash nuts, we'll use these handy 1-inch long 1/4-inch nuts. Just about every hardware store has them, and they produce very little play. Try out the hardware at the store because defects in the nut or rod will produce drag that's easily noticeable by spinning the nut on the rod.
To couple the rod to the motor shaft, we'll use vinyl tubing with a pair of collars. The tubing is 1/4-inch inner diameter and prevents binding by allowing some play between the rod and the motor. You can get suitable collars from a model airplane store (The hardware store had some, but they were overpriced). Alternatively, you can make your own like we did from nylon bushings and hex screws.
Finally, we'll need some linear slides. One easy out is to purchase a used or surplus XY table that's built just for this purpose. Custom designs can be built using ball bearings. Above is the linear rail that
ShopBot uses. They machine the edge of a piece of steel and use this cool angled roller bearing.
We built this linear slide from a 1/2-inch steel rod and multiple bearing surfaces. It works, but we don't recommend building it if you value your sanity.
Once uou've bought or salvaged a set of motors, you'll need a controller. The controller provides the interface to the computer, drives the motors and can provide some simple feedback to the computer. The stepper controller has to be powerful enough to drive the motors you've selected. We sifted through lots of stepper controller designs looking for one that presented the best value.
In the end we found
this design for a relatively simple parallel port interface that originally appeared in a 1994 issue of Nuts and Volts. Today, the expensive UCN5804B is only available as a surplus item, but now the entire controller can be built for about $22-$30 in parts. (If you use a heavier motor like the ones from the Imagewriter, you might need to add some separate power transistors.)
The parts list at the link is a bit outdated, here's our updated shopping list.
- 3 - UCN5804B - alltronics.com
- 12 - 1N49355 Diodes - Part 625-1N4935 from Mouser.com
- 2 - .01uF Capacitors - Part 581-SR155C103KAT from Mouser.com
- 1 - 10uF Capacitor - Part 140-HTRL25V10-TB from Mouser.com
- 3 - 4.7k Resistor Network 652-4608X-101-4.7K from Mouser.com (Has an extra resistor, but works fine)
- 1 - D-Sub 25 pin Male - Mouser, RadioShack, etc.
- 1 - Barrel power connector - Whatever works for your power supply. (We used a spare 12V power brick)
- Stranded Cat-5 is sufficient for wiring
- Terminals and male headers are optional, see the page for the circuit.
- Heat sinks for the 5804Bs are needed. We used some aluminum channel.
- Copper clad PC board (We stock up on ebay every so often)
- Etching solution - Ferric Chloride, etc.
We made our own board using the template from the web page. We used similar techniques to the one in part 4 of our
iPod Superdock How-To. We reversed the pdf image using Gimp, and printed it onto a laserprinter transparency. This method doesn't create as nice of a trace as the paper, but it's speedier. Clean the board, and keep the paper backing between the plastic and the iron. Once the toner is ironed, just cool it with water and peel.
We etched the board using Ferric Chloride from RadioShack in a disposable Zip-Lock container. It needs to be warm and agitated to work well. The acid and hydrogen peroxide solution etches way faster.
We drilled the board with our drill press and tungsten carbide bits from Drill Bit City. We had to refer to the placement schematic several times to make sure we drilled everything right. Getting the pins holes aligned for the 5804s is a challenge!
If you want to do a toner transfer of the placement mask, do it before drilling the holes. Otherwise the surface is too uneven to allow a good transfer. If you screw it up like we did, you can cheat. Just print the mask onto a transparency and burn holes for the components with a soldering iron. It works surprisingly well.
Next time we'll start building the actual machine and show you how to build some simple and effective slide systems. For now, here's a teaser of what's coming! Good luck!
You have the greatest repository of knowledge the world has ever known at your fingertips and you want to be spoon fed the information? "wtf" indeed.
http://www.laptopbatteryclub.com/
its interesting . sorry for my english
thanks
Oscar
its interesting , I need build a router , thanks
Oscar Gzz
found easy building ideas
Great site!
Liked the idea of disassembling a rowing machine!
When is part 2 coming???
Peter
Hi,
I made a cnc router, the plans are freely available at:
http://www.cnczone.com/forums/showthread.php?t=29002
Great article. Keep in mind that the average person (above average) who attemts to build this type of machine fall into two groups: The kind who can read a micrometer and understand how unimportant 1/10 th of one inch in most home projects.
And: the person who doesn't and is still willing to build an automated machine. Imagine if someone from the 1800's read this article....
re 1800's machine.
I can imagine a steam powered beast, stinking of coal and hot oil with a stack of punch cards clacking their way through a reader.
This link goes to a video part of which describes cutting a die for injuection moulding - sound like a big job for a big tool to me. http://www.taylorguitars.com/video/factory-fridays/default.aspx?edition=14&title=14%3a+Tooling
\
Hey that's brilliant. I don't know who you are "Will O'Brien" but I've got a project you'll go nuts for. Please drop me a line.
Carl
cerickson@phenostream.com
www.phenostream.com
1-state the problems associated with setting and operating aCNC machine via a console:
a)reduction in operator sense of feel?
b)lack of direct manual control?
c)lack of programming knowledge?
2-describe guarding and interlockingdevices used on cnc machines.
A-a)totally enclosed?
b)interlocked?
B-effects of guarding on work/tool holding and unloading?
a)dificult of acess?
b)restrition due to design i.e. position of acess?
C-care during unguarding program proving?
3-state the importance of program proving for prevention of damage to equipment and work.
a)to ensure colision free tool paths at the progam proving stage?
b)prevention of damageto tooling,workholding devices,and work?
4-state problems associated with the removal of waste from the working zone of CNC machines.
A-volume of waste to be removed?
B-hazardous nature of waste.
a)heat?
b)sharp edges?
C-type of waste?
5-state the hazards associated with manual and automatic work and tool changing.
a)sharp cutters?
b)hazards associated with inadequate clearance?
c)hazards associated with incorrect location?
d)hazards associated with incorrect sequencing?
6-describe procedures for restarting a CNC machine after emergency shutdown in terms of :
A-problems that may be encountered .
a)machine may return to home position by shortest route regardless of obstrutions?
b)functions may have beenwiped from machine memory?
B-procedures to be followed:
a)move tool to clear position?
b)reset and check datum (as necessary)?
c)check state of program for tool length and diameter offsets as well as correct mew program mid start position (if possible) (select suitable start position in program)?
well that is it i need all the answers please to check with my own answers because i have final examination next week and i need to make sure that i'm rigth and not gonna do bullshit thank you all if anyone can help me please be my guest .
I don't think that you'd be able to cut through any normal amount of tool steel with a normal CNC machine. I would suggest making accurate foam copies of parts, and forging the parts. Reference the LFCP (lost foam casting process) on wiki.
Very interesting article. I am going to add a link to it on my website. http://www.acmanufacturing.com
I'm a bit late in posting...but if you still need that quiz done...
I have your answers but it'll cost you. Do you have paypal?
The most effective way to build your own cnc machhine is to first take CNC training lesson to find a proper way to do it.
You can take Online CNC Classes at:
http://www.toolingu.com/
I would like to buy abook for design of NC&CNC machines or for design of NC&CNC milling machines &lathe . Please advice me thanks
Dear Sir
I am alucturer in mechanical eng. Dep. Al-mostansiriah Unv.Bagdad . Iraq .I would like to prepare acoress to teach the students Prenciples of design of NC&CNC machines (milling machines,lathe ...etc.
Also I would like to built alab. for the above purpose.
I would like kindly to advise me
Thank You
I CAN PROVIDE TO YOU WHAT YOU WANT IN DETAILS AND IN YOUR HOME LANGUAGE CONTACT ME .
REGARDS
AJ HASAN
PL. CONTACT ME I CAN HELP YOU .
REGARDS.
AJ HASAN
IF YOU REALY INTREST CONTACT ME ON MY E-MAIL THANKS.
AJ
Ali, you can contact me on my E-mail:tabulayla@yahoo.com.I will help you.
AJ HASAN
very good article. I go here for all my CNC machines information http:www.findamachine.com but would love to make my own someday.
very good article. I go here for all my CNC machines information http://www.findamachine.com but would love to make my own someday.
I like it. Now the next step is going through the CNC steps and build something with the router. The steps are almost always the same on any CNC Project whether Plasma or Wood. Walking through them visually is cool. You remember it better.
It reminds me of some videos I made. Designing a Stomp Pad for a Snowboard. Getting the design in, CAD, CAM and then cutting it out on a CNC Plasma Cutter.
Here is the link if you are interested:
http://www.cncinformation.com/CNCBlog/
Then the videos are on the left.
Good work,
Ivan Irons
http://www.cncinformation.com
This article was posted Jun 29th 2006 6:21PM by Will O'Brien.. has Mr. Will O'Brien given up... Where are part 2?!
-jr
this is informative and useful for readers.
Web Directory
Would it be possible/practical to use the circuit board that came out of the donor printer? Obviously the printer already has all the circuits necessary to move the stepper motors that came out of it?
If you want to see a real CNC built by an industrial electrician go to
JAMIESGARAGE.COM. Luv ya!