Keyestudio 4DOF Manual page 205

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

www.keyestudio.com
pos2=pos2+1;
myservo2.write(pos2);
delay(5);
if(pos2>180) // limit the declining angle
{
pos2=180;
}
}
}
//***************************************************************
void zhuazi()
{
// close the claw
if(ps2x.Analog(PSS_LX)>220)
{
pos4=pos4-1;
Serial.println(pos4);
myservo4.write(pos4); // servo 4 carries out the action and the claw
is gradually closed.
delay(5);
if(pos4<0)
we have tested is closed.)
// the upper arm will go down
// if push the left joystick to the right
// if pos4 value subtracts to 37, the claw in 37 degrees
202

Advertisement

Table of Contents
loading

Table of Contents