Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Duel Motor Control — Parallax Forums

Parallax Duel Motor Control

kenwtnkenwtn Posts: 250
edited 2008-04-20 23:55 in BASIC Stamp
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

Comments

  • Steve JoblinSteve Joblin Posts: 784
    edited 2008-04-20 18:32
    1. Do you mean you have a Pololu Dual Serial Motor Controller?

    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?
  • kenwtnkenwtn Posts: 250
    edited 2008-04-20 23:55
    Thanks for your suggestions. After further test I have found that the Pololu Serial Motor Driver will only drive the smallest of motors without over heating. I thought it would have handled the motors in the RC tank since it is not very large, but the current draw must be too much for the controller.
Sign In or Register to comment.