Skip to main content

openxl330 — open firmware for XL330 servos

What makes openxl330 different. 2 kHz torque PD: torque-based position control running at 2 kHz on the servo. Torque in real units: torque commands and feedback in N·m; Kp in N·m/rad, Kd in N·m·s/rad (see footnote). Gear-train compensation: compensation for gear-train friction, back-EMF and rotor inertia. Protections you set: adjustable voltage, temperature and I²t limits; no travel or speed cut-offs. Lower lag: 53 ms best-fit lag vs 76–102 ms for stock in a like-for-like chirp test. Fast group bus: Fast Sync Read and grouped Sync Write at 1, 2 or 3 Mbaud.

* Stock firmware offers current-based control in mA; openxl330 states gains and torque in N·m using a fixed actuator model, so torque values are estimates (see torque estimates). Torque commands (set_torque(), firmware release 16) are requested output torque through the same model, bounded by the motor's stall torque (full duty) and the configured limit; they are not measured at the horn. Of these cells, only the lag figure is a head-to-head measurement (one unit, one run, see Performance); stock also supports high baud rates.

openxl330

openxl330 is replacement firmware for the XL330-M288 smart servo, with a Python library and command-line installer. It provides 2 kHz torque-based position control, gear-train compensation, grouped motion commands, and position, velocity and estimated torque feedback. It uses Dynamixel Protocol 2.0 framing with its own register map.

Installing replaces the stock ROBOTIS firmware. There is no supported way back to stock (an experimental route through ROBOTIS Dynamixel Wizard is described in returning to stock firmware). Not affiliated with ROBOTIS. Use at your own risk.

Supported hardware

The installer supports the XL330-M288 (model 1200). The proven starting combinations use stock firmware V50, V52 or V53 and retained loader v6. Use a half-duplex TTL Dynamixel adapter and a separate servo power supply. See wiring and adapter setup.

Set a unique ID for each servo in Dynamixel Wizard while it still runs stock firmware. Install one servo at a time using the install guide. This release keeps the ID in the servo’s nonvolatile settings and starts at 1 Mbaud after each boot. The ID you set in Dynamixel Wizard before installing is permanent in v1; changing it after flashing is not supported (except openxl330 update --allow-id-change, which moves a servo back to its stock NV ID).

Install the Python package

Use Python 3.10 or later.

pip install openxl330

Until the package is available on PyPI, build the wheel and source archive from the source tree, then install the wheel in your environment.

python -m pip install build
python -m build
python -m pip install dist/openxl330-0.1.0-py3-none-any.whl

Quickstart

This example expects three openxl330 servos at IDs 1–3. Replace the example port with the name from openxl330 ports. For a bench run, support any load that could fall and keep clear of the joints.

from time import sleep
from openxl330 import Bus

with Bus("/dev/ttyUSB0") as bus:
    with bus.group([1, 2, 3], off_on_exit=True) as arm:
        arm.configure()
        arm.enable()
        arm.move({1: arm.read()[1].position + 0.08}, duration=0.5)
        sleep(0.6)
        print(arm.read()[1].position)

To try the same code in simulation, replace Bus("/dev/ttyUSB0") with Bus.simulated(3). off_on_exit=True requests torque OFF when leaving the group. Confirm that every joint is OFF if communication fails. The quickstart and examples cover discovery, control, calibration, a guided first move, a gripper and simulated installation.

Performance vs stock firmware

A robot arm is only as good as how faithfully each joint follows what you ask of it. Three properties matter most:

  • Tracking fidelity: the joint follows the shape of the trajectory, not just its end points.
  • Low lag: commands take effect quickly, which leaves more room for outer control loops.
  • Stiffness against load: the joint holds its position under gravity instead of sagging.

We compared the stock firmware with openxl330 on the same XL330 driving a small pendulum (about 290 g at about 30 mm). Both firmwares received the same commands.

Same commands, better tracking

The host streamed one chirp trajectory, sin(t²) rad for 6 s, at about 62 goals per second to both firmwares, with identical goal values and timing.

Chirp trace: reference vs stock vs openxl330

RMS error, shape error after lag, and lag

"Shape error after lag" is the RMS error left after shifting each response by its own best-fit delay. It measures how well the motion keeps the trajectory's shape, separately from how late it arrives.

Faster steps, less sag

A single 20° step under gravity load illustrates the difference. Across all twelve ±10/20/45° steps and their returns, the 10–90% rise time was 60–104 ms for openxl330 and 105–136 ms for the stock firmware.

20 degree step response

Summary

Test (one run each) Stock firmware openxl330 PD
Chirp, same goal stream: RMS error 26.6° (P 400) / 21.9° (P 800) 14.6°
Chirp: shape error after lag 6.9° / 7.5° 1.9°
Chirp: best-fit lag 102 ms / 76 ms 53 ms
Steps ±10–45°: 10–90% rise 105–136 ms 60–104 ms
Steps: mean gravity sag 1.92° 0.50°
±30° sweep: RMS error 11.9° 2.2°

