By Kevin McAleer, 6 Minutes
Page last updated November 24, 2026

This is the most important lesson to get right before you build. Every servo needs its own ID, and it needs to be set before the servo disappears inside a leg. Do it now and assembly is smooth. Skip it and you’ll be taking a leg apart later.
If you’ve used hobby servos before, you’ll know each one needs its own signal wire and a pulse to tell it where to go. Fourteen of those would mean fourteen signal wires snaking through a small duck.
The Feetech STS3215 is a serial bus servo. Instead of a pulse, it listens for messages on a shared data line. Every message is addressed to an ID, so only the servo with that ID responds. It can also answer back with its position and speed, which the walking policy needs as part of what it observes.
That gives us three big wins:
flowchart LR
Pi["Raspberry Pi"] -->|USB| B["USB-serial servo board"]
B --> S1["Servo ID 10"]
S1 --> S2["Servo ID 11"]
S2 --> S3["..."]
S3 --> S4["Servo ID 33"]
The catch: if two servos on the bus share an ID, they both answer at once and the messages get garbled. That’s why every servo gets configured on its own, before it joins the chain.
These IDs come from configure_motors.md in the Open_Duck_Mini repo. The pattern is easy to remember: the tens digit is the limb (1 is the right leg, 2 the left leg, 3 the head) and the units digit counts down the limb.
| Joint | ID | Joint | ID |
|---|---|---|---|
| right_hip_yaw | 10 | left_hip_yaw | 20 |
| right_hip_roll | 11 | left_hip_roll | 21 |
| right_hip_pitch | 12 | left_hip_pitch | 22 |
| right_knee | 13 | left_knee | 23 |
| right_ankle | 14 | left_ankle | 24 |
| Head joint | ID |
|---|---|
| neck_pitch | 30 |
| head_pitch | 31 |
| head_yaw | 32 |
| head_roll | 33 |
Label each servo with its joint name and ID as soon as you’ve set it. A strip of masking tape and a pen will save you a lot of confusion later.
The configuration script lives in the runtime repo, so you need the runtime installed on whatever machine the servo board is plugged into. The simplest route is to set up the Pi first by following lesson 8, then come back here with the servo board plugged into the Pi. Lesson 8 includes these same steps: clone the repo, switch to the v2 branch and install it.
git clone https://github.com/apirrone/Open_Duck_Mini_Runtime
cd Open_Duck_Mini_Runtime
git checkout v2
pip install -e .
Do this for each of the 14 servos, one at a time:
python configure_motor.py --id <id>
For example, --id 13 for the right knee. Check the runtime README for which folder the script is in on the v2 branch.
You won’t get every horn perfectly lined up. The horn’s splines only fit in steps, so you’ll often be a little off. That’s fine. In lesson 10 we’ll measure a small offset for every joint, and the software will correct it. What matters now is getting each horn as close as you can, and never fitting one a whole step or more out.
Problem: The script can’t find the servo. Solution: Check the servo has power, the cable is fully seated, and only one servo is connected. Why: The servo board can’t talk to a servo that is unpowered, and two servos with the same ID clash.
Problem: You set the wrong ID on a servo.
Solution: Run configure_motor.py again on that servo with the right ID.
Why: The ID is just a stored setting, and you can change it any time while the servo is on its own.
Problem: The horn is a whole spline step off zero. Solution: Take it off and refit it at the closest position. Why: Offsets are for small corrections. A big error can push the joint against its limits.
Quick quiz 1 of 3
Why must each servo be configured on its own, before assembly?
Quick quiz 2 of 3
Which ID belongs to the left knee?
Quick quiz 3 of 3
What should you do when configure_motor.py moves the servo to zero?
Comments