Lecture Note 4_Motion Control
Lecture Note 4_Motion Control
Motion Control
Motion control
1
History
2
History
From Wikipedia
History
10
Introduction to Control
Measured System System
Reference error input output
Controller System
+ _
Measured Output
Sensor
▪ Controller: a device, which monitors and physically alters the operating conditions of a
given dynamical system
➢ Transient response
- To be present in the short period of time immediately after the system is turned on
- Some major structural changes
- If the system is asymptotically stable, the transient response disappears
- Performance in point of time (HDD, Elevator)
➢ Steady-state response
- Approach to a desired output
- To be present after the transient response
11
- Performance in point of accuracy (Elevator, HDD, Satellite tracing antenna)
Walk around the control loop
12
Plant
13
Impulse Response of a Dynamic System
▪ requires no sensor
▪ predictable (if reference is known)
(faster than pure feedback)
▪ cannot introduce instability
▪ no feeding back of sensor noise
Magnitude
Frequency (Hz)
Phase(deg)
Measured
Fitted
Frequency (Hz)
Transfer function
16
Model based feedforward control
▪ Transfer function
Notch filter
18
Feedfoward Compensated System
Because of ‘Zeros’
19
Second method: input shaping FF filter
▪ sensor required
▪ slower than FF (error has to occur first)
▪ (sensor) noise is also fed back (amplified)
▪ can introduce instability (also of open‐loop
stable systems) 21
Sensitivity
Function
22
Sensitivity Functions of Feedback Control
✓ Response to disturbances
Complementary
sensitivity function
Sensitivity function
23
Sensitivity Functions of Feedback Control
24
Stability and Robustness
25
Loop-Shaping Design
26
Stability
27
PID Feedback
Control
28
Virtual stiffness by feedback in a CD player
29
Virtual Stiffness by Feedback Control
Virtual stiffness
▪ Measure position
▪ Actuate with force proportional and opposite to the deviation (feedback!)
30
PID Controller for Mass-Spring System
𝑚𝑘
𝑄= = 50
𝑐
Phase(deg) Magnitude(abs)
𝑚
0.25𝑘𝑔
𝑓0 = 𝑘/𝑚 = 20 𝐻𝑧
1
𝐺 𝑠 =
𝑚𝑠 2 + 𝑐𝑠 + 𝑘
Frequency(Hz)
Control Objectives
▪ Bandwidth of 100 Hz (unity‐gain cross‐over frequency)
✓ So far beyond the natural frequency on the mass line
PID controller
▪ Asymptotically stable, all poles in the left half plane
▪ Sufficiently damped (is requirement!)
✓ Specification, max Q = 1.3 (+3dB)
31
▪ Zero steady‐state error (0 Hz)
PID Controller
http://www.mathworks.com/matlabcentral/fileexchange/screenshots/22857/original.jpg
P (Proportional) gain
I (Integral) gain
D (Derivative) gain
32
With P-controller
y
M(s)=1
CD‐player example:
f=800 Hz
m = 10 g = 0.01 kg
1 1
G (s) = 2
=
ms 0.01s 2
Goal
Control of lens position
: Unit gain cross-over freq. f=800 Hz 33
With P-controller (cont.)
e u y
r
Cfb(s) G(s)
+ _
y
M(s)=1
34
With PD-control (Damping effect)
e u y
r
Cfb(s) G(s)
+ _
y
M(s)=1
d 1 + d s
C pdt ( s ) = kt Lead-lag compensator
c 1 + t s
Open-loop TF
d kt 1 + d s
Lpdt ( s ) =
c ms 2 1 + t s
There are many resonating mode-
shapes at higher frequencies.
To attenuate these and prevent
instability 37
I-control (super-spring action)
To increase the loop gain at low freq. and achieve a zero steady-state error
4. Fourth guideline of PID-control
Integration action should start at extremely low frequencies and stop at a
frequency equal to one third of the starting frequency of D control (1/10
of 𝜔𝑐)
𝜔𝑖 = 0.1 ∙ 𝜔𝑐 ≈ 60𝑟𝑎𝑑/𝑠
𝑘𝑖 = 𝑘𝑝 ∙ 𝜔𝑖 ≈ 1.8e6
1 + d s ki
C pidt ( s ) = k p +
1+ts s
38
Bode of PID-control
10times
𝟓𝟓°
𝒇𝒊 𝒇𝒅 𝒇𝒄 𝒇𝒕
1 + d s ki
C pidt ( s ) = k p + 39
1+ts s
Open Loop Transfer Function (GC)
Magnitude(abs)
Phase(deg)
Frequency(Hz)
PM = ? GM = ? 40
S vs. T
Magnitude(abs)
𝑇 𝑠
Resonance frequency 𝑆(𝑠)
Frequency(Hz)
41
Increased sensitivity for disturbances
42
General Guidelines
X 2 (s) k2
=
F ( s ) m1m2 s 4 + (m1k2 + m2 k1 + m2 k2 ) s 2 + k1k 2
X 2 (s) c2 s + k2
=
F ( s ) m1m2 s 4 + [m1c2 + m2 (c1 + c2 )]s 3 + [m1k2 + m2 (k1 + k2 ) + c1c2 ]s 2 + (c1k 2 + c2 k1 )s + k1k 244
PID Control of Resonating Eigenmodes (Type III)
L(s)=Cpid(s)G(s)
L(s)
Magnitude[abs]
2차 고유 모드 Q≈20
wc=100 Hz
phase[deg]
Frequency [Hz] 45
PID Control of Resonating Eigenmodes (Type III)
46
PID Control of Resonating Eigenmodes (Type III)
Solution
1. Lower loop-gain : 2차 고유모드의 진폭이 1 이하가 되도록! → bandwidth 20 Hz
2. Use a notch filter : 주파수 튜닝이 어려움, High Q
3. 센서 마운팅에 감쇠 추가 : 강성 저하
4. Additional low pass filter
47
Notch Filter
48
Dynamic effects (1)
▪ Actuator flexibility
✓ In the frequency range of interest (typically 𝟎~𝟏𝟎𝝎𝑩𝑾) the driven
system no longer behaves as on a rigid body due to compliance
between the motor and the load
𝒌
𝒙
49
Dynamic effects (2)
▪ Guiding flexibility
✓ Guiding system to suppress motion in an undesired direction
✓ The limited stiffness of the guiding system
✓ Relative positions of a sensor, an actuator, a center of gravity
Mode 1
Mode 2
Mode 3
50
PID Controller
Gain Tuning
51
PID Controller
52
Ziegler-Nichols Tuning of PID
Ideal system
System
G(s)
Real system
Dead time (time delay, lag) L = td
▪ Method 1
➢ The choice of controller parameters based on a decay ratio ~ 0.25
Controller 𝐾 𝑇𝐼 𝑇𝐷 𝑇𝑃
P 1/A 4L
A
𝑇𝑝 expected time constant for closed-loop system
Response
0.25 A
Time (s)
54
Ziegler-Nichols Tuning of PID
▪ Self-oscillation model
𝐾 𝑇𝐼 𝑇𝐷 𝑇𝑃
P 0.5𝐾𝑈 𝑇𝑢
56
General Gain Tuning of PID Controller
Done
Summary
58
Term Project
Due by 2023-05-25