how to control stepper motor

General Robotics Forum - All aspects of robots and their applications. 

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
how to control stepper motor abhi 08-09-2006
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by abhi on August 9, 2006, 11:47 am
i have just started to work upon my 1st robot.. at 1st i m trying to
make my robo movement control mechanism.. i have a stepper motor with 5
wires from it.. but i dont kno how to work with this.. i want to
control its rotation through microchip PIC.. plz do me a favout to know
how to control its rotation through these 5 wires how to interface it
through pic output since it gives bit less then 5V of 0utput..


Posted by Wayne Lundberg on August 9, 2006, 1:02 pm

> i have just started to work upon my 1st robot.. at 1st i m trying to
> make my robo movement control mechanism.. i have a stepper motor with 5
> wires from it.. but i dont kno how to work with this.. i want to
> control its rotation through microchip PIC.. plz do me a favout to know
> how to control its rotation through these 5 wires how to interface it
> through pic output since it gives bit less then 5V of 0utput..

Highly recommend you spend $25 and buy the Stepper motor Controller Kit from
All Electronics which contains the chip, switches, motor, PC board and basic
instructions. You will get a real 'hands on' feel and know-how by playing
around with it. Cat# SMKIT-2 www.allelectronics.com - I am in no way
associated with this company, just a very pleased customer for years.

Wayne




Posted by Curt Welch on August 9, 2006, 1:58 pm
> > i have just started to work upon my 1st robot.. at 1st i m trying to
> > make my robo movement control mechanism.. i have a stepper motor with 5
> > wires from it.. but i dont kno how to work with this.. i want to
> > control its rotation through microchip PIC.. plz do me a favout to know
> > how to control its rotation through these 5 wires how to interface it
> > through pic output since it gives bit less then 5V of 0utput..
> Highly recommend you spend $25 and buy the Stepper motor Controller Kit
> from All Electronics which contains the chip, switches, motor, PC board
> and basic instructions. You will get a real 'hands on' feel and know-how
> by playing around with it. Cat# SMKIT-2 www.allelectronics.com - I am in
> no way associated with this company, just a very pleased customer for
> years.
> Wayne

And here's a useful spec sheet on the stepper motor control IC from that
same site:

http://www.allelectronics.com/spec/EDE-1200.pdf

It has some typical application schematics to give you some ideas.

If you want to do all the control in software on the PIC, then all you need
is the driver circuits.

A 5 wire motor probably has 4 coils with one wire as a common connected to
all 4 coils. To control the motor, you must energize one coil at a time in
sequence. To make it half-step, you can energize two coils at the same
time to cause the motor to move to a position half way between two steps.

Normally, the +V motor supply will be hooked to the motor common, and the
driver circuit will ground a coil to activate it.

The simple way to do this with a pic is to just use 4 output lines
connected through a driver of some type (transistors or an IC driver) to
the motor. The pdf above has example schematics for drivers.

Here's a site on stepper motors I just found that should help you as well:

http://www.doc.ic.ac.uk/~ih/doc/stepper/

There are ton's of sites on the net to give you ideas if you just Google a
bit.

--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com http://NewsReader.Com/

Posted by Gordon McComb on August 9, 2006, 3:37 pm
abhi wrote:
>
> i have just started to work upon my 1st robot.. at 1st i m trying to
> make my robo movement control mechanism.. i have a stepper motor with 5
> wires from it.. but i dont kno how to work with this.. i want to
> control its rotation through microchip PIC.. plz do me a favout to know
> how to control its rotation through these 5 wires how to interface it
> through pic output since it gives bit less then 5V of 0utput..

Since you appear to be based in India, I would assume buying a kit from
a US-based retailer is not in your plans. Instead, you can go here for
starters on figuring out the wiring diagram, as well as get
microcontroller interfacing ideas:

http://www.doc.ic.ac.uk/~ih/doc/stepper/control2/connect.html

Wire colors change, so yours may not be be exactly like that on the
page. But do a Google search and you'll find plenty of this type of
information. I Googled 'stepper motor wiring diagrams' and this was the
first hit. You can do the same.

-- Gordon

Posted by rue_mohr on August 17, 2006, 12:39 pm
if you have a digital camera of any sort, or if you dont, try getting an
irc client ( like Xchat or MIRC) and join the #robotics channel of the
freenode network (for example the irc.linux.org server), there are
plenty of people who can help you realtime to get run your steppers,
using whatever parts you can get. I'd dig into it now with you, but its
hard when I keep forgetting what I'm talking about.

dan

abhi wrote:
> i have just started to work upon my 1st robot.. at 1st i m trying to
> make my robo movement control mechanism.. i have a stepper motor with 5
> wires from it.. but i dont kno how to work with this.. i want to
> control its rotation through microchip PIC.. plz do me a favout to know
> how to control its rotation through these 5 wires how to interface it
> through pic output since it gives bit less then 5V of 0utput..
>


The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy