Second encoder on the gearbox output slashes joint error

Nov 08, 2026 Last reply: 1 day ago 3 Replies
Jump to replies (3)

The number that jumps out is the error drop. On a 45:1 3D-printed reduction gearbox, the settled joint error went from 0.065 degrees down to 0.014 degrees, a 78% reduction, just by feeding back the position measured after the gearbox instead of trusting the motor alone. For a board the maker wants to sell for around $20, that result is remarkable.



The board, called CLMD, is built around an ESP32-S3 and a Trinamic TMC2209 driver. Two TLE5012B magnetic sensors handle the dual encoder inputs, one reading the motor shaft angle and the other reading the gearbox output angle. Everything was drawn up in EasyEDA, the PCBs were ordered through PCBWay, and firmware flashes over USB-C using a desktop tool called Studio. The finished board is blue, ringed with white multi-pin connectors, with a USB-C port on one edge and two push buttons.



Plenty of small choices stand out. There is reverse-polarity protection and native USB flashing, and the connector set covers two CAN bus plugs, two endstops, VIN, 5V, motor and GPIO. In testing, CAN was daisy chained across six arm joints, and the maker says hooking up six boards should be easy thanks to that layout. It works with NEMA 17 and NEMA 23 motors. One catch on cost: while the target is $20 per board, small batches of 5-10 came to almost $40 each.



The clearest trade-off is the driver itself. The TMC2209 cannot do FOC, which the maker calls the biggest downside, and 48V operation is off the table with it. There is also an open question the maker raised: handling backlash compensation without destabilising the control loop.



Project by Arctos Robotics. Watch it on their YouTube channel:

formatting link


Putting the second encoder after the gearbox is the smart part of this design. A single motor-side sensor tells you nothing about the slack in the reduction stage, so measuring the joint directly is what makes the software correction possible. The trade-off is that every joint needs an extra sensor and wiring, but on a printed gearbox that seems a fair price for a 78% error cut.

Does the backlash correction run on each board's own ESP32-S3, or is it coordinated from somewhere else when six of them are daisy chained over CAN? Also curious whether the printed 45:1 gearbox used in the tests is the same design as the joints on the arm, since slack behaviour can differ a lot between printed reduction stages.

A future revision could swap the TMC2209 for the TMC5160A, which is rated up to 60V and would clear the 48V limit that the current driver cannot reach. The maker has already mentioned that a higher-voltage version with a different controller might become its own project, and keeping the dual TLE5012B encoder inputs on that variant would carry the accuracy gains over to bigger motors.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required