Use open-loop and closed-loop control, stability reasoning, and proportional-integral-derivative control. Tune a controller on a motor or simulated mechanism while handling noise, delay, saturation, and windup.