Keyestudio 4DOF Manual page 145

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

Advertisement

www.keyestudio.com
{
pos3=35;
}
}
if(y2<50) // if push the left joystick downward
{
pos3=pos3+1;
myservo3.write(pos3); // the lower arm will draw back
delay(5);
if(pos3>180)
// limit the retracted angle
{
pos3=180;
}
}
}
********************************************************************************************************
Test Result:
Wire it up, stack the shield onto V4.0, upload the code. Powered on, press
the key Z1 of right Joystick to save the angle value of 4 servos. Press down
the key Z1 to memorize different postures, at most 10 postures in the code.
142

Advertisement

Table of Contents
loading

Table of Contents