Unstable operation of AL5D

I don’t have the spec sheet of the transformer handy right now.

However, the new setup is not using the transformer:
the servos are powered by SSC-32U from a wall plug.
The Arduino is powered by a battery, but only the board. So, presumably the power consumption isn’t huge.

I wonder whether there are anything wrong with regard to this connection in principle…
Arduino -> serial out (RX/TX) -> SSC-32U ->servos
Could you please comment?

This is fine.
What are the specs of the wall adapter then, and the specs of the battery you’re using for the Arduino?
Given the back and forth, can you provide a summary of your current setup?

Hi Coleman,

The wall adapter is what I got from lynxmotion: 6V, 3A.
And Arduino is powered by a usb from a laptop, and programming etc is also through usb from a laptop.
My current setup is:
laptop usb to Arduino
Arduino RX/TX/GND to SSC-32U TX/RX/GND (SSC-32U is powered by a wall plug).
I didn’t use a battery as of now to avoid ambiguity.

Thanks, Tony

Sounds like it’s down to two issues:

  1. Code / programming
  2. Power supply - we have a known issue with certain 6V 3A power supplies whereas the arm does not even power up because of the inrush current. Your arm seems to be moving though, so it does not seem affected. If you get the same results with a 6V NiMh battery pack (which can provide at least 1C continuous discharge of around 2.5A or higher), then it’s confirmed that the code is the issue.

Note that RC servos are still “old” tech and maintaining a position under load will cause them to vibrate (but not spasm).

One more piece of information:
If I use the same wall plug to power SSC-32U and use servo sequencer through USB to control the arms, it works fine and smooth.
Does this mean that the wall plug is okay?

With regard to code/programming, I wonder whether there are any ways to verify that the communication between Arduino and SSC-32U works through serial RX/TX?
We know that Arduino by itself works, through blink and other programs.

Thanks, Tony

If a servo moves, that means you have the Tx / Rx connected. Do you have a common ground between the two?

Hi Coleman,

I am able to use the following piece of code to communicate from SSC-32U to Arduino.

github.com/Lynxmotion/BotBoardu … _input.ino

To read analog value from SSC-32U, A, B, C, D,…

The library SoftwareSerial is included.
To write from Arduino to SSC-32U, do you know what function shall I use?

Should Serial.println work?
such as:
Serial.println("#0 P1500");

Thanks, Tony

The servos doesn’t move…

If this is the right command, the servos doesn’t move at all. Very strange
.
Serial.println("#0 P1500");
The code compiles and transferred to arduino fine.

Thanks, Tony

I do have the common ground between Sax and arduino.

Can you once again try the SSC-32U directly to the computer via USB to see if it responds to the SSC-32U servo sequencer? Disconnect Tx and Rx.
Serial.println should work.
Have you tried looking at the values you’d actually be sending the SSC-32U based on the potentiometer values? Are the values steady or constantly fluctuating?

Hi Coleman,

We finally got it work by the following function:

#include <SoftwareSerial.h>

SoftwareSerial SSC32U(SS_SSC_32U_PINS_RX, SS_SSC_32U_PINS_TX);

SSC32U.print("#");
SSC32U.print(0);
SSC32U.print(" P");
SSC32U.print(pos);

SSC32U.print(" T");
SSC32U.println(500);

So, could you tell what could go wrong?
And it seems:
Serial.println still doesn’t work.

Does it tell anything?

Since the power is a 6V from the wall plug, the shaking symptom is almost gone.
The problem right now is that it overshoot and spasm still appears now and then.

Any suggestions? Maybe I shall aerage the output, but it seems that there are quite some coding to do.

The setup right now is:
potentiameters are powered by SSC-32U analog power 5V and GND, and output readings of potentiameters goes into analog inputs of Arduino, then RX/TX to SSC-32U and output to servos from 0-4 of digital output of SSC-32U.

Thanks, Tony

Can you provide a clear wiring diagram and some photos?

Hi Coleman,

I hope that this picture is clear.
SSC-32U to control all the servos 0-2 here.
Analog power and GND pins are used to power the potentiameters (silver wires), and the signal of potentialmeters go to the analog input of Arduino 101.
Arduino 101 RX/TX/GND goes to SSC-32U TX/RX/GND, respectively.
Arduino is powered by a PC, while SSC-32U is powered by a wall plug.

My current problem is that I couldn’t connect to more than 2 servos to the SSC-32U, otherwise, the blue power light on SSC-32U blinked and all servos appear lost power and control.

Please help.

Thanks, Tony

Can you connect the potentiometers directly to the Arduino rather than going through the SSC-32U?
What are the specs of the power supply you are using to power the servos?
To check that nothing is wrong with the board, and also check the settings, can you disconnect the Arduino completely and connect the SSC-32U to the computer and try to use the free SSC-32U Servo Sequencer Utility:
robotshop.com/en/ssc-32-serv … ility.html

Good morning, Coleman!
Thanks!

I did this, and the same results. Even with SSC-32U servo sequencer utility, more than 2 servos won’t work.

I am using lynxmotion’s power supply, 3A, 110V. See picture.

I could do this, but the power pin from Arduino is limited. And I suppose that the power supply from ssc-32U is 5V stable.

Tony

sorry for the fond… was not like this when i edited it…

This is really driving me nuts…

The power supply you have should be enough to power the arm., though there is an issue with some of the power supplies we shipped, and there is a chance this could be one of them.
We are working to resolve this ASAP with a new batch of power supplies which we’ve tested.
Can you please sent an e-mail to [email protected] with a link to this topic and your order number?

email sent…
thanks, Coleman!