Instrumentation

๐ŸŽฏ 1. Big Picture: What is PID Tuning?

PID controllers are the most widely used controllers in industry (over 50%!)

๐Ÿ‘‰ Goal: Make a system behave the way you want by minimizing error between:

  • Setpoint (target)
  • Process value (actual output)

๐Ÿ’ก Controller tuning = choosing the right parameters so the system:

  • responds fast โšก
  • is stable ๐Ÿง˜
  • doesnโ€™t overshoot too much ๐ŸŽฏ

๐Ÿง  2. The PID Equation (Core Idea)

The controller combines three actions:

  • P (Proportional) โ†’ reacts to current error
  • I (Integral) โ†’ reacts to accumulated error over time
  • D (Derivative) โ†’ predicts future error

๐Ÿ“Œ Variables (from page 2):

  • ( u(t) ): control signal
  • ( ฮต(t) ): error
  • ( K_c ): gain
  • ( ฯ„_i ): integral scaling
  • ( ฯ„_d ): derivative scaling
  • ( b ): bias (offset)

โš–๏ธ 3. Understanding Gain (SUPER IMPORTANT)

๐Ÿ”ฝ Too low gain:

  • System responds slowly
  • Oscillations die out (damped)

๐Ÿ‘‰ Seen in the graph on page 2:

  • oscillations shrink over time โ†’ stable but sluggish

๐Ÿ”ผ Too high gain:

  • System becomes unstable
  • Oscillations grow larger and larger

๐Ÿ‘‰ Seen in the graph on page 3:

  • oscillations increase โ†’ system โ€œblows upโ€

๐ŸŽฏ Perfect tuning:

  • Oscillations are steady and consistent

This gives: ๐Ÿ‘‰ Ultimate gain (Ku) ๐Ÿ‘‰ Ultimate period (Pu)

These are key for tuning methods.


๐Ÿ”„ 4. Open vs Closed Loop Systems

๐Ÿ” Closed-loop (feedback):

  • Output is compared to input
  • Used in most real systems

๐Ÿ”“ Open-loop:

  • No feedback
  • Just observe system response

๐Ÿ“Œ Important difference:

  • Ziegler-Nichols โ†’ works for both
  • Cohen-Coon โ†’ mainly open-loop

๐Ÿงช 5. Trial-and-Error Method (Simple but crude)

๐Ÿ’ก Idea:

โ€œTry values โ†’ see what happens โ†’ adjustโ€

Steps:

  1. Start with P control
  2. Increase (K_c)
  3. Add I and D to refine

๐Ÿ“Š Typical values (VERY exam-relevant)

๐ŸŒŠ Flow:

  • Use P or PI
  • Avoid D (too noisy!)
  • (K_c = 0.4โ€“0.65), (T_i = 6s)

๐Ÿ›ข๏ธ Level:

  • PI preferred (reduces offset)
  • Example:
    • (K_c = 2)
    • Bias = 50%
  • PI:
    • (K_c = 2โ€“20)
    • (T_i = 1โ€“5) min

๐Ÿ’จ Pressure:

  • Depends on medium:
TypeKcTi
Liquid0.5โ€“26โ€“15 s
Gas2โ€“102โ€“10 min

๐ŸŒก๏ธ Temperature:

  • Use full PID (slow system!)
  • (K_c = 2โ€“10), (T_i = 2โ€“10) min, (T_d = 0โ€“5) min

๐Ÿ“ˆ 6. Process Reaction Curve Method (Open-loop)

This is VERY important conceptually

๐Ÿงช What you do:

  1. Let system reach steady state
  2. Apply a step disturbance
  3. Record response

๐Ÿ“Š What you measure:

From curve (page 6 diagram):

  • โฑ๏ธ Dead time (ฯ„_dead) โ†’ delay before system reacts
  • โณ Time constant (ฯ„) โ†’ how fast it responds
  • ๐Ÿ“ˆ Final value (Mu) โ†’ steady-state value
  • ๐Ÿ” Step size (Xo)

๐Ÿ‘‰ The tangent line at inflection point (shown in diagram page 6) is used to estimate these.


๐Ÿ“Œ Key ratios:

  • ( R = ฯ„_ / ฯ„ )
  • Used to calculate controller parameters

๐ŸŽฏ Goal:

Convert these values into:

  • (K_c), (T_i), (T_d)

๐Ÿ”ฅ 7. Zieglerโ€“Nichols Method (MOST IMPORTANT)

Two versions:


๐Ÿ” A. Closed-loop Method

๐Ÿงช Steps:

  1. Turn OFF I and D
  2. Increase (K_c)
  3. Wait until oscillations are:
    • constant amplitude

๐Ÿ‘‰ This gives:

  • Ultimate gain (Ku)
  • Ultimate period (Pu)

๐Ÿ“Š Visual (page 7):

  • Increasing gain โ†’ oscillations stabilize
  • Measure oscillation period

๐Ÿงฎ Then:

Plug into formulas:

ControllerKcTiTd
PKu/2โ€”โ€”
PIKu/2.2Pu/1.2โ€”
PIDKu/1.7Pu/2Pu/8

โœ… Advantages:

  • Simple
  • Uses real system dynamics

โŒ Disadvantages:

  • Can push system into instability
  • Time-consuming

๐Ÿ”“ B. Open-loop Method (Process Reaction)

๐Ÿงช Steps:

  1. Apply step input
  2. Measure:
    • (ฯ„_), (ฯ„), (Mu)
  3. Use formulas to compute PID parameters

โœ… Advantages:

  • Faster
  • Safer (no instability testing)

โŒ Disadvantages:

  • Less accurate
  • Based on approximations

๐Ÿ“‰ 8. Quarter Decay Ratio (QDR)

Used mainly in open-loop tuning

๐ŸŽฏ Definition:

Amplitude ratio = 4:1

๐Ÿ‘‰ First peak is 4ร— larger than second peak

๐Ÿ’ก Meaning:

  • System oscillations decay nicely
  • Good balance between:
    • speed โšก
    • stability ๐Ÿง˜

โš–๏ธ 9. Cohenโ€“Coon Method (Alternative)

Mentioned but not deeply detailed here.

๐Ÿ“Œ Key idea:

  • Another open-loop tuning method
  • Uses process reaction curve
  • Often more accurate than Z-N for some systems

๐Ÿง  Final Mental Model (IMPORTANT)

Think of PID tuning like this:

ComponentRole
PReacts NOW
IFixes past errors
DPredicts future

MethodWhen to use
Trial & ErrorQuick/simple systems
Ziegler-NicholsNo model, need fast tuning
Process ReactionSafer open-loop systems
Cohen-CoonMore refined open-loop

๐Ÿš€ Key Takeaways

  • PID tuning = balancing speed vs stability
  • Too low gain โ†’ slow ๐Ÿข
  • Too high gain โ†’ unstable ๐Ÿ’ฅ
  • Ziegler-Nichols is the most important classical method
  • Process reaction curve is essential for open-loop understanding
  • Real systems often require experimental tuning

Quiz

Score: 0/44 (0%)