//Roll No. 15, 11, 07, 22, 12
//Find interface servo motors with arduino uno board
//3 pin
#include <servo.h>
Servo motor1;
void setup() {
// put your setup code here, to run once:
motor1.attach(3);
}
void loop() {
// put your main code here, to run repeatedly:
for(position = 0; position<=100; position++){
motor1.attach(position);
delay(10);
}
for(position = 0; position<=100; position--){
motor1.attach(position);
delay(10);
}
}