eecs 192 mechatronics design lab
play

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. 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

  2. Dynamical Systems Review Dynamical Systems Review Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 2 / 12

  3. Dynamical Systems Review Dynamical Systems ◮ The car’s behavior is described by state variables (e.g. position, velocity) ◮ Actuators accept inputs and sensors read outputs (e.g. PWM, camera line) Car System Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12

  4. Dynamical Systems Review Dynamical Systems ◮ The car’s behavior is described by state variables (e.g. position, velocity) ◮ Actuators accept inputs and sensors read outputs (e.g. PWM, camera line) Car System Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12

  5. Dynamical Systems Review Dynamical Systems ◮ The car’s behavior is described by state variables (e.g. position, velocity) ◮ Actuators accept inputs and sensors read outputs (e.g. PWM, camera line) ◮ It should follow a reference (lateral displacement & Reference track, velocity & setpoint) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12

  6. Dynamical Systems Review Dynamical Systems ◮ The car’s behavior is described by state variables (e.g. position, velocity) ◮ Actuators accept inputs and sensors read outputs (e.g. PWM, camera line) ◮ It should follow a reference (lateral displacement & Closed Loop System track, velocity & setpoint) ◮ Our controller feeds inputs to the system to achieve this (servo angle, motor PWM) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 3 / 12

  7. Dynamical Systems Review Dynamical Systems ◮ It is often nice to work with Linear Time-Invariant Systems x ( t ) = Ax ( t ) + Bu ( t ) ˙ y ( t ) = Cx ( t ) + Du ( t ) ◮ When systems are nonlinear, we can create linear approximations about operating points y = − V 2 L δ ( t ) − V ˙ (what is ¨ δ ( t ) ?) ◮ Keep in mind the approximations get worse as we get further from our operating point Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 4 / 12

  8. Dynamical Systems Review Control Tuning ◮ We’d like to tune our controller to keep the car close to the track while it runs as fast as possible . ◮ How do we systematically examine how it’s doing? What to do about my crazy car? Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 5 / 12

  9. Dynamical Systems Review Control Tuning ◮ We’d like to tune our controller to keep the car close to the track while it runs as fast as possible . ◮ How do we systematically examine how it’s doing? ◮ Frequency response ◮ Impulse response ◮ Step response What to do about my crazy car? Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 5 / 12

  10. Control Response Control Response Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 6 / 12

  11. Control Response Responses ◮ Impulse response is very useful for analyzing the system Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 7 / 12

  12. Control Response Responses ◮ Impulse response is very useful for analyzing the system ◮ 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

  13. Control Response Responses ◮ Impulse response is very useful for analyzing the system ◮ 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

  14. Control Response Responses ◮ Impulse response is very useful for analyzing the system ◮ 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

  15. Control Response Step Response ◮ We can use the step response to tell how we should adjust PID gains ◮ 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

  16. Control Response Step Response Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12

  17. Control Response Step Response ◮ Note the steering saturation. Is the linear approximation good? Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12

  18. Control Response Step Response ◮ Note the steering saturation. Is the linear approximation good? ◮ P is too high Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 9 / 12

  19. Control Response Step Response Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 10 / 12

  20. Control Response Step Response ◮ Note the jittery steering input ◮ P 1/2 of before, but D is too high Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 10 / 12

  21. Control Response Step Response Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 11 / 12

  22. Control Response Step Response ◮ Looking better ◮ P 3/4 of original, D 1/3 of earlier Time (s) Ducky (UCB EECS) Mechatronics Design Lab 3 & 4 Apr 2019 (Week 10) 11 / 12

  23. Summary 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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend