EasyManua.ls Logo

Keyestudio 4DOF - Page 142

Keyestudio 4DOF
276 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
139
// 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.

Related product manuals