Design Realization lecture 22

Slides:



Advertisements
Similar presentations
PID Control for Embedded Systems
Advertisements

PID Controllers and PID tuning
Discrete Controller Design
Chapter 4: Basic Properties of Feedback
Add and Use a Sensor & Autonomous For FIRST Robotics
Digital Control Systems INTRODUCTION. Introduction What is a control system? Objective: To make the system OUTPUT and the desired REFERENCE as close as.
TECHNION - ISRAEL INSTITUTE OF TECHNOLOGY Department of Electrical Engineering Control and Robotics Lab Design a digitally controlled analog PID controller.
Slobodan Lubura. Model-Based-System Design use the models to describe the specifications, operation, performance of a component or a system of components.
Oscillator principle Oscillators are circuits that generate periodic signals. An oscillator converts DC power from power supply to AC signals power spontaneously.
ECE 4951 Lecture 5: PID Control of Processes. PID Control A closed loop (feedback) control system, generally with Single Input-Single Output (SISO) A.
Design Realization lecture 23
Design of a Control Workstation for Controller Algorithm Testing Aaron Mahaffey Dave Tastsides Dr. Dempsey.
EE311: Junior EE Lab Phase Locked Loop J. Carroll 9/3/02.
Sensors - 1 Intro to Sensors. Sensors - 2 Physical Principles of Sensing Generation of electrical signals in response to nonelectrical influences Electric.
ME 270 Final Project Presentation Operational Amplifiers.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
MoBIES meeting Deerfield Beach ETC Challenge Problem ETC Model Requirements Simulation results Parametric verification Results Towards a Checkmate model.
Lab # 01 Introduction of Modules
Experimental determination of motor model parameters ETEC6419.
AUTOMATIC VOLTAGE REGULATOR(AVR)
1 L Fall 2003 – Introductory Digital Systems Laboratory Motors and Position Determination.
1. 2 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion.
1 Fundamentals of Microelectronics  CH1 Why Microelectronics?  CH2 Basic Physics of Semiconductors  CH3 Diode Circuits  CH4 Physics of Bipolar Transistors.
Proportional control Consider forward path gain A Feedback and Control If the size of the loop gain is large, that is if |A  >> 1, then or.
ME 335 Boğaziçi University A Study on Motor Speed Control.
INC341 Design Using Graphical Tool (continue)
Exploring Engineering Chapter 10 Control Systems and Mechatronics.
Low Level Control. Control System Components The main components of a control system are The plant, or the process that is being controlled The controller,
Session 6 - Sensor Modelling
Feedback Control system
Final Exam M.Eng. Amjad Elshenawy RTECS Gc(s)Gc(s) Gc(s)Gc(s) Controller   n sensor noise  w load disturbance  Gp(s)Gp(s) Gp(s)Gp(s) Plant.
PID CONTROLLERS By Harshal Inamdar.
IVR 30/10/2009 Herrmann1 IVR: Control Theory Overview: PID control Steady-state error and the integral method Overshoot and ringing in system with time.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
ME 431 System Dynamics Dept of Mechanical Engineering.
PID Control of Car Position Exercises in Manual Tuning.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
Lec 11. Common Controllers Some commonly used controllers –Proportional Controller –Integration Controller –Derivative Controller Reading: 5-8. TexPoint.
Cruise Control 3 RETURN OF THE SPEED CONTROL JEFF FERGUSON, TOM LEICK.
ECE 576 – Power System Dynamics and Stability
ENTC 395 Lecture 7a. Today 4 PID control –Overview –Definitions –Open loop response 4 Example –SIMULINK implementation.
Control 3 Keypoints: PID control
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation.
Embedded Control Systems Dr. Bonnie Heck School of ECE Georgia Tech.
Lecture 9: PID Controller.
Modern Control Systems Lab#04 PID Position and speed control of D.C Motor Dr. Imtiaz Hussain
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Control Engineering. Introduction What we will discuss in this introduction: – What is control engineering? – What are the main types of control systems?
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Intelligent Control Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics.
Operational Amplifiers
EEN-E1040 Measurement and Control of Energy Systems Control I: Control, processes, PID controllers and PID tuning Nov 3rd 2016 If not marked otherwise,
PID Control for Embedded Systems
Optical PLL for homodyne detection
Operational Amplifiers
PID Controllers Jordan smallwood.
Digital Control Systems
DNT Control Principle Frequency Response Techniques DNT Control Principle.
Basic Design of PID Controller
Electronic Control Systems Week 7 – PID Control
Chapter 9 Design via Root Locus <<<4.1>>>
Quanser Rotary Family Experiments
Feedback: Principles & Analysis
Vehicle Dynamics Modeling and Control
Motors and Position Determination
Feedback Controllers Chapter 8
PID Controller Design and
Presentation transcript:

