EECS 192: Mechatronics Design Lab
Discussion 10: Control Responses & Tuning GSI: Justin Yim 3 & 4 Apr 2019 (Week 10)
1 Dynamical Systems Review 2 Control Response 3 Summary
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 1 / 12
EECS 192: Mechatronics Design Lab Discussion 10: Control Responses - - PowerPoint PPT Presentation
EECS 192: Mechatronics Design Lab Discussion 10: Control Responses & Tuning GSI: Justin Yim 3 & 4 Apr 2019 (Week 10) 1 Dynamical Systems Review 2 Control Response 3 Summary Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019
1 Dynamical Systems Review 2 Control Response 3 Summary
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 1 / 12
Dynamical Systems Review
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 2 / 12
Dynamical Systems Review
◮ The car’s behavior is
◮ Actuators accept inputs and
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12
Dynamical Systems Review
◮ The car’s behavior is
◮ Actuators accept inputs and
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12
Dynamical Systems Review
◮ The car’s behavior is
◮ Actuators accept inputs and
◮ It should follow a reference
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12
Dynamical Systems Review
◮ The car’s behavior is
◮ Actuators accept inputs and
◮ It should follow a reference
◮ Our controller feeds inputs
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12
Dynamical Systems Review
◮ It is often nice to work with Linear Time-Invariant Systems
◮ When systems are nonlinear, we can create linear approximations
L δ(t) − V ˙
◮ Keep in mind the approximations get worse as we get further from
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 4 / 12
Dynamical Systems Review
◮ We’d like to tune our controller to keep
◮ How do we systematically examine how
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 5 / 12
Dynamical Systems Review
◮ We’d like to tune our controller to keep
◮ How do we systematically examine how
◮ Frequency response ◮ Impulse response ◮ Step response
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 5 / 12
Control Response
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 6 / 12
Control Response
◮ Impulse response is very useful for
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 7 / 12
Control Response
◮ Impulse response is very useful for
◮ Time trace after Dirac delta input ◮ Time-domain equivalent to Laplace
domain transfer function
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 7 / 12
Control Response
◮ Impulse response is very useful for
◮ Time trace after Dirac delta input ◮ Time-domain equivalent to Laplace
domain transfer function
◮ But we can’t give our car an infinite
input (and if we could we wouldn’t want to)
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 7 / 12
Control Response
◮ Impulse response is very useful for
◮ Time trace after Dirac delta input ◮ Time-domain equivalent to Laplace
domain transfer function
◮ But we can’t give our car an infinite
input (and if we could we wouldn’t want to)
◮ Instead, we often use step responses
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 7 / 12
Control Response
◮ We can use the step response to tell
◮ General tips:
◮ Often easiest to begin with only
proportional feedback, then add other terms later
◮ Higher gains improve tracking, but ... ◮ Extremely high gains cause jittering
and shaking (or even instability)
◮ Time delay causes instability Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 8 / 12
Control Response
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12
Control Response
◮ Note the steering
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12
Control Response
◮ Note the steering
◮ P is too high
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12
Control Response
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 10 / 12
Control Response
◮ Note the jittery steering
◮ P 1/2 of before, but D is
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 10 / 12
Control Response
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 11 / 12
Control Response
◮ Looking better ◮ P 3/4 of original, D 1/3
Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 11 / 12
Summary
◮ Save telemetry data! ◮ Look at step responses and control signals
Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 12 / 12