Toy actuator / closed-loop digital twin

BLOCK LIFT

Position feedback, a bounded motor command, and the resulting overshoot.

Target floor Reference r
Explicit plant + controller PD

e = r − x

u = sat(Kp·e − Kd·v, ±2)

v ← v + (u − 0.55v)Δt

x ← x + vΔt

Semi-implicit Euler · Δt = 1/120 s · mass = 1 · no hidden noise, disturbance, feed-forward, or overshoot animation.

Live telemetry Correcting
Position x 0.000
Target r 2.000
Error e +2.000
Velocity v 0.000
Applied motor command u 0.00
−2.00 0 +2.00
Position error raw 0.00
below target zero above target
Peak target crossing 0.000 floors
Position trace · last 10 seconds
position target
TARGET · F2
SENSOR · 0.000
DRAG TO ORBIT · WHEEL TO ZOOM · DOUBLE-CLICK TO RESET VIEW