#include <Servo.h>
Servo base;
Servo gripper;
int basepin = 9;
int gripperpin = 10;
void setup()
{
}
void loop()
{
gripper.attach(gripperpin);
gripper.write(90);
delay(1000);
gripper.write(45);
delay(1000);
gripper.write(125);
delay(1000);
gripper.detach();
base.attach(basepin);
base.write(45);
delay(1000);
base.write(90);
delay(1000);
base.write(135);
delay(1000);
base.write(90);
delay(1000);
base.detach();
}