Hi.
That is one from 0-180deg and another from 180-0 degree.
Please input your code.
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup()
{
myservo.attach(9);
}
void loop() {
for (pos = 0; pos <= 180; pos += 1)
{
myservo.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1)
{
myservo.write(pos);
delay(15);
}
}
*use the simple code on the Arduino software toolbars. Examples > Servo > Sweep