A proportional-integral-derivative controller is a control loop mechanism often used in industrial control systems where continuous control is needed. The easiest way to understand one is by breaking it down to individual elements (proportional (P), integral (I) and derivative (D)), as can be seen in the diagram above.
The PID control algorithm calculates the difference e(t) between the setpoint r(t) and process variable y(t) and feeds it into the following three functions:
In order for a PID controller to serve its purpose, it also needs to be tuned. This means adjusting the algorithm parameters (Kp, Kd, Ki and integrator reset) to achieve the desired control response, which will be different from application to application, and may even have conflicting requirements. There are many tuning techniques that are available there from simply tuning the system manually (which requires experience), through heuristic tuning methods such as the Ziegler-Nichols method and sophisticated software solutions.
Red Pitaya PID controller
Among other applications, Red Pitaya can also be used as a PID controller. Its MIMO PID controller consists of 4 standard PID controllers with P, I, and D parameter settings and integrator reset control. The PID can be controlled through FPGA registers that are described inside the PID controller section of the FPGA register map. This makes Red Pitaya a very fast and capable PID controller.
Of course, as a true Swiss Army knife, working as a PID controller is just one of the many things a Red Pitaya can do. To see what else is possible with it, click here.