Shop OBEX P1 Docs P2 Docs Learn Events
HB25 help — Parallax Forums

HB25 help

Miles. kMiles. k Posts: 34
edited 2010-01-10 18:30 in BASIC Stamp
i am building a robot with 2 HB25 motor controllers. Below is one of the subroutines.

FOR pulsecount = 0 TO 5
PULSOUT HB25, 850
PAUSE 1
PULSOUT HB25, 650
PAUSE 20
NEXT

when i run the program the right wheel spins about 1 second longer than the left wheel.
When both wheels are just suppose to stop at the same.
How can i fix this?
Thanks,
Miles. K

Comments

  • $WMc%$WMc% Posts: 1,884
    edited 2010-01-08 01:15
    Miles

    Posting the rest of Your code would help.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
  • Miles. kMiles. k Posts: 34
    edited 2010-01-08 01:24
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    pulseCount VAR Byte
    HB25 PIN 13

    FOR pulsecount = 0 TO 5
    PULSOUT HB25, 850
    PAUSE 1
    PULSOUT HB25, 650
    PAUSE 20
    NEXT
  • FranklinFranklin Posts: 4,747
    edited 2010-01-09 04:31
    You could send a stop (750) pulsout rather than just let them run out.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Miles. kMiles. k Posts: 34
    edited 2010-01-10 18:30
    how would i do that. like where to put it, and how to put it in my code?

    Thanks,
    Miles
Sign In or Register to comment.