Keyestudio 4DOF Manual page 247

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

Advertisement

www.keyestudio.com
}
}
// open the claw
if(ps2x.Analog(PSS_LX)<10)
{
pos4=pos4+8;
Serial.println(pos4);
myservo4.write(pos4);
delay(5);
if(pos4>108)
{
pos4=108;
}
}
}
//*********************************************************
void dabi()
{
// lower arm front
if(ps2x.Analog(PSS_LY)>200) // if push the left joystick upward
{
pos3=pos3+1;
// if push the left joystick to the left
// servo 4 carries out the action and claw is gradually opened
// limit the maximum angle opened
244

Advertisement

Table of Contents
loading

Table of Contents