ChaosNOrder
02-09-2010, 09:36 AM
I'm working with the bs2 with the pololu..(refer to sub.) and with the code im working with I'm getting poor performance. Its ramping up and down to quickly to see much of any movement. I'm using a tamiya(sp) gearbox and motor set from a bulldozer set. That's all i know as far as motor specs. Can anyone suggest how to get the motors to run continuously or until an interrupt from from ping.
' {$STAMP BS2}
' {$PBASIC 2.5}
speed VAR Byte
HIGH 2
LOW 1
HIGH 1
PAUSE 100
FOR speed = 0 TO 127
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 127 TO 0
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 0 TO 127
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 127 TO 0
SEROUT 2,84,[$80,0,1,speed]
PAUSE 20
NEXT
' {$STAMP BS2}
' {$PBASIC 2.5}
speed VAR Byte
HIGH 2
LOW 1
HIGH 1
PAUSE 100
FOR speed = 0 TO 127
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 127 TO 0
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 0 TO 127
SEROUT 2,84,[$80,0,0,speed]
PAUSE 20
NEXT
FOR speed = 127 TO 0
SEROUT 2,84,[$80,0,1,speed]
PAUSE 20
NEXT