/*Write the code to make servo motor to make horn move clockwise direction by forming semicircle*/
#include <Servo.h>
int pos = 0;
Servo myservo;
void setup() {
// put your setup code here, to run once:
//Attach servo
myservo.attach(9);
}
void loop() {
// put your main code here, to run repeatedly:
//Make delay for 100 milliseconds
delay(100);
//increment the value of pos by 1unit at every instance
pos = pos+1;
//write the position angle for servo with variable name myservo
myservo.write(pos);
}