Skip to content
Tactiverge

Tactiverge Studios · Robotics

A robot arm on every screen.

No kit, no soldering, no motors to buy. Move joints, solve inverse kinematics, program sense-decide-act rules, tune PID control and run reproducible experiments, all in your browser.

Level 4 · Systems Engineer mode

Model the dynamics, then control them. Inertia, damping and torque limits decide what any controller can achieve.

  • tune P, PD and PID gains
  • read overshoot, settling and steady-state error
  • compare against the closed-form model
-40-30-20-1010203040x₀y₀x₁y₁xₜyₜJ1J2(15.1, 26.4)grid = 10 cm · base at (0, 0)

Click here, then ←/→ turn joint 1, ↑/↓ pick a joint, Shift = big steps. Or drag the tip. Shaded = reachable within joint limits (sampled). Orange x / dashed blue y axes = coordinate frames.

State

2R arm: joint 1 at 35°, joint 2 at 60°. Tool tip at x 15.1 cm, y 26.4 cm, 30.4 cm from the base, pointing 95°. The star target is 15.3 cm from the tip.

2R arm: joint 1 at 35°, joint 2 at 60°. Tool tip at x 15.1 cm, y 26.4 cm, 30.4 cm from the base, pointing 95°. The star target is 15.3 cm from the tip.

Arm

Joints and setup

Arm
35 °
60 °
Links, limits, target and view
20 cm
15 cm
180 ± °

Real joints have end stops; the shaded workspace shrinks.

Coordinates

Homogeneous transform chain

Each joint is a 3×3 homogeneous transform: R joint Rot(θ)·Trans(L, 0), P joint Trans(L + d, 0). Multiply along the chain: the last column of T₀ₜ is the tip position.

T₀₁ (θ=35.0°)
0.82-0.5716.38
0.570.8211.47
0.000.001.00
T₁₂ (θ=60.0°)
0.50-0.877.50
0.870.5012.99
0.000.001.00
T₀ₜ (tool → base)
-0.09-1.0015.08
1.00-0.0926.41
0.000.001.00
Jacobian J = ∂(x, y)/∂q
-26.41-14.94
15.08-1.31

Column i = how fast the tip moves per unit of joint i (cm/rad or cm/cm). det J = 259.81.

Joint dynamics + feedback

Step one joint to a new angle

Model: I·θ̈ = τ − b·θ̇ − τ_load, with the motor torque τ clipped at ±τ_max. The joint starts at rest at 0 rad and is asked to go to the target.

Strategy
0.050 kg·m²
0.10 N·m·s/rad
2.0 N·m
2.0
0.30
1.0
0.00 N·m
1.0 rad
0.020 rad

The controller sees the rounded angle and differentiates it, which makes the derivative term noisy.

Overshoot

7.8 %

Rise time 10–90 %

0.30 s

Settling ±2 %

0.95 s

Steady-state error

0.000 rad

Peak torque

2.00 N·m

saturated 0 % of the time

Mechanical work

0.47 J

∫|τ·ω| dt

00.5101234time (s)θ (rad)
θ(t), PDtarget±2 % settling band
01201234time (s)τ (N·m)
motor torque
Closed-form check (open after you predict)

Unsaturated PD with no load is a mass–spring–damper: ωₙ = √(Kp/I) = 6.32 rad/s, ζ = (b + Kd)/(2√(Kp·I)) = 0.632, overshoot = 7.7 %, peak time 0.641 s. If your simulated numbers differ, which assumption (limit, load, I-term, encoder) is responsible?

Compare strategies

Bang-bang vs P vs PD vs PID, same joint

Same inertia, damping, load and torque limit as above; only the decision rule changes. Bang-bang uses full torque or none; it is simple but chatters around the target.

00.511.501234time (s)θ (rad)
Bang-bangPPDPIDtarget
Step-response metrics for each control strategy
strategyovershoot %settling ssteady error radpeak τ N·mIAE rad·s
Bang-bang60.6not settled0.0012.000.591
P64.23.790.0192.000.657
PD7.80.950.0002.000.255
PID16.82.39-0.0142.000.404

