Hi all,
I’ve been working on openxl330, open-source (MIT) replacement firmware for the Dynamixel XL330-M288, plus a Python library and installer:
https://github.com/Jdowdy05/openxl330 · pip install openxl330
Since the XL330-M288 drives Reachy Mini’s Stewart-platform head and, I believe, MicroDuck as well, I thought some of you might find it interesting.
What it does differently from stock:
-
2 kHz torque-based PD control. Gains are in real units: Kp in N·m/rad, Kd in N·m·s/rad.
-
Direct torque commands in N·m, plus torque feedback in N·m.
-
Gear-train compensation for friction, back-EMF and rotor inertia. With it on, a light joint becomes almost frictionless, which is nice for backdriving and compliant behaviour.
-
Lower lag. In a same-commands test against stock firmware: 53 ms against 76–102 ms, and about 3.7× less shape error. Single unit, pendulum load; details are in the README.
-
Fast group bus: Fast Sync Read and chained replies at 1–3 Mbaud.
-
Flash-all: converts a whole bus of stock servos in one command. Each servo’s ID and factory calibration are kept, and the ROBOTIS bootloader is never touched.
Where it’s been tested: a 6-servo arm flashed from stock in one go, then 600 s under load with no faults and no missed control deadlines.
Currently there is only a XL330-M288 version of this custom firmware, however…
If there’s enough interest with using this with Reachy Mini, or for the XL330-M077 version of the XL330, I will make a XL330-M077 version of the firmware!
If you have any questions or want to contact me, send me an email at dowdyjordan5@gmail.com!!!
I’d love to hear whether this would be useful for Reachy Mini or MicroDuck builds, and what would be needed: an adapter for the Reachy Mini SDK, M077 support, anything else. Happy to help anyone who wants to try it on a head or a single joint first.