Shop OBEX P1 Docs P2 Docs Learn Events
Steppers — Parallax Forums

Steppers

ArchiverArchiver Posts: 46,084
edited 2002-01-14 12:52 in General Discussion
Would anybody Know where i could find some pbasic code for driving 2
stepper motors (robot style-opposed motors) using L297/L298 drivers.
Thanks in advance

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-12-20 17:03
    There is not much to the code for a L287/298 setup. It is a step and
    direction interface with an enable pin. Drive the enable high (or tie it
    high) and then sent a pulse every time you want to step and toggle the
    direction line before the pulse if you want it to go the other
    direction.

    Tim
    [noparse][[/noparse]Denver, CO]
    Super special on close-out Gecko stepper drivers for serious power
    http://www.timgoldstein.com/cnc/g201special.asp


    > Subject: Steppers
    >
    > Would anybody Know where i could find some pbasic code for driving 2
    > stepper motors (robot style-opposed motors) using L297/L298
    > drivers. Thanks in advance
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-14 12:52
    Hi. Im driving dual steppers using L297/L298 H/bridge & controller
    circuits, each motor has its own circuit identical and interchangable
    to the other).The stepper controller chip requires enable, direction,
    and pulse signals for speed from the bs2. One of my many problems is
    that the motors are running at different speeds with the same
    pulseout command (1000). After diagnosing, the variation looks to be
    comming from the stamp. Have i stuffed something or missed something?
    Any advice is much appreciated.

    Thanks in advance
    Missfeed
Sign In or Register to comment.