how to make the motor to rotates continously?...when i test this code, the servo motor just move one time only....
define osc 20
trisa.0=0 ''LEFT MOTOR''
trisa.1=0 ''RIGHT MOTOR''
LM var porta.0
RM var porta.1
Forward:
PULSOUT 0, 170 ‘ Left wheel anti-clockwise
PULSOUT 1, 130 ‘ Right wheel clockwise
PAUSE 20 ‘ Wait 20 ms
GOTO Forward ‘ Repeat
Bookmarks