Keyestudio 4DOF Manual page 248

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

Advertisement

www.keyestudio.com
myservo3.write(pos3); // the lower arm will stretch out
delay(5);
if(pos3>180)
{
pos3=180;
}
}
if(ps2x.Analog(PSS_LY)<10)
{
pos3=pos3-1;
myservo3.write(pos3);
delay(5);
if(pos3<35)
{
pos3=35;
}
}
}
*************************************************************************************************
Test Result
// limit the stretched angle
// if push the left joystick downward
// the lower arm will draw back
// limit the retracted angle
245

Advertisement

Table of Contents
loading

Table of Contents