www.keyestudio.com
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;
}
}
//upper arm back
if(ps2x.Analog(PSS_RY)>200)
{
// the upper arm will lift
// limit the lifting angle
// if push the right joystick downward
201
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers