//Arduino Official Code - Perfect for centering the servo

#include <Servo.h> 

Servo myservo;

void setup() 
{ 
  myservo.attach(9);  //attaches the servo signal to pin 9
  myservo.writeMicroseconds(1500);  // set servo to mid-point
} 

void loop()
{
} 
