Arduino Code for 'Sweep' by Simon Monk
Load up the following sketch onto your Arduino. You should find that the servo immediately begins to turn first in one direction and then back in the other.

 

Angle and speed can get adjust, set, in the sketch!!

The sketch is based on the standard 'sweep' sketch that you can find in the Arduino Examples under the folder 'servo'. You can if you prefer just run that sketch.

 

Learn more / En savoir plus / Mehr erfahren:

 

https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=Servo+motors