3.5.39 · D4 · HinglishGuidance, Navigation & Control (GNC)

ExercisesPID tuning — Ziegler-Nichols, loop shaping

3,159 words14 min read↑ Read in English

3.5.39 · D4 · Physics › Guidance, Navigation & Control (GNC) › PID tuning — Ziegler-Nichols, loop shaping

Shuru karne se pehle, do symbols aur teen tools jo poore page pe kaam aate hain. Hum is page pe hi symbols define kar rahe hain taaki yeh page apne aap mein complete ho.


Level 1 — Recognition

Problem 1.1

Closed-loop Ziegler–Nichols standard form mein full PID ke liye rules deta hai: , , . Ek test mein mila aur s. , , likhो aur aur mein convert karo.

Recall Solution 1.1

KYA karna hai: table padho, phir aur se convert karo (parent note se).

  • .
  • s .
  • s .

Conversion kyun: table times mein bolta hai (, ); tumhara code gains chahta hai (, ). se multiply/divide karna dono forms ke beech ka dictionary hai.

Answer: .

Problem 1.2

Ek Bode plot par open loop dB (magnitude ) cross karta hai rad/s par, aur wahan hai. Phase margin batao. Kya yeh healthy band ke andar hai?

Recall Solution 1.2

Definition (parent): . ke andar hai, isliye haan, healthy hai.

Yeh formula kyun: instability tab hoti hai jab phase tak pahunch jaaye jabki gain abhi bhi ho. Phase margin woh bacha hua angle measure karta hai jo tumhare paas hai us cliff se pehle. Yahan tum crossover se pehle aur phase kho sakte ho.


Level 2 — Application

Problem 2.1

Plant (parent ka test plant). Ultimate frequency, gain aur period confirm karo, phir ZN PID gains do.

Recall Solution 2.1

Step A — dhundo (phase hit kare). Pehle phase kyun? Stability edge phase se define hoti hai; us equation mein sirf hai, isliye use akele solve karo. Step B — wahan magnitude se milta hai. kyun? Stability edge par hum pure P gain itna badhate hain jab tak open loop ki magnitude exactly na ho us frequency par jahan phase hai — yeh woh "signal wapas inverted aur same size mein reinforced hamesha ke liye" condition hai parent se. set karke ke liye solve karne par milta hai : ultimate gain exactly woh number hai jo plant ki simi hui magnitude ko wapas tak uthata hai. Step C — period. s. Step D — ZN table.

  • .
  • .
  • .

Answer: — parent ke example se match karta hai.

Problem 2.2 (open-loop / reaction-curve method)

Ek heater par open-loop step test ek FOPDT model fit karta hai jisme static gain , time constant s, aur dead time s hai. Yaad karo . ZN open-loop PID parameters do aur phir .

Recall Solution 2.2

Step A — slope parameter. (per second). Step B — ZN open-loop formulas (parent). Step C — gains. , .

Yeh ratios kyun: dead time villain hai — yeh pure phase lag hai bina kisi gain drop ke, isliye zyada se chhota force hota hai (note karo ). Integral aur derivative times se pin hain kyunki aise plants ke liye natural oscillation period roughly hoti hai.

Answer: .


Level 3 — Analysis

Problem 3.1

Usi plant ke liye, maano hum pure P control use karte hain ke saath (jo se neeche hai). Gain margin dB mein dhundho. Interpret karo.

Recall Solution 3.1

Gain margin kya hai: us frequency par jahan phase hai, aur kitna gain badhe tab ho jaaye. Problem 2.1 se, woh frequency hai aur wahan hai. ke saath: . Interpretation: tum gain double kar sakte ho (4 se 8= tak) sustained oscillation se pehle — exactly consistent hai ultimate gain ke hone se. " dB minimum" kahan se aata hai: yeh ek design criterion hai, nature ka koi law nahi. Standard robustness rule of thumb (dekho Stability margins (gain & phase margin) aur Nyquist stability criterion) maangta hai ki gain margin kam se kam factor of ho — yaani dB — taaki ordinary modelling errors aur gain drift (component tolerances, temperature) poora margin nahi kha sake aur Nyquist curve ko point ke paas na dhakele. Isliye exactly us recommended lower bound par baitha hai: acceptable hai, lekin koi extra room nahi — yahi wajah hai ki ek designer aur peeche hat jaayega.

Problem 3.2

Phase use karke explain karo kyun integral action add karna ek loop mein jo pehle se tha, phase margin reduce karta hai — aur estimate karo loss kitna hoga agar integral corner ko par rakha jaaye.

Recall Solution 3.2

Integral phase ko kya karta hai: factor exactly contribute karta hai; lekin ek real PI controller frequency par sirf contribute karta hai, kyunki apne corner se kaafi upar integral term negligible ho jaati hai aur phase ki taraf wapas aati hai. par estimate karo jab ho: Naya phase margin . Yeh loss kyun hona hi hai: integral sirf lag add karta hai (lead kabhi nahi), isliye yeh phase ko crossover par sirf neeche kheench sakta hai; design trick yeh hai ki iska corner se kaafi neeche rakho taaki tak pahunchte tak lag almost decay ho jaaye — isliye "" rule loss ko tolerable few degrees mein rakhta hai.


