Hello people
I have a problem with to run the servo(es08a model)
#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>=1; pos-=1)
{
myservo.write(pos);
delay(15);
}
}
this is my code and
I checked the power supply for 5v is working
and black to ground red to 5v and yellow to right pin(5)
I have been tried many different code but still give me the same result
( It only move for 0.00001 second when i disconnect the red pin and reconnect it)