Shop OBEX P1 Docs P2 Docs Learn Events
Stepper motor driver program — Parallax Forums

Stepper motor driver program

GTGT Posts: 2
edited 2009-07-12 19:36 in BASIC Stamp
Hi there,

I hope someone can advise me what to change in your attached sample program at the end of this email.

Stepper motor driver routine (Parallax own example version).

Under the heading 'Initialisation' the DIRB value is %1111 for outputs P4.....P7

I want to use outputs P8.....P11.

What do I have to change (and to what) in the DIRB value and subsequent related instructions to make this work? I have run the program as is and added a few Debug points which shows it is doing what it's meant to. I just need to change the ports so I can use an existing PCB to drive the stepper motor (a Portoscap 42MO48C1U 5v 9.1ohm 7.5°) via a ULN2003 driver chip from outputs P8.....P11.

I hope you can help me on this one. Just can't got to grips with the DIRS command!

Best regards,

Gerry Taylor.

Comments

  • dev/nulldev/null Posts: 381
    edited 2009-07-10 01:53
    Change DIRB to DIRC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-07-12 19:36
    Duplicate post removed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
Sign In or Register to comment.