Easy To Build CNC Mill Stepper Motor and Driver Circuits
Easy To Build CNC Mill Stepper Motor and Driver Circuits
Table of Contents
intro: Easy to build CNC Mill Stepper Motor and Driver circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
step 4: TESTING..1..2..3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
intro: Easy to build CNC Mill Stepper Motor and Driver circuits
This is a follow up to the Easy to Build Desk Top 3 Axis CNC Milling Machine Once you get the machine all put together its time to make it go.
So it's time to drive the motors. And here I've put together a circuit that I think is the absolute cheapest and easiest way to control stepper motors with step and direction
signals. It works with many of the free or low cost softwares that produce step and direction signals through the parallel printer port. I'll explain how it works but for those
of you who just want to get on with it... The_Next_Step
But I would suggest for those of you who are unfamiliar with circuits to do it on a bread board (see pictures). This way you can easly correct any mistakes and try different
things.
This schematic is just to control one motor so for the milling machine you need 3 of these circuits and 3 motors.
From Left to right and top to bottom. I try to draw schematics so that positive voltages are toward the top and ground or negative volge is toward the bottom. Inputs are to
the left and outputs to the right. Fist off the voltage that you are going to use to run the motor needs to be stepped down and regulated for the logic chips. I used a 6.2
volt Zener to do this because it's low enought for the logic chips to receive the signals from your printer port and high enough for the outputs to drive many of the
standard power FETs, so you may not have to use logic FETs like the schematic shows. So the resistor R1 drops the voltage, the Zener diode regulates it to 6.2 volts
and the capacitor C1 filters out any noise from the motor, and this voltage powers the two IC's.
The first IC (CD4516) is called an up/down counter. One signal from the printer port will tell the counter if it will count up or down and the other signal, called step, will
increment or decrement the counter by one count. Now were only going to use two outputs from the counter Q1 and Q2. With this binary counting method there are only
4 combinations of output from the counter: 00, 01, 10, and 11. These lines are fed to the A and B inputs of the other IC (CD4028) which decodes these combinations to 4
seprate outputs.
I did a trick here using the C input to work as an Enable input. If the Enable(optional) is connected to the parallel port and the computor tells it to shut off all of the outputs
to the FETs will go low(Off). So the four outputs of the decoder drive the FET transistors and the FETs drive the four poles of the motor.
Now everybody wants to know what the light bulb is for. Its not so much whether you use a bulb or a resistor, its that a bulb comes with a socket. You can get these
wedge base light bulbs from 1 watt to 20 watts. Start with may be a 4 watt bulb and if you find you need a little more beef you just pull it out and put in a 10 watt bulb. It's
really handy. And I found it's good to have some voltage drop there as kind of a ballast for the motor windings. The diodes catch some of the current that comes out of
the motor each time the FET transistors turn off. The diode feeds this current back to the supply.
When you get the circuit up and running find a power supply that puts out more voltage than you really need and then change out light bulbs till you get it running
smoothly. Some of my stepper motors are 5 or 6 volt and some are 12 volt but it all works out.
File Downloads
C:\Projects\StepCheapPartsList.rtf (2 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'C:\Projects\StepCheapPartsList.rtf']
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
File Downloads
Any way look over the schematic and place the parts accordingly. I added a few capacitors along the power lines just for general principals. There were so few traces on
the top side of the board I didn't bother milling it. I just used jumper wires. See the pictures below of the populated board. All the little FETs ligned up like marching
soldiers.
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
step 3: Photo Etching a Driver Board
OK, For all you chemistry majors who want to do something a little more professional here are some .pdf files you can print out and iron on or what ever you do to make
an etched PC board. There's a Top Silk (just for reference), Top Copper, and Bottom Copper.
If you want to go easy Just do the Bottom Copper. There's not that much on the top and you can just solder jumpers where you need to.
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
File Downloads
C:\Projects\Milling\Mill_Drive\Schem-PCB\StepCheap3Dsilk.pdf (9 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'C:\Projects\Milling\Mill_Drive\Schem-PCB\StepCheap3Dsilk.pdf']
step 4: TESTING..1..2..3
Don't be nervus. It's just a little electricity. First off it would be good to load up the KCAM (or what ever you plan on using) in your computor. Then when you feel
comfortable that all the parts are in the right place plug the parallel port connector into the driver board(as shown below) and put a low wattage build in the socket for the
motor. In this case I'm using middle, the Y axis driver.
For power I like to use one if these universal power adapters with selectable voltage output. They're cheap and they don't put out a lot of current so if something goes
wrong it's less likely to damage your circuit. Set the voltage low and see if you have some vlotage on the power pins(16) of the CD4516 and the CD4028. If you don't
have a volt meter just take an LED and tie a 10K(BRN,BLK,ORN) resistor to the positive(the long leg) and wire to ground tied to the negative(the short leg). Now you can
use this as a probe to see where you have voltage. It will be very dim but we don't want to draw too much current away from the circuit.
Now go into the computer program and find the Setup Table. Set the steps per inch to 1000. Then open the CNC control and set the single step for .001 inch and activate
the single step mode. Now each time you click the yellow arrows (up and down for the Y axis) the computor will output one pulse to the stepper motor driver circuit.
Put your LED probe on pin 10 of the CD4516. This is the up down input. When you click the up arrow the input will be low(LED off) and when you click the down arrow
the input will be high(LED on). Pin 15 is the step input you will see a very short blink each time you click a n up or down arrow on this pin. Pin 6 is the Q1 output. It will
change state(high/low) each time you click an arrow. And Pin 11 is the Q2 output. It will change state every other time you click an arrow.
On the output side of things we should see some activity on the CD4028 chip. Putting your probe on any of the output pins 1,4,6,or 7. These outputs drive the FETs. You
should see the output go high every 4th time you click the up or down arrow.
If this all makes sense so far it's time to get the motor running. The common wire or wires of the motor which are the center tap of the windings should be connected to
the light bulb. The other four wires should go to the four FETs on the circuit. If you are really lucky you will get the combination just right in the first couple of trys. Other
wise just keep switching the wires arround until the motor steps in the same direction each time you click the arrows.
Watch the video in the next step. It may give you a better idea what to do.
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
step 5: Let's Watch it on TV
I just like watching a video better than doing a bunch of reading. Hope this is helpfull. Good luck with your projects. If the movie doesn't show past this link into your
browser.
http://www.youtube.com/watch?v=ZUyqscxLJ4k
Video
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
step 6: Linux Users
I'm not a Linux user yet but I have played with it enough to be dangerous. But for you Linux users Chaddcurtis has contributed some setup files and information to help
you use Linux CNC with the parallel port and this circuit board layout. Thanks a lot Chad and more power to you.
File Downloads
Linux_stepper.zip (7 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Linux_stepper.zip']
Related Instructables
Advertisements
Make Magazine Special Offer
Comments
50 comments Add Comment view all 534 comments
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
qwertyboy says: May 2, 2009. 7:33 PM REPLY
try ebay. i just bought 4 for 20 bucks.
Hi to all
I have a problem with the stepper motor, i bye a motor with 2.75v and 4.5A and 8 wires.
I try to run this motor without circuit to test them by applied voltage on each coil but noooo result.
I connected the motor to this circuit, am sure its right connected. I connected 4 wires to common and the others to the mosfet with right sequences, but also
the motor not work.
I tested the coils of motor it gave me a resistance between each coil wires.
plzzzz help me
thank
OO
So the top, then left, then bottom, then left, then top again to go clockwise. Half stepping is induced by going top, top and left, left, left and bottom,
bottom, bottom and right, right, right and top, top to go counterclockwise. You can go either direction. That's all I can help you with. Hope the picture I
made comes out right.
Thanks,
Mitch
Thanks
Kasari
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
Tom McWire says: Feb 27, 2008. 8:19 PM REPLY
I've had some problems. I'm running short of funds and short on time. I might have to push it back till after school is out in May. If your in a hurry
and have collected a few more coins I have been suggesting some other sources. My favorite is www.stepperworld.com
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
white orange,
yellow,
white yellow
Nav
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
hussammajzoub says: Apr 18, 2009. 12:00 PM REPLY
Hi, am so interested of your project,but i still have something i dont understand it ,is that there is two types of resistors and two types of capacitors are not
clearly obvious were are located in the schematic,and also in the componente liste you didn´t mention the other capacitor wich is seen the picture of the
project.Thank you...
Thank you
I built a cnc based on stewart's plan. Control is provided through mach3 run from my notebook. I also do'nt have a parallel port so got a pcmcia from
http://www.transdigital.net/info.htm
Cheers.
I was starting to feel bad about the price difference but then again it worked! Did see those other cards at ebay but they didn't have the spec (i.e.,
works only on printers!) I need to run my cnc from my notebook.
Cheers.
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/
salalas says: Apr 12, 2009. 2:00 PM REPLY
Can somebody please help me with the parts list?Thank you
http://www.allelectronics.com/make-a-store/item/SMT-108/STEPPER-MOTOR-6-WIRE/1.html
If not, does the board have to be powered by 12 volts? Would changing that value require a change in components on the board?
http://www.instructables.com/id/Easy-to-build-CNC-Mill-Stepper-Motor-and-Driver-ci/