Programming Pololu Dual Serial Motor Controller
Johannes Beilman
Posts: 4
I am a new user who is using a Pololu Dual Serial Motor Controller on a Homework Board. I am trying to control both motors in a Tamiya 70097 Dual Motor Gearbox.
By using the following commands I can control 1 motor at a time:
(Motor 1 FWD) SEROUT 14,84,[noparse][[/noparse]$80,0,3,SPEED]
(Motor 1 REV) SEROUT 14,84,[noparse][[/noparse]$80,0,2,SPEED]
(Motor 2 FWD) SEROUT 14,84,[noparse][[/noparse]$80,0,5,SPEED]
(Motor 2 REV) SEROUT 14,84,[noparse][[/noparse]$80,0,4,SPEED]
Here is the actual program i used:
' {$STAMP BS2}
' {$PBASIC 2.5}
SPEED VAR Byte
HIGH 14
LOW 15
HIGH 15
PAUSE 100
Speed = 127
SEROUT 14,84,[noparse][[/noparse]$80,0,5,SPEED]
My question is: How to control both motors at a time. I have read the Pololu manual and it describes this, but I am having trouble understanding what the four-byte command should actually look like. Can anyone post an appropriate SEROUT command that will help me accomplish simultaneous motor activity using this controller?
Thanks in advance for your assistance.
By using the following commands I can control 1 motor at a time:
(Motor 1 FWD) SEROUT 14,84,[noparse][[/noparse]$80,0,3,SPEED]
(Motor 1 REV) SEROUT 14,84,[noparse][[/noparse]$80,0,2,SPEED]
(Motor 2 FWD) SEROUT 14,84,[noparse][[/noparse]$80,0,5,SPEED]
(Motor 2 REV) SEROUT 14,84,[noparse][[/noparse]$80,0,4,SPEED]
Here is the actual program i used:
' {$STAMP BS2}
' {$PBASIC 2.5}
SPEED VAR Byte
HIGH 14
LOW 15
HIGH 15
PAUSE 100
Speed = 127
SEROUT 14,84,[noparse][[/noparse]$80,0,5,SPEED]
My question is: How to control both motors at a time. I have read the Pololu manual and it describes this, but I am having trouble understanding what the four-byte command should actually look like. Can anyone post an appropriate SEROUT command that will help me accomplish simultaneous motor activity using this controller?
Thanks in advance for your assistance.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax