Simple manual control of stepper motors without a PIC or PC by jhoffnun
Intro.jpg

This instructable will show you how to control stepper motors (Unipolar OR Bipolar) manually with a knob, without the use of a PIC or PC, so no programming is needed.  The position of the knob determines the position of the motor shaft, which will stay in that position until the knob is turned again.  The unipolar and bipolar circuits are different, but each requires only 1 chip.

 

 
Remove these adsRemove these ads by Signing Up

Step 1: Here's what you'll need.

For the Unipolar board -     (1) rotary encoder

                                                (4) 1K 1/4W resistors

                                                (1) ULN2003 I.C.

 

For the Bipolar board -        (1) rotary encoder

                                                (2) 1K 1/4W resistors

                                                (2) 10k 1/4w resistors

                                                (2) 2N3904 transistors

                                                (1) L293D I.C. (or equivalent such as SN754410NE)

benjaminw says: Feb 26, 2013. 5:13 AM
hi, i'm really interested in making this, but i noticed in the video that the motor is quite jerky and was wondering if that is because of the motor or the encoder or the chip. i want to end up with something like this

http://www.youtube.com/watch?v=gwFIW9PmScw&list=UU0F6K1-TFXeeLK0DJVR0SZg&index=9

i dont really know much in this area so i really appreciate the help
farz61 says: Jan 27, 2013. 6:27 PM
hi
I built the unipolar board, works ok. I was wondering if there is any way to wire an absolute encoder instead of incremental? The "slipping" when actuation the encoder is causing me grief.... Also, how many amps at 12v can I put in without damaging the board?.
thanks
pfred2 says: Jun 25, 2012. 6:23 PM
To do this all you need is another stepper motor. If you hook 2 stepper motors up coil to coil one will run in sympathy to any shaft movement of the other. With absolutely no other circuitry, parts, or even power required. It's like magic!
sanjaysy says: Jun 5, 2012. 9:48 PM
Hello,

Can i use rotary encoder form computer mouse.

thanks & regards,
Sanjay
denverd0n says: May 9, 2012. 10:07 AM
This is exactly what I need except for one thing... I have a stepper motor that is rated for 1.5 amps at 3.5 volts. The ULN2003 would not appear to be able to handle that. Can anyone suggest a different IC that would work for this, but that has the voltage and current range for my motor? Thanks!
jarpo82 says: Jan 3, 2012. 6:23 AM
Hi, I need to know if a rotary encoder is the same that a variable resistor? Like volume..?

This is an easy proyect and very usefull.
Thank so much! Regards
Jarpo
jhoffnun (author) says: Jan 3, 2012. 8:31 AM
It looks like a potentiometer but it definitely is not. When connected as in this project, is outputs 1's and 0's in the desired sequence.  See attached  documentation.
EVQ-WTEF2515B.jpg
jarpo82 says: Jan 3, 2012. 2:29 PM
Thanks!! I'll tray to get it in some electronic home. I'll work with this proyect, soon comments... thanks
Jim1614 says: Nov 18, 2011. 1:02 PM
Is there a way to make the motor drive faster that the rotary encoder? Simiar to a gear ratio. Example: for one revolution of the rotary encoder i get 3 revolutions of the stepper motor.
TRSDOS says: Jun 24, 2011. 9:34 PM
This is something i`ve been wanting to do for some time. I have a usb Microscope that i have wanted to create 3 axis manual control (small) platform to attach it to. One question.... can you make it so that if you turn the nob the motor will continue microstepping until you let go? Hope i`m not pushing it to much LOL. Im currently building a 4' X 4' CNC router now.
jhoffnun (author) says: Jun 27, 2011. 6:07 AM
This setup is strictly for manual control. Sounds like you need automatic stepping triggered by a toggle type push button. You should have no trouble finding a circuit on-line to satisfy your needs.
TRSDOS says: Jun 27, 2011. 10:26 AM
Thanks for your reply and i will try looking for "automatic stepping control" of some kind.
TRSDOS says: Jun 27, 2011. 7:06 PM
thanks for the help...im not much of "web Serfer" :)
Apolo8 says: Jun 15, 2011. 10:16 AM
One question...are the boards already mirrored for toner transfer?


a quick, really simple compared to others in net,and really nice for projects...


Thank you.


