pos=pos+1; // in steps of 1 degree
myservo.write(pos); // tell servo to go to po
sition in variable 'pos'
}
if(pos>119) sweepFlag = false; // assign the var
iable again
}
else {
if(pos>=60 && pos<=120){
pos=pos-1;
myservo.write(pos);
}
if(pos<61) sweepFlag = true;
}
}
Your own car was born!
https://www.dfrobot.com/wiki/index.php/Basic_Kit_for_Turtle_2WD_SKU:ROB0118 6-1-17