// close the claw
for(pos4;pos4>0;pos4--)
{
myservo4.write(pos4);
}
delay(1000);
}
************************************************************************************************************************************
Test Result:
Stack the drive shield onto UNO R3 board and connect the servo motor, upload well the code. Powered on, press
the reset button, the robot arm will realize a cyclic motion. Turn to the right, stretch out the arm, lower, the claw is
clamped; then the arm is retracted, raised, turned to the left, stretched out, lowered and the claw is opened.
After that, return to the right and continue to repeat the motion.