Level 4 — Synthesis

Problem 4.1 (lead design by phase margin)

Plant . Ek PD controller design karo taaki gain crossover rad/s par ho aur phase margin ho. aur dhundho.

Figure s01 (neeche) Step C ka geometric core hai. Yeh single complex number ko ek right triangle ke roop mein draw karta hai: adjacent side (kaali), opposite side (kaali), hypotenuse laal arrow. Laal arrow dekho — woh horizontal axis ke upar jo angle banata hai, WOH phase lead hai jo PD zero donate karta hai, aur is triangle se "opposite over adjacent" padhna exactly yahi wajah hai ki .

Figure — PID tuning — Ziegler-Nichols, loop shaping
Recall Solution 4.1

Step A — par plant ka phase. mein ek integrator hai ( flat) aur ek lag (). Step B — controller ko kitna phase supply karna chahiye? Hum chahte hain ki par total open-loop phase ho, kyunki ka matlab hai . Step C — ek PD zero lead supply karta hai (figure s01 mein yeh triangle hai). Arctan phir se kyun? Factor woh chhota triangle hai vertical side ke saath; axis ke upar uska angle hai — positive, yaani phase lead. Step D — par magnitude set karo (iska matlab hi "crossover" hai).

Answer: s, . Parent example se match karta hai.

Figure s02 (neeche) Step B ko phase budget ke roop mein visible banata hai. Har kaali bar par ek factor ka phase contribution hai; woh stack hote hain. Laal "total" bar dekho — woh exactly laal dotted target line par land karta hai — yahi phase-margin condition meet ho rahi hai, aur dashed line jiske upar laal bar kabhi nahi pahunchna chahiye woh instability cliff hai.

Figure — PID tuning — Ziegler-Nichols, loop shaping

Problem 4.2 (us lead design se full PID banao)

Problem 4.1 se , lo aur integral action add karo corner rad/s ke saath (rule of thumb). do, aur batao ki isse phase margin kitna trim hota hai.

Recall Solution 4.2

Step A — corner se . . Step B — par phase penalty (jaise 3.2 mein): Isliye phase margin se girhkar lagbhag ho jaata hai — abhi bhi healthy hai. Answer: , PM . (Practice mein tum thoda upar nudge karoge taaki khoye hue recover ho sakein.)


Level 5 — Mastery

Problem 5.1 (do designs judge karo)

ke liye tumhare paas do candidate PID controllers hain:

  • A (raw ZN): (2.1 se).
  • B (detuned): wahi reduce kiya, integral aur derivative times unchanged.

B ke gains compute karo, aur ek line mein argue karo ki position servo ke liye kaunsa ship karoge jisme zyada overshoot nahi hona chahiye.

Recall Solution 5.1

Step A — B ka . . Step B — times fixed rakho (, ), isliye: Step C — judgement. Raw ZN quarter-amplitude decay aim karta hai overshoot — position servo ke liye bahut bouncy hai. ko detune karna crossover neeche karta hai, phase margin khareedhta hai, aur overshoot thodi speed ki keemat par kam karta hai. B ship karo.

Answer: .

Problem 5.2 (mastery synthesis: full loop-shaping check)

Sab combine karo. Problem 4.2 ke lead-plus-integral controller ke liye (, , ) on , par final open-loop phase verify karo aur resulting phase margin numerically confirm karo.

Recall Solution 5.2

par phases assemble karo (sab superpose hoti hain):

  • Plant integrator: .
  • Plant lag : .
  • Controller lead zero : .
  • Controller integral lag: . Interpretation: exactly wahi jo 4.2 mein predict kiya tha. Design self-consistent hai — integral ki loss exactly wahan dikhi jahan humne expect ki thi, aur loop safely stable hai fast rad/s ke saath. Poore recover karne ke liye, badhao taaki lead ho jaaye.

Answer: , .


Recall Final self-check (chhupao aur jawab do)
  • ZN closed loop ne par measure kiya , kahan se aaya? ::: se, isliye , woh frequency jahan phase hit karti hai.
  • Ultimate gain ka reciprocal kyun hai? ::: Kyunki edge par hai, isliye plant ki magnitude ko wapas tak lift karta hai.
  • Ek PD zero phase margin kyun raise karta hai? ::: Yeh crossover ke paas lead contribute karta hai, ko se door karta hai.
  • dB gain margin literally kya allow karta hai, aur yeh minimum kyun hai? ::: Oscillation se pehle loop gain double karna; dB (factor ) standard robustness criterion hai taaki gain drift margin erase na kar sake.
  • kyun rakhte hain? ::: Taaki integral ki lag almost koi phase margin cost na kare jabki low-frequency gain boost karta rahe.

Related vault notes: PID controller basics · Bode plot & frequency response · Stability margins (gain & phase margin) · Nyquist stability criterion · Integral windup and anti-windup · Root locus method · State-space control & LQR.