# Temperature control: PID vs. Fuzzy Logic

## The common perception is that temperature control is a mature and largely unchanging area of technology. There are still industrial applications (for example, injection molding processes), which desire not only precise temperature control, but also a faster warm-up phase and quicker response to disturbances with minimal overshoot and undershoot when the setpoint changes.

01/01/2004

The common perception is that temperature control is a mature and largely unchanging area of technology. There are still industrial applications (for example, injection molding processes), which desire not only precise temperature control, but also a faster warm-up phase and quicker response to disturbances with minimal overshoot and undershoot when the setpoint changes. Traditional proportional-integral-derivative (PID) control techniques cannot meet these extra challenges.

Basically two directions exist for designing highly sophisticated temperature controllers. One solution is based on adding special features not found in traditional PID controllers and the other solution is based on using fuzzy logic control.

## Enhance PID temperature controller design

A different speed (that is, a time constant) of the heating and cooling processes needs dynamical adaptation of the PID constants according to the temperature setpoint value. Such an adaptation requires a heater model—an inverse static characteristic of the heating process. Once the control system implements the heating model, its output can be used suitably as a feedforward variable. The feedforward variable together with the output of the integral member can, on the other hand, help the heater model learn more about the heating process.

An approximation of the time optimal control method requires splitting the total range of temperature control into three ranges with different control mechanisms acting in each. In the first range (for temperatures well below the setpoint value) and the last range (for temperatures well above the setpoint), a constant (full or zero, respectively) power is applied and the regulation error integration is put on hold. In the middle range (with the setpoint value in the center), a linear PID control is acting. In this, so-called linear control zone (LCZ), another nonlinearity, regulation error limit (REL) can be used—it will help to limit the temperature over/undershoot. Figure 1 shows a block diagram of an enhanced PID temperature controller, suitable for the most demanding applications.

## Fuzzy logic

 Figure 1

The principles of fuzzy logic have been known among engineers for more than 35 years. Fuzzy control (i.e., fuzzy logic in the role of a control system) becomes attractive especially for the smallest microcontrollers, because this technique requires less computational power and demands less operational memory than conventional PID compensation.

 Figure 2

Fuzzy control in its basic form mimics a man ual control process. A person regulates power applied to a heating element according to the momentary temperature deviation from the setpoint value (the regulation error, e(n)) and the rate of the temperature change (or derivative of the regulation error, (e(n)). The entire process is governed more by a sense than by the knowledge of its physical or mathematical behavior. Are the temperature deviation and the rate of the temperature change high, low, or medium? Fuzzy control works exactly with the same states of the process variables.

The block diagram of the fuzzy temperature controller (Figure 2) shows how the output of the fuzzy controller is combined with the output of the feedforward module, as in the case of an enhanced traditional PID controller. A similar adapter module optimizes the defuzzification process (mapping of the fuzzified output variable into its crisp output value) and concurrently helps the heater model learn more about the heating process.

## Making the decision

Even a simple process like the temperature control can become a complex task if additional features like fast warm-up phase are needed. Implementing the enhanced, traditional PID controller can be a challenge, especially if auto-tuning capabilities to help find the optimal PID constants are desired. However, the theory of PID control is very well known and widely used in many other control applications.

On the other hand, fuzzy control seems to accomplish the same control quality with less complexity. Approximation of the second-order switching curve used in time-optimal control systems by a polynomial of the first or higher order (LCZ in the enhanced PID control provides only a zero-order approximation) makes fuzzy control a better candidate for time-optimal control applications. As a relatively new control method it provides more space for further improvements.

 Author Information Peter Galan is a control software engineer with Nortel Networks

The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Controller programming; Safety networks; Enclosure design; Power quality; Safety integrity levels; Increasing process efficiency
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Controller programming; Safety networks; Enclosure design; Power quality; Safety integrity levels; Increasing process efficiency
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Controller programming; Safety networks; Enclosure design; Power quality; Safety integrity levels; Increasing process efficiency
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.