// close the claw
for(pos4;pos4>0;pos4--)
{
myservo4.write(pos4);
}
delay(1000);
}
**************************************************************************************
Test Result:
Stack the driver shield onto V4.0 board and connect the servo
motor, upload well the code., plug in power and press the
reset button. Then the robot arm will rotate to right, stretch
out the arm, lower and enable claw; then it will withdraw, lift, ,
rotate to left, stretch out, lower and make claw open.
This series of actions will be continuous.
3.2 Read the Joystick Value
Description:
The sensor' s pin X, Y are for analog sensor, so directly read the
measured analog value. Pin Z is a digital button, first should
95