3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Parallel Port 3 Axis CNC Driver, Opto-Isolated, Unipolar Steppers

Parallel Port 3 Axis CNC Driver, Opto-Isolated, Unipolar Steppers
«
  • DSC00539.JPG
  • DSC00511.JPG
  • CNC_driver_v1_schematic.png
  • PCBschematic.png

Controls 3 Unipolar Stepper Motors, for use with CNC Machines. Simple driver with automatic coil  shutdown, to ensure efficient operation.  Opto-isolated for protection of the P.C. Supports most parallel
port based CNC software, such as KCAM.

Supports up to 20 watts per Phase. Or 2 Amps per phase.

Full Kits with all the parts needed to recreate this Instructable can be purchased on my Website


Get a CNC Driver kit with 3 Unipolar motors, power resistors, and wire it Can be Found Here

3 Axis CNC Driver KitAssembly and Testing can be added.

Printed Circuit Boards are Available with Free Shipping

and Programmed PIC Microcontrollers can be purchased

or Grab the a combined PCB & programmed PIC Microcontroller


Included in the ZIP below are the files for the Copper-side, the Top-Side layer, Datasheet and the drill files.

The source code is written in Assembly and can be purchased Here

Those who purchase Kits or programmed PIC will receive the source code for Free.

*UPDATE: Added the HEX files that use the PIC16F876A instead of the 16F870.

Disclaimer: Even though this is opto-isolated there still is a danger to your parallel port if a short were to occur. Recreate this project at your own Risk.


 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts & Supplies

Parts & Supplies


Layout all the Parts:
- PIC16f870 - DIP or a PIC16F876A(must use a different firmware)
- Printed Circuit Board or strip board
- 20 mhz series oscillator, a regular one could be subed, just need to add 2x 22pf caps to gnd
- 12x logic level MOSFETs TO-220 package, i chose IRL630A or RFP12N10L or FDP8878
- 12x 1kohm 1/4w resistors - Brown - Black - Red
- 8x 10k ohm 1/4w resistors - Brown - Black - Orange
- 6x 500 ohm 1/4 resistors
- 12x 1n4004 or better
- Right-Angle Male DB-25
- 1x 7805 Voltage Regulator
- 2x 10uF Capacitor
- 1x 1uF Capacitor
- 3x LTV-827 OptoCoupler or Equiv.
- 1x 28 pin DIP socket
- 1x 8 pin DIP Socket
- 1x 16 pin DIP socket

A Full kit with all the Components, PIC Micro, and PCB Can Be Purchased

or Get a CNC Machine Kit with Driver, Motors, Power Resistors and Wire, It can Be found Here

Optional:
- 4x 4 Pin header
- 4x 4 pin housing
- 1x 2 pin header
- 1x 2 pin housing
- 18 crimps

Notes: Male and
Female DB-25 have different pin outs, and can not be substituted.

Tools:
- Soldering Iron
- Volt Meter/Continuity Tester
- Needle Nose Pliers

Check http://www.chromationsystems.com/partexplain.html Info


Additionally, a power supply will be required. To calculate power supply requirements: Motor Voltage/Motor Coil Resistance = amperage per coil. When full stepping each motor will have 2 coils/phases on at a time so minimum requirement is 6 * amp per coil. Then always use a power supply rated for %150 - %200 higher than the minimum. Switched mode PSUs will work, but will perform extremely bad compared to a capable linear power supply. Linear power supply's can be identified by a large transformer and capacitor probably along with some circuitry, they are more expensive but worth it if you want a nice machine.




