Pages: [1]   Go Down
Author Topic: arduino servo problem( es 08a model)  (Read 969 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello people

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

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

Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 689
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

//LiNK

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that was my post their information is not working
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 689
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

//LiNK

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Pages: [1]   Go Up
Jump to: