Component: ST3215 Servo Motor (Mechatronics): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 86: | Line 86: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeBaudrate''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeBaudrate''' | ||
|- | |- | ||
| Line 110: | Line 110: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeID''' | ||
|- | |- | ||
| Line 134: | Line 134: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DefineMiddle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DefineMiddle''' | ||
|- | |- | ||
| Line 153: | Line 153: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 167: | Line 167: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IsMoving''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IsMoving''' | ||
|- | |- | ||
| Line 186: | Line 186: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListServos''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListServos''' | ||
|- | |- | ||
| Line 210: | Line 210: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LockEEPROM''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LockEEPROM''' | ||
|- | |- | ||
| Line 229: | Line 229: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PingServo''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PingServo''' | ||
|- | |- | ||
| Line 248: | Line 248: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAcceleration''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAcceleration''' | ||
|- | |- | ||
| Line 267: | Line 267: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAngle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAngle''' | ||
|- | |- | ||
| Line 286: | Line 286: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadCorrection''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadCorrection''' | ||
|- | |- | ||
| Line 305: | Line 305: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadCurrent''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadCurrent''' | ||
|- | |- | ||
| Line 324: | Line 324: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadID''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadID''' | ||
|- | |- | ||
| Line 343: | Line 343: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLoad''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLoad''' | ||
|- | |- | ||
| Line 362: | Line 362: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMode''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMode''' | ||
|- | |- | ||
| Line 381: | Line 381: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPosition''' | ||
|- | |- | ||
| Line 400: | Line 400: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSpeed''' | ||
|- | |- | ||
| Line 419: | Line 419: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadStatus''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadStatus''' | ||
|- | |- | ||
| Line 438: | Line 438: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature''' | ||
|- | |- | ||
| Line 457: | Line 457: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTorqueLimit''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTorqueLimit''' | ||
|- | |- | ||
| Line 476: | Line 476: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadVoltage''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadVoltage''' | ||
|- | |- | ||
| Line 495: | Line 495: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rotate''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Rotate''' | ||
|- | |- | ||
| Line 524: | Line 524: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAcceleration''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAcceleration''' | ||
|- | |- | ||
| Line 548: | Line 548: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAngle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAngle''' | ||
|- | |- | ||
| Line 572: | Line 572: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCorrection''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCorrection''' | ||
|- | |- | ||
| Line 596: | Line 596: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMode''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMode''' | ||
|- | |- | ||
| Line 620: | Line 620: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetPosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetPosition''' | ||
|- | |- | ||
| Line 644: | Line 644: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSpeed''' | ||
|- | |- | ||
| Line 668: | Line 668: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTorqueLimit''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTorqueLimit''' | ||
|- | |- | ||
| Line 692: | Line 692: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartServo''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartServo''' | ||
|- | |- | ||
| Line 711: | Line 711: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopServo''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopServo''' | ||
|- | |- | ||
| Line 730: | Line 730: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UnlockEEPROM''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UnlockEEPROM''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 2.0 |
| Category | Mechatronics |
ST3215 Servo Motor component
Control ST3215 servo motors via serial UART communication using the STS protocol.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeBaudrate
ChangeID
DefineMiddle
| DefineMiddle | |
| Define the 2048 position by setting torque to 128. | |
| ServoID | |
| Servo ID | |
| Return | |
Initialise
| Initialise | |
| Return | |
IsMoving
| IsMoving | |
| Check if the servo is currently moving. Returns True if moving, False otherwise. | |
| ServoID | |
| Servo ID | |
| Return | |
ListServos
LockEEPROM
| LockEEPROM | |
| Lock EEPROM to prevent writes from being saved after power loss. IMPORTANT: Use the NEW servo ID after ChangeID. | |
| ServoID | |
| Servo ID (use NEW ID after ChangeID) | |
| Return | |
PingServo
| PingServo | |
| Check if a servo is responding. Returns True if successful, False otherwise. | |
| ServoID | |
| Servo ID to ping (0-253) | |
| Return | |
ReadAcceleration
| ReadAcceleration | |
| Read current acceleration value in steps per second squared. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadAngle
| ReadAngle | |
| Read current position of servo. Returns position in steps (0-4095). | |
| ServoID | |
| Servo ID | |
| Return | |
ReadCorrection
| ReadCorrection | |
| Read position correction value in steps. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadCurrent
| ReadCurrent | |
| Read current in milliamps (6.5mA resolution). Returns current / 6.5. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadID
| ReadID | |
| Read the servo ID from EEPROM. Returns the stored ID value. | |
| ServoID | |
| Servo ID to query | |
| Return | |
ReadLoad
| ReadLoad | |
| Read motor load in percentage. Returns load percentage. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadMode
| ReadMode | |
| Read current operational mode. Returns: 0=position, 1=speed, 2=PWM, 3=step | |
| ServoID | |
| Servo ID | |
| Return | |
ReadPosition
| ReadPosition | |
| Read current position of servo. Returns position in steps (0-4095). | |
| ServoID | |
| Servo ID | |
| Return | |
ReadSpeed
| ReadSpeed | |
| Read current speed of servo. Returns speed in steps per second. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadStatus
| ReadStatus | |
| Read servo status flags. Returns status byte with bits: Voltage, Sensor, Temperature, Current, Angle, Overload | |
| ServoID | |
| Servo ID | |
| Return | |
ReadTemperature
| ReadTemperature | |
| Read temperature in degrees Celsius. | |
| ServoID | |
| Servo ID | |
| Return | |
ReadTorqueLimit
| ReadTorqueLimit | |
| Read torque limit value (0-1000). | |
| ServoID | |
| Servo ID | |
| Return | |
ReadVoltage
| ReadVoltage | |
| Read voltage in volts (0.1V resolution). Returns voltage * 10. | |
| ServoID | |
| Servo ID | |
| Return | |
Rotate
SetAcceleration
| SetAcceleration | |
| Set servo acceleration in steps per second squared. | |
| ServoID | |
| Servo ID | |
| Acceleration | |
| Acceleration value (0-254) | |
| Return | |
SetAngle
| SetAngle | |
| Move servo to a target angle. Angle range: -180 to 180 degrees. | |
| ServoID | |
| Servo ID | |
| Angle | |
| Angle range: -180 to 180 degrees. | |
| Return | |
SetCorrection
| SetCorrection | |
| Set position correction value in steps. Adds correction to position. | |
| ServoID | |
| Servo ID | |
| Correction | |
| Correction value in steps | |
| Return | |
SetMode
| SetMode | |
| Set operational mode. Mode: 0=position, 1=speed, 2=PWM, 3=step | |
| ServoID | |
| Servo ID | |
| Mode | |
| Mode: 0=position, 1=speed, 2=PWM, 3=step | |
| Return | |
SetPosition
| SetPosition | |
| Move servo to a target position. Position range: -30719 to 30719 steps. | |
| ServoID | |
| Servo ID | |
| Position | |
| Target position in steps (0 to 4095) | |
| Return | |
SetSpeed
| SetSpeed | |
| Set servo speed in steps per second. | |
| ServoID | |
| Servo ID | |
| Speed | |
| Speed in steps per second (0-3400) | |
| Return | |
SetTorqueLimit
| SetTorqueLimit | |
| Set torque limit value (0-1000). Controls maximum torque output. | |
| ServoID | |
| Servo ID | |
| TorqueLimit | |
| Torque limit value (0-1000) | |
| Return | |
StartServo
| StartServo | |
| Enable torque (start servo). | |
| ServoID | |
| Servo ID | |
| Return | |
StopServo
| StopServo | |
| Disable torque (stop servo). | |
| ServoID | |
| Servo ID | |
| Return | |
UnlockEEPROM
| UnlockEEPROM | |
| Unlock EEPROM to allow writes to be saved after power loss. | |
| ServoID | |
| Servo ID | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ST3215.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ST3215.fcfx