#include <Servo.h>

Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;
int pos;
int tunda = 15;
void setup() {
  servo1.attach(3);
  servo2.attach(5);
  servo3.attach(6);
  servo4.attach(9);
  servo5.attach(10);
  servo6.attach(11);
  servo1.write(90);
  servo2.write(100);
  servo3.write(160);
  servo4.write(10);
  servo5.write(180);
  servo6.write(60);
}

void loop() {
    for (pos = 90; pos <= 180; pos += 1) {
    servo1.write(pos);
    delay(tunda);}
    for (pos = 100; pos >= 90; pos -= 1) {
    servo2.write(pos);
    delay(tunda);}
    for (pos = 160; pos >= 90; pos -= 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 60; pos <= 40; pos += 1) {
    servo6.write(pos);
    delay(tunda);}
    for (pos = 90; pos <= 120; pos += 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 180; pos >= 90; pos -= 1) {
    servo1.write(pos);
    delay(tunda);}
    for (pos = 90; pos >= 60; pos -= 1) {
    servo2.write(pos);
    delay(tunda);}
    for (pos = 120; pos >= 100; pos -= 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 40; pos >= 10; pos -= 1) {
    servo6.write(pos);
    delay(tunda);}
    for (pos = 10; pos <= 40; pos += 1) {
    servo6.write(pos);
    delay(tunda);}
    for (pos = 180; pos >= 90; pos -= 1) {
    servo5.write(pos);
    delay(tunda);}
    for (pos = 60; pos <= 90; pos += 1) {
    servo2.write(pos);
    delay(tunda);}
    for (pos = 100; pos <= 120; pos += 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 90; pos <= 180; pos += 1) {
    servo1.write(pos);
    delay(tunda);}
    for (pos = 90; pos >= 60; pos -= 1) {
    servo2.write(pos);
    delay(tunda);}
    for (pos = 120; pos >= 100; pos -= 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 90; pos <= 180; pos += 1) {
    servo5.write(pos);
    delay(tunda);}
    for (pos = 40; pos >= 10; pos -= 1) {
    servo6.write(pos);
    delay(tunda);}
    for (pos = 10; pos <= 60; pos += 1) {
    servo6.write(pos);
    delay(tunda);}
    for (pos = 100; pos <= 160; pos += 1) {
    servo3.write(pos);
    delay(tunda);}
    for (pos = 60; pos <= 100; pos += 1) {
    servo2.write(pos);
    delay(tunda);}
    for (pos = 180; pos >= 90; pos -= 1) {
    servo1.write(pos);
    delay(tunda+10);}
 }