In arduino projects, you might add servo to your projects. This short tutorial, show you the basic how arduino and servo works together.
Instruction;
1) Connect all jumper wire as shown in diagram.
2) Connect the signal wire from servo to digital pin 9.
Upload this code to your arduino
/* Servo Basic Understanding the basic of servo in arduino projects. Sweep servo to 0, 90, 180, 90 and 0. Coded by: arduinoprojects101.com */ // include the library code: #include <Servo.h> Servo myservo; // create servo object to control a servo
Read more: Arduino Servo Basic Code