datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com
Events
UBM Tech
UBM Tech

Design Article

# Proportional-integral-derivative explained

## 4/13/2007 9:34 AM EDT

Proportional-integral-derivative (PID) control is the most common control algorithm used in industry today. The popularity of PID controllers can be attributed to their effectiveness in a wide range of operating conditions, their functional simplicity and how easily engineers can implement them using current computer technology. This article discusses PID control and practical implementations and provides a brief overview on how to tune PID controllers.

Why do engineers need control, and which types of control can they use? Engineers use control to either modify plant behavior to keep system output stable and improve response time (the time the plant takes to go from its current state to the state defined with the new input) or minimize the energy the plant uses to transition between states. To accomplish this, engineers can operate controllers themselves or use mechanical devices or PC or PC-related technology. Thanks to the development of computer-based systems, engineers can use PCs and appropriate hardware to interact with plants and read their output and input signals.

Definitions

A plant is a physical process that must be controlled, meaning a PID controller needs to increase the stability or performance of the process. A tank with one input valve and a fixed output flow, where height level is regulated, is one example. Other examples include a deposit where a chemical reaction takes place, and pH is maintained precisely, or a motor connected to a conveyor belt whose speed must be sustained.

All these systems share one common characteristic: they have one input that can be controlled to produce a desired change in the output signal.

Figure 1: All plant systems have one input that can be controlled to produce a desired change in the output signal.

A mathematical model can approximate how the plant behaves. A "black box" with one input and one output can represent this plant model. In the case of a DC motor connected to a conveyor belt, the input would be the voltage applied, and the output would be the speed at which it turns.

On a hydraulic system, the input would be how open the valve is, and the output would be the height on the tank. Finally, on a pH reactor plant, the input is the rate at which a chemical reactor is fed, and the output is the pH measured.

Figure 2. Open-loop systems such as this lack the information needed to change the value on the controller to correct error.

Open-loop systems lack the information needed to change the value on the controller to correct error. To do this, engineers must add feedback information, resulting in a closed-loop system.

Figure 3. A closed-loop system includes a feedback mechanism to correct error.

ir_zamri

12/14/2007 4:11 AM EST

can i do a PID control system but by using a digital sensors? FYI, i've been using 4 digital sensors in order to control the bidirectional and speed of two dc motors for line tracking purposed. thank you

Taktrashe

11/4/2008 1:18 AM EST

hi
i am looking for digital simple PID control for controlling temprature .
thanks alot

angie1989

4/15/2010 11:58 PM EDT

Hi, I think this is an interesting and very complete article, because I'm a Enginnering Telecommunications student and I have to do a work about this topic (PID), so this is very usefull for me. Thanks a lot!

SPLatMan

8/19/2010 1:25 AM EDT

A free PID simulator and easily digested PID tutorial are available at http://splatco.com/skb/2639.htm. This includes an Excel-based method of characterizing your system, and is used by a number of educators.

David Stonier-Gibson http://splatco.com