• 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
    • EMI/RFI
    • Interface & Isolation
    • MEMS & Sensors
  • Applications
    • Audio
    • Automotive/Transportation
    • Industrial
    • IoT
    • Medical
    • Telecommunications
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • FAQs
    • EE Learning Center
    • EE Training Days
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • LEAP Awards
    • Podcasts
    • White Papers
    • DesignFast
  • Video
    • EE Videos
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

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

January 23, 2017 By Bill Schweber

Part 1 of this FAQ looked at the strengths and weaknesses of basic on/off control as well as the performance improvements that the proportional, integral, and derivative (PID) control algorithm provides.

PID analysis

PID performance and its setup has been the subject of countless articles, Ph.D. dissertations, tutorials, books, and courses which span qualitative, mostly intuitive explanations to other based on advanced and complicated mathematics. The formal basic PID equation has the control output Kc is determined by:

Kc = (K1 × P) + (K2 × I) + (K3 × D)

where K1, K2, and K3 are the independent coefficients of the P, I, and D terms, respectively. In a general qualitative sense, the proportional factor P primarily focuses on the present value of the error, integral term I is related to the past values of the error, and derivative term D corresponds to predicted future values of the error.

It is not necessary to employ all three terms. PI-only controllers are fairly common, since the integral term helps the closed-loop control system reach its target value, while the derivative term is often unneeded and may actually be detrimental as it is sensitive to unavoidable system and sensor noise.

Setting the coefficients Obviously, the general objective of a closed-loop PID system is to minimize error and achieve optimum performance under various operating conditions, Figure 1. But there is no single right answer, since what is “optimum” is determent by the system’s priorities. For some applications, it means minimizing total error; for others, it is limiting overshoot or maximum error; and for others, it is minimizing the time to recover from an upset and get back within the allowed error band.

Figure 1: A typical PID response to an upset or change in setpoint shows overshoot, then settling in to desired value; the amount of overshoot, the settling time, maximums of key performance parameters values, and overall error can be controlled by adjusting the P, I, and D coefficients (from National Instruments)

 

PID tuning                 

In the earliest days of PID control, when control systems were largely pneumatic (almost nothing electric), the setting of the coefficients – called PID tuning – was a time-consuming, frustrating, and iterative process. The situation improved as control systems advanced to analog electronics with electrical sensors and actuators, but was still challenging.

Now, almost all system PID controllers are based on software and microcontrollers (with A/D converters for the sensor inputs and D/A converters for the actuator outputs). As a consequence, these controllers also implement a variety of auto-tuning algorithms, where the user defines what the performance priorities are desired, and can even predefine shifts in these priorities as circumstances change.

In autotuning mode, the controller sends some small “test” actuation signals and observes the outcome at the process, then uses the acquired data build a model of the system. It next sets the PID coefficients which optimize performance of the system it has just modeled in the context of the user’s stated preferences; these smart controllers can even dynamically change the PID coefficients if desired.

The resultant performance is orders of magnitude more sophisticated, flexible, accurate, and convenient than the earliest systems. It also supports performance which “ekes out” the final few percent of what theory said could be done, and those few percentage points can make the difference between profit, or reaching versus missing a target.

References

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

 

◊◊◊

You may also like:


  • What is Proportional (PID) Control and why is it used?…

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

Primary Sidebar

Featured Contributions

Design a circuit for ultra-low power sensor applications

Active baluns bridge the microwave and digital worlds

Managing design complexity and global collaboration with IP-centric design

PCB design best practices for ECAD/MCAD collaboration

Open RAN networks pass the time

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE LEARNING CENTER

EE Learning Center
“analog
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

EE ENGINEERING TRAINING DAYS

engineering

RSS Current EDABoard.com discussions

  • dc-dc converter in series
  • Right Half Plane Zero
  • Single ended measuring ports and balanced antenna
  • Thermal modelling of repetitive power pulse
  • Permittivity and Permealibility in CST

RSS Current Electro-Tech-Online.com Discussions

  • Can I make two inputs from one??
  • Is AI making embedded software developers more productive?
  • Kawai KDP 80 Electronic Piano Dead
  • Fun with AI and swordfish basic
  • Simple LED Analog Clock Idea
“bills

Design Fast

Component Selection Made Simple.

Try it Today
design fast globle

Footer

Analog IC Tips

EE WORLD ONLINE NETWORK

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

ANALOG IC TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · 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