hook up gear motors to board of education development board
hey how i can i program a the Board of Education Development Board (USB), and
the 7.2V Motor, with gear motors i think the program i have is written for a servo motor. How can i change the program to a gear motor program
FOR counter = 1 TO 6 ' Forward
PULSOUT 11, 850
PULSOUT 13, 450
PULSOUT 5, 850
PULSOUT 6, 450
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 6 ' Backward
PULSOUT 11, 450
PULSOUT 13, 450
PULSOUT 5, 850
PULSOUT 6, 850
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 24 ' Rotate left - about 1/4 turn
PULSOUT 11, 450
PULSOUT 13, 450
PULSOUT 5, 450
PULSOUT 6, 450
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 24 ' Rotate right - about 1/4 turn
PULSOUT 11, 850
PULSOUT 13, 850
PULSOUT 5, 850
PULSOUT 6, 850
PAUSE 20
NEXT
PAUSE 4000
the 7.2V Motor, with gear motors i think the program i have is written for a servo motor. How can i change the program to a gear motor program
FOR counter = 1 TO 6 ' Forward
PULSOUT 11, 850
PULSOUT 13, 450
PULSOUT 5, 850
PULSOUT 6, 450
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 6 ' Backward
PULSOUT 11, 450
PULSOUT 13, 450
PULSOUT 5, 850
PULSOUT 6, 850
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 24 ' Rotate left - about 1/4 turn
PULSOUT 11, 450
PULSOUT 13, 450
PULSOUT 5, 450
PULSOUT 6, 450
PAUSE 20
NEXT
PAUSE 4000
FOR counter = 1 TO 24 ' Rotate right - about 1/4 turn
PULSOUT 11, 850
PULSOUT 13, 850
PULSOUT 5, 850
PULSOUT 6, 850
PAUSE 20
NEXT
PAUSE 4000
Comments
Most importantly, never ask the same question twice, or even cross-post in different forums. That's against forum rules. So delete this post and return to your other post at http://forums.parallax.com/showthread.php?129856-Robot-going-backwards-help-please , where you have a few replies already. Why didn't you respond to those? You'll need to describe your H-bridge in hopes that we can help you.