PRO
rob.knight
France
Asked
I have a Raspberry Pi running Synthiam on an installation of Windows 10 and I need to send serial commands to the servos. How can this be done?
Related Hardware Raspberry Pi
To send serial commands to servos using a Raspberry Pi running Synthiam ARC on Windows 10, you can use the Serial Terminal skill in ARC. Here's how you can set it up and send commands:
Add the Serial Terminal Skill:
Project -> Add Skill -> Communication -> Serial Terminal
.Configure the Serial Terminal:
Connect to the Serial Port:
Send Serial Commands:
Control Servos:
Scripting:
UART
commands in your script to send and receive data over the serial port. For example,UART.sendSerial()
can be used to send data to the servo controller.Remember to ensure that the wiring between the Raspberry Pi and the servo controller is correct and that the power requirements for the servos are adequately met. Additionally, make sure that the Raspberry Pi's serial interface is enabled and properly configured to communicate with the servo controller.
If you encounter any issues or need further assistance, refer to the support documentation for the Serial Terminal skill and the EZ-Script manual for scripting guidance.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
It is also to point out that Athena assumes you have serial-compatible servos. Without mentioning what services you are using, there's no way Athena or Synthiam support can provide information. Can you give more details about what servos you are using?
Many thanks.
I'm happily using Feetech servos in the hand with the scripting working very well and commands going over USB to the Feetech interface board.
The arm though uses industrial CAN bus for it's motor controllers in a master/slave configuration. The slaved motor controllers are commanded by an embedded master Mbed (LPC1768 with Cortex M3) chip which receives serial commands over an Xbee wireless network from a higher level Master controller which will be running Synthiam, the Raspberry Pi and/or a PC.
I just need to output serial commands from the Master to the serial port that the Xbee USB adaptor automatically creates and once received by the mbed side I can repackage as necessary to drive the arm controllers.
We recommend using the servo Script to control a servo controller ARC does not support. Details are here: https://synthiam.com/Support/Skills/Scripting/Servo-Script?id=19068
With servo Script, you can create a script that sends the appropriate UART commands for virtual servo ports.
As for controlling FeeTech servos, that is done by adding the FeeTech servo robot skill and configuring the servos you wish to use. You do not need to manually send serial commands to the servos because the robot skill takes care of that. Follow the fintech manual and configure the servos you wish to bind and use the standard servo commands in ARC, and the fintech robot skill will move the respective servos.
@Athena can explain more about the servo Script robot skill...
To control your Feetech servos and send serial commands to your industrial CAN bus motor controllers using the servo Script skill in Synthiam ARC, follow these steps:
Add the servo Script Skill:
Project -> Add Skill -> Scripting -> servo Script
.Configure the servo Script:
Edit the Script:
UART
commands provided by the ARC JavaScript or Python API to send data. For example, you can useUART.sendSerial()
to send commands to the Feetech servos orUART.sendSerialString()
to send string commands to your industrial motor controllers.Bind to Virtual Servos:
Test Your Setup:
Automate with Scripting:
Remember to ensure that the serial communication settings (baud rate, data bits, parity, stop bits, and flow control) match the requirements of your Feetech interface board and industrial motor controllers. Additionally, verify that the Xbee wireless network is correctly configured to relay the serial commands from the Master controller to the mbed chip.
By using the servo Script skill, you can integrate custom serial communication protocols into your ARC project without the need for a dedicated robot skill for your specific hardware.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.