www.keyestudio.com
200
delay(2000);//delay in 2000ms
//back
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of A motor to
HIGH level
analogWrite(ML_PWM,200);// set the PWM control speed of A motor to
200
digitalWrite(MR_Ctrl,HIGH);//set the direction control pin of B motor to
HIGH level
analogWrite(MR_PWM,200);//set the PWM control speed of B motor to
200
delay(2000);//delay in 2000ms
//left
digitalWrite(ML_Ctrl,HIGH);//set the direction control pin of A motor to
HIGH level
analogWrite(ML_PWM,200);//set the PWM control speed of A motor to
200
digitalWrite(MR_Ctrl,LOW);//set the direction control pin of B motor to
LOW level
analogWrite(MR_PWM,200);//set the PWM control speed of B motor to
200
delay(2000);//delay in 2000ms
134
Need help?
Do you have a question about the Smart Little Turtle Robot V3 and is the answer not in the manual?
Questions and answers