Keyestudio Smart Little Turtle Robot V3 Manual page 137

Table of Contents

Advertisement

www.keyestudio.com
#define MR_PWM 5
void setup()
{ pinMode(ML_Ctrl, OUTPUT);//set the direction control pin of A motor to
OUTPUT
pinMode(ML_PWM, OUTPUT);//set the PWM control pin of A motor to
OUTPUT
pinMode(MR_Ctrl, OUTPUT);//set the direction control pin of B motor to
OUTPUT
pinMode(MR_PWM, OUTPUT);//set the PWM control pin of B motor to
OUTPUT
}
void loop()
{ digitalWrite(ML_Ctrl,LOW);//set the direction control pin of A motor to
low level
analogWrite(ML_PWM,100);//set the PWM control speed of A motor to
100
digitalWrite(MR_Ctrl,LOW);//set the direction control pin of B motor to
low level
analogWrite(MR_PWM,100);//set the PWM control speed of B motor to
//define the PWM control pin of B motor
137

Advertisement

Table of Contents
loading
Need help?

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

Table of Contents