Having Problem using more than one sevo at a time

Hi All,

I’m trying to run the move group command with the following lines (arduino code)

Serial.println("#0 P900 #1 P2000"); delay(3000); Serial.println("#0 P2000 #1 P900"); delay(3000);

But nothing move.

Both servos can move when instructed individually.

Cheers.

your problem may be in the code you didn’t post.

Here is the full Arduino code:

[code]void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("#0 P900 #1 P2000");
delay(3000);
Serial.println("#0 P2000 #1 P900");
delay(3000);
}[/code]

As I said, I can move each of the servos individually.

Thanks for the help

I would try adding something like t0 to command or better yet an actual time…
Kurt

Depending on your wiring between the arduino and the ssc-32 (arduino tx to ssc-32 TTL rx, and grounds connected together), you should be able to use this code on the arduino and the arduino serial monitor to send test commands to the ssc-32.

[code]// zoomkat 7-30-11 serial I/O string test
// type a string in serial monitor. then send or enter
// for IDE 0019 and later

String readString;

void setup() {
Serial.begin(9600);
Serial.println(“serial test 0021”); // so I can keep track of what is loaded
}

void loop() {

while (Serial.available()) {
delay(2); //delay to allow byte to arrive in input buffer
char c = Serial.read();
readString += c;
}

if (readString.length() >0) {
Serial.println(readString);

readString="";

}
}

[/code]

Thanks for the reply,

Yeah, I understand that. That’s why I’m stumped that this is not working. I can control each servo independently (with different code), so I know the serial communication is working, but I can’t control more than one. In fact, any time I have more than one servo wired up I have problems, even when controlling them independently.

Any ideas where my problem could be?

Cheers

Power?

How is the ssc32 powered?

Both it and the Arduino are getting 12V from a bench supply, while the servos are getting 6V from the same supply, all the grounds are tied.

Thanks