RoboGeeks

We Hacked Servo Firmware: SO-ARM 100–102, Up to x10 More Accurate

Robonine · Uploaded · 2:58 · Watch on YouTube

Robonine engineers show how they reverse engineered the servo firmware of their SO-ARM arms and rewrote it with gravity compensation, velocity feed-forward, and more flexible PID tuning. They compare position error before and after the changes on the SO-ARM101 and SO-ARM102.

Transcript

Captions as a .vtt fileEmbed with the transcript

  1. 0:00To make our robot arm more accurate we had to hack its firmware, the code running inside it.
  2. 0:06Watch the arm return to the deal indicator. It reaches almost the same position each time.
  3. 0:12That's repeatability. But returning to the same point and reaching the commanded point
  4. 0:18are two different things. The arm can miss the target in the same way every time.
  5. 0:24That means good repeatability but poor absolute accuracy.
  6. 0:28Absolute accuracy tells us how close the actual position is to the commanded position.
  7. 0:33Our engineer Boris Kotov tried to reduce position in error by tuning the PID.
  8. 0:38PID is a controller that compares the commanded position with the measured position
  9. 0:43and adjusts the motor's output. In some tests tuning did improve accuracy.
  10. 0:49But with those settings the arm started oscillating in certain positions.
  11. 0:54Reducing speed and acceleration helped it but made the arm less responsive.
  12. 0:58With the factory firmware we couldn't get the combination of accuracy and responsiveness
  13. 1:03we needed across all our test scenarios. So we decided to develop our own firmware.
  14. 1:10Boris used TI to reverse engineer the firmware. Within a couple of hours we had initial reconstruction.
  15. 1:16Here's what we changed in our custom firmware. First we added support for gravity compensation.
  16. 1:22The computer estimates the effort needed to support the arm's weight and the service applied.
  17. 1:28We also added velocity feed forward.
  18. 1:30It adjusts motor output based on planet speed helping the service follow the motion.
  19. 1:36As curve motion profiles make acceleration and braking more gradual reducing jolts.
  20. 1:40Finally we made PID tuning more flexible. That lets us adjust how each server corrects position
  21. 1:47mirrors and settles at its target. Here's S101 commanded to the same position about 35mm before
  22. 1:56and 10 after. And here's S102. From the target making we estimate about 25mm before
  23. 2:06and roughly 0 to 2 after. Almost dead centered in this run.
  24. 2:10Synchronizing the joints also made the motion smoother.
  25. 2:31The frame still flexes under the load which limits accuracy.
  26. 2:36The firmware doesn't remove gearbox backlash and each arm still needs tuning.
  27. 2:41But now we have an ability to control STS series server more flexibly using custom firmware
  28. 2:46from Robonine. Code and documentation are linked below.
Embed this video with its transcript

Paste this into your page. The frame holds the player and the transcript; the link below it says where the transcript comes from.

Discussion

You pick a name in the next step. Already a member? Log in.

A mail when somebody comments. No account needed.

The newsletter

Get our free newsletter with new robots, prices and robotics news.