« Previous StepDownload PDFView All StepsNext Step »
55 comments
1-40 of 55next »
Apr 17, 2012. 3:36 AMtgferreira184 says:
does it hold 24v?
Apr 17, 2012. 3:30 AMtgferreira184 says:
does it hold 24v?
Aug 18, 2011. 8:38 AMtreflip says:
Have you had any problems with this running all three axis at the same time? I can run x and y but if I try to run z (it's usually generated in the gcode file with all three on one line) with them it won't work.
May 3, 2011. 1:37 PMreco3141 says:
te_ekkür
Jan 18, 2011. 8:32 PMBinnukuttan says:
How can i modify the driver board to 3A PER phase version?
Jan 24, 2011. 5:54 AMbikersambo says:
Uprate the Mosfets And feedback/cutoff diodes to a higher wattage... Hope that helps
Dec 1, 2010. 2:27 AMalexis_4315 says:
why the source code are not open? it is just a common program...
Dec 26, 2010. 1:11 PMfunlw65 says:
Hi Alexis,

It is not just a common program because have a rare feature:
- it produces $2 per unit.
Dec 16, 2010. 3:03 PMOldrunk says:
Just put together the kit now testing and I can confirm that this 3axis CNC Driver works with linux EMC2.
Dec 4, 2010. 2:39 PMRenietsnurb says:
I'm planning to buy one of your drivers. Assuming that i have three 24V, 140 Ohm, 160 mA motors what resistors do i need. And beside these what else do i need to drive my motors?
Nov 16, 2010. 9:22 AMOldrunk says:
Awesome work and thank you, I've been wanting for a long time to put together a small hobby CNC for some time and never got to the controller since there are many designs out there. Just bought a kit from your site and thank you again for supporting the hobbyists! And thank you for the instructable.
Just a couple of questions. Since the source comes with a full kit , just wondering if its possible to add limit switches to your design?
Other question is I bought a full kit with the steppers and I know I need a 12v PSU but what power rating do I need? If I'm doing my math right even a 200watt PSU should more then handle it.
Nov 18, 2010. 8:02 PMOldrunk says:
Thanks!
May 17, 2010. 1:06 AMbuddace says:
How connect six wires step motor in this board ? sorry is not clear :D
Oct 6, 2010. 5:54 PMlilschwoegl says:
I still dont understand how the step motors are wired to the connectors.. any help? thanks!
May 17, 2010. 6:52 AMbuddace says:
OPs..solved ...I don't see schematic
Another question can I use 16f876 ?? hardware are same only memory source are most ;)
Oct 6, 2010. 7:47 AMBinnukuttan says:
Thanks for your reply. I ll try
Oct 3, 2010. 4:33 PMBinnukuttan says:
I cannot find LTV-827 OptoCoupler in my place, please suggest an equivalent.
Apr 4, 2010. 1:36 PMAbuTarif says:
Thanks for the most detailed DIY CNC Driver Circuit on the web.

You've said that "most CNC programs (Mach3) work in a similar way and should also work fine" 
Could you please confirm that Mach3 work fine with your driver !

because I've build Tom Mcwire circuit which use the following pin map :
X: Pin2 Dir ,Pin3 Step,
Y: Pin5 Dir ,Pin6 Step
X: Pin 8 Dir ,Pin 9 Step
And it's did not work with Mach3 after setting the port pins !!

I Think there program locked to some driver's manufacturer..

Sep 21, 2010. 4:04 PMwoodspinner says:
the mcwire circuit does work with mach 3, when properly configured.

Aug 12, 2010. 11:42 AMshaadmahmud says:
hello everyone i have done cnc driver project and ...100% works thanks to tomMcwire.... here is my work ( http://must-info.blogspot.com/2010/08/easy-to-build-cnc-mill-stepper-motor.html )
Jul 16, 2010. 4:49 AMKemo0o says:
dude ... i built PCBand when testing it on motors without PIC also without connecting LPT The MOSFET become too hot and the motor breaks and i can't rotate it by hand ????

i tested my circuit ... no SC
this is my one

Jun 18, 2010. 8:44 AMgabrielmrc says:
can you tell me how you the mechanical part. post here or send me to my mail (mirciugabriel@yahoo.com) all parts
Jul 16, 2010. 5:41 AMKemo0o says:
You can look at http://www.instructables.com/id/CNC/ it is very good guide
Jun 6, 2010. 3:48 AMbuddace says:
hello... I build your project..recompiled source for pic 16f876...how test it ?
May 2, 2010. 5:40 AMmuhahaha says:
is it powerful enough to drive a x2 mill?
Apr 15, 2010. 6:20 AMKemo0o says:
Hey man ... i tested it with my motors it worked well till now

now could you send the raw copper side file (eagle file or any program you have drawn it by )

thanks dude :)
Apr 15, 2010. 6:34 AMshaadmahmud says:
sir can i use pic16f873 instead of pic16f870 plllzzzzz reply sir
Apr 10, 2010. 5:46 PMKemo0o says:
My motors are consuming more than 2 A current  ... I tried another driver but for sorry the TIPs  become very very hot

so will your driver also becomes hot within consuming current exceed more than 2 A ?? 

Mar 24, 2010. 8:13 PMdablakh0l says:
I just noticed that R20-R25 in the layout do not match their placement in the schematic. Is the schematic needing to be updated to match the PCB layout?

Thanks.
1-40 of 55next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
63
Followers
18
Author:ChromationSystems(www.chromationsystems.com)
Designing electronic creations from microcontrollers, LEDs and anything else I can pull out of a dumpster and make use of. Check my Profile