Computer Controlled Stepper Motor

Sign in to queue

The Discussion

  • User profile image
    Clint

    @Nila may just be easier to buy something off the shelf to do this.  At a certain point, stuff becomes a bit complicated.  Plus it depends on the connector there.  I'm not sure if that is a standardized connector

  • User profile image
    Clint

    @Will, in theroy, it should.  For a USB to parallel port to work, it would have to have all the functionality that it would have if it was just hooked into a normal computer.

    Worst case, you could return it if it doesn't work.

  • User profile image
    Will

    Hey I have a question about parallel port adapters?

    I have read on the Internet that you can control an rc car with a parallel port and a simple prgram and a little bit of wiring. I found out how to do this at jbprojects.net and I've actually done this and It worked on my desktop, but I want to know if I would get the same result if I bought a usb to parallel port adapter? because I want to be able to do this on my laptop.

    Please can you help me.

    Email: wcjones9898@yahoo.com

  • User profile image
    ravi

    thanks a lot !! u helped me saving lot of money for my final project ! i am doing spray bot project (hektor), all i need to know is can i control 3 motors by using a single parallel port ! or should i convert two usbs in to parallel bot !! thanks a lot.......

  • User profile image
    Clint

    @Nachiket, Coding4Fun shows how to do some hard stuff and then gives you the ability to play with it.  Doing 1 and 2 shouldn't be too hard.  And 3, I wouldn't recommend it.  

  • User profile image
    Nachiket

    Hey first off,uve got sum gr8 ideas over here,but ive got a few questions...as ive read this article only a couple of times,wanted 2 knw...whether

    1) instead of manually controlling the stepper motor via mouse scroll, can v set its rotation in our code (like 1 complete rotation so that v do not need 2 scroll and it can b triggered by a button on the form?) and put it in a loop or sumthing 2 dat sort?

    2) if v can implement the above part can v set the auto rotation of the stepper motor to 180° instead of 360° and can v put this in a loop too? (as in 0-180° & back frm 180-0°)

    3) lastly, can v connect 2 stepper motors on a single parallel port & get them working synchronously thru a single prog or otherwise?

    -thanks

    metal & peace, Cheers!

  • User profile image
    Clint

    @ichal if the wire layout matches, sure.

  • User profile image
    ichal

    can i use stepper motor floppy 3.5 ? please help me. i need your help. send me information at aku_ichal@yahoo.com. thanks brother

  • User profile image
    Clint

    @Kartik Menda, this project is source code only.  Compiling it should make it work.  I'm not sure if this works with Vista or Win7 as  Ashish tested in XP.

    I'd just do a very basic app to test, click a button and make it move.  See if a multimeter pulls voltage.  I'd test your circuit as well.

  • User profile image
    Kartik Menda

    I am not able to get any output pulses from my parallel port after I run the program and scroll the mouse wheel accordingly. The parallel port is built in on the motherboard. I have debugged the VB code. I can see the Step Mode, Direction, Decimal and Binary change when I scroll the wheel. I am trying to test any output voltage on the parallel port using a multimeter, but am unable to get any voltage. I have placed the said DLL file in the System 32 folder. Can you please tell me what I could be doing wrong? Can you please send me the EXE file from the VB code?

  • User profile image
    Kartik Menda

    What sort of output signal should I expect from the computer's parallel port directly (without connecting the electronic circuit) when the program is running and I scroll the wheel.

    At the moment, all I am getting a fixed voltage of 3.35V at D0, D1, D2 and D3, and no fluctuation when i scroll the wheel.

  • User profile image
    Clint

    @Sean, getting Ashish to chime in

  • User profile image
    Sean

    I just blew up my second ULN chip (it happens the minute I plug in the DB25 cable), please excuse my ignorance, I thought I could copy the method here, but I seem to be having issues.  Does anyone have any insights as to what I may be doing wrong.  I'm obviously wiring something wrong.

  • User profile image
    Ashish

    @Sean, make sure your motor's power supply (12-24V as shown in the circuit), is completely isolated from the parallel port side of the circuit (pins 1,2,3,4 on the ULN chip). The input pins of the ULN chip (1,2,3,4 etc) should only receive 5V from the parallel port.

    If this doesn't help, mail me pictures of your circuit. I'll see if I can find the problem. My email is - ashish (dot) derhgawen (-at-) gmail (dot) com.

    Cheers,

    Ashish

  • User profile image
    Lesko

    Great article/tutorial!

    I was looking for something like that for a long time. I did everithing just the way you did except that i wrote my code in Python + PySerial. I learned so much, thank you!

    All good wishes from Slovenia

  • User profile image
    Morne

    Hi where can I buy a stepper motor driver? How does it look will you please post a link to an image.

    Thanks

  • User profile image
    Clint

    @morne, a stepper motor is a style of motor.  You can buy them all over depending on usage.  Trossen Robotics, has some.  www.trossenrobotics.com/.../robot-stepper-motors.aspx.

    Regarding a picture, the article here has a picture.  The picture with a computer mouse, the stepper motor is in the lower-right side of the picture.

  • User profile image
    nice

    nice

  • User profile image
    ashim

    hey ur source code is not right can u mail me complete source code.....can i have ur contact no plz its urgent reply soon....(ashim30@gmail.com)

  • User profile image
    Clint

    @ashim, you will have to be a bit more helpful.  What doesn't work for you?  Ashish's code is targeted at what he did in the article.  If you changed stuff, you'd have to make the appropriate changes.

  • User profile image
    Clint

    @ashim, you will have to be a bit more helpful.  What doesn't work for you?  Ashish's code is targeted at what he did in the article.  If you changed stuff, you'd have to make the appropriate changes.

  • User profile image
    harvey

    hi.. can you help me on how to use the input pins of parallel port.. and how to send 5volts to parallel port.. what is the circuit and code to used? thank in advance,,

  • User profile image
    Clint

    @harvey the article above tells you how to leverage the parallel port as a control system for a talking to a stepper motor.

    I'd be very careful sending power into a computer, from personal experience, you can easily fry the electronics.

  • User profile image
    Hassan

    Cant it work on simple C language??

  • User profile image
    Clint

    @Hassan I suppose you could but the more complex scenario.  The act of using a higher level language will at times makes doing some stuff a bit harder

  • User profile image
    nishan

    worst project
     

  • User profile image
    sunny

    hi,
    I am working for a project and needs a stepper motor to rotate in say 10-20 rounds on command. I was wondering if I can get a ckt for the same. I am an optical engg and want a ckt to rotate platform on optical bench. hope to get an early reply.

  • User profile image
    samar_89

    hi,

    thanks a lot !! this project & all your projects help me more'

    I trying to do like this project,but  i have not parallel port in my dell laptop

    what can i do' without using interface  bettween parellal & serial'???

     thanks.

     

  • User profile image
    ravinder

    hi
    can i control 20 to 30 dc motors via computer if so please send me a circuit diagram. thaaaaaaaaaank u

Add Your 2 Cents