Easy To Build Stepper Controller from Recycled Materials

Easy To Build Stepper Controller from Recycled Materials
*****You can see more of my projects and updates to my current projects on my website: Colvins.ca*****

***For Support on this Project, Please use the forum on my website. Just go to http://colvins.ca and click the forum link on the side bar.***

I am 14 I have always wanted to build a cnc machine but because inexpensive parts are hard to find in Canada I have had trouble trying to build a decent cnc controller. The purpose if this Instructable is to show that anyone can build a cnc controller using an old scanner. The scanner I used was an old OpticPro scanner. I had previously extracted the stepper motor and experimented with it but not considered it for a cnc controller. All of the controllers on the Internet had a large number of expensive transistors or were ridiculously complex. I finally stumbled across this controller and realized I could build it. By reusing the parts from the old scanner and making the case from recycled cardboard, I am cutting back on my impact on the planet. Also, because this controller is so simple, it only needs one power suply, so, it only needs 1 12 volt (for both the logic and the motors), instead of 1 5volt (for the logic) and 1 12 volt (for the motors). This saves energy, especially when you run it for a long period of time.

If you don't already know what a cnc machine is, it is a machine that uses special motors called stepper motors to moce an object a percise distance. The difference between a stepper motor and a regular DC motor, is that stepper motors "Step", not spin. if you don't understand, refer to this artical. There are two types of stepper motors. There is Bipolar, and Unipolar. Bipolar motors have 4 wires. Unipolar motors can have 5, 6 and 8 wires. The difference between these two types of motors is that unipolar motors have 4 coil inside that, when energized in a certain order, allow it to step forward and backwards. This makes them easy to control and is why we are going to use them in this instructable. Bipolar motors only have two coils that can be energized in forward, or reverse. To drive a bipolar motor you need two H-bridges. Because of this, bipolar motors motor controllers are much more complex.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Required Parts

The parts that are required for this project are:

In the scanner:
-1 stepper motor
-1 uln2003 chip
-2 steel rods
For the enclosure:
-1 cardboard box
The tools:
-Hot glue gun and glue
-Wire cutters/strippers
-Scissors
-Soldering tools
-Paint
For the controller
-1 DB25 port (recycled from previous project)
-some wire
-1 dc barrel jack (recycled from old RC car)
For the test rig
-1 threaded rod
-1 nut to match your threaded rod
-various washers and screws
-scrap wood (recycled from previous building projects)
For the control computer:
-1 old computer (I used an old laptop)
-1 copy of TurboCNC (get it here)
« Previous StepDownload PDFView All StepsNext Step »
247 comments
1-40 of 247next »
Jan 26, 2011. 5:50 PMnatsud1 says:
hello i am in need of your help i cant seem to get your test.cnc to do anything. i believe i have all the settings correct as you stated but my motor doesnt do anything its not locked up or anything its a M42SP-7 stepper motor it seems that all the outputs are always onso i can test each individual output and the motor will step with all of them but it will not turn if i hook them all up to motor . how do i make my motor turn continously? pls advise thank you
Jan 28, 2011. 11:04 PMnatsud1 says:
ok i got it to work i had everything right it was the stupid db25 cord i had i finally tested continuity from one side to the other but the cord changed the pins around on the other end so number 2 was 15 ,3 was like 13 4 was 12 and 5 was 1 or somethin any way i cut the stupid cord into and just soldered the wires to my circuit . after that the program worked and my wiring to the motor turned out to be right i was thinking it was because i have an xp computer not win98 i just made a dos mode floppy but i think maybe you should mention that you have to have the right kind of cord because that was my last ditch effort to get it to work thanks for such a great instructable and for replying
Nov 24, 2011. 1:30 PMpfred2 says:
Instead of chopping up a printer cable you could have used an old riser cable out of a PC too. That is what I do. I'd love to embed the image inline but of course this website is broken so here is a link to the picture:

http://www.instructables.com/file/FZ0WAKRGT19NJTB/?size=ORIGINAL

From the page:

http://www.instructables.com/id/Parallel-Port-Break-Out-Board-BOB/step3/Whyd-You-Make-it-This-Way/


Which should have been in my image library but having looked through it a half of a dozen times I'm a bit tired of that now. So those links will have to suffice. Fire the webmaster! Or more fitting in this case, web disaster.

The riser cable is of course the flat gray ribbon cable plugged into the printer cable.
Dec 6, 2011. 7:34 PMComputothought says:
Parallel cables are a dime a dozen and nothing I know of uses them anymore. I do have some working spares just in case. . As a starter to an interface, parallel cables can not be beat. The riser is a good idea, but the average person will probably not do that (i.e desoldering).
Dec 22, 2010. 11:46 AMlu2a says:
i have a question :

how can i use the CNC version to drive a bipolar motors ? can i do that ?

thank you , great work
Apr 3, 2011. 5:54 AMdombeef says:
Yes, I need that help too
Nov 24, 2011. 1:03 PMpfred2 says:
Not worth the price of admission. These are far better and cheaper too:

http://www.pololu.com/catalog/product/1182

Even my drivers own it handily:

http://www.instructables.com/id/TB6560-Microstepping-Bipolar-Chopper-Stepper-Motor/

