Lost on DS3218mg Servo

Hi,

I recently purchased a few DS3218mg servo motors, I have used smaller servos in the past. I am trying to power it with a lith-ion battery. datasheet shows 4.8V to 7.2V In with a stall current of 1.8A at 6.8V, The battery is rated 7.4V 2200mAh. I can't seem to get the motor to do much of anything. Trying to figure out what I'm missing.

Thanks

What current can the battery supply though (mAh being its capacity, not current)?

Could the battery's 7.4V have damaged the servo which expects only 7.2A?

You obviously need some wiring and some code to get the servo to do anything. If we are going to help with your problems we need to see those things.

But since a fully charged 2S(7.4V nominal) Li-ion battery is 8.4V I think you are pushing your luck a bit running that servo on such a high voltage. I'd try it on 6V if possible (4 x alkaline AA cells would probably do for a quick test).

Steve

Sorry for the lack of information, here is what I am doing.

#include <Servo.h>

Servo myservo;  // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0;    // variable to store the servo position

void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
}

void loop() {
  for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
  for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
}

I am now currently using 4-AA batteries connecting:

6V to red wire on DS3218
Ground to black wire on DS3218
Pin 9 from UNO R3 to white wire on DS3218

Servo is not moving at all

jbarth200:
I am now currently using 4-AA batteries connecting:

6V to red wire on DS3218
Ground to black wire on DS3218
Pin 9 from UNO R3 to white wire on DS3218

And what about the battery ground / servo black to the Arduino ground?

servo-wire.jpg

That was it...duh!

Thanks a lot!