PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Engineering

Other simulators in this category — or see all 48.

View category →
NewSchool

Four-Bar Linkage

Launch Simulator

Crank–rocker geometry with coupler-curve trace; link lengths and crank speed.

NewSchool

Cam & Follower

Launch Simulator

Eccentric circular cam and knife-edge follower: lift and estimated velocity.

NewSchool

Finite State Machine

Launch Simulator

Traffic-light Moore machine: timed green–yellow–red cycle or manual step; state graph.

NewUniversity / research

ADC / DAC (Sampling)

Launch Simulator

Sine → samples → quantization → ZOH; Nyquist and optional aliasing demo.

NewSchool

Stepper Motor (4-phase)

Launch Simulator

Full-step vs half-step commutation; rotor snaps as coils A–B–A′–B′ sequence.

NewUniversity / research

Thermostat vs PID

Launch Simulator

First-order room: on/off hysteresis vs continuous PID heater power.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Engineering/Two-Link Arm IK (2R)

Two-Link Arm IK (2R)

Planar 2R manipulator: mouse goal, elbow-up / elbow-down inverse kinematics; joint angles live.

Links

1.2 m
1 m

Measured values

θ₁1.0°
θ₂77.5°
Target x, y1.40, 1.00m

About this model

A planar 2R manipulator has two revolute joints and link lengths that map joint angles (θ₁, θ₂) to end-effector position via straightforward forward kinematics. Inverse kinematics for a mouse-specified goal yields up to two real solutions — elbow-up and elbow-down — when the target lies between |L₁−L₂| and L₁+L₂. This simulator computes those analytic angles live as you move the goal, showing both configurations when reachable. Assumptions include a perfect planar mechanism, no joint limits beyond geometric reach, no dynamics or collisions, and instantaneous IK (not a timed trajectory controller). Drag the target inside and outside the annulus of reachability to see solutions appear, merge, and vanish at singularities.

Who it's for: Introductory robotics, mechatronics, and kinematics courses on analytic inverse kinematics.

Key terms

  • Two-link arm
  • Inverse kinematics
  • Elbow-up
  • Elbow-down
  • 2R manipulator
  • Workspace

How it works

Planar two-link arm with inverse kinematics: drag on the canvas to move the goal (magenta). Toggle elbow-up vs elbow-down for the second algebraic branch.

Key equations

c₂ = (x²+y²−L₁²−L₂²)/(2L₁L₂)

θ₂ = atan2(s₂, c₂), θ₁ = atan2(y,x) − atan2(L₂ sin θ₂, L₁+L₂ cos θ₂)

Frequently asked questions

Why are there two solutions for many goals?
The law of cosines for the elbow angle has a ± choice, giving mirrored elbow-up and elbow-down postures that place the hand at the same point. At the workspace boundary those solutions coalesce.
What happens outside the reachable workspace?
If the goal is farther than L₁+L₂ or closer than |L₁−L₂|, no real elbow angle exists. The arm is fully stretched or folded and cannot reach; the simulator shows the geometric failure clearly.
Is this the same as the 3-link 3D CCD arm?
No. The 2R page uses analytic planar IK with explicit elbow branches. The 3-link 3D lab uses iterative CCD in space with joint limits and trajectory tracking — a different solution method for a harder chain.