Digital Servo Problem

Hi Everyone,

I am very new to arduino and am having trouble getting my servo to run. I am using a Traxxas 2075 digital servo (http://www.servodatabase.com/servo/traxxas/2075) on the arduino mega 2560. My voltage source is set to 6V and my signal wire is connected to pin 9. I looked at this thread http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1217035528 and came up with the code below. Several of the commands were removed because they don’t work. The code below worked with a small analog Futaba S3114, but I was unable to get it to work with the digital servo.

#include <Servo.h>

Servo servo1;

void setup()
{
 
 pinMode(9,OUTPUT);  
 Serial.begin(19200);
 servo1.attach(9);
 Serial.print("Servo1 Ready\n");

}

void loop()
{
   
   Serial.print("Servo 1 position 70\n");
   servo1.write(70);
   delay(1500);
   
   Serial.print("Servo 1 position 100\n");
   servo1.write(100);
   delay(1500);
   
   Serial.print("\n");
   delay(3000);  
}

My voltage source is set to 6V and my signal wire is connected to pin 9

Did you connect the servo and arduino grounds?

Yes, both of the grounds are connected. Is there something unique about the code for a digital servo vs an analog?

My voltage source is set to 6V

CPU board input voltage ? Arduino Mega 2560 Input Voltage ( recommended ) 7-12V http://arduino.cc/en/Main/ArduinoBoardMega2560 Sorry, I don't have mega2560 so I cannot check . http://arduino.cc/en/uploads/Main/arduino-mega2560-schematic.pdf PWRIN : 6V D1 drop 0.7V ? IC2 (MC33269) drop 1V ? VCC = 6 - 1 - 0.7 = 4.3V XTAL 16MHz Safe Operating Area 4.5V - 5.5V at 16MHz ( doc2549.pdf page 370 )

hmm... maybe work but no margin I recommend you try this. board input voltage - over 7V servo power - board VCC