How we tested, and caveats

  • Sample size: one XL330 unit with a pendulum load, and one run per condition.
  • Bus speed: the stock firmware ran at 57,600 baud because its baud setting lives in its own non-volatile memory, which we did not change. openxl330 ran at 3 Mbaud but replayed the identical goal timeline the stock run received, so the command rate and values were the same.
  • Stock telemetry timing: stock telemetry is timestamped when the host read returns, and at 57,600 baud that read takes several milliseconds. The stock lag is therefore overstated by a few ms, and stock step timing is resolved only to about 25 ms.
  • Step and sweep tests: in the step and ±30° sweep tests, openxl330 generated its trajectory on board while the stock firmware received goals streamed at about 40 Hz. The sweep gap is therefore partly a command-rate effect. The chirp test above is the like-for-like comparison.
  • Firmware version: these measurements used the PD precursor of the released firmware, with gains Kp 2 / Kd 0.05 in the firmware's original torque scale. The released firmware adds gear-train compensation, which tracked better still in our tests (not shown here).
  • Energy: at stock-matched stiffness openxl330 rises about 25% faster but uses about 20% more energy over the move set; stiffer tunes trade more energy for speed. Energy is V·|duty|·|I| sampled at about 32–40 Hz, which is coarse.
  • No guarantee: your servo, load, wiring and gains will give different numbers.

The plots were made from the raw recordings of these runs.

Protections

The firmware turns torque OFF and latches a fault for three protections: supply voltage outside 3.5–7.0 V, temperature at 65 °C or above, and a current overload above 1.0 A RMS (I²t, time constant about 2 s). These defaults apply after every boot, and you can change the limits. There are no travel or speed cut-offs. The only other faults are integrity checks: sensor when more than 5 % of encoder or ADC samples in 1 s are bad, and timing when more than 5 % of control ticks in 1 s miss their deadline. The API guide shows how to read them.

Firmware compatibility

FW231 release Change
fast10 Motion block and Fast Sync Read
fast11 Application reboot after a hang and last-reset diagnostics
fast12 Retargeting during a move, release ID and loader CRC readback
fast13 Caches the loader CRC at boot
fast14 Generates the temperature lookup table from a thermistor model with the same table values as fast13
fast15 Records when the watchdog's settings fail to apply at start-up (last_reset(): iwdg_update_timeout)
fw231-comp2-fast16 (bundled default) Direct torque command in N·m (set_torque(); register map ABI 4)

Use openxl330 version to check the bundled release and openxl330 status --ids 1-3 --port /dev/ttyUSB0 to check what the servos are running. See the API guide for application compatibility and troubleshooting for reported faults and errors. Hardware qualification so far (macOS): a six-servo arm on a U2D2. All six were installed from stock V52 with experimental flash-all, the torque command was checked, and a 600 s loaded run at 1 Mbaud passed with no faults, resets or missed deadlines. Before that, BusLinker and U2D2 were qualified with three servos on one bus at 1 Mbaud. Not yet checked physically: the 65 °C shutoff.

Experimental: flash-all and going back to stock

openxl330 experimental flash-all installs on every stock servo of a bus in one run, each keeping its ID. openxl330 experimental uninstall hands a servo to ROBOTIS Dynamixel Wizard's Firmware Recovery and restores its stock settings afterwards. flash-all has installed a six-servo arm from stock; the route back to stock is tested on one two-servo bench only. See experimental commands and returning to stock firmware.

Known limitations

IDs cannot yet be changed over the bus (set them in Dynamixel Wizard before installing; planned for v1.1). A long encoder dropout near top speed latches a sensor fault, and a stuck encoder bus needs a power cycle; fixes for both are designed but not yet in the firmware. There is no graphical tool yet (planned for v1.1). See known limitations.

Adapters

Use the U2D2’s three-pin TTL port or a compatible BusLinker-type adapter. An adapter that echoes its own requests is refused. FTDI driver latency can dominate read and write times, especially on macOS. On Windows, set the FTDI latency timer from its 16 ms default to 1 ms in Device Manager → Port Settings → Advanced. Linux and Windows: expected to work, not yet hardware-tested; reports welcome. See adapters for detection and latency settings.

Licence

To report a bug or a hardware result, or to contribute, see CONTRIBUTING; for security issues, see SECURITY.

The library and the bundled openxl330 firmware are licensed under MIT. The README images include third-party artwork; see third-party notices. ROBOTIS and DYNAMIXEL are used to identify the hardware and tools this project interoperates with. See the changelog for release notes and the torque guide for what the estimates mean.

Metadata

Release files for openxl330 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openxl330 0.1.0
File Size Uploaded Provenance Actions
openxl330-0.1.0.tar.gz 636.5 kB With provenance Details for openxl330-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openxl330 0.1.0
File Interpreter ABI Platform Actions
openxl330-0.1.0-py3-none-any.whl Python 3 none any Details for openxl330-0.1.0-py3-none-any.whl

Total release size: 839.1 kB

Release files / openxl330-0.1.0.tar.gz

Download URL openxl330-0.1.0.tar.gz
Size 636.5 kB
Tags Source
SHA-256 checksum
How to use checksums
01cb183af2223decd396a44f5e6ff1796544b349ce76c6ba0bd874984deb4472
BLAKE2b-256 checksum
How to use checksums
7847ccf9bcb4d4ec7e92602374d3b15c654b85af4c00a7bad0a461058a35de8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / openxl330-0.1.0-py3-none-any.whl

Download URL openxl330-0.1.0-py3-none-any.whl
Size 202.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b714ee16341fa44df87ecf96a62a38fe18f99109062551dff0f94fd7bee1db36
BLAKE2b-256 checksum
How to use checksums
fa9ce045bfe2e192bae6ed4a34d726b52dff418f85c6bea4376f097a5bfce6b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for openxl330 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openxl330-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page