pololu dual serial motor controller
Henrymou
Posts: 128
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
Post Edited By Moderator (Chris Savage (Parallax)) : 1/9/2008 6:49:13 PM GMT
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
Post Edited By Moderator (Chris Savage (Parallax)) : 1/9/2008 6:49:13 PM GMT
Comments
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
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.