#include <Servo.h>
 
Servo servopangkal; 
Servo servosikut;
Servo servopergelangan;
Servo servocapit;
 
void setup() { 
  servopangkal.attach(9);
  servosikut.attach(10); 
  servopergelangan.attach(11);
  servocapit.attach(12);
} 
 
void loop() {          
 step1();
 delay(1000);
step2();
 delay(1000);
 step3();
 delay(1000);
step4();
 delay(1000);
 step5();
 delay(1000);
}
 
void step1() {
  servopangkal.write(180);
  servosikut.write(00);
  servopergelangan.write(00);
  servocapit.write(00);
}
 
void step2() {
  servopangkal.write(180);
  servosikut.write(180);
  servopergelangan.write(00);
  servocapit.write(00);
}
 
void step3() {
  servopangkal.write(180);
  servosikut.write(180);
  servopergelangan.write(180);
  servocapit.write(00);
}
 
void step4() {
  servopangkal.write(180);
  servosikut.write(180);
  servopergelangan.write(180);
  servocapit.write(180);
}

void step5(){
  servocapit.write(00);
  delay(1000);
  servopergelangan.write(00);
  delay(1500);
  servosikut.write(00);
  delay(1000);
  servopangkal.write(00);
  delay(1000);
  servocapit.write(180);

}