Simulation OS

Run a recorded investigation

The same joint model, in the shared experiment bench: hypothesis → runs → compare → limitations.

Simulation OS · roboticsEducational model, not a digital twin

One robot joint under P / PD / PID control

A single joint with inertia, viscous damping, a torque limit and an optional load, stepped to a new angle by a PID controller.

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

0.005–0.5 kg·m²
0–2 N·m·s/rad
0–20 N·m/rad
0–20 N·m/(rad·s)

Integral action removes steady-state error under load.

0–3 N·m·s/rad
0–10 N·m
-2–2 N·m
0.1–3 rad
1–10 s

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

I·θ̈ = τ − b·θ̇ − τ_load, τ = sat(Kp·e + Ki·∫e dt − Kd·θ̇, ±τ_max), e = r − θ.

Assumptions (always true in this model)

  • One decoupled joint: no gravity coupling to other links.
  • Ideal motor: delivers any torque within ±τ_max instantly.
  • Viscous damping only (no stiction or Coulomb friction).
  • Ideal angle and speed sensing; controller sampled every 1 ms with zero-order hold, plant integrated with RK4.
  • Derivative on measurement (no kick on the step); conditional anti-windup on the integral.
Text description of what the chart shows

A single robot joint stepping from 0 to the target angle. The first plot shows the joint angle over time, rising and possibly overshooting before settling; the second shows the motor torque, which may sit at its limit early in the move. Metrics give overshoot, settling time, steady-state error and peak torque.

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.

Guided challenges

Try these, then press Check

“Set up” puts the bench into the starting position for that challenge. Checks re-run the simulation on your current setup, so they test what the model actually does.

  1. 1Tune a crisp step

    auto-checked

    Using PD or PID, make the joint reach 1 rad with less than 5 % overshoot and settle (±2 %) in under 1 s.

    Hint

    Raise Kp for speed, then add Kd until the overshoot disappears. Watch the torque limit.

  2. 2Hold a heavy payload

    auto-checked

    A 0.5 N·m load pulls on the joint. P control leaves a steady error of τ_load/Kp. Remove it: steady-state error under 0.01 rad.

    Hint

    Only one term keeps pushing while any error remains.

  3. 3Live within the motor

    auto-checked

    Limit the motor to 0.8 N·m. Still settle within 1.5 s with under 10 % overshoot.

    Hint

    Saturation makes high gains behave like bang-bang. More damping (Kd) helps the arm brake in time.

  4. 4Predict before you simulate

    auto-checked

    For your current I, b, Kp and Kd (no load, no limit), compute ζ = (b + Kd)/(2√(Kp·I)) and the PD overshoot exp(−πζ/√(1−ζ²)). Type the overshoot in %.

    Hint

    If ζ ≥ 1 there is no overshoot: type 0.

Save

Keep your design

Designs stay on your device: saved in this browser or downloaded as a JSON file. Imported files are checked against the workbench schema before they load.

What this model assumes

This is a simplified educational model, not an engineering-grade simulator. Knowing what it leaves out is part of the lesson.

  • Planar: every arm moves in one flat plane, seen from above.
  • Rigid links and ideal joints: no bending, backlash or play.
  • Ideal motors within their torque limit; each joint is controlled on its own (no gravity or coupling between joints).
  • Collisions are simple geometric checks (links as thick lines, rocks as circles), not contact physics.
  • Encoder rounding is uniform and independent between joints; sensor noise is seeded white Gaussian noise.
  • Units: centimetres and degrees on the controls, radians inside the maths, SI units for dynamics.

Safety: the workbench never connects to real machinery. It uses no USB, serial or Bluetooth access, and everything runs on your own device.

Lesson setups

School lessons open the bench in one of these setups. You can open any of them yourself.

Content status: technically checked (automated tests of the maths against closed-form reference cases). Not yet reviewed by an educator.