AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Delta robot forward and inverse kinematics explained

Servo and stepper motion Published 8 min read By AutomateDirectUSA engineering team

Short answer

For a fixed-orientation three-leg delta, inverse kinematics turns a target platform position into one arm angle per motor by solving a fixed-length link constraint, and forward kinematics turns the three measured angles back into a position by intersecting three equal-radius spheres. Each solve returns two mathematical candidates, so the working decision is branch selection: match the arm branch to the assembled linkage and the platform root to the side the platform is physically assembled on.

On this page
  1. What the mechanism must be before the equations apply
  2. Inverse kinematics: one fixed-length constraint per leg
  3. A worked inverse example for one leg
  4. Forward kinematics: three spheres, two candidates
  5. A worked forward example
  6. Branch selection: the decision both solves share
  7. The commissioning check that proves the pair agree
  8. Questions asked

For a fixed-orientation three-leg delta, both solves are closed-form and neither needs iteration. Inverse kinematics turns a target platform position into one arm angle per driven leg: each leg is a single fixed-length link constraint that reduces to an equation of the form a cos θ + b sin θ = c. Forward kinematics turns the three measured arm angles back into a platform position: three equal-radius spheres intersect in at most two points. Both solves therefore end in the same decision — of the two mathematical candidates, pick the one that matches the assembled machine. This article derives both solves, shows the reachability test that rejects an unreachable target, works both numerically with the arithmetic shown, and closes with the commissioning check that proves the pair agree on the real machine.

What the mechanism must be before the equations apply #

The parallelograms do the defining work: they hold the platform's orientation fixed while it moves, so the platform translates only and never tilts. That property is what makes each leg independent in the inverse direction and makes the three forward constraints meet in one point. The equations below apply when the machine has three driven arms, parallelogram-restrained lower links, and a platform that stays parallel to the base.

Confirm four sets of inputs from the drawings and the assembled machine before calculating anything. Record the base joint centers and rotation-axis directions in one common frame. Record upper-arm lengths, effective lower-link lengths and platform attachment offsets between joint centers, not casting surfaces. Define the platform reference point, its axis directions and the length units, with any tool offset kept separate from the attachment geometry. Record each joint's encoder direction, reduction ratio and mechanical zero, and confirm that a modeled positive rotation matches an observed positive rotation. These are the same dimensions the controller must store — the delta robot geometry parameters your controller must hold page lists them set by set. A platform that tilts, or an extra serial axis on the platform, needs a different model on top of this one.

Inverse kinematics: one fixed-length constraint per leg #

For leg i, name the base joint center A_i, the upper-arm length r_i, the effective lower-link length l_i, and the fixed platform attachment offset s_i, expressed in the base frame. Let u_i and v_i be orthogonal unit vectors spanning that arm's rotation plane, and let p be the target platform reference position. The elbow sits on a circle of radius r_i around A_i:

B_i = A_i + r_i (u_i cos θ_i + v_i sin θ_i)

The lower link is rigid, so the platform joint at p + s_i must stay at distance l_i from the elbow. With d_i = p + s_i − A_i, expanding that distance and dividing through gives one scalar equation for the leg:

a_i cos θ_i + b_i sin θ_i = c_i

where a_i = d_i · u_i, b_i = d_i · v_i, and c_i = (‖d_i‖² + r_i² − l_i²) / (2 r_i). No leg sees the other two: the three motors solve independently.

Solve it in closed form. With ρ_i = sqrt(a_i² + b_i²) and φ_i = atan2(b_i, a_i):

θ_i = φ_i ± acos(c_i / ρ_i)

A real solution exists only when |c_i| ≤ ρ_i. If that test fails, the leg genuinely cannot reach the target: reject the move rather than clamping the argument into range. Clamp only a floating-point overshoot so small it sits inside numerical noise. The two signs are the two arm configurations of the same linkage — elbow on one side of the base-to-target line or the other — and the branch must match the way the machine was assembled and its joint limits.

