I managed to move the robotic arm AL5A using c++ code complied in Dev-C++ but I have one question. Is it possibile to issue a command to turn off the servos, just like it happens when I push the All=0 button in the LynxTerminal? Because I run the program, I move the arm, then I want to start all over again, and I have to go to LynxTerm, switch it off, the run the code again and so on. I want to do it all in the code.
(For example, writing #3P1500\r\n\0 through serial port, centers the wrist servo, 1500. How can I turn if off?)
I don’t know anything about the programming language you are using. But sending #0 L forces I/O pin 0 to go low. Stops sending pulses to the servo. This will work with any analog servo. However of you are using digital servos nothing will turn them off. They will hold position as soon as they are powered on.
Then wire the relay in series with the power lead for the digital servo. You would use a spare channel on the SSC-32 to turn the power on and off to the servo.
I tried this with a 5645 and it does not have the same effect. It does not turn off the servo. So it must be an undocumented feature of the 5980 / 5990 servos only.
I know from earlier it also did not turn off the large servos that are part of the arm (HS-5745). When I asked Hitec if there was anyway, their answer was: no…
Maybe on the 5980… they are closer to the HSR- servos.