I have connected the SSC32 to an arduino mega, and it is receiving data (the LED blinks every time a message is received). I am powering the SSC32 with the arduino, and I am powering the servos with a separate battery (connected to VS1, a 6V battery).
However, the servo I have connected is not moving. The board receives the messages from the arduino and does nothing.
/*
Tests the SSC32 library. By Martin Peris (martinperis.com)
This example code is in the public domain.
*/
SSC32 myssc = SSC32();
void setup() {
//Start comunications with the SSC32 device
myssc.begin(9600);
}
void loop() {
//Move motor 0 to position 750
//The first command should not define any speed or time, is used as initialization by SSC32
myssc.servoMove(0,750);
delay(1000);
//Move motor 1 to position 750
//The first command should not define any speed or time, is used as initialization by SSC32
myssc.servoMove(1,750);
delay(1000);
//Move motor 0 to position 1500. It will take 5 seconds to finish the movement.
myssc.servoMoveTime(0,1500,5000);
delay(5500);
//Move motor 1 to position 900. It will take 5 seconds to finish the movement
myssc.servoMoveTime(1,900,5000);
//Move both servos to position 750 at the same time.
//The movement will take 5 seconds to complete
//Notice that currently motor 0 is at position 1500 and motor 1 is at position 900,
//but they will reach position 750 at the same time
myssc.beginGroupCommand(SSC32_CMDGRP_TYPE_SERVO_MOVEMENT);
myssc.servoMoveTime(1,750,5000);
myssc.servoMoveTime(5,750,5000);
myssc.endGroupCommand();
delay(5500);
}
And I still have the same problem. I don’t understand what I’m doing wrong…
I apologise for not making the image closer - the image becomes less focussed the closer the camera gets.
I have the TX from the arduino connected to the RX on the SSC32, and I have ground connected to ground.
I have the positive and negative leads from the power harness connected to VS1 (with the VL = VS1 jumper removed), and I have power from the arduino connected to VL and ground.
Especially considering much of the robot is made from Lynxmotion products. The only reason I bought this servo controller is because it was listed as SCC-32 compatible, and it was available (where the ‘original’ wasn’t). At the time, I didn’t even know there was such a thing as ‘some other’ version.