Both atan2 and acos return radians in most controller and PC math libraries. If you type results into a controller angle field, confirm the expected units first; the note on SIN, COS, TAN angle inputs: radians, not arc minutes covers that directly.

A worked inverse example for one leg #

These numbers are a calculated example for this geometry, not a measured result. Take an upper-arm length r = 0.30 m and an effective lower-link length l = 0.60 m, with A_i at the origin of the arm plane, u_i along its horizontal axis and v_i along its vertical axis. A target puts the platform joint at d = (0.70, 0.10) m in that plane.

  • a = 0.70 m and b = 0.10 m, straight from the components of d.
  • ‖d‖² = 0.70² + 0.10² = 0.490 + 0.010 = 0.500 m².
  • c = (0.500 + 0.090 − 0.360) / (2 × 0.30) = 0.230 / 0.600 = 0.383 m.
  • ρ = sqrt(0.500) = 0.707 m.

The reachability test reads |c| ≤ ρ, and 0.383 ≤ 0.707 holds, so this leg reaches the target. Then c / ρ = 0.542, acos gives 57.1°, and atan2(0.10, 0.70) gives 8.1°, so θ = 8.1° ± 57.1°: either 65.2° or −49.0°.

Check the positive root against the raw geometry. The elbow sits at r × (cos 65.2°, sin 65.2°) = (0.126, 0.272) m, and the distance from there to the target point is sqrt(0.574² + 0.172²) = 0.600 m — the link length, as the constraint demands. The negative root satisfies the same distance; it just places the elbow below the base joint, which is the other arm configuration.

Forward kinematics: three spheres, two candidates #

Run the same arm equation on each measured angle to get the three elbows B_i. Because the attachment offsets are fixed, each leg defines a sphere of radius l_i centered at C_i = B_i − s_i, and the platform reference point must satisfy ‖p − C_i‖ = l_i for all three legs.

Subtract the first sphere equation from the second and from the third. The quadratic term p · p cancels, leaving two linear equations — two planes. Their intersection is a line. Substitute that line into the first sphere equation and a quadratic in one line parameter remains; generically it has two real roots, and those roots are the two candidate platform positions, mirrored across the plane through the three centers.

A worked forward example #

Again a calculated example for these inputs. At a measurement instant the three sphere centers are C1 = (0, 0, 0) m, C2 = (0.80, 0, 0) m and C3 = (0.40, 0.60, 0) m, and the common radius is the 0.60 m link.

  • Sphere 2 minus sphere 1: −2 × 0.80 x + 0.80² = 0, so x = 0.400 m.
  • Sphere 3 minus sphere 1: −2 × (0.40 x + 0.60 y) + (0.40² + 0.60²) = 0, so 0.80 x + 1.20 y = 0.520; with x = 0.400 that gives 1.20 y = 0.200 and y = 0.167 m.
  • Into sphere 1: z² = 0.360 − 0.160 − 0.028 = 0.172 m², so z = ±0.415 m.

The candidates are (0.400, 0.167, +0.415) m and (0.400, 0.167, −0.415) m. On a ceiling-mounted delta the platform hangs below the motor plane, so with this base frame the assembled machine takes the negative root; on a floor-standing frame of the same dimensions it would take the positive one. Before accepting either, verify it against all three original distance equations — each candidate must sit at the link length from all three centers.

Branch selection: the decision both solves share #

Solve Two candidates Select by Reject when
Inverse, each leg θ = φ ± acos(c/ρ), elbow on either side of the base-to-target line the arm configuration the linkage was assembled in, confirmed at a known pose, then the joint limits the reachability test fails: no real root means the leg cannot reach
Forward, platform the two sphere intersections on either side of the center plane the physically assembled side of the base plane, then continuity from the last valid position a candidate fails the check against all three distance equations

