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!
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.
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.
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?
@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?
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.