Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: How to tune a PID Controller ?
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > Control Systems > How to tune a PID Controller ?

How to tune a PID Controller ?

Last updated: September 29, 2018 10:40 pm
Editorial Staff
Control Systems
2 Comments
Share
5 Min Read
SHARE

What PID stands for?

It stands for Proportional, Integral, and Derivative controller. It’s a mathematical description of the way you think. PID helps you automatically achieve your goal, exactly the same way you used to do it manually. This diagram shows a general structure for a PID controller.

PID Controller Tuning

So, what do you need to form a PID controller?

You need the following six basic elements:

  • Error: It is the difference between your command and the output of the controller.
  • Proportional term P: It is a constant directly related to the amount of error. If you have large error, this term gives you a large output. And if you have a small error, it’ll give you a small output, that simple! The P term affects the speed to reach your target.
  • Integral term I: It is a constant related to the integration (summation) of errors over time. If your error is increasing, this term gives you a large output. However, if the error is decreasing, the I term gives you a small output. Thus it’s used to fine tune your results, i.e., when you almost reach your goal, the P term cannot serve you anymore (actually it works against you here!), the I term is the one you can count on to drive you error signal to zero.
  • Derivative term D: It is a constant related to the rate of change (derivative) of errors with time. What does this mean? It means that if your error signal changes rapidly, i.e., you have a highly dynamic system like a multi copter, the D term will give you higher output to catch up with the changes. On the other hand, if your error changes slowly, like in the room temperature example, the D term won’t find anything fast enough to amplify. Thus it’ll look for your noise signal (which usually has a high frequency) and amplify it to make your life miserable! The D term is a very dangerous controller if it’s not tuned perfectly!
  • Limits: You need to limit the output of each of the previous controllers!
  • Finally, you need your system of course! Unless you’re satisfied with simulations.

So, how do you tune your PID parameters to the optimal response?

Most often tuning is an art more than a science. Observe the system and use your intuitive guess and logical reasoning. Here are seven golden rules for general PID tuning:
  1. After nulling all the parameters, increase the P term so that the output reaches the target in the shortest possible time.
  2. If your output starts oscillating, it means you have too much P. Lower your P term until the oscillation disappears. You’ll end up slightly higher or lower than your target. Don’t worry; we’ll fix that in the next step.
  3. Now, increase I term slightly until your error goes away. Note that usual I values are very small (in the order of one thousandth for example) and they’re dependent on the update rate of your PID loop. The I term is very useful when you have outside error signals affecting your system (e.g. wind in a multi copter). It drives your error to zero whenever possible.
  4. If you feel your output is oscillating and it was not before you adjusted your I term, lower I slightly.
  5. For many slow dynamic systems, your job is almost done! You just have to jump to the last step.
    When dealing with highly dynamic systems, however, you need to adjust the D term. If you feel your output “lagging” behind the error variations and trying hard but failing to catch them, increase this term slightly.
  6. If your system starts to oscillate with high frequency and small transitions, you probably have too much D term which is amplifying your noise. Decrease D appropriately. If your system,however, has too much noise, it’s better to keep this parameter to zero.
  7. Last but not least, watch your limits! If you were changing the previous parameters without any noticeable change in the output, remember that limits cut down your output signal. Increase them probably, but be careful not to burn or saturate your system.

Also Download: PID Controller Simulator

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

DCS Alarm Summary Dashboard using Microsoft Power BI
Purpose of Gateways, Bridges & Routers in Networking
What LIC and FIC Controllers will do?
How to Analyze PID Controller Actions
System Architecture and Process Control Systems Philosophy
Limit Controls : High Limit & Low Limit Functions
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • ch.prasad says:
    July 5, 2016 at 9:46 am

    if you don’t mind i need practically values by using can you give the graph of pid theory and practical graph

    Reply
    • John Lilipaly says:
      February 2, 2023 at 1:24 pm

      OK

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Split Range Control Working Principle
Process Control Fundamentals
Basics of 4 to 20 mA analog Signals
Control Room Alarm Management Practices
On/off Control Theory
Industry 4.0 Explained – Industrial Internet of Things
Ziegler-Nichols Open-Loop Method
Difference between Feedback, Feedforward, and Cascade Control?

Keep Learning

Zener Barrier Protection

Zener Diode Barrier Principle

Two Out of Three Logic

Alarm and Trip Systems

DeltaV System Configuration Change and Download - 3

DeltaV System Configuration Changes and Download

Derivative (Rate) Controller

Derivative (Rate) Control Theory

Programmable Logic Controller (PLC)

What is Interposing Relay in a PLC System ?

ICS Control System

ICS Control System Security

Distributed Control System & Motor Control Center Interface Philosophy

Distributed Control System & Motor Control Center Interface Philosophy

Switches, Repeaters, Bridges, Routers, Firewalls

Switches, Repeaters, Bridges, Routers, Firewalls

Learn More

Formula for 4-20mA from 3-15PSI

Formula to Calculate 3-15psi from 4-20mA Current

Digital Electronics Objective Questions

Digital Electronics Objective Questions – Set 7

SCADA System Vulnerabilities

SCADA System Vulnerabilities

Ceramic Bearings

Everything You Need to Know About Ceramic Bearings

Level Transmitter trend

Identify Level Control Loop Tuning Problems

Static and Dynamic Characteristics of an Instrument

Static and Dynamic Characteristics of an Instrument

Flow Switch Working

Flow Switch : What is it? – Applications

PLC or DCS Control System Spares

PLC or DCS Control System Spares

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?