#include <Servo.h>
Servo myservo;
int p = 0;
int v;
void setup() {
// put your setup code here, to run once:
myservo.attach(3);
}
void loop() {
// put your main code here, to run repeatedly:
v = analogRead(p);
v = map(v, 0, 1023, 0, 180);
myservo.write(v);
delay(15);
}