#include // Servo Library is called. Will be needed, for the easier control of the servo motor Servo servoblue; // For this programm here will be created a servo named „servoblue“ Servo servogreen; Servo servored; void setup() { servoblue.attach(PD7); // This is the Information that servo connecting //the control wire (blue) is connected with pin PD5 . You can take //any other pin for this connection. servogreen.attach(PD6); servored.attach(PD5); } void loop() { //In the „loop“ using the write-command „servoblue.write(Grad)“ //the servo will be controled. Between the positions (Grd) there //will be a pause, so the servo becommes enough time to reach the desired position. servored.write(0); //Activate position 1 on servored with the angle 0 ° delay(3000); //The program stops for 3 seconds servogreen.write(0); //Activate position 1 on servogreen with the angle 0 ° delay(3000); servoblue.write(0); //Activate position 1 on servoblue with the angle 0 ° delay(3000); servored.write(30); //Activate position 2 on servored with the angle 30 ° delay(3000); servogreen.write(30); //Activate position 2 on servogreen with the angle 30 ° delay(3000); servoblue.write(30); //Activate position 2 on servoblue with the angle 30 ° delay(3000); servored.write(60); //Position 3 on servored control with the angle 60 ° delay(3000); servogreen.write(60); //Position 3 on servogreen control with the angle 60 ° delay(3000); servoblue.write(60); //Position 3 on servoblue control with the angle 60 ° delay(3000); servored.write(30); delay(3000); servogreen.write(30); delay(3000); servoblue.write(30); delay(3000); servored.write(15); delay(3000); servogreen.write(15); delay(3000); servoblue.write(15); delay(3000); servored.write(0); delay(3000); servogreen.write(0); delay(3000); servoblue.write(0); delay(3000); }