Shop OBEX P1 Docs P2 Docs Learn Events
dividing control of stepper motors — Parallax Forums

dividing control of stepper motors

ArchiverArchiver Posts: 46,084
edited 2002-01-08 15:37 in General Discussion
Hello,

I'd like to control four small stepper motors with a stamp using the
inexpensive ULN2003 transistor array that is shown in StampWorks experiment #
26, but I don't want to use all 16 pins for control (four pins per motor).

The motors don't need to be run at the same time, so I was thinking, since
unipolar steppers have four coils with one common line, that I could hook up
the four motors' coils together, but choose which motor to run by only enabling
the common line of the motor that needs to be controlled.

Again, i'm running out of pins fast, so the least number of pins to choose
which of the four motors to use would be two pins in different combinations (0
to 3). I guess I would need some sort of quad logic chip that takes two inputs
and has four separate output pins? I'm not sure. Then i'm also not sure what
device to put at the end those outputs to connect and disconnect the common
wire from each stepper, perhaps a simple relay for each motor or another
transistor array?

If anyone has experience with this and doesn't mind sharing their solution I'd
appreciate it.

Thanks,
Stewart






--
Stewart Mayer, stew@k... on 01/07/2002

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-01-07 21:26
    At 12:29 PM 1/7/02 -0600, you wrote:
    > I guess I would need some sort of quad logic chip that takes two inputs
    >and has four separate output pins?

    Take a look at the EDE1200 (five or six wire motors) or the EDE1204 (four
    wire motors). It does just what you describe. www.elabinc.com in the
    'EDExx IC Family' section of the website.

    >Then i'm also not sure what
    >device to put at the end those outputs to connect and disconnect the common
    >wire from each stepper, perhaps a simple relay for each motor or another
    >transistor array?

    Hookup schematics are in the EDE1200 & EDE1204 datasheets. PDF datasheets
    are downloadable at the above address, or e-mail me off-list with your
    mailing address for a CD-ROM of our Stamp related IC's.


    Todd Peterson
    E-Lab Digital Engineering, Inc.

    (816) 257-9954 FAX: (816) 257-9945
    www.elabinc.com
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-08 00:19
    You could use a couple of 75HC595s to create 16 outputs from just three Stamp
    pins and go from there. The 75HC595 is also covered in StampWorks.

    -- Jon Williams
    -- Parallax


    In a message dated 1/7/02 12:28:58 PM Central Standard Time,
    stewlist@k... writes:


    > Hello,
    >
    > I'd like to control four small stepper motors with a stamp using the
    > inexpensive ULN2003 transistor array that is shown in StampWorks experiment
    > #
    > 26, but I don't want to use all 16 pins for control (four pins per motor).
    >
    > The motors don't need to be run at the same time, so I was thinking, since
    > unipolar steppers have four coils with one common line, that I could hook
    > up
    > the four motors' coils together, but choose which motor to run by only
    > enabling
    > the common line of the motor that needs to be controlled.
    >
    > Again, i'm running out of pins fast, so the least number of pins to choose
    > which of the four motors to use would be two pins in different combinations
    > (0
    > to 3). I guess I would need some sort of quad logic chip that takes two
    > inputs
    > and has four separate output pins? I'm not sure. Then i'm also not sure
    > what
    > device to put at the end those outputs to connect and disconnect the common
    > wire from each stepper, perhaps a simple relay for each motor or another
    > transistor array?
    >
    > If anyone has experience with this and doesn't mind sharing their solution
    > I'd
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-08 15:37
    I looked at the stampworks experiment and that is an excellent suggestion. I
    also looked at the elabinc.com chips, but they would require more pins,
    especially for four than I can part with.

    Thanks for the help!

    Stewart



    On Mon, 7 Jan 2002 19:19:24 EST, jonwms@a... wrote:
    >You could use a couple of 75HC595s to create 16 outputs from just three Stamp
    >pins and go from there. The 75HC595 is also covered in StampWorks.
    >
    >-- Jon Williams
    >-- Parallax
    >
    >
    >In a message dated 1/7/02 12:28:58 PM Central Standard Time,
    >stewlist@k... writes:
    >
    >
    >>Hello,
    >>
    >>I'd like to control four small stepper motors with a stamp using the
    >>inexpensive ULN2003 transistor array that is shown in StampWorks experiment
    >>#
    >>26, but I don't want to use all 16 pins for control (four pins per motor).
    >>
    >>The motors don't need to be run at the same time, so I was thinking, since
    >>unipolar steppers have four coils with one common line, that I could hook
    >>up
    >>the four motors' coils together, but choose which motor to run by only
    >>enabling
    >>the common line of the motor that needs to be controlled.
    >>
    >>Again, i'm running out of pins fast, so the least number of pins to choose
    >>which of the four motors to use would be two pins in different combinations
    >>(0
    >>to 3). I guess I would need some sort of quad logic chip that takes two
    >>inputs
    >>and has four separate output pins? I'm not sure. Then i'm also not sure
    >>what
    >>device to put at the end those outputs to connect and disconnect the common
    >>wire from each stepper, perhaps a simple relay for each motor or another
    >>transistor array?
    >>
    >>If anyone has experience with this and doesn't mind sharing their solution
    >>I'd
    >>
    >
    >
    >
    >
    >[noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    >basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and Body
    of the message will
    >be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >


    --
    Stewart Mayer, stewlist@k... on 01/08/2002
Sign In or Register to comment.