The Proportional-Integral-Derivative (PID) algorithm is the most popular way to control devices ranging from valves and heaters to electric motors that move robot joints.
Watch a hands-on demonstration of tuning PID parameters by estimating a mathematical model of a motor under load using a specially built fixture for capturing data.