arduino and servo

hi guys!

I'm here with a problem. it's next:
i'm using a ARDUINO ATMega 328, and SERVO with 360º, with code below, but the servos doesn't stop, he contiunes to rotation to 360º, nevers stop.
somebody help-me.
note: sorry my English, i speak portuguese(portugal)

THANKS(OBRIGADO)

code.
#include <Servo.h>

Servo servo1;

void setup()
{
servo1.attach(3);

}

void loop()
{
servo1.write(0);
delay(2000);
servo1.write(30);
delay(2000);

}

[quote]
#include <Servo.h>

Servo servo1;

void setup()
{
  servo1.attach(3);

}

void loop()
{
servo1.write(0);
delay(2000);
servo1.write(30);
delay(2000);

}

for

#include <Servo.h>

Servo servo1;

void setup()
{
  servo1.attach(3);

}

void loop()
{
servo1.write(30);
delay(2000);
servo1.write(150);
delay(2000);

}

hi,

tanks for fast answer,

the stop and go back, but never do the real degree, i want just 30º.

i wanna something like this:Arduino : Controlando Un Servo - YouTube

thanks

What do you mean by "servo with 360". That sounds like continuous rotation.

the servo doesn't stop

That is what "continuous" means. Where did you get the servo? You may be using the wrong type.

oliveira1991:
the stop and go back, but never do the real degree

Can you explain that a bit more clearly? The code should move the servo backwards and forwards between two fixed positions. Does it?