• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Analog IC Tips

Analog IC Design, Products, Tools Layout

  • Products
    • Amplifiers
    • Clocks & Timing
    • Data Converters
    • Interface & Isolation
    • MEMS & Sensors
  • Applications
  • Video
    • TI Video Channel
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center

What is Proportional (PID) Control and why is it used? (Part 1)

January 18, 2017 By Bill Schweber

Closed-loop control is the foundation of our modern automated world. In simplest terms, this approach applies negative feedback to a system to achieve a desired result.

Consider the control of temperature, the most widely measured and controlled real-world physical parameter. If the measured value of this process variable is above the desired setpoint value, we instruct the system to cut off or reduce the heat source; if the value is below the setpoint, we increase or turn on the heat source, Figure 1. This simple closed-loop approach is used not only for temperature, but for motion, position, direction, flow, level, pressure;  in fact, it is used for just about anything that needs to be at a desire value.

Figure 1: The idea of closed-loop control is to use an error signal derived from a comparison of the desired setpoint versus the actual measured process variable to provide negative feedback and thus correct for any differences (from National Instruments).

It’s a very powerful concept, because not only does it maintain control, but it allows the system to adapt to changes (called upsets), such as the addition of more raw material to the vat being heated. In contrast, a simple “set and forget” control approach, where you turn the heat source to what you hope will be the right value, will almost always have a difference between the desired setpoint and actual achieved value, and also cannot accommodate upsets.

There are several ways to implement closed-loop, negative-feedback control. The simplest way is with on/off control, sometimes called “bang-bang” control. Here, the heat source is simply turned fully on or off, Figure 2. While this does work in a general sense, the observed values of the process variable will range above and below the desired setpoint by an amount determined by the system settings.

Figure 2: Simple on/off control accomplishes the basic control task, but the performance is often inadequate; is the simplest closed-loop control strategy as this representative oven response to on/off cycling of a heater shows (from Coulton Instrumentation Ltd).

If a tight bound is desired, with the turn on/turn off thresholds set very close to the desired setpoint, the system will be constantly chattering” as the heat source rapidly cycles on and off. This is often mechanically undesirable, since the heater valve may soon wear out (and it may be noisy, too). If the thresholds are made wide with respect to the setpoint, the on/off action will be reduced, but the actual temperature will vary widely from the setpoint.

On/off control is low cost and easy to implement, and is still used in many applications such as home ovens or air conditioners. However, the swings around the setpoint are fairly wide (such as ±25⁰F for the oven, and ±2 to ±3⁰F for the A/C). Ironically, despite these errors, it is often used in some types of electronic amplifiers due to its high electrical efficiency, with the resultant error “smoothed out” by filtering.

PID Proportional control

A widely used alternative to on/off control is by using a proportional approach. This technique is somewhat intuitive: if the temperature is much too low (due to initial error, start-up mode, or more material being added), simply turn up the heat by a large amount; if the difference (or error) is small, apply just enough heat to keep it close to the setpoint. This is called proportional (P) control.

In fact, this works fairly well, but has limitations, as it has some long-term cumulative sources of error buildup and poorly controlled reaction to upsets, and is also prone to oscillation around the setpoint. To enhance the performance of a proportional controller, two other factors called the integral and derivative terms are added to the closed-loop control approach. The result is the complete, three-term PID algorithm, Figure 3.

Figure 3: PID control combines three independent factors: proportional error (top), integral (middle), and derivative (bottom) to provide low-error, smooth control and response (from National Instruments).

The integral term (also called “anti-reset windup” in industrial-control literature) is based on the accumulated error over some past time period, and accounts for unavoidable error buildup due to imperfections in the entire system or steady disturbances, such as a heat escaping from the vat. The derivative term has a very different role: it is related to the rate of change of error and attempts to work with the system’s dynamics.

The next FAQ will look at basics of PID analysis and tuning of the PID coefficients.

References

  1. http://www.ni.com/white-paper/3782/en/
  2. https://en.wikipedia.org/wiki/PID_controller

 

Filed Under: FAQ, Featured, Industry Experts Tagged With: basics, FAQ

Primary Sidebar

Subscribe to Our Newsletter

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

EE Training Center Classrooms

“ee

“ee

“ee

“ee

RSS Current EDABoard.com discussions

  • What temperature sensor is in 852A?
  • Designing an offline hardware Password Manager
  • Offline SMPS for 120W maximum in EU, UK, USA ..but with no PFC stage
  • 2kW Step-down PWM converter for high voltage dc-BUS
  • Start-up resistor for offline flyback suffers overvoltage..but is it OK?

RSS Current Electro-Tech-Online.com Discussions

  • Goldine International Leading Electronics brand from USA offering for new Distributors
  • Array of pointers to 16 series port SFRs.
  • The popups are getting ridiculous.
  • new to Ardunio but trying to compile
  • GLCD PIC16F877 lack of character output Issue

Follow us on Twitter

Tweets by AnalogICTips

Design Fast

Component Selection Made Simple.

Try it Today
design fast globle

Footer

Analog IC Tips

EE WORLD ONLINE NETWORK

  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • DesignFast
  • Connector Tips
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

ANALOG IC TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on Twitter Add us on Facebook Follow us on YouTube Follow us on Instagram

Copyright © 2021 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy