Stap 11:
Dit is de software voor de Arduino:
#include < Servo.h >
Servo roteren;
Servo lift;
void setup)
{
Rotate.attach(5);
Lift.attach(6);
Rotate.write(100);
Lift.write(90);
delay(2000);
}
void loop
{
Rotate.write(100);
Lift.write(80);
delay(1000);
Rotate.write(130);
Lift.write(90);
delay(300);
Lift.write(110);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(120);
Lift.write(90);
delay(300);
Rotate.write(100);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(40);
Lift.write(90);
delay(300);
Rotate.write(90);
Lift.write(90);
delay(300);
Rotate.write(40);
Lift.write(110);
delay(300);
Rotate.write(100);
Lift.write(90);
delay(300);
Rotate.write(40);
delay(300);
Lift.write(90);
delay(300);
Lift.write(110);
delay(200);
Lift.write(90);
delay(300);
Lift.write(110);
delay(300);
Lift.write(90);
delay(200);
Rotate.write(130);
Lift.write(90);
delay(300);
Lift.write(110);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(120);
Lift.write(90);
delay(300);
Rotate.write(100);
delay(300);
Rotate.write(130);
delay(300);
Rotate.write(40);
Lift.write(90);
delay(300);
Rotate.write(80);
Lift.write(90);
delay(300);
Rotate.write(40);
Lift.write(110);
delay(300);
Rotate.write(100);
Lift.write(90);
delay(300);
Rotate.write(40);
delay(300);
Lift.write(90);
delay(300);
Lift.write(110);
delay(200);
Lift.write(90);
delay(300);
Lift.write(110);
delay(300);
Lift.write(90);
delay(200);
Lift.write(90);
delay(300);
Rotate.write(100);
Lift.write(90);
Rotate.write(130);
delay(300);
Rotate.write(30);
delay(300);
Rotate.write(135);
delay(300);
Rotate.write(40);
delay(300);
Rotate.write(100);
delay(300);
Lift.write(90);
delay(200);
Lift.write(100);
delay(1000);
Lift.write(80);
delay(10000);
}