Two-link arm: reach and positioning error: experiment bench
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.
- 1. Ask
- 2. Hypothesise
- 3. Set up
- 4. Run
- 5. Record
- 6. Change one variable
- 7. Compare
- 8. Interpret
- 9. Limitations & save
If I change …, then … will …, because …
3 · Set up the parameters
Longer links reach further but magnify angle errors.
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
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
| Parameter | Range | Default |
|---|---|---|
| Link 1 length L₁ | 5 to 40 cm | 20 |
| Link 2 length L₂ | 5 to 40 cm | 15 |
| Shoulder angle θ₁ | -180 to 180 ° | 30 |
| Elbow angle θ₂ (relative) | -180 to 180 ° | 45 |
| Target x | -60 to 60 cm | 22 |
| Target y | -60 to 60 cm | 16 |
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.