The answersDownload the PDF
Worksheet

U5.2 Proportional control

Feedback control · University · about 30 min

BugBotLab
NameClassDate

What this lesson is about

One gain, the whole trade-off, and the steady state error it cannot remove.

Questions 6 marks in all

  1. [1 mark]A proportional controller has Kp = 1.5 percent per cm. What command, in percent, does an error of 12 cm produce?

  2. [1 mark]The error is in centimetres and the command in percent. What are the units of Kp?

  3. [1 mark]This drive does not move below 15 percent. With Kp = 2, what is the largest error in cm that proportional control alone leaves uncorrected?

  4. [1 mark]In the lesson's turning cell at Kp = 4, the error trace falls fast, crosses zero, comes back and crosses again before settling. What does that say?

    1. AThe gain is too high: fast but underdamped
    2. BThe gain is too low
    3. CThere is steady state error
    4. DThe sensor is biased
  5. [1 mark]Why does a low-gain proportional controller stop short of the target and stay there?

    1. AIt needs an error to produce a command, and the command for a small error is below the drive's dead band
    2. BThe integral has wound up
    3. CThe sensor filter delays the last few centimetres
    4. DThe sign of the error is wrong
  6. [1 mark]Put the lesson's hand-tuning recipe for Kp in order.

    Number the lines 1 to 3 to put them in the right order.

    1. Halve that value
    2. Start low, around 1
    3. Double it until the robot overshoots or wobbles

The task: find a gain that works

Settle 30 cm from the wall, within 5 cm, and stay there from ten seconds onwards. Print the kp: you chose.

from bugbot import *
connect()

KP = 1.0
TARGET = 30.0

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

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

Challenges

  1. In the turning cell, find the gain at which it first overshoots, to the nearest 0.5.
  2. Find the gain below which the distance loop never gets within 5 cm. Explain it with the dead band.
  3. Run the same gain from 100 cm away and from 5 cm away. Does the same number suit both?