myservo3.write(pos3); // the lower arm will draw back
delay(5);
if(pos3<35) // limit the retracted angle
{
pos3=35;
}
}
}
******************************************************************************************************************************
Test Result:
Stack the shield onto UNO R3 and upload the code. Powered on and connected the PS2 Joypad, you can use the
PS2 Joypad to control the robot arm actions.