Pick the branch once, at commissioning, from the physical assembly — not from the sign of a coordinate in whatever frame happens to be loaded, because coordinate conventions change and signs follow them. After a drive replacement or a linkage rebuild, confirm the branch again at a known pose before trusting motion. When ρ_i comes out at or near zero, handle that leg explicitly: a nonzero c_i means no solution, and a zero c_i leaves that leg's constraint unable to determine its angle at all.

The commissioning check that proves the pair agree #

  1. With motion inhibited, bring the machine to a known mechanical pose and record all three encoder readings. Apply the documented joint offsets and reduction ratios.
  2. Run forward kinematics on the readings and compare the result with a directly measured platform position in the base frame. Resolve any axis reversal, origin or scale discrepancy here, before anything moves.
  3. Run inverse kinematics on that same measured position and confirm each leg returns the measured angle with the branch your code selected.
  4. Repeat at poses spread over height and radial distance, not just one convenient point. A machine correct at one pose and wrong elsewhere has a wrong length, offset or joint zero; mirrored motion points to an axis convention or encoder sign.
  5. Only after the offline checks agree, command low-speed motion within the verified workspace and compare commanded position, measured joint feedback and the reconstructed position at each stopped pose.

Keep the drives disabled through the first four steps and enable them only for the low-speed passes, behind the machine's existing safeguards. These checks verify your kinematic model against the assembled machine; they are not a substitute for the machine's own risk assessment and validation.

Questions asked

Does a fourth motor that rotates the platform change the model?

No. The three translational legs still keep the platform orientation fixed and use the same fixed-orientation solve. The fourth axis is a serial rotary joint mounted on the platform, so it adds an orientation on top of the solved position and is handled with its own single-joint transform. Solve the three legs first, then apply the fourth axis.

Why does one leg's angle move a lot when the target nears its reach limit?

At the reach limit the acos argument approaches 1, and acos is steepest there, so a small target change produces a large angle change. That sensitivity marks the leg's workspace boundary. Keep working targets inside the envelope where the argument stays comfortably below 1, and treat a value driven toward 1 as a signal the target is leaving the workspace.

Do linear delta machines with motorized carriages on rails use the same equations?

The sphere-based structure stays the same, but the driven variable is a carriage position along a straight rail instead of an arm angle, so each leg's constraint geometry differs and the closed-form arm-angle equation becomes a projection of the rail coordinate. The reachability test and the root-selection decisions carry over unchanged.

What does it mean when the two forward kinematics roots sit very close together?

The intersection line is passing near tangency with the first sphere, so the quadratic has a nearly double root and the position solve is ill-conditioned there: small encoder noise moves the reconstructed position a long way. Avoid commanding work near such a pose, and add a conditioning check on the quadratic's discriminant to catch it automatically.

Keep reading

  • Troubleshooting

    Why a 2 DOF Robot Arm Curves Near the End of a Straight Line

    The curve near the end of the stroke is almost always the inverse kinematics, not the servos: the cosine-law solver flips between the elbow-up and elbow-down branch because the sign of the square-root term s2 is not fixed. Hold one branch for the whole stroke, take both angles from atan2, and require c2 to stay between -1 and 1 at every waypoint. Confirm it by plotting the forward-kinematics path of the commanded angles before touching the update rate.

    Servo and stepper motion

  • Troubleshooting

    Why robot hand tracking sends velocity spikes to a servo

    The spikes are not a servo tuning problem: the robot's own axes close their loops, so any jump injected upstream arrives as a velocity spike. Work the chain in order — sample timestamps, pose estimate, coordinate transform, inverse-kinematics target, command stream — find the first signal that turns discontinuous, and repair that stage before touching any gain.

    Servo and stepper motion

  • Explainer

    What delta robot geometry parameters your controller must hold

    A delta controller converts three actuator angles into tool position through the installed robot's geometry: arm lengths, joint positions, base and platform dimensions and reference positions. Load the supplied geometry, read the values back until the stored data matches, then accept it only when a commanded move measures on target. With the axes tracking, a tool position error is a geometry error, not a tuning problem.

    Servo and stepper motion