Though with built drivers so cheap not worth the trouble building.
Apr 26, 2011. 12:28 AMcipryon says:
can you use a usb- serial port adapter for the newer computers? or do you have to do some other programing?
Nov 24, 2011. 12:41 PMpfred2 says:
USB doesn't do real time. It does pretty good time I guess, but it isn't true real time. So for me the answer is no USB is unsuitable an interface.
May 23, 2010. 7:34 AMsxyuklad says:
And if my motor is more than 500mA and it is alot more than what a ULN2003 can handle. What should I do? Because when I connect it blows up the chip everytime. Please help.Does the motor coiling start from yellow or black? which is A1, A2, B1 and B2?
Sep 30, 2011. 1:40 AMeungurean says:
Better yet, use mosfets with optocouplers to be on the safe side.
Nov 24, 2011. 12:36 PMpfred2 says:
Better yet, build a real motor driver. You can even buy drivers today for dirt cheap. Drivers with built in hardware step sequencers. Software stepping is worthless. OK for a gee whiz desktop experiment, useless for a practical application.
Aug 1, 2010. 2:53 PMComputothought says:
1k resistors + 3055 transistors?
Jan 17, 2011. 4:44 AMzoot686 says:
Tip142 transistors are probably better for this application
Jan 17, 2011. 10:28 AMComputothought says:
tip142 aka nte270 that is a Darlington transistor? I have used the nte2013 (aka uln2003) with a 1k resistors with no problem.
Jan 18, 2011. 2:08 AMzoot686 says:
yes the TIP 142 is a darlington transistor rated at 10 amps(20 amp peak current) at 100 volts
Jan 18, 2011. 3:21 AMComputothought says:
Those must be for the biggie stepper motors......
Jan 18, 2011. 3:15 PMzoot686 says:
It isn't so much the size but the current requirements, and the recent "hybrids" really suck the current.
By the same token, I've got boxes of little Nema 23 40 oz steppers that only suck 0.4 amps(400 ma) and by setting my harbor freight minilathe clone(soldby cummins tools) up with the gibs rather loose, I can drive that lathe using those 40 oz stepper motors and this circuit.

And no, I'm not pulling 36" per minute rapid travels or cutting at .015 feed per revolution in hard steel.
Think 5 inches per minute rapid travels as the torque curve of stepper motors starts at it's highest and goes down as the pulses per second increases.

After all, you're not going to built a hurco vertical machining center using this circuit.
This circuit is designed to be built for pocket change and run a little homebrewed cnc mill, router, or lathe for hobby use.
SSPX0070.jpg
Nov 17, 2011. 1:50 PMpiratus says:
my stepper motor have 4 wire the same in this : http://www.instructables.com/answers/How-can-I-use-a-stepper-motor-that-has-no-markings/
Sep 23, 2011. 11:48 AMnadav says:
does anyone know if theres some linux software that will work with this driver? Im running ubuntu.
Oct 12, 2011. 11:47 AMpfred2 says:

Regular Linux cannot do CNC as the standard kernel is not realtime. This distribution is based on Ubuntu but has the custom software in it to work:

http://www.linuxcnc.org/

You may be interested in a couple articles I put up on this site about my CNC project:

http://www.instructables.com/id/TB6560-Microstepping-Bipolar-Chopper-Stepper-Motor/

http://www.instructables.com/id/Parallel-Port-Break-Out-Board-BOB/

I use EMC2 myself.

Jul 25, 2011. 9:06 AMMdob says:
This is really cool! I'm 15 and I've been looking at CNC for a while for PCB milling and woodwork but the controllers have always been to expensive. I just built the 3-axis controller last night - it took about 2 1/2 hours - on a piece of protoboard. I added a heatsink and a fan with a switch as i'm not too sure what amperage my motors will be yet as I am yet to start tearing apart printers and scanners. I hope to find the chips and steppers quickly so that I can get started on my first CNC!
IMG_0715.JPGIMG_0716.JPGIMG_0717.JPG
Sep 20, 2011. 10:52 PMzack247 says:
this is really cool and to be able to get the parts form everyday stuff makes it so much easier.
i want to make a 3 axis cnc machine, so how would i wire it for the 3 stepper controllers? and then using the info mentioned in the last step, it would work just fine?

also, how would i use the cnc machine after that, just like a regular one or do i need a specific program?
Jun 1, 2011. 9:52 PMrm524 says:
my steper has only four wires with red can it used?
Sep 23, 2011. 2:51 PMnadav says:
I also have a bipolar steper motor, but i think it can because if found this. http://elabz.com/driving-a-bipolar-stepper-motor-with-arduino-and-uln2803ag/ for how to wire it look at the bottom right of the schematic.
Btw, the ULN2803 is compatible with the ULN2003. So it should be in that sense. The only real reason it wont work is because of the software.
-Nadav
Sep 21, 2011. 2:03 AMscraptopower says:
It's a bipolar stepper I think, more difficult to drive.
Oct 12, 2011. 11:53 AMpfred2 says:
How can bipolar motors be harder to drive? They've less wires to worry about! heh J/K But seriously I've built drivers for both and I don't find bipolar motors any harder to make drivers for. They perform a lot better than unipolar motors do too.

http://www.instructables.com/id/TB6560-Microstepping-Bipolar-Chopper-Stepper-Motor/step4/Its-a-runner/
Apr 18, 2009. 8:41 AMmman1506 says:
can you give me a file of schematic and board
Apr 18, 2009. 8:52 AMmman1506 says:
also for three axis does it need 3x the voltage
Aug 17, 2011. 5:28 AMalishahzad says:
Hello
Sorry I could send the PCB format?
thanks
Apr 18, 2009. 1:07 PMmman1506 says:
it seems that its giving me a picture instead of file,do you have .sch and .brd etc files.
1-40 of 247next »

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!
46
Followers
7
Author:murray484(Visit my Website.)
Check out my website at Colvins.ca