user23822: I have been trying to get my 9g tower pro servo to work and no matter what i do nothing happens. I connected the servo to the arduino with the red wire to 5v, brown to ground and orange to pin 6. 
#include <Servo.h>
Servo myServo;

void setup(){
myServo.attach(6);
}

void loop() {
myServo.write(0);
delay(1000);
myServo.write(60);
}

I have been using this code to test it.
Another weird occurrence is when i disconnect the servo it sometimes start moving very slowly even though it has now power. I dont think the Uno is broken as other projects work fine on there, are my servos fried?

user28569: My guess is your drawing too much current from the Arduino 5v rail.
Try connecting the servo to it's own 5v source with of course a common ground with the Arduino.

23822: <p>I have been trying to get my 9g tower pro servo to work and no matter what i do nothing happens. I connected the servo to the arduino with the red wire to 5v, brown to ground and orange to pin 6. </p>

<pre><code>#include &lt;Servo.h&gt;
Servo myServo;

void setup(){
myServo.attach(6);
}

void loop() {
myServo.write(0);
delay(1000);
myServo.write(60);
}
</code></pre>

<p>I have been using this code to test it.
Another weird occurrence is when i disconnect the servo it sometimes start moving very slowly even though it has now power. I dont think the Uno is broken as other projects work fine on there, are my servos fried?</p>
 28569: <p>My guess is your drawing too much current from the Arduino 5v rail.</p>

<p>Try connecting the servo to it's own 5v source with of course a common ground with the Arduino.</p>
