Keyestudio 4DOF Manual page 113

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

Advertisement

www.keyestudio.com
pos2=180;
}
}
}
//*************************************************************/
// lower arm
void dabi()
{
if(y2<50) // if push the left joystick upward
{
pos3=pos3+1;
myservo3.write(pos3); // lower arm will stretch out
delay(5);
if(pos3>180)
{
pos3=180;
}
}
if(y2>1000) // if push the left joystick downward
{
pos3=pos3-1;
// limit the stretched angle
110

Advertisement

Table of Contents
loading

Table of Contents