Mohammad

Robotics Blog

RECENT POSTS

TWITTER UPDATES

No public Twitter messages.

Stepper Motor Demo

Posted by Mohammad On August - 14 - 2008 10 COMMENTS

This is my first stepper motor project where the I have used NIPPON PF35T-48L4 unipolar motor which I controlled from a PC through the Parallel Port (LPT1, DB25). I simply used a ULN2003A IC which uses 7 Darlington Transistor Array to amplify the input current comming from the port. This 16-pin IC is capable to take TTL input and the output load may have high voltage upto 50V. I wrote small program in Visual Basic 6 using inpout32.dll driver.

Here is a screenshot for the unipolar stepper motor and the driver IC ULN2003A:

It is recommended to connect a 6.2V zener diode between the power supply and VDD (Pin 9) on the chip, to absorb reverse (or “back”) EMF from the magnetic field collapsing when motor coils are switched off.

To rotate the motor anti-clock wise, the step sequence sent to the parallel port is as follows:

STEP-1   0001     1
STEP-2   1001     9
STEP-3   1000     8
STEP-4   1010    10
STEP-5   0010     2
STEP-6   0110     6
STEP-7   0100     4
STEP-8   0101     5

Here is the live video of how the motor rotates:

VN:F [1.9.3_1094]
Rating: 8.0/10 (3 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Stepper Motor Demo, 8.0 out of 10 based on 3 ratings

10 Responses

  1. Mohn says:

    Nice thinking… But let me know how far it is completed.

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: +1 (from 1 vote)
  2. James says:

    Hi:
    Nice work!
    Can you send me the Visual Basic code that runs this motor so I can see how it works ?

    Thanks
    James

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  3. pintoo says:

    hi
    good job
    can you send me the visual basic code that runs this motor
    as i need this concept in my project

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  4. Dalton says:

    Looks awesome!
    If you can send the VB code to me so I can un-commercially use it, that would be awesome!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  5. Sean says:

    I have a motor similar to this but I cant figure out what leads go for what coil. How did you figure it out?

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  6. Mohammad says:

    @Sean. Use you multimeter. If your motor has 6 wires, it must be unipolar stepper motor. If 4, it is bipolar (no center pole). If you have basic knowledge on uni/bi-polar stepper motor, you can easily figure out the right schematic of your coils just using a multimeter. For more info about stepper motor, you can visit http://www.doc.ic.ac.uk/~ih/doc/stepper/control2/connect.html

    VN:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  7. gail says:

    hi! nice work! but i would really appreciate if you
    could also send me the visual basic code that runs this motor as i need the concept for our project. Thanks!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  8. X says:

    Hi! Mohammad
    Can you tell me step by step how do you use Visual Basic program to make the stepper motor work ?
    Email me , Thanks

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  9. Nizam Uddin says:

    Hi Mohammad bhaI,

    How are U ? where is Pechali ? any problem or busy ?

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  10. Reeshad says:

    Dear Mohammad: Good one ! Hope to see your upgraded one.. Thanks

    VA:F [1.9.3_1094]
    Rating: 4.0/5 (1 vote cast)
    VA:F [1.9.3_1094]
    Rating: +1 (from 1 vote)

Leave a Reply