Étape 2 :
J’avais besoin d’un croquis pour l’Arduino contrôler le moteur d’asservissement.
#include < Servo.h >
Gator servo ;
annuler le programme d’installation () {}
Gator.Attach(3) ;
Gator.Write (170); //arm de manière
Delay(2000) ;
}
void loop() {}
Gator.Write (65); //smack gator
Delay(500) ;
Gator.Write (170); //arm de manière
Delay(40000) ;
Gator.Write (80); //stop gator pour préparer smack
Delay(2000) ;
Gator.Write (170); //arm de manière
Delay(500) ;
}