Help with servo project

Hey guys,

I don't know if I changed anything but now I got it to work, thanks for the help!
On another note, messing around with the sweep example, I tried setting different angles (original was 180) but I noticed that the servo doesn't go all the way to the angle, specially with angles below 100, and also, when setting the delay between each position, the servo goes above the set value.

Here is the code I'm trying right now (right now it almost goes all the way to 180 for some reason):

#include <Servo.h>

Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created

int pos = 0; // variable to store the servo position

void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}

void loop()
{
for(pos = 0; pos < 110; pos += 1) // goes from 0 degrees to 110 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(30); // waits 30ms for the servo to reach the position
}
for(pos = 110; pos>=1; pos-=1) // goes from 110 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(30); // waits 30ms for the servo to reach the position
}
}

Sorry for the long post, but I couldn't figure out why it isn't working properly.

Thanks for the help again.