Tell an SO-101 shoulder to go to 30°. It swings there and holds against a load. How does a number become controlled motion? And how do measured angles tell us where the gripper is and which way it points? We'll follow a toy arm with two links of length 1 and 0.8, shoulder at 30°, elbow at 60°.
The robot knows a list of angles
The SO-101 has five arm joints plus a gripper actuator, and each smart servo measures its own angle. A Franka Panda has seven rotary arm joints plus sliding fingers. Stack the angles in one list, q = (q₁, …, q₇): that is the configuration, and the space of all such lists is joint space. The links are rigid with known shapes, so q fixes where every link sits and how it is turned.

Turn only the Panda's wrist: the joint centers stay put and the gripper can keep pointing the same way, yet the hand rolls about its own axis. Joint centers or a pointing direction miss that roll.
q is a snapshot, though. Two arms at (30°, 60°), one still and one swinging fast, need very different braking in the next instant. So the mechanical state is the pair (q, q̇): angles plus velocities. A robot that senses its own joints is doing proprioception (Latin proprius, one's own).
How a servo reads its own angle
Take the AS5600, a chip that sits under a small magnet on the motor shaft and reads the magnet's angle. The field pushes sideways on charges moving through the chip's Hall elements, which makes a small voltage, and the electronics turn this into two signed signals a quarter turn apart. Those get digitized, and the angle comes from them:
X = A cos θ, Y = A sin θ

At our 30°, with A = 1, (X, Y) = (0.866, 0.5). Why two signals? Because one is ambiguous: sin 30° = sin 150° = 0.5. The cosines have opposite signs, and that settles it: θ = atan2(Y, X) uses both signs to pick the right quadrant.

The AS5600 computes atan2 with a hardwired block called CORDIC (Coordinate Rotation Digital Computer), and the trick is lovely. Rotate the vector (X, Y) in the registers (the magnet stays put) until it lies flat on the x-axis, and keep a tally of the turns. The tally is the angle. The clever part is choosing turns whose multiplications become divisions by 1, 2, 4, 8 and so on, which are just shifts in binary. Those stored angles are φᵢ = arctan(2−i), and each step needs only shifts and adds:
xnew = x + 2−i y, ynew = y − 2−i x (clockwise; flip both signs to turn back)
Turn clockwise and add φᵢ when y is positive; turn back and subtract it when y is negative. Each step is an exact rotation plus a stretch, so error comes only from stopping after finitely many steps and from rounding the stored numbers.
Is that the fast way, though? I benchmarked three methods, and all three stayed within half a 12-bit encoder step (360°/8192 ≈ 0.0439°). CORDIC beat a basic Taylor series by about 55×. But a Taylor series with extra range reduction was about 6× faster than CORDIC, on native C++ on an Apple M1 Max laptop. A sensor chip wants something else: one small dedicated circuit that repeats shift, add, subtract and lookup. That is CORDIC.
How the encoder finds the angle: the CORDIC derivation and the benchmark
The hardware. A Seeed Grove board with the AS5600 was listed at US$6.50 for one on 2026-09-28, before tax and shipping.
Why shifts and adds rotate the vector. A clockwise rotation by φ is
xrot = x cos φ + y sin φ = cos φ (x + y tan φ)
yrot = y cos φ − x sin φ = cos φ (y − x tan φ)
For 0° ≤ φ ≤ 45° the common factor cos φ is positive, so dropping it keeps the direction and only stretches the vector. Rotating (1, 0) clockwise by 45° gives (0.707…, −0.707…); the update without cos φ gives (1, −1), the same direction with a greater length. With tan φᵢ = 2−i, the remaining factors at i = 0, 1, 2 are 1, 1/2, 1/4, which scaled integers apply as right shifts. Both coordinates update from the old values at the same time.
The recurrence for the 30° example:
x₀ = X, y₀ = Y, a₀ = 0; dᵢ = +1 if yᵢ ≥ 0, otherwise −1
xi+1 = xᵢ + dᵢ 2−i yᵢ, yi+1 = yᵢ − dᵢ 2−i xᵢ, ai+1 = aᵢ + dᵢ φᵢ
The first floating-point step gives x₁ = 1.366, y₁ = −0.366. When y gets close to zero, the tally a is close to the input angle. Inputs anywhere on the full circle need a few extra sign tests and possible negations first. In integers, (887, 512) is about 29.995°. The first update gives (1399, −375); the negative y triggers a reverse turn, and the next shift is 1399 >> 1 = 699, a division by a power of two rounded down.
The first four turns for (X, Y) = (0.866, 0.5), with rounded values:
| Step | Turn | Angle estimate |
|---|---|---|
| 1 | +45° | 45° |
| 2 | −26.565° | 18.435° |
| 3 | +14.036° | 32.471° |
| 4 | −7.125° | 25.346° |
The Taylor competitor. The series arctan z = z − z³/3 + z⁵/5 − … converges slowly near z = 1. Signs and axis swaps reduce any input to α in [0°, 45°], so z is in [0, 1]. Above 22.5°, the identity arctan z = π/4 + arctan((z − 1)/(z + 1)) shrinks the series input to at most tan 22.5° = tan(π/8) ≈ 0.4142. At z = 0.8 the new input is −1/9 ≈ −0.111, and the three terms w − w³/3 + w⁵/5 plus 45° give 38.6598066°, against a reference of 38.6598083°. Three terms on z directly give 39.81308°.
The benchmark results over 1,114,197 coordinate pairs, as the largest error over the tested inputs and the time on the tested laptop:
| Method | Work | Largest tested error | Time per angle |
|---|---|---|---|
| Basic Taylor | 326 terms | 0.04394° | 590.6 ns |
| CORDIC | 12 steps | 0.02798° | 10.78 ns |
| Range-reduced Taylor | 3 terms | 0.01512° | 1.79 ns |
The core operation counts at source level:
| Method | Additions and subtractions | Multiplications | Right shifts | Table entries |
|---|---|---|---|---|
| 12-step CORDIC | 36 integer | 0 | 24 | 12 |
| 326-term basic Taylor | 325 floating-point | 327 | 0 | 326 |
| 3-term reduced Taylor | 2 floating-point | 4 | 0 | 3 |
CORDIC also does 12 sign checks, full-circle handling with extra sign tests and possible negations, and one conversion and one multiplication to output floating-point radians. Taylor needs one coordinate-ratio division plus signs and axis swaps; the reduced method sometimes adds a second division and the π/4 restoration, and on the timing inputs it averaged 4 multiplications, 4.50 additions or subtractions and 1.50 divisions. Compiler instruction selection differs from these counts, loop bookkeeping and checksums are excluded, and a division costs more than a shift.
Protocol: every method got identical coordinate pairs rounded to 30 fractional bits (Taylor got the exact floating-point values of those rounded numbers), input preparation stayed outside the timing, and the system double-precision atan2 was the reference. Timing used 65,536 fixed-seed inputs, 64 passes per trial, a rotating method order, Apple Clang 21 with -O3 and floating-point contraction disabled, and media rendering stopped. Each time is the median of 11 trials. Implementations, raw timings, operation counts and accuracy checks are in encoder-benchmark.
The feedback loop inside the servo
Now we can measure q, so back to the command. The SO-101 servo packs a motor, the encoder, a driver, gears and a controller into one case. The laptop's message reaches it through a USB adapter and the servo bus, and the servo keeps running its own feedback loop between messages. The commanded angle is the action; the encoder reading is an observation of the current state.

Say the target is qd = 30° and the encoder reads q = 20°, so the error is e = qd − q = 10°. The standard controller model here is PID (I have not checked the servo's exact firmware):
u(t) = KP e(t) + KI ∫0t e(s) ds + KD ė(t)
u is the motor drive the controller asks for, and the K gains set how strong each correction is. P (proportional) pushes on the error right now. I (integral) pushes on the error summed over time, so it keeps pushing after the error reaches zero. D (derivative) reacts to how fast the error changes; with a fixed target ė = −q̇, so D brakes harder the faster the joint moves.

Why bother with I? Hang a constant load on the joint. P only pushes when there is error, so the joint settles short of the target, where KP e balances the load. The integral grows while that gap lasts and keeps its value once the gap closes, so it ends up holding the load at the target.
Remove one term at a time
I checked these roles in a simulation of one link turning in a horizontal plane. It starts at rest at 0°, and we ask for 45.8° while a constant 2 N·m torque pushes against it. Each run removes one controller term and keeps everything else the same. The board compares the outcomes. Without D, the link's own friction eventually calms the ringing; the growing swings without P belong to these particular gains.
The simulation drives torque directly with no limit. Under another load or pose the same gains can behave differently, so some controllers change gains with the joint, pose or load.
Simulation setup, checks and damping
M q̈ = u − b q̇ − 2, u = 16 e + 4 ∫0t e(s) ds − 7 q̇
M = 1 kg·m² and b = 0.5 N·m·s/rad. The angle, velocity and integrated error start at zero, and each ablation sets one gain to zero. Without I, the resting derivative term is zero, so P must supply 2 N·m: with KP = 16 that takes 2/16 = 0.125 rad ≈ 7.16° of error. The controller applies continuous torque directly with no torque limit, and the derivative term uses measured velocity so a target change does not cause a kick. The integration step was 2 ms, repeated at 1 ms, and the angles matched the exact linear-system solution within 10−7 rad. Settling means staying within 2% of the target for the rest of an 80 s run. The system poles confirm the no-P instability. Code, parameters and complete traces are in pid-ablation.
Damping. For one joint with a fixed target under PD control:
M ë + (b + KD) ė + KP e = 0, ζ = (b + KD) / (2√(M KP))
ζ is dimensionless. For 0 < ζ < 1 the joint is underdamped and overshoots with oscillation; ζ = 1 is the critical boundary; for ζ > 1 it is overdamped and approaches more slowly without oscillating. This ideal second-order model assumes positive M and KP and leaves out integral action, gravity, delay and contact. With the simulation's numbers and the integral ignored, ζ = (0.5 + 7)/(2·4) ≈ 0.94; with KD removed, ζ = 0.5/8 ≈ 0.06, deep in the ringing regime.
From angles to the gripper
Now the second question: given q, where is the gripper? That is forward kinematics (kinematics: motion without its forces; dynamics adds the forces and torques). Each joint angle is measured from the link before, so the link directions add up: α₁ = 30° and α₂ = 30° + 60° = 90°. Each link then adds its length times the cosine and sine of its direction:
x = cos q₁ + 0.8 cos(q₁ + q₂) = 0.866 + 0 = 0.866
y = sin q₁ + 0.8 sin(q₁ + q₂) = 0.5 + 0.8 = 1.3

The SO-101's bending joints work in a vertical plane, so the same sum gives a signed reach r and a height z. The pan angle φ then swings that plane around the vertical: x = r cos φ, y = r sin φ. Call the whole map p = g(q). It takes a point in joint space to a point in task space, where the hand lives. Try it below.

q = (30°, 60°), hand at (0.866, 1.300). Dashed: the other elbow branch.
Small turns: the Jacobian
Nudge the shoulder a little. Which way does the hand go, and how far? Differentiate g and you get the Jacobian: ṗ = J(q) q̇. Column j is the hand velocity from turning joint j alone at unit speed, and for small changes Δp ≈ J(q) Δq. At (30°, 60°):
| −sin q₁ − 0.8 sin(q₁+q₂) | −0.8 sin(q₁+q₂) |
| cos q₁ + 0.8 cos(q₁+q₂) | 0.8 cos(q₁+q₂) |
| −1.3 | −0.8 |
| 0.866 | 0 |
J changes with q. Compare the extended and folded arms below: the same shoulder turn moves the hand different distances.

At (30°, 60°), well inside the valid region, the two columns point in different directions, so mixing shoulder and elbow turns can move the hand in any direction in the plane. That is what rank 2 means here, and the set of hand velocities you can produce is J's image. No nonzero mix leaves the hand still, so J's kernel, the joint velocities that hold the hand still to first order, contains only zero. The Panda needs rank 3 for hand position, and with seven joints it has kernel to spare: the elbow can swing while the hand stays put.
Going backwards: inverse kinematics
Flip the question. Given the target p* = (0.866, 1.3), which q gets there? Our arm has two answers: (30°, 60°), and the mirror image with the elbow on the other side, about (82.6°, −60°). In general, inverse kinematics returns a set:
{ q ∈ Qvalid : g(q) = p* }
Qvalid applies joint limits and whichever collision checks you chose, so the set can be empty, a few points, or a whole family. Now suppose the solver picks one elbow arrangement for this target and the other one for the next, slightly shifted target. The hand barely needs to move, but the elbow jumps across! Starting each solve from the arm's current angles usually helps it find the nearby answer. And a valid endpoint still says nothing about whether a safe path reaches it.

Where the hand can go
Which targets have any answer at all? The reachable positions are g(Qvalid). For our ideal arm with no joint limits, that is the ring on the board, from 0.2 to 1.8 around the shoulder. Joint limits, self-collision, link thickness, obstacles and the table all carve away more.
For the Panda, I drew 300,000 configurations uniformly inside the seven arm-joint limits, fingers open, and 263,270 passed the recorded self- and environment-collision checks (table, ground and a task cube). Forward kinematics turns each one into a hand position. In the face-on grid below, a green cell holds at least one accepted sample, so the hand can reach it. A blank cell has no accepted sample, so its reachability stays open. Uniform sampling in joint space also spreads hand positions unevenly.
A first guess at the envelope
Before sampling, you can guess an outer envelope. With a hypothetical 180° pan and the hand kept above the table, the outer shape is a quarter ball. Finite link thickness, self-collision, the environment and joint limits remove more positions, and an ideal two-link arm cannot bring its hand closer to the shoulder than |L₁ − L₂|. The model, joint limits, collision rules and sampled data are in workspace.

Position is half of a grasp
Reaching the stem of a wine glass still falls short of grasping it: the gripper also needs a useful orientation and room for its fingers. To write orientation down, take the gripper's three axes in world coordinates and stack them as the columns of a matrix R. The axes stay perpendicular and have length 1, which is RᵀR = I, and they describe a rotation with no mirror flip, which is det R = 1. These rotation matrices make up SO(3), and position plus orientation, (p, R), make a pose in SE(3).

Our toy hand points along its last link at α₂ = 90°, so its orientation is a rotation of 90° about z:
| cos θ | −sin θ | 0 |
| sin θ | cos θ | 0 |
| 0 | 0 | 1 |
The first column, (cos θ, sin θ, 0), is the gripper's first axis. The second is a quarter turn ahead, so at 90° it points left. Now take a tilted Panda hand and twist it another 30°. Around the world's z-axis, or around the hand's own tilted z-axis? Those are different moves. For the hand's own axis, the extra rotation goes on the right: Rnew = Rold Rz(30°).

Who writes the target?
- A classical pipeline picks a grasp pose, solves IK for the joint endpoint, plans a collision-free path and its timing, and sends the intermediate joint targets to position-controlled servos.
- ACT, in its original ALOHA setup, reads images and measured joint positions and predicts a chunk of future joint targets. Consecutive chunks can disagree about the same future instant, so we can average the overlapping predictions to smooth the commands; this optional step is called temporal ensembling.
- A learned model predicts hand poses or displacements in task space, and IK or a Cartesian controller converts them into commands the robot accepts.
- A VLM (vision-language model) can pick a high-level goal while a VLA (vision-language-action model) produces the motion. Some VLAs read images and instructions directly, with outputs in joint or task space.

Whichever you pick, the command has to match what the controller accepts: position, velocity or torque, in the right units, coordinate frame and timing.
When an arm misbehaves, you now know where to look: an unreachable pose, an IK branch flip, gains tuned for another load, or a command in the wrong frame.
Robot renderings come from simulation; the planar and control animations are teaching schematics. Inspiration: this article. Asset credits and licenses: ASSET-NOTICES.