Driving stepper motors / schematic comprehension help

 comp.robotics.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Driving stepper motors / schematic comprehension help Adman 03-28-2008
Posted by on March 29, 2008, 11:15 am
Please log in for more thread options
> > so, small positive voltage on base (control) ends up giving
> > your stepper motor GROUND (negative)
>
> Gotcha... =A0I guess I expected "ground" to be a wire coming out of the
> whole system. =A0It appears from the schematic that there is some sort
> sort of "internal ground".
>
> That is, if I apply a control signal to the base of one of the
> transistors, the current flows from the source, through the coil,
> through the transistor, and into the internal ground... ?
>

Not "internal ground"... just grounded to the case... there is
probably
a terminal on the case, or a terminal on the PCB that ends up being
connected
to all the appropriate spots (places in the circuit where "ground" is
needed")

The NEGATIVE side of the parallel port (GND) would be connected to
the
GND of the stepper controller... this flows to the "little black
boxes" you see
in the schematic.

ground is shown as a block, or often as a T with reducing width lines
on top:

(view with monospace font)
=2E._..
=2E___.
_____
=2E.|..

The reason: to clear up the schematic. a ground symbol means
"connected
to negative side of power supply". If you had a schematic with all
the grounds
shown, they end up crossing over all of the positive lines, and the
schematic
ends up being very hard to read.

Rich





Posted by Curt Welch on March 29, 2008, 10:56 am
Please log in for more thread options
> Hi all... I'm a software guy trying to learn the ropes of electronics.
>
> I have the goal of controlling a stepper motor using my PC parallel
> port to create +5v control signals. Shouldn't be that hard, right?
>
> My understanding of 5-wire stepper motors is that there will be one
> common power wire, and four other wires coming out. Attach the power
> wire to the power source, and attach the other wires to ground (using
> some logic to connect the right ones to ground at the right time), and
> you're all set.
>
> I bought a unipolar stepper motor... the first one listed on this
> page:
>
> http://www.futurlec.com/StepperMotors.shtml
>
> One thing I noticed is that the spec sheet lists that it has a "drive
> circuit".

No, the drive circuit is not part of the stepper.

All I see on the spec sheet is the "Drive IC" as 2SC3346 which seems (when
I look it up on the internet) to just be a a high power switching
transistor you could use to build a drive circuit. I read that as just a
suggestion of the type of drive circuit you could use to drive it.

If the stepper actually included a drive circuit, it would give you far
more detailed specs on the drive circuit instead of just listing the part
number of a single transistor.

> Some more investigation led me here:
>
> http://www.eminebea.com/content/html/en/engineering/motors/pm_motor/selec
> tion_pm/drivecircuit.shtml
>
> Since I bought a unipolar stepper, I think the first schematic on the
> page applies. I'm not quite sure how to read it. It appears that
> what I want to do is attach my parallel port data pins DIRECTLY to the
> bases of each of the transistors (which is what the four non-power
> wires coming out of the motor will be).

No, that's not how I read it.

The transistors and diodes in that schematic are NOT part of the stepper.
They are just shown as a _typical_ drive circuit and how you would connect
a _typical_ drive circuit to the stepper. The wires coming out of your
stepper will be the black, red, brown, etc writes connected directly to the
coil.

You still need to buy or build some type of drive circuit because the
signals on your parallel port do not have the right voltage or current to
directly drive your stepper.

> If that's the case, it looks like I use my parallel port control
> signals to activate each transistor according to activate the internal
> electromagnets in the proper order.

That's right in theory. But you have to get the voltage and polarity and
current right. That is, the drive circuit you end up using has to be
compatible with the signals coming from your parallel port. In that
schematic, which uses NPN transistors, you would have to apply a positive
voltage to the base to make the transistor "turn on" and a ground (or
negative, or just open) to make the transistor turn off. The parallel port
would need to supply enough current at a positive voltage to make that
work. "enough" will be a function of the amplification of the transistor
(it's beta) and the current you need to drive the stepper. I don't
remember how parallel ports work, but you might need something like a
pull-up resistor in there as well. Which is why it's best to just buy a
drive circuit designed for working with a parallel port or to find a
schematic of one for your need and build it if you want to have fun
learning to do that.

I'm sure you can get some suggestions here on where to find a drive circuit
for your needs.

> Being a smart software guy, I can
> handle that. When I do that, the power will go through the coils,
> through the transistors, and into the little black boxes.
>
> What are those little black boxes? Some sort of internal ground?

That's just a generic symbol which means ground. It's where the negative
of the power source driving the coils are connected.

> Sorry for the newbish questions, but every description of a unipolar
> stepper motor seems to imply that I need to build or buy my own drive
> circuitry. So the idea that this one might come with its own already
> built right in is throwing me for a loop.

It doesn't have it's own internal circuit. You do need to build or buy a
drive circuit. I've never played with these so I don't have any
suggestions on what to get, but I suspect you can find one made to be
driven by a parallel port - lots of people do that. Or at least they used
to back when all PCs had parallel ports. :)

> If someone could confirm my suspicions, or point me in the right
> direction, I'd appreciate it.
>
> Also, I don't actually have the motor in my hand yet. It's being
> shipped. I'm just trying to get things figured out before it gets
> here. :)
>
> Thanks!
> Adman

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

Posted by cadcoke4 on March 29, 2008, 11:43 am
Please log in for more thread options
On Mar 29, 9:56=A0am, c...@kcwc.com (Curt Welch) wrote:
> It doesn't have it's own internal circuit. =A0You do need to build or buy =
a
> drive circuit. =A0

I suspected this myself but wasn't absolutely sure. It looks like
circuit Adman provided the link to is really just a generic diagram
showing what the external circuitry might look like (without values,
resistors, etc). It is not a circuit actually provided with the
stepper motor.

The part you are buying is indicated on the drawing by the dotted line
box, which indicates what part of the diagram is the actual motor you
are purchasing.

Joe Dunfee

Posted by Adman on March 29, 2008, 4:18 pm
Please log in for more thread options
Great. Thank you all very much for your comments.

Posted by John Nagle on March 30, 2008, 2:22 am
Please log in for more thread options
Adman wrote:
> Hi all... I'm a software guy trying to learn the ropes of electronics.
>
> I have the goal of controlling a stepper motor using my PC parallel
> port to create +5v control signals. Shouldn't be that hard, right?

1985 called. It wants its PC/AT back.

                                        John Nagle

Similar ThreadsPosted
stepper driving problem! February 23, 2006, 11:33 pm
Driving small DC motors with very low speeds July 4, 2005, 3:19 am
PPM signal decoding and driving 10 RC servo motors October 7, 2006, 7:42 am
FA (UK Only) 80 off Stepper and Synchronous motors December 12, 2008, 8:23 am
stepper motors and basic stamp August 27, 2007, 2:07 pm
stepper or servo motors that are the same size of a standard dc motor? February 10, 2007, 12:25 pm
Re: Looking for sources of low cost NEMA size 17 bipoloar stepper motors December 7, 2007, 8:06 pm
Re: Looking for sources of low cost NEMA size 17 bipoloar stepper motors December 7, 2007, 8:40 pm
Re: Looking for sources of low cost NEMA size 17 bipoloar stepper motors December 7, 2007, 9:25 pm
Re: Looking for sources of low cost NEMA size 17 bipoloar stepper motors December 10, 2007, 10:57 am

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

Contact Us | Privacy Policy