Home▸Engineering & Materials▸Cruise Control PI Lab (2D)

Cruise Control PI Lab (2D) — PI Controller & Integral Windup

2D side-view cruise-control PI controller: tune proportional and integral gains, tilt the road grade, and watch a live speed-time chart show overshoot, settling, and integral windup.

Engineering & Materials2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-cruise-control-pi-lab ↗ Open standalone

This 2D side-view companion drives the same PI-controller physics as the 3D original — proportional plus integral gains, road-grade disturbance, and an anti-windup clamp — through a plain canvas car, dial and bar readout instead of an orbiting 3D scene, so the control-loop behaviour is easier to read at a glance.

⚙ Under the hood

Tune Kp and Ki, tilt the road grade, and watch the car's speed overshoot, settle, or wind up — same PI-controller math as the 3D version, rendered as a 2D side view with a live speed-vs-time chart.

pi controllercruise controlintegral windupcontrol systemsfeedback controlanti-windup

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)