By Kevin McAleer, 5 Minutes
Page last updated November 21, 2026

So far the arm lives entirely on screen. A real arm has a servo at each joint, and each servo is plugged into a pin on the microcontroller. Binding tells Snakie which pin drives which joint.
Once that’s done, two things work:
In the Build panel on the left, find Servos and click + Bind a servo by hand. A small panel opens, titled Servo — GP0.

waistDo it twice more. Snakie hands out the next pin each time, so choose shoulder for GP1 and elbow for GP2.

The Servos list now reads GP0 → waist, GP1 → shoulder, GP2 → elbow. Click a row to open it again.
Here’s a wrinkle every robot builder meets. Your joints run from -90 to 90, with zero in the middle. A hobby servo runs from 0 to 180, with 90 in the middle. They’re two rulers for the same movement.
The binding panel holds both ends of each ruler:
| Setting | Default | Meaning |
|---|---|---|
| Servo min / max | 0 / 180 | The servo’s range, in servo degrees |
| Joint range min / max | -90 / 90 | The joint angles those two ends match |
Snakie slides one ruler along the other:
| Joint angle | Servo angle |
|---|---|
| -90 | 0 |
| -40 | 50 |
| 0 | 90 |
| 50 | 140 |
| 90 | 180 |
So with the defaults, servo angle = joint angle + 90. Rest is every servo at 90.
Servos are often mounted facing the opposite way to the joint in your model. The arm then goes up when you asked for down.
Tick Invert and Snakie flips the ruler: servo min matches joint max. You fix it once here and never think about it in your code.
You’ll only know whether you need it once the real servo is fitted, so come back to this box on build day.
Binding by hand is quick, and perfect for the simulator. If you’re building the real robot, there’s a tidier route.
A servo with no signal wire shows as unwired until you connect it. The Sync button at the top of the 3-D view tells you whether Electronics and Build agree.
Now your wiring diagram, your 3-D model and your code all describe the same robot.
They’re in robot.yml too:
servoJointMap:
- pin: "1"
joint: shoulder
jointMin: -90
jointMax: 90
servoMin: 0
servoMax: 180
robot.yml and find servoJointMapProblem: A new binding says it drives waist when I wanted another joint.
Solution: Change Drives joint before clicking OK.
Why: New bindings start on the first joint in the list.
Problem: My real servo buzzes at one end of its travel. Solution: Narrow Servo min / max, for example 10 to 170. Why: Many cheap servos can’t quite reach 0 or 180.
Problem: The real joint moves the opposite way to the model. Solution: Tick Invert on that servo. Why: The servo is mounted the other way round.
Quick quiz 1 of 3
What does binding a servo do?
Quick quiz 2 of 3
With the default settings, which servo angle is the rest position?
Quick quiz 3 of 3
A real joint moves the wrong way. What’s the fix?
You can use the arrows ← → on your keyboard to navigate between lessons.
Comments