Two-link robot arm reach: experiment bench
Two-link robot arm reach
Bend a two-joint arm and see where its gripper ends up, how far it reaches and where it loses dexterity.
- 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
Length from the shoulder to the elbow.
Length from the elbow to the gripper.
Measured from the +x axis, anticlockwise.
Measured from the upper arm, anticlockwise.
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
Reach (law of cosines): r = √(L1² + L2² + 2·L1·L2·cos θ2). The workspace is the ring |L1 − L2| ≤ r ≤ L1 + L2.
Assumptions (always true in this model)
- Planar arm with rigid links and revolute joints.
- No joint limits, masses or motor torques: geometry only.
- The sweep series varies θ2 from −180° to 180° with θ1 fixed.
Text description of what the chart shows
A line chart of how far the gripper is from the base as the elbow angle sweeps from −180° to 180°: the reach is largest (L1 + L2) with the elbow straight at 0° and smallest (|L1 − L2|) when folded at ±180°. A second series shows manipulability, which is zero at 0° and ±180°.
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? For example: Real arms have joint limits, link thickness and payload limits that shrink the workspace.
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 |
|---|---|---|
| Upper arm L1 | 0.1 to 1 m | 0.5 |
| Forearm L2 | 0.1 to 1 m | 0.4 |
| Shoulder angle θ1 | -180 to 180 ° | 30 |
| Elbow angle θ2 | -180 to 180 ° | 60 |
Independent reference checks
Elbow at a right angle
Hand calculation: x = 0.5 + 0.5·cos 90° = 0.5, y = 0 + 0.5·sin 90° = 0.5, r = √0.5.
Straight arm at 30°
Straight arm reaches L1 + L2 = 1 m along 30°: (cos 30°, sin 30°); sin 0 = 0 (singular).
Checked automatically on every change to the code. Educational model, not engineering-grade.
Where this model stops being right
- Real arms have joint limits, link thickness and payload limits that shrink the workspace.