Skip to content
BENIBIX Learn

PID Controller

Also known as Proportional-Integral-Derivative Controller, PID Control, PID Loop

A loop that keeps a machine at a target. It fixes the gap again and again.

Think of it like

It is like steering a bike to stay on a line. You turn more when you drift far, and less as you get back.

Example

A drone must hold a height of 10 metres. A gust pushes it down, and its PID controller spins the rotors faster, then eases off as it climbs back.

Why it matters

PID controllers run inside drones, cars, ovens and robot joints. They turn a plan into steady, smooth motion.

Formula

output = Kp × error + Ki × (sum of past error) + Kd × (change in error)

Definition

A PID controller keeps a machine at a target, like a speed or a heat. PID stands for proportional, integral and derivative. It checks the gap, called the error, between the target and what a sensor reads. The P part pushes in step with the error now. The I part adds up error that has lasted a while, and the D part slows the push as the gap closes. Together they reach the target without wild swings.
The sensor reading feeds back. The controller pushes less as the gap gets small.

Common mistake

Setting the P part too high. The machine then shoots past the target and swings back and forth.

Key takeaways

  1. 1
    P: the gap now. Push harder when the gap is big.
  2. 2
    I: the gap so far. Fix a small gap that will not close.
  3. 3
    D: the change. Ease off as the gap shrinks.