Cannot connect Arduino to SSC32-U

Hi everyone!

I have an Arduino Yun and am trying to connect it to the SSC32U. I have TX (on the arduino) going to RX (on the SSC32U) with a male to female jumper cable. I also have ground to ground.

I have the Arduino plugged into my computer using USB and am trying to run the following code.

>     void setup() {
>     Serial.begin(9600);                              //Start serial communication at 115200 baud rate
>     }
>     void loop() {
>       Serial.println("#0 P750 #1 P750 #2 P750 T500");         //Moves 3 servos at same time
>       delay(1000);                                                                     //Wait 1 second
>       Serial.println("#0 P2200 #1 P1500 #2 P2200 T500");
>       delay(1000);
>     }

I have the correct baud rate (9600) configured on the 32, but nothing happens when the code uploads. Any help would be appreciated!

How is the SSC-32U getting power, and how are the servos powered?
Be sure to check jumpers etc. starting on page 9.


If this doesn’t solve the issue, can you also provide some clear photos?
You don’t need spaces between commands.

I have the board getting power through VS1 and the Arm itself is getting power with the AC adapter plugged in. Am I missing something not having enough power? The jumpers are look like how they do in the instructions.

I have images of my setup attached.

Looking into it. Will get back to you soon.

Everything seems fine, and we even tried your code:

Triple-check the baud rate of the SSC-32U to ensure it’s working well.
To check, we propose disconnecting the Tx and GND pins and seeing the LEDs upon power up.

We also noticed there’s a 3.3V version of the board you’re using - can you ensure you have the 5V?
We cannot spot any differences which would make your Yun different than a normal Arduino.

If that doesn’t work, disconnect the Arduino entirely and connect to the SSC-32U normally via USB and use LynxTerm to verify the board is functional:
http://www.lynxmotion.com/p-567-free-download-lynxterm.aspx

Ok I checked the Baud rate and it matches with the code correctly. I do have the 5v version of the board. Am I supposed to have anything in the 5v pin? I see you have something in the USB port in the video, am I supposed to have something in there too? Also nothing from the Arduino is supposed to go near any of the VS ports is it?

@scharette Helped with this one:
Use Serial1 instead of Serial to acces pins 0 (RX) / 1 (TX).
This is specific to your Yun.

Thank you. I will test this tomorrow when I am back in the lab. I will report back, hopefully with success.

That didn’t work. Tried it on the different Baud rates, and serial1 still didn’t move the motors.

@PuckSnow Can you provide the modified code you used? Your initial code didn’t work on our end, but the revised code did. Did you change it everywhere?

No I used the code in the video description you sent.

void setup() {
  Serial1.begin(38400);  //Start serial communication at 115200 baud rate
}
void loop() {
  Serial1.println("#0 P750 #1 P750 #2 P750 T500");       //Moves 3 servos at same time
  delay(1000);                                          //Wait 1 second
  Serial1.println("#0 P2200 #1 P1500 #2 P2200 T500");
  delay(1000);
}

Our apologies - the video was not using a Yun because we had not suspected that was the issue, nor could we catch any issues with your original code. The problem is with the fact that you’re using an Arduino Yun - you need to use Serial1 as opposed to Serial. The Yun has two onboard microcontrollers which means the “normal” serial pins (for example Do and D1 on an Arduino Uno) function differently.
https://www.arduino.cc/reference/en/language/functions/communication/serial/

Try again using Serial1 instead of Serial, it should work nicely.

1 Like

I did. Look at the code I posted. It says serial1

It works. I had the wrong baud rate. Sorry!

1 Like

Excellent. Little details always cause the longest delays.

1 Like