Keyestudio 4DOF Manual page 237

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

www.keyestudio.com
{
myservo1.write(pos1);
delay(5);
pos1++;
//Serial.println(pos1);
}
}
else
//if the current servo 1 angle is greater than the value stored in array 1.
{
while(pos1>jiyi1[k])
the array.
{
myservo1.write(pos1);
delay(5);
pos1--;
//Serial.println(pos1);
}
//**********************************************
// the same analysis as the previous servo
if(pos2<jiyi2[k])
{
//servo 1 executes the action
//delay 5ms,controlling the rotating speed of servo.
//while loop, make servo turn to the position of value stored in
//servo 1 executes the action
//delay 5ms,controlling the rotating speed of servo.
234

Advertisement

Table of Contents
loading

Table of Contents