{
pos3=35;
}
}
if(y2<50) // if push the right joystick downward
{
pos3=pos3+1;
myservo3.write(pos3); // the lower arm will draw back
delay(5);
if(pos3>180) // limit the retraction angle
{
pos3=180;
}
}
}
************************************************************************************************************************************
Test Result:
Wire it up, stack the shield onto UNO R3, 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.
If need to memorize more postures, can set it in the code.