Arduino Mega 2560 connection with SSC-32u Controller

Hello guys,

i have problems with the connection between the Arduino and ssc-32u Board. I need the servo Board because my Robot use 500kg Servos with min 12V Power. The connection is shown in the attachment. I try this sample code but nothing happens:

void setup() {
Serial.begin(9600);
void loop() {

Serial.println("#2 P750 #4 P750 #14 P750 T500");
delay(1000);
Serial.println("#2 P2200 #4 P1500 #14 P2200 T500");
delay(1000);
}

It appears that you are using the TX0 and TX1 pins, instead of the TXn and RXn pins. Why?

Why would you attach the servo controller to the same pins used to talk to the PC? That makes debugging next to impossible. Connect it to TX1 and RX1 and user Serial1 to talk to it.

Thanks PaulS,
sry i`m a noob. Can you please show me on the attachment which pins i should use for user serial1? TX1 and RX1 i have connected.

shelly_beck:
Thanks PaulS,
sry i`m a noob. Can you please show me on the attachment which pins i should use for user serial1? TX1 and RX1 i have connected.

Not according to the picture you posted. That picture shows the orange wire connected to pin 14 (TX1) and the red wire connected to pin 1 (TX0).

PaulS:
Not according to the picture you posted. That picture shows the orange wire connected to pin 14 (TX1) and the red wire connected to pin 1 (TX0).

I change the red to pin18 and the orange to pin19. But same effect. Arduino tx blink after loading sketch but the rx/tx lights on the ssc don`t blink for communication.

Is it possible that i must power the VL on the ssc too ? At the moment only VS1 is powered

I change the red to pin18 and the orange to pin19. But same effect.

Pins 18 and 19 are the Serial1 instance's pins. Are you now using Serial1 to talk to the device?

I load the sketch to the arduino and think i know only talk with the device using Serial1. Took a pic from the connection to the attachment. but same effekt

You look at that picture. Can you tell anything from that perspective?

Can you see any code in the picture? I can't.

Sorry the code is the same like in my start post:

void setup()
{
Serial.begin(9600);
void loop()
{
Serial.println("#2 P750 #4 P750 #14 P750 T500");
delay(1000);
Serial.println("#2 P2200 #4 P1500 #14 P2200 T500");
delay(1000);
}

the pic should show if the cable connection now is ok ? I put some different pics in the attachment

You connected the TX and RX pins from the green board to the RX and TX pins for the Serial1 instance on the Mega. Thank you for the effort to take and post usable pictures.

But, you are still trying to talk to the board using Serial. That's like having a friend tell you that he got a new phone number, but you still using the old number to call him, and wondering why he doesn't answer.

Use Serial1 to talk to the device.

I thank you for taking the time and explaining things to me.
But now I am confused. Which wire i must switch and to which pin? The TX and RX wire on the green controller ? Or omit ground ?

Sorry that I ask so stupid

Which wire i must switch and to which pin?

None.

Sorry that I ask so stupid

It's not that you are asking stupid questions. The problem is that you are not listening to the answers.

Re-read reply #9, paying particular attention to the last line.

PaulS:
Re-read reply #9, paying particular attention to the last line.

Thats the problem i read and know what you wrote but i look in the User guide

from the ssc controller to find the serial pins and the guide shows on site 12 that the wires are connected to the serial "correct" :frowning:

Or you mean i should change the code ?

Or you mean i should change the code ?

You need to make the code match your hardware. You connected the servo controller to the Serial1 pins, so you do NOT use Serial to talk to it. Nor do you use Serial2 or Serial3. 8)

Thank you, will change the code and test it later

Hi,

i changed the code to:

void setup() {
Serial1.begin(9600);
void loop() {

Serial1.println("#2 P750 #4 P750 #14 P750 T500");
delay(1000);
Serial1.println("#2 P2200 #4 P1500 #14 P2200 T500");
delay(1000);
}

But the servos dont do anything.

shelly_beck:
Hi,

i changed the code to:

void setup() {
Serial1.begin(9600);
void loop() {

Serial1.println("#2 P750 #4 P750 #14 P750 T500");
delay(1000);
Serial1.println("#2 P2200 #4 P1500 #14 P2200 T500");
delay(1000);
}

But the servos dont do anything.

Can please anyone help me with the code ? The servos dont will move :frowning:

Thanks and Regards

@admins topic can close