Keyestudio 4DOF Manual page 224

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

Advertisement

www.keyestudio.com
// delay(5);
if(pos1>180)
{
pos1=180;
}
}
}
//**********************************************************************
// upper arm
void xiaobi()
{
//upper arm front
if(ps2x.Analog(PSS_RY)<50) // if push the right joystick upward
{
pos2=pos2-1;
myservo2.write(pos2);
delay(5);
if(pos2<0)
{
pos2=0;
}
}
// limit the left turning angle
// the upper arm will lift up
// limit the lifting angle
221

Advertisement

Table of Contents
loading

Table of Contents