Design Realization lecture 23

Slides:



Advertisements
Similar presentations
ERT 210 Process Control & dynamics
Advertisements

PID Controllers and PID tuning
Neural Simulation and Control.. Simulation Input/Output models Proces u(k) y(k+d) d(k) The NARMA model:
1 In this lecture, you will learn the following. 1. Basics of real-time control engineering 2. Effects of fixed and unfixed (also probably unknown) sampling.
 (x) f(x,u) u x f(x,  (x) x. Example: Using feed-forward, what should be canceled?
Objectives Control Terminology Types of controllers –Differences Controls in the real world –Problems –Response time vs. stability.
Chapter 4: Basic Properties of Feedback
Sensors Interfacing.
Guitar Effects Processor Using DSP
Description of Systems M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl 1.
280 SYSTEM IDENTIFICATION The System Identification Problem is to estimate a model of a system based on input-output data. Basic Configuration continuous.
Oscillator principle Oscillators are circuits that generate periodic signals. An oscillator converts DC power from power supply to AC signals power spontaneously.
Concurrent & Distributed Systems Lecture 5: Semaphores and Synchronisation Concurrent processes which don’t interact in some way don’t form an interesting.
Department of EECS University of California, Berkeley EECS 105 Fall 2003, Lecture 2 Lecture 2: Transfer Functions Prof. Niknejad.
Guitar Effects Processor Critical Design Review October, 07, 2003 Groups Members: Adam Bernstein Hosam Ghaith Jasenko Alagic Matthew Iyer Yousef Alyousef.
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.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Frequency Responses Up to now, we have learnt –ac circuit analysis with periodic sources (fixed frequency, if multiple frequencies, use superposition principle)
LECTURE#11 PID CONTROL AUTOMATION & ROBOTICS
Objective of Lecture Discuss analog computing and the application of 1 st order operational amplifier circuits. Derive the equations that relate the output.
ME 270 Final Project Presentation Operational Amplifiers.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Implementation of adaptive control algorithm based on SPOC form
LAB 1 MATLAB, dSPACE and Simulink
Chapter 6 Control Using Wireless Throttling Valves.
1. 2 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion.
1  (x) f(x,u) u x f(x,  (x) x Example: Using feed-forward, what should be canceled?
Brief Review of Control Theory
1 Fundamentals of Microelectronics  CH1 Why Microelectronics?  CH2 Basic Physics of Semiconductors  CH3 Diode Circuits  CH4 Physics of Bipolar Transistors.
To clarify the statements, we present the following simple, closed-loop system where x(t) is a tracking error signal, is an unknown nonlinear function,
M.S. Thesis Defense Jason Anderson Electrical and Computer Engineering Dept. Clemson University.
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,
Feedback Control system
Design Realization lecture 22
Lab 3 Real-Time Control of a Hot Air Plant using RTOS µC/OSII Due Date: Week of Nov. 2 nd, 2010.
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.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
ECE 576 – Power System Dynamics and Stability
Automatic Equalization for Live Venue Sound Systems Damien Dooley, Final Year ECE Progress To Date, Monday 21 st January 2008.
Digital Control CSE 421.
Control 3 Keypoints: PID control
UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
Embedded Control Systems Dr. Bonnie Heck School of ECE Georgia Tech.
Lecture 9: PID Controller.
1 Chapter 8 Operational Amplifier as A Black Box  8.1 General Considerations  8.2 Op-Amp-Based Circuits  8.3 Nonlinear Functions  8.4 Op-Amp Nonidealities.
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.
EKT 314/4 WEEK 5 : CHAPTER 3 SIGNAL CONDITIONING ELECTRONIC INSTRUMENTATION.
Get your software working before putting it on the robot!
Lecture Notes / PPT UNIT III
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
Digital Control CSE 421.
Chapter 1: Overview of Control
Operational Amplifiers
PID Controllers Jordan smallwood.
Embedded Systems Design
Chapter 9 Design via Root Locus <<<4.1>>>
Vehicle Dynamics Modeling and Control
Feedback Controllers Chapter 8
Chapter 7 Converters.
PID Controller Design and
Presentation transcript:

Design Realization lecture 23 John Canny 11/13/03

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

This time Finish circuit design critique Graphical programming and real-time control (Simulink). Automatic real-time code generation (Real-Time Workshop).

PD Control In addition to position feedback, a multiple of the velocity (derivative) is fed back as well to stabilize the system:

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

Example2: Pendubot A two-axis robot. The first (blue) link is driven, the second (red) link is passive. The model includes gravity, and is quite non-linear.

Example2: Pendubot Use feedback and feedforward PID blocks to stabilize two oscillatory modes.

Implementing PID Controllers Normally, the controller CPU is running at fixed discrete time steps. Derivatives can be computed by differencing consecutive samples, integrals by summing samples since time zero. 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.

Transfer functions The variable s represents frequency: T(s) = 1/s is an integrator T(s) = s is a derivative operator T(s) = 1/(a + bs) is a low-pass filter with corner frequency a/b T(s) = (c + ds) is a high-pass filter with corner frequency c/d T(s) = (a + bs)/(c + ds) is a general gain block, DC gain = a/c, high frequency gain = b/d.

Real-time Simulink execution Simulink does not have a real-time clock (at least under Windows), and runs in virtual time. It can be driven in real-time if one of its blocks (especially input/output blocks) updates at regular real-time speed. The remainder of the Simulink code must run fast enough to keep up.

Example: Real-time Theremin Model 1-wire sensors control pitch and volume. Real-time sound output via sound card.

Example: Real-time Simulink Model The simsound block includes a separate thread which sends data to the sound card. This thread signals the main program thread with a semaphore when it is ready to accept data, or when its buffer is full. The buffer contains data with time stamps at the desired real-time update rate. Simulink runs a little faster than the sound card update rate, and the sound thread interpolates from Simulink’s timestamps to real time.

Example: Real-time Simulink Model The AtoD block also includes a separate thread to acquire A-to-D input data. This thread runs as fast as it can to provide the most up-to-date sensor data to the running simulation.

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.

Summary Feedback control methods: PD and PID. Feedforward control. Real-time use of Simulink. Code generation with Real-Time Workshop.