Shop OBEX P1 Docs P2 Docs Learn Events
Please review program — Parallax Forums

Please review program

MacGeek117MacGeek117 Posts: 747
edited 2007-05-09 19:25 in Propeller 1
This is one of my first assembly programs, and I need someone to review it to see if it would work.(I don't have the motor or components to make the driver circuit.)
RoboGeek
P.S. The driver circuit is based on the L297.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com

Comments

  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-05-04 21:33
    until you have the components it doesn't matter if it works. I assume its just sending pulses out, why not slow it down and add some LEDs.

    Graham
  • Christof Eb.Christof Eb. Posts: 1,116
    edited 2007-05-06 19:12
    RoboGeek,

    I think the L297 has two inputs per motor and needs a 2bit pattern?
    01
    11
    10
    00 and start again,
    or something like that. I did not recognize this in your code, but perhaps it's my fault.

    I remember, that I have seen a stepper driver program somewhere here in the forum.

    Christof
  • BTXBTX Posts: 674
    edited 2007-05-07 12:17
    Sorry RoboGeek.
    Why did you use assembly instead of spin ?
    In most cases spin is able to controll the L297 fine, except if you've sttings of a very high steps per revolution, and need a very high speed in the axis.

    Sorry Christof.
    Also the L297, only needs a single clock pulse to get the motor rotate, a fixed logic "one" in the "CW/CCW" pin to get it reverse, enable controll, and a fixed logic state to the "HALF/FULL" pin, if you want to change to micro step...Why do you talk about two bits pattern ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Regards.

    Alberto.
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-05-09 16:50
    BTX, I'm trying to learn assembly, and I thought I would try to port an existing Spin program to asm.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
  • Christof Eb.Christof Eb. Posts: 1,116
    edited 2007-05-09 18:34
    Sorry, I was wrong.

    I had the L298 in mind. Is a L297 needed in addition?

    Christof
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-05-09 19:25
    the L298 is a dual bipolar H-bridge, the L297 is a stepper motor driver. The L297 is not necessary, but it makes life easier.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
Sign In or Register to comment.