Un Saludo...
stixchicken says: Jun 1, 2011. 3:48 PM
oh its the bipolar circuit
stixchicken says: Jun 1, 2011. 3:47 PM
i Built the circuit and it works ok but i get alot of noise on the stepper any ideas why
SharpyWarpy says: Mar 24, 2011. 4:46 AM
I guess I should say I built the bipolar board and it works good. Thank you, jhoffnun, for doing this instructable. Now if I can find something to do with it. Nevertheless it was very rewarding.
SharpyWarpy says: Feb 27, 2011. 11:11 PM
Hi, jhoffnun. I have found what I believe is a small discrepancy in the bipolar board layout. R4 is shown leading to pin 9 of IC3 where it should be leading to pin 10. Also the other end of the same resistor needs 5v before leading to pin 10 and the collector of T2. I'm assuming the schematic is correct. Please correct me if I'm wrong.
jhoffnun (author) says: Mar 1, 2011. 5:32 PM
R4 goes from pin 9 to pin 10 as shown on the schematic, and pin 9 gets +5V as shown in the schematic. R4 "pulls up" the collector of T2 and pin 10 to +5V, as in the schematic. I don't see a discrepancy. Eagle is a great program; as long as you create your board directly from your schematic and keep both open from then on, they stay consistent!
SharpyWarpy says: Mar 1, 2011. 7:12 PM
I was referring to the board layout, not the schematic. The board file is not consistent with the schematic file.
jhoffnun (author) says: Mar 2, 2011. 4:29 PM
I was referring to the board layout; the board is consistent with the schematic. Trace it out and you will see...
SharpyWarpy says: Mar 2, 2011. 8:24 PM
Okay I see it now. What I had not seen before was the trace underneath the chip connecting pin 9 to pins 1 and 16, which are in turn connected to +5v. Thanks very much for your time and patience. I have parts ordered from Mouser for unipolar and bipolar. The TI SN754410NEE4 is cheaper than the L293D for the bipolar board, thanks for mentioning that too.
I'm having a problem with Eagle not showing the ground plane in the board layout. I'm using version 5.10.0. Any suggestions?
SharpyWarpy says: Mar 2, 2011. 9:46 PM
Never mind, I used Rat's nest to fix it.
SharpyWarpy says: Jan 19, 2011. 11:53 AM
Or how about this encoder:
http://www.wfeca.net/users/rbandmb/en11.pdf
jhoffnun (author) says: Jan 21, 2011. 3:56 PM
Both of these encoders look like they should work.
SharpyWarpy says: Jan 19, 2011. 11:30 AM
Would this encoder do?
http://www.wfeca.net/users/rbandmb/PEC11.pdf
SharpyWarpy says: Jan 18, 2011. 5:53 PM
I can't get the Eagle files to download properly.. instead of eagle files I get files with a .tmp extension that some type of archive file. The best I can tell is they are archive files of the type ACB. Can you please post them again? Thanks.
jhoffnun (author) says: Jan 19, 2011. 9:05 AM
No problem. All you have to do is rename the file extension for each downloaded file. If it is a board file, change the extension from .tmp to .brd. If it is a schematic file, change it from .tmp to .sch.
logabiram2028 says: Oct 19, 2010. 11:12 PM
Awesome but i ve some doubts, how to give the power supply and how to connect the encoder with pin details...
bengus says: Oct 16, 2010. 7:58 AM
can i connect imput1and2 of the bipolar board in my laptop's parallel port to drive it with some cnc software as in this instructable? :
http://www.instructables.com/id/Laser-cutter-start-slicing-stuff-for-under-50-dol/
TheBlackBird says: Jul 19, 2010. 8:52 AM
Hy, awsome instructable. I want to biuld this for an unipolar motor but i only have an ULN2065B I.C. instead of ULN2003AN you specified. Can you please tell me if mine will work in your circuit. Thank you.
jhoffnun (author) says: Jul 19, 2010. 5:36 PM
Glad you liked it! I looked at the spec sheet for the ULN2065B, and it does not appear to be pin compatible with the ULN2003. The circuit requires 6 of the 7 available Darlington transistors in the ULN2003; the ULN2065B has only 4.
TheBlackBird says: Jul 20, 2010. 1:52 AM
Thank You, i'll find a ULN2003 then.
Reffner says: Jun 12, 2010. 10:18 AM
This is great. I've got so many stepper motors lying around and never had the electronics or equipment to use them. This is Quick, easy, and very useful. Thanks!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!