EasyManua.ls Logo

Keyestudio 4DOF - Page 169

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...
166
if(y2<50) // if push the left joystick downward
{
pos3=pos3+1;
myservo3.write(pos3); // the lower arm will draw back
delay(5);
if(pos3>180) // limit the retracted angle
{
pos3=180;
}
}
}
**********************************************************************************************************************************
Test Result:
Wire it up, stack the shield onto UNO R3, upload the code. Powered on, press the key Z1 of right Joystick to save
the angle value of 4 servos control. Press the key Z2 of left Joystick to operate a servo posture saved in the
variable.

Related product manuals