Go Down

Topic: arduino servo problem( es 08a model) (Read 995 times) previous topic - next topic

codeback

Hello people

I have a problem with to run the servo(es08a model)

Code: [Select]
#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)


codlink

http://arduino.cc/forum/index.php/topic,130531.0.html
//LiNK

codeback

that was my post their information is not working

codlink

And you think that by posting in a different thread is going to help?

The members that are helping you know what they are talking about.  But, YOU need to help yourself first.  If you want someone to program the Arduino for you, then pay someone to do it.

The mods will merge your posts together anyway, once they see this.
//LiNK

DuaneB

You still do not seem to be using separate power for your servo.

Its not about the volts, its about the amps. Your servo wants more amps than your Arduino is able to supply.

Again, check the two links below, use seperate power and then let us know if you have a problem

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Go Up