Keyestudio 4DOF Manual page 226

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

Advertisement

www.keyestudio.com
delay(5);
if(pos4<0)
closed)
{
pos4=0;
}
}
// open the claw
if(ps2x.Analog(PSS_LX)<10)
{
pos4=pos4+8;
Serial.println(pos4);
myservo4.write(pos4);
gradually opened
delay(5);
if(pos4>108)
{
pos4=108;
}
}
}
//*********************************************************
// if pos4 value reduces to 37(the claw we test in 37degrees is
// if push the left joystick to the left
// servo 4 carries out the action and the claw is
// limit the maximum angle opened
223

Advertisement

Table of Contents
loading

Table of Contents