1 of 32

��Chapter 18�Compensator Design

2 of 32

General Feedback Loop

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

2

3 of 32

Ideal Loopshape

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

3

4 of 32

Loopshaping Design Philosophy

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

4

5 of 32

Controller Building Blocks

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

5

6 of 32

Controller Building Blocks: Proportional Gain

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

6

7 of 32

Controller Building Blocks: Integral Control

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

7

8 of 32

Controller Building Blocks: Low-Pass Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

8

9 of 32

Controller Building Blocks: Phase Lag Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

9

10 of 32

Controller Building Blocks: Phase Lead Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

10

11 of 32

Controller Building Blocks: Phase Lead Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

11

12 of 32

Controller Building Blocks: Phase Lead Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

12

13 of 32

Example

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

13

14 of 32

Loop-shaping Steps

  •  

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

14

15 of 32

Loop-shaping Steps (part II)

  •  

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

15

16 of 32

Controller Implementation

  • Two options provided in the example code:
    • State Space Implementation
    • Digital Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

16

17 of 32

State Space Implementation (Overview)

  • Turn C(s) into a state space representation (e.g. using controller canonical form)

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

17

 

18 of 32

State Space Implementation (Overview)

  • Solve the state space equations

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

18

 

 

 

19 of 32

Digital Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

19

 

  • The output of the compensator is a function of past outputs and errors:

 

  • Use the Tustin approximation to put into the Z-domain
  • Solve for the output at the current time step

20 of 32

Digital Filter

  •  

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

20

 

 

21 of 32

Pre-Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

21

 

 

  • With some phase margins, there will be a peak in the closed loop system, which can cause overshoot and ringing.
  • One way to reduce this is to add a prefilter.

22 of 32

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

22

23 of 32

Pre-Filter

  • Can use a low pass filter or notch filter.

  • Will flatten the peak in the Bode mag plot.

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

23

 

24 of 32

Pre-Filter

  • In code, can implement it in the same way as we did the compensator.

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

24

 

 

 

 

 

25 of 32

Pre-Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

25

26 of 32

Pre-Filter

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

26

27 of 32

Successive Loop Closure Design

  • Design the outer loop taking into account the complete dynamics of the inner loop.

  • Pre-filter is only applied to the outer loop

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

27

 

28 of 32

Example

  • Python files:
    • loopshape_tools.py
    • loopshape_example.py
    • transferFunction.py
    • controller.py
    • exampleSim.py

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

28

29 of 32

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

29

...more to come

30 of 32

Design Study A

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

30

31 of 32

Design Study B

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

31

32 of 32

Design Study C

Introduction to Feedback Control, Beard, McLain, Peterson, Killpack

32