PID control and compensation
Diperkenalkan
8:27
Sistem Kontrol
This course closes the loop. Signals and systems gave us the open-loop transfer function; now we ask how to make the output follow the input quickly…
Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih
Dalam pelajaran ini
| English | Makna |
|---|---|
| PID controller/ˌpiː aɪ ˈdiː kənˈtrəʊlə/ | Pengontrol PID |
| proportional/prəˈpɔːʃənl/ | proporsional |
| integral/ˈɪntɪɡrəl/ | |
| derivative/dɪˈrɪvətɪv/ | turunan |
| lead compensator/liːd ˈkɒmpənseɪtə/ | kompensator超前 (lead compensator) |
| anti-windup/ˈænti ˈwɪndʌp/ |
Pengontrol yang paling sering Anda setel
- Sebagian besar loop industri menjalankan PID. Ini adalah pengontrol pertama yang disetel oleh seorang insinyur, dan yang paling sering disetel.
- Setiap dari tiga sukunya membeli satu perilaku dan dikenakan harga yang diketahui.
Tiga suku
- Pengontrol PID PID bekerja pada error $e = r - y$: $u = K_{p}e + K_{i}\displaystyle\int e\,dt + K_{d}\dfrac{de}{dt}$.
- Proporsional bereaksi sekarang. Integral mengingat, menghilangkan error steady-state. Turunan mengantisipasi, menambahkan peredaman.
Match each term to what it does.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
Each term improves one behaviour, and each has a cost.
Penyetelan Ziegler–Nichols
- Tingkatkan gain proporsional hingga loop tepat bergetar. Catat gain ultimate $K_{u}$ dan periode $T_{u}$.
- Baris PID pada tabel: $K_{p} = 0.6K_{u}$, $T_{i} = T_{u}/2$, $T_{d} = T_{u}/8$. Dalam bentuk paralel, $K_{i} = K_{p}/T_{i}$ dan $K_{d} = K_{p}T_{d}$.
A loop oscillates at K_u = 20 with period T_u = 4 s. What integral time T_i does the Ziegler–Nichols PID row give, in s?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$T_{i} = T_{u}/2 = 2$ s, with $K_{p} = 0.6 \times 20 = 12$ dan $T_{d} = T_{u}/8 = 0.5$ s.
K_p = 28.8 and T_i = 1.11 s. What is the parallel integral gain K_i? Give 1 decimal place.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$K_{i} = K_{p}/T_{i} = 28.8/1.11 = 25.9$ per second.
Kartu ini telah diperbaiki, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya diperbarui.
What each term costs
- Each term's benefit comes with a price:
| Term | Gives | Costs |
|---|---|---|
| P | a fast response | may leave steady-state error |
| I | zero steady-state error | phase lag, more overshoot |
| D | damping | amplifies measurement noise |
- Take the derivative of the measurement, not the error, or every setpoint step kicks the actuator.
Taking the derivative of the error, instead of the measurement, makes a setpoint step kick the actuator.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
A step in r has an infinite slope, so de/dt spikes. The measured output moves smoothly, so derivative on y avoids the kick.
Contoh terpecahkan: Ziegler–Nichols
- Plant yang berjalan berosilasi pada $K_{u} = 48$, $T_{u} = 2.22$ s, sehingga $K_{p} = 28.8$, $T_{i} = 1.11$ s, $T_{d} = 0.278$ s.
- P saja memiliki overshoot 65% dan menyisakan error ramp sebesar $8/K_{p} = 0.278$. PID menghilangkan error tersebut tetapi masih menunjukkan ringing sebesar 60%: ini hanya langkah awal, bukan penyelesaian akhir.


The running plant 1/[s(s + 2)(s + 4)] runs with P control, K_p = 16. What is the steady-state error for a unit ramp?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$K_{v} = K_{p}/(2 \times 4) = 2$, so the ramp error is $1/K_{v} = 0.5$. An integrator would remove it.
Contoh terpecahkan: tambahkan turunan
- Dengan $K_{p} = 28.8$, polinomial PD adalah $s^{3} + 6s^{2} + (8 + K_{p}T_{d})s + K_{p}$: turunan ditambahkan ke suku peredaman.
- Pada $T_{d} = 0.5$ s, kutubnya adalah $-2$ dan $-2 \pm j3.22$. Dengan D pada pengukuran, respons step tidak menunjukkan overshoot dan settling dalam waktu 2.1 s.
One knob for gain, one for damping
Move Kp and Td and watch overshoot, settling and the Routh verdict move together; gain alone breaks the loop at 48, and damping repairs it.
With K_p = 20 and T_d = 0.3 s on the running plant, what is the s-coefficient of the PD characteristic polynomial?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$8 + K_{p}T_{d} = 8 + 6 = 14$. Derivative raises the damping term directly.
Kompensator lead
- Kompensator lead $\dfrac{1 + \tau s}{1 + \alpha\tau s}$, dengan $0 < \alpha < 1$, menambahkan fase di sekitar satu frekuensi: $\sin\phi_{m} = \dfrac{1 - \alpha}{1 + \alpha}$.
- Untuk +45°, $\alpha = 0.172$. Ini juga meningkatkan penguatan frekuensi tinggi sebesar $1/\alpha = 5.8$, yang harus diserap oleh desain.
A lead network must add 30° at its peak. What α does it need? Give 3 decimal places.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$\alpha = (1 - \sin 30°)/(1 + \sin 30°) = 0.5/1.5 = 0.333$. Its high-frequency gain rises by $1/\alpha = 3$.
Anti-windup
- Ketika aktuator jenuh, integrator terus menambah error yang tidak dapat digunakan, lalu melepaskannya sebagai satu overshoot besar.
- Anti-windup mencegah hal ini: klem (clamp) integrator saat jenuh, atau umbal balik kelebihan saturasi.
Tiga kesalahan umum
- Penguatan ultimate pada plant yang tidak pernah berosilasi. Gunakan versi respons step dari tabel.
- Mencampur bentuk penyetelan. $K_{p}, T_{i}, T_{d}$ bukanlah gain paralel.
- Melupakan $1/\alpha$ dari lead. Penguatan frekuensi tinggi tambahan menggerus margin yang telah Anda peroleh.
Ringkasan
- P bereaksi, I mengingat, D mengantisipasi.
- Ziegler–Nichols memberikan pendekatan awal; margin dan simulasi menyempurnakannya.
- Turunan pada pengukuran; anti-windup selalu aktif.
A digital PI has $K_p = 2$, $K_i = 5$ dan $T = 0.1$ s. The running sum is 1.00 and this sample's error is 0.40. After adding $eT$ to the sum, what is $u$?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
The sum becomes $1.00 + 0.40 \times 0.1 = 1.04$, so $u = 2 \times 0.40 + 5 \times 1.04 = 0.8 + 5.2 = 6.0$.
Kartu ini baru, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya siap.
Recap
- P reacts, I remembers, D anticipates.
- Ziegler–Nichols gives a starting point; margins and simulation complete the design.
- Derivative on the measurement; anti-windup always.
- In code: a running sum for I, a difference over $T$ for D (filtered), and clamps on both the integral and the output.
Apa yang salah? Hanya tim situs yang dapat melihatnya.