Skip to content
Tactiverge

Two-link arm: reach and positioning error: experiment bench

Simulation OS · roboticsEducational model, not a digital twin

Two-link arm: reach and positioning error

Drive a planar 2-link arm to joint angles θ₁, θ₂ and measure how far the tool tip ends up from a target.

Your level (shows more controls and deeper equations)
  1. 1. Ask
  2. 2. Hypothesise
  3. 3. Set up
  4. 4. Run
  5. 5. Record
  6. 6. Change one variable
  7. 7. Compare
  8. 8. Interpret
  9. 9. Limitations & save

If I change …, then … will …, because …

3 · Set up the parameters

5–40 cm

Longer links reach further but magnify angle errors.

5–40 cm
-180–180 °
-180–180 °
-60–60 cm
-60–60 cm

The seed fixes any random noise. Same parameters + same seed = exactly the same result, every time, on every computer.

6 · Change one variable

Your first run is the baseline. After it, change one thing at a time.

7 · Compare on a graph

Run the model to draw your first curve here.

5 · Run log

No runs yet.

Equations

x = L₁·cos θ₁ + L₂·cos(θ₁ + θ₂)

y = L₁·sin θ₁ + L₂·sin(θ₁ + θ₂)

Assumptions (always true in this model)

  • Planar arm: everything happens in one flat plane.
  • Rigid links and ideal revolute joints: no bending, backlash or play.
  • Kinematics only: no masses, gravity or motor dynamics in this model.
  • Distances in centimetres, angles in degrees on the controls (radians inside the maths).
Text description of what the chart shows

A two-link arm swings from straight along the x axis to the chosen shoulder and elbow angles. The plots show the tip's x and y position over the move and its distance from the target; the metrics give the final tip position and the remaining positioning error.

Did the result support your hypothesis? Use the numbers from the comparison table and link them to an equation.

Which assumptions could change your answer in the real world?

Export and save

Exports use the ticked runs (or every run if none are ticked). Your draft saves automatically in this browser only. The Journal is private to you.

Valid parameter ranges

ParameterRangeDefault
Link 1 length L₁5 to 40 cm20
Link 2 length L₂5 to 40 cm15
Shoulder angle θ₁-180 to 180 °30
Elbow angle θ₂ (relative)-180 to 180 °45
Target x-60 to 60 cm22
Target y-60 to 60 cm16

Independent reference checks

  • right angle elbow

    Hand calculation: link 1 along +x to (10, 0), link 2 straight up to (10, 10).

  • 3-4-5 triangle

    Hand calculation: up 20 then right 15 gives (15, 20), 25 cm from the base (3-4-5 triangle); the base itself is inside the 5 cm hole.

  • corner out of reach

    A straight arm pointing at the corner lands 35 cm along the diagonal; the corner is √(34² + 34²) ≈ 48.08 cm away.

Checked automatically on every change to the code. Educational model, not engineering-grade.