Design Realization lecture 22 John Canny 11/6/03

Last time Some physics: Construction methods: Bending and stretching Molding Welding Structural components Modular systems

This time Circuit design critique Control principles Simulation – Matlab/Simulink

Feedback Control Often we want to move a system in a particular way, by controlling a parameter such as: Position control Speed control Force control Feedback control uses sensor(s) to measure this parameter and make corrections. Feedback must be applied with care to avoid ever-increasing corrections (instability).

Potentiometer on shaft (angle sensor) Feedback Control Naively, we want to do something like this: V+ Amplifier - + Input (voltage representing desired angle) Potentiometer on shaft (angle sensor) Motor

Potentiometer on shaft (angle sensor) Feedback Control Any difference between input and measured shaft angle will be amplified, moving the motor. If the direction is correct, the motor will reduce the difference. With high gain, the error  0. V+ Amplifier - + Input Potentiometer on shaft (angle sensor) Motor

Simulink Models Tools like Matlab/Simulink allow us to design and test controllers before building them. Here is the controller just shown in Simulink: Voltage angle

Feedback Instability Problem: the amplifier has delay, the motor has inertia, keeps moving even after error  0. If gain is too high, it will overshoot, “ring” or possibly oscillate.

PD Stabilizing Controller The simplest way to control feedback is with a “PD” (Proportional Derivative) controller. A multiple of the derivative of the output is subtracted from the amplifier input.

PD Stabilization Why does derivative feedback stabilize the system? Derivative feedback simulates a damper. Motion in a fluid creates viscous drag (F  -v). Viscous drag quickly robs the system of energy.

PID Control Sometimes there is a residual error between desired and actual output (not for DC motors). Computing the integral of the difference signal will reduce it to zero in the steady state.

PID Tracking Controller All three terms P,I,D are computed on the difference signal: PID controller

Implementing PID Controllers Normally, the controller CPU is running at fixed discrete time steps. Derivates can be computed by differencing consecutive samples, integrals by summing samples. This approach introduces delays and can cause problems at high frequency. Make sure that amplifiers “roll off” at high frequency – use a low-pass amplifier.

Discrete lowpass amplifier Input is (x1,…,xn), output is (y1,…,yn) yk = a yk-1 + (1-a)b xk a, b constants, a < 1. If x = 0, y non-zero, then the amplifier outputs a decreasing geometric sequence, which is a discrete approximation to exponential decay. It simulates a simple RC low-pass circuit.

Discrete lowpass amplifier The amplifier’s DC Gain is b Corner frequency c = (- ln a)/t = 2fc where t is the discrete step time.

Automatic code generation There is a companion to Matlab/Simulink called “real-time workshop” (RTW). RTW automatically generates C code to run a Simulink model. It can handle new user-defined blocks (e.g. for sensor input or motor output). This code can be compiled and run on the control processor.

Automatic code generation RTW code generation includes scheduling and event-handling and allows blocks to run at different rates. It also allows complicated models that may not run correctly with a simple discrete-step approximation.