Shop OBEX P1 Docs P2 Docs Learn Events
pololu dual serial motor controller — Parallax Forums

pololu dual serial motor controller

HenrymouHenrymou Posts: 128
edited 2008-01-04 05:33 in BASIC Stamp
I am using the pololu dual serial motor controller from parallax w/ a basic stamp 2
in the following program, only 1 motor should turn
but in reality both motors are stuttering

' {$STAMP BS2}
' {$PBASIC 2.5}
speed VAR Byte
DO
HIGH 14
LOW 15
HIGH 15
PAUSE 100
speed = 127
SEROUT 14,84,[noparse][[/noparse]$80, 0, 0,speed]
PAUSE 20
LOOP

has the motor controller fried?
please help
-Henry
freaked.gif

Post Edited By Moderator (Chris Savage (Parallax)) : 1/9/2008 6:49:13 PM GMT

Comments

  • Technic-R-CTechnic-R-C Posts: 117
    edited 2008-01-04 04:54
    Hmmmmm......

    Well this happened to me also because the motor controller overheated.

    However... In your code I would try placing:

    HIGH 14
    LOW 15
    HIGH 15
    PAUSE 100
    speed = 127

    before the Do....Loop.

    Then you would not be restarting the pololu motor controller·during every loop cycle.

    Technic-R-C
  • HenrymouHenrymou Posts: 128
    edited 2008-01-04 05:33
    well, It's controlling two 1.5V motors at a 5v power supply.
    I did this and it worked THANKS!
    I think that because the Stamp is sending serial data that It was getting confused while being programmed.
Sign In or Register to comment.