Lecture 12 - Control Flashcards

1
Q

Why do we use control?

A

Why use control at all?
* Correct or wrong?
Supplying a certain voltage / pulsewidth will make the motor spin at a certain speed.
* Not always!
This will only work in idle condition, not under load (e.g. driving up a slope)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is motor control and how is it done?

A
  • Using a feedback control will make sure the desired speed is maintained under load.
  • If motor goes too slow → increase speed
  • If motor goes too fast → reduce speed
  • How is this done?
    (1) Read current speed
    (2) Compare with desired speed
    (3) Change motor output accordingly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some things to consider when working with motor control?

A
  • Time delay of controller (for measurement and calculation)
  • Time delay of motor (physical reaction time of actuator in real world)
  • Inaccuracy of encoder data
  • Inaccuracy of actuator movement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an On-Off controller

A

Simplest case: Only on/off of control value, “Bang-Bang Controller
Refer to slides (NEED TO KNOW HOW TO CODE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a timer?

A
  • We need a timer function that calls our control routine regularly at exactly the right time intervals
  • Background timer = interrupt from clock
  • Most microcontrollers contain a number of timers that can be set by software.
    Refer to slides (NEED TO KNOW CODE)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some parameters to consider for background timer frequency

A

Parameters to consider
* Encoder ticks per meter
* Lowest controlled speed

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a watchdog timer?

A

A watchdog is a specialized timer/counter
* It is initialized to a certain value and keeps counting down
* If the watchdog counter reaches zero, an interrupt is raised
➢ Correctly running program will reset the watchdog timer in regular intervals to its initial value, so no interrupt will occur
➢ Effective tool for fault detection, e.g. if program “hangs”
➢ Can be used to detect hardware errors and software errors

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

On-Off Controller with Hysteresis

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a proportional controller?

A

P-controller (proportional controller)
R(t) = Kp * (vdes(t) - vact(t))
Linear change of control value to reduce error → better controller
Where:
* Kp is a constant value, “controller gain”
* Kp must be selected to achieve fast goal speed without overshoot
* Note: No equilibrium when desired velocity is reached: if vdes(t) = vact(t) then R(t) = 0
Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an intergral controller?

A

Adding I-Controller (Integral Controller) Part
* Problem: P-Controller may reach equilibrium without reaching the target velocity → steady state error
* Solution: Integral part is used to eliminate steady state error (REFER TO SLIDES FOR EQUATION)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is dertivative controller?

A

Adding D-Controller (Derivative Controller) Part
* Problems: P-Controller responds slow to change in input P-Controller with high gain tends to oscillate
* Solution: Add a derivative term for response/damping (REFER TO SLIDES FOR EQUATION)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a PID controller?

A

REFER TO SLIDES (FOR EQUATIONS)
PID-Controller is combination of P, I, and D controller
* Simple, universal controller
* Trade-offs: Response time vs. stability
* Noise limits max. proportional gain
* Note physical limits of actuator e.g. max acceleration, velocity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the tuning method for PID Paramter Tuning?

A

Manual Tuning
Ziegler-Nichols method
Cohen-Coon method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Manual tuning?

A
  1. Select typical operating setting for desired speed, turn off integral and derivative part, then increase KP to max. or until oscillation occurs.
  2. If system oscillates, divide KP by 2.
  3. Increase KD and observe behavior when changing desired speed by about 5%. Choose a value of KD which gives a fast damped response.
  4. Slowly increase KI until oscillation starts. Then divide KI by 2.5
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is velocity control?

A

Velocity Control is what we have achieved so far We can make a motor drive at a certain speed and make it maintain that speed
Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Position control?

A

Position Control also incorporates a start/stop phase and makes the motor stop at a certain location E.g. exactly after one full revolution
Refer to slides

17
Q

What is a practical way to achieve position control?

A
  • Use velocity control in start phase and continuous phase
  • Monitor current position and calculate begin of end phase
  • Continuously update speed while decelerating
  • Important: Once stopped (v=0), cannot easily adjust pos. anymore
18
Q
A