Home▸Robotics & Kinematics▸Minimum-Time Control: Bang-Bang Switching Curve of a Double-Integrator Cart and Motor Axis, 3D

Minimum-Time Control: Bang-Bang Switching Curve of a Double-Integrator Cart and Motor Axis, 3D

How fast can a motor move a cart to a target and stop there when its force is limited? Two carriages on a Blender-built linear stage start together: one follows the minimum-time bang-bang law, always at full force with a single switch when the state meets the switching curve, the other a smooth critically damped PD controller that saturates at the same limit. Change the start position, the start velocity, the force limit and the PD bandwidth. The page shows the closed-form minimum time, the switch time, the phase portrait and how much slower PD is. Independent checks include a fine feedback simulation, a brute-force search over the switch time, an analytic RK4 comparison and a random test that no PD setting beats the optimum.

Robotics & Kinematics3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Minimum-Time Control: Bang-Bang Switching Curve of a Double-Integrator Cart and Motor Axis, 3D ↗ Open standalone

How fast can a motor move a cart to a target and stop there when its force is limited? Two carriages on a Blender-built linear stage start together: one follows the minimum-time bang-bang law, always at full force with a single switch when the state meets the switching curve, the other a smooth critically damped PD controller that saturates at the same limit. Change the start position, the start velocity, the force limit and the PD bandwidth. The page shows the closed-form minimum time, the switch time, the phase portrait and how much slower PD is. Independent checks include a fine feedback simulation, a brute-force search over the switch time, an analytic RK4 comparison and a random test that no PD setting beats the optimum.

⚙ Under the hood

How fast can a motor move a cart to a target and stop there when its force is limited? Two carriages on a Blender-built linear stage start together: one follows the minimum-time bang-bang law, always at full force with a single switch when the state meets the switching curve, the other a smooth critically damped PD controller that saturates at the same limit. Change the start position, the start velocity, the force limit and the PD bandwidth. The page shows the closed-form minimum time, the switch time, the phase portrait and how much slower PD is. Independent checks include a fine feedback simulation, a brute-force search over the switch time, an analytic RK4 comparison and a random test that no PD setting beats the optimum.

Robot DynamicsControl AlgorithmOptimal ControlBang-Bang ControlPontryagin PrinciplePhase PlaneMotion ControlServo MotorRobotics Control

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)