// 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.
139
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers