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
- 0:00To make our robot arm more accurate we had to hack its firmware, the code running inside it.
- 0:06Watch the arm return to the deal indicator. It reaches almost the same position each time.
- 0:12That's repeatability. But returning to the same point and reaching the commanded point
- 0:18are two different things. The arm can miss the target in the same way every time.
- 0:24That means good repeatability but poor absolute accuracy.
- 0:28Absolute accuracy tells us how close the actual position is to the commanded position.
- 0:33Our engineer Boris Kotov tried to reduce position in error by tuning the PID.
- 0:38PID is a controller that compares the commanded position with the measured position
- 0:43and adjusts the motor's output. In some tests tuning did improve accuracy.
- 0:49But with those settings the arm started oscillating in certain positions.
- 0:54Reducing speed and acceleration helped it but made the arm less responsive.
- 0:58With the factory firmware we couldn't get the combination of accuracy and responsiveness
- 1:03we needed across all our test scenarios. So we decided to develop our own firmware.
- 1:10Boris used TI to reverse engineer the firmware. Within a couple of hours we had initial reconstruction.
- 1:16Here's what we changed in our custom firmware. First we added support for gravity compensation.
- 1:22The computer estimates the effort needed to support the arm's weight and the service applied.
- 1:28We also added velocity feed forward.
- 1:30It adjusts motor output based on planet speed helping the service follow the motion.
- 1:36As curve motion profiles make acceleration and braking more gradual reducing jolts.
- 1:40Finally we made PID tuning more flexible. That lets us adjust how each server corrects position
- 1:47mirrors and settles at its target. Here's S101 commanded to the same position about 35mm before
- 1:56and 10 after. And here's S102. From the target making we estimate about 25mm before
- 2:06and roughly 0 to 2 after. Almost dead centered in this run.
- 2:10Synchronizing the joints also made the motion smoother.
- 2:31The frame still flexes under the load which limits accuracy.
- 2:36The firmware doesn't remove gearbox backlash and each arm still needs tuning.
- 2:41But now we have an ability to control STS series server more flexibly using custom firmware
- 2:46from Robonine. Code and documentation are linked below.
การสนทนา
อีเมลแจ้งเมื่อมีคนแสดงความคิดเห็น ไม่ต้องมีบัญชี
จดหมายข่าว
สมัครรับจดหมายข่าวฟรีของเรา พร้อมหุ่นยนต์รุ่นใหม่ ราคา และข่าวสารด้านหุ่นยนต์