The answersDownload the PDF
Worksheet

U5.5 Tuning

Feedback control · University · about 30 min

BugBotLab
NameClassDate

What this lesson is about

Finding the gain where it oscillates, and working back from there to something usable.

Questions 7 marks in all

  1. [1 mark]The Ziegler-Nichols PID row from the lesson, for a measured Ku and Tu. What does it print?

    KU, TU = 10.0, 1.6
    kp = 0.6 * KU
    ki = 1.2 * KU / TU
    kd = 0.075 * KU * TU
    print(round(kp, 2), round(ki, 2), round(kd, 2))
  2. [1 mark]Ku = 8 and Tu = 2 s. What Ki does the Ziegler-Nichols PI row give? Give two decimal places.

  3. [1 mark]Ku = 9. What Kp does the Ziegler-Nichols P-only row give?

  4. [1 mark]Ziegler-Nichols gains make the robot swing lively, each swing a quarter of the last. What is a common and sensible next move?

    1. AHalve Kp
    2. BDouble Ki
    3. CRemove Kd
    4. DDouble Ku and recompute
  5. [1 mark]The response arrives, settles short of the target, and stays short. What should change?

    1. AAdd or raise Ki
    2. BRaise Kd
    3. CLower Kp
    4. DFilter the measurement
  6. [1 mark]The response shows a slow, wallowing oscillation. What should change?

    1. ALower Ki
    2. BRaise Kp
    3. CRaise Kd
    4. DRun the loop slower
  7. [1 mark]In what order does the lesson say to bring in the three terms?

    1. AP, then D, then I
    2. BP, then I, then D
    3. CI, then P, then D
    4. DAll three at once from Ziegler-Nichols, then fine tune

The task: find the ultimate gain

Run the heading loop at several gains, print the swing at each, and print ku: and tu:.

from bugbot import *
connect()

DT = 0.25

Plan your program here, then type it in and press Run.

QR code
Do it on the robot
www.bugbotlab.com/learn/u5-5-tuning/
The simulator checks it and tells you when it passes. Nothing to install, no account.

Challenges

  1. Apply the Ziegler-Nichols PID row and run it on the quarter turn. Is it as lively as the table warns, and which term is to blame?
  2. Halve the resulting Kp and compare the two responses. Then try cutting Ki instead.
  3. Find Ku again with the loop looking ten times a second, DT = 0.1. How much does Ku rise, and why?