Parallax Duel Motor Control
kenwtn
Posts: 250
HI,
···· I have the dual contol on a small RC tank I have. The power is supplied by a standard 7.2 six cell battery pack. When I run the following program motor 1 runs good·at full speed forward, then when the full reverse is excuted the motor turns but jerks. This is the same for the rest of the code motor 2 both forward and reverse. Any IDEAS?
' {$STAMP BS2}
' {$PBASIC 2.5}
speed·· VAR·· Byte
HIGH· 0· ·············'set signal pin high
LOW ·1
HIGH ·1 ·············'reset controller
PAUSE 20000······················ 'delay
speed = 127············'set full speed
testloop:
DEBUG HOME,CR,"Motor 0 FWD"
· SEROUT 0,84,[noparse][[/noparse]$80,0,5,speed] ··'forward
· PAUSE 10000
DEBUG CR,"Motor 0 Rev"
· SEROUT 0,84,[noparse][[/noparse]$80,0,4,speed]· ··'reverse
· PAUSE 10000
· SEROUT 0,84,[noparse][[/noparse]$80,0,4,0]···· ··'full stop
·DEBUG CR,"Motor 1 fwd"
· SEROUT 0,84,[noparse][[/noparse]$80,0,7,speed]· ··'forward
· PAUSE 10000
·DEBUG CR,"Motor 1 Rev"
· SEROUT 0,84,[noparse][[/noparse]$80,0,6,speed] ··'reverse
· PAUSE 10000
· SEROUT 0,84,[noparse][[/noparse]$80,0,6,0]···· ··'full stop
PAUSE 10000
GOTO testloop ··········'do it all again
···· I have the dual contol on a small RC tank I have. The power is supplied by a standard 7.2 six cell battery pack. When I run the following program motor 1 runs good·at full speed forward, then when the full reverse is excuted the motor turns but jerks. This is the same for the rest of the code motor 2 both forward and reverse. Any IDEAS?
' {$STAMP BS2}
' {$PBASIC 2.5}
speed·· VAR·· Byte
HIGH· 0· ·············'set signal pin high
LOW ·1
HIGH ·1 ·············'reset controller
PAUSE 20000······················ 'delay
speed = 127············'set full speed
testloop:
DEBUG HOME,CR,"Motor 0 FWD"
· SEROUT 0,84,[noparse][[/noparse]$80,0,5,speed] ··'forward
· PAUSE 10000
DEBUG CR,"Motor 0 Rev"
· SEROUT 0,84,[noparse][[/noparse]$80,0,4,speed]· ··'reverse
· PAUSE 10000
· SEROUT 0,84,[noparse][[/noparse]$80,0,4,0]···· ··'full stop
·DEBUG CR,"Motor 1 fwd"
· SEROUT 0,84,[noparse][[/noparse]$80,0,7,speed]· ··'forward
· PAUSE 10000
·DEBUG CR,"Motor 1 Rev"
· SEROUT 0,84,[noparse][[/noparse]$80,0,6,speed] ··'reverse
· PAUSE 10000
· SEROUT 0,84,[noparse][[/noparse]$80,0,6,0]···· ··'full stop
PAUSE 10000
GOTO testloop ··········'do it all again
Comments
2. Are you using one power supply for both the Stamp and the Pololu Dual Serial Motor Controller?... I recommend using two seperate power supplies with the grounds tied together.
3. Did you check the voltage of our battery pack with a volt meter?