Shop OBEX P1 Docs P2 Docs Learn Events
hook up gear motors to board of education development board — Parallax Forums

hook up gear motors to board of education development board

hdingramhdingram Posts: 6
edited 2011-02-23 17:10 in Robotics
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

Comments

Sign In or Register to comment.