User Manual

RoboClaw Series
Brushed DC Motor Controllers
RoboClaw Series User Manual
103
BASICMICRO
void loop() {
roboclaw.SpeedM1(address,speed);
roboclaw.SpeedM2(address,speed);
for(uint8_t i = 0;i<100;i++){
displayspeed();
delay(10);
}
roboclaw.SpeedM1(address,-speed);
roboclaw.SpeedM2(address,-speed);
for(uint8_t i = 0;i<100;i++){
displayspeed();
delay(10);
}
roboclaw.SpeedM1(address,0);
roboclaw.SpeedM2(address,0);
delay(2000);
roboclaw.SpeedM1(address,speed2);
roboclaw.SpeedM2(address,-speed2);
for(uint8_t i = 0;i<100;i++){
displayspeed();
delay(10);
}
roboclaw.SpeedM1(address,-speed2);
roboclaw.SpeedM2(address,speed2);
for(uint8_t i = 0;i<100;i++){
displayspeed();
delay(10);
}
roboclaw.SpeedM1(address,0);
roboclaw.SpeedM2(address,0);
delay(2000);
}