#include <Servo.h> //including the servo library
#define SERVO_PIN 3 //define as a constant the SERVO PIN
Servo Servo1; // declare a new variable of type Servo
int idleTime =300;
int Winkel;
void setup() {
pinMode(SERVO_PIN, OUTPUT); //setup the pin as output
Servo1.attach(SERVO_PIN);
// hier ein Test einführen
}
void loop() {
Winkel = random (0,181);
Servo1.write(Winkel);
delay(idleTime);
}