CSCI1600: Embedded and Real Time Software Lecture 12: Modeling V: Control Systems and Feedback Steven Reiss, Fall 2015.

Slides:



Advertisements
Similar presentations
Unit 4 The Performance of Second Order System Open Loop & Close Loop Open Loop: Close Loop:
Advertisements

PID Control Professor Walter W. Olson
PID Control for Embedded Systems
Controllers Daniel Mosse cs1657 cs1567.
PID Controllers and PID tuning
Control Architectures: Feed Forward, Feedback, Ratio, and Cascade
Chapter 4: Basic Properties of Feedback
Some terminology When the relation between variables are expressed in this manner, we call the relevant equation(s) mathematical models The intercept and.
PID Control -1 + Professor Walter W. Olson
LECTURE#10 PID CONTROLLER
Electric Drives FEEDBACK LINEARIZED CONTROL Vector control was invented to produce separate flux and torque control as it is implicitely possible.
The Proportional-Integral-Derivative Controller
CHE 185 – PROCESS CONTROL AND DYNAMICS
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 9: Control Systems.
ECE 4951 Lecture 5: PID Control of Processes. PID Control A closed loop (feedback) control system, generally with Single Input-Single Output (SISO) A.
Roberto - Balancing Robot RIT Computer Engineering Senior Design Project.
Process Control Instrumentation II
Chemical Process Controls: PID control, part II Tuning
Intelligent Steering Using PID controllers
LECTURE#11 PID CONTROL AUTOMATION & ROBOTICS
12/6/04BAE Advanced Embedded Systems Design Lecture 14 Implementation of a PID controller BAE Fall 2004 Instructor: Marvin Stone Biosystems.
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Automatic Control Mike Robinson. You can measure the distance from the RC car to some target. What could your program do to keep the car as close to the.
Agenda Path smoothing PID Graph slam.
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.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Feedback Control.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 9: Control Systems.
Proportional Integral Differential (PID) Control
oPEN Simulation Environment PENSE PENSE PENSE is a simulation framework written in C++ using fully object oriented design patterns and it's designed.
Control Theory in Industry, Robotics and Infrastructure
PID. The proportional term produces an output value that is proportional to the current error value. Kp, called the proportional gain constant.
PID CONTROLLERS By Harshal Inamdar.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
PID Control of Car Position Exercises in Manual Tuning.
CSCI1600: Embedded and Real Time Software Lecture 8: Modeling III: Hybrid Systems Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 6: Modeling I: Continuous Systems Steven Reiss, Fall 2015.
Basics of control Lin Zhong ELEC424, Fall
CSCI1600: Embedded and Real Time Software Lecture 14: Input/Output II Steven Reiss, Fall 2015.
Lecture 16: Introduction to Control (Part II)
Lecture 9: PID Controller.
BIRLA VISHWAKARMA MAHAVIDHYALAYA ELECTRONICS & TELECOMUNICATION DEPARTMENT o – ANKUR BUSA o – KHUSHBOO DESAI UNDER THE GUIDENCE.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Process Control. Feedback control y sp = set point (target value) y = measured value The process information (y) is fed back to the controller The objective.
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
Salman Bin Abdulaziz University
PID Control Systems (Proportional, Integral, Derivative)
Automatic control systems I. Nonlinearities in Control System
Chapter 7 The Root Locus Method The root-locus method is a powerful tool for designing and analyzing feedback control systems The Root Locus Concept The.
Presentation at NI Day April 2010 Lillestrøm, Norway
Feedback Control System
Control Loops Nick Schatz FRC 3184.
CSCI1600: Embedded and Real Time Software
6: Processor-based Control Systems
Basic Design of PID Controller
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
دانشگاه صنعتي اميركبير
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Dynamical Systems Basics
Advanced LabVIEW
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
A Tutorial Overview Proportional Integral Derivative.
PID Line Follower.
Presentation transcript:

CSCI1600: Embedded and Real Time Software Lecture 12: Modeling V: Control Systems and Feedback Steven Reiss, Fall 2015

Control Systems  Desired output value: target value  Actual output value: measured value  Actuator input: controls the plant’s behavior  Error: desired - actual

Control Variables  The actuator input can be binary or continuous  Amount of heat, turn, gas, …  Turn left/right, turn on heat, accelerate  The outputs (and error) can be a vector or a scalar  Optimize for a single factor (speed, temperature, …)  Optimize for multiple factors (temp + humidity, …)

On-Off Control  Suppose we do the simple thing for a heater  If actual temp < target then turn on heater, else off  What is going to happen to the temperature  Overshoot  Time to heat up (undershoot)  Oscillation

Smarter On-Off Control  A little more sophisticated  temp < target – delta1 : HEAT ON  temp >= target – delta2 : HEAT OFF  temp > target + delta3 : COOL ON  temp <= target + delta4 : COOL OFF  What’s going to happen here  What is it is very cold (hot) outside

Proportional Control  Suppose we have control over the actuator  Can give it a range of values (low/high, continuous, …)  Acceleration in a car, heater with low/high flame (emergency mode), variable speed fan  What would we want to do in that case

Proportional Control  Make the actuator input proportional to the error  Large error -> large input (accelerate fast)  Small error -> small input (accelerate slow)  No error -> do nothing  Assume doing nothing drives system the other way  Or that there is a corresponding input on the other side  Actuator = Kp * Error

Problem: What should Kp be  Should be > 0  Actual value depends on the system  How could you determine the value?  Modeling  Mathematics  Experimentation

Is This Sufficient  Will it eliminate overshoot, oscillation, slow rise time  Depends on the actual system  If the system is not perfectly linear or the actuator is not immediate, then probably not  We can do better

Proportional-Derivative Control  A and B are two situations leading to point T  What should the output be for each?

Proportional-Derivative Control  Want to take the rate of change into account  Fast rate – slow down the response  Slow rate – speed up the response  Actuator = Kp * error - Kd * deriv  deriv = the derivative of the error  deriv = change in error over time  deriv = change in error from last time to this

Choosing Kp and Kd  Now we have two parameters to determine  How could you do this  Generally Kd is > Kp  Note the Kd is subtracted, but stated as positive

Is This Sufficient  Steady state error  How could this occur

Determining Steady State Error  Look at the sum of the error  In the past  Not necessarily full past  Or constrain in bounds  This is the integral of the error  How might you compute this

Computing Integral of Error  Approximate with sum  integ = integ + error;  if (integ > MAX) integ = MAX;  else if (integ < MIN) integ = MIN  Actuator = Kp*error – Kd*deriv + Ki*integ  Ki now needs to be chosen  Typically much smaller than Kp

Issues in Controllers  Actual input might have a limit range/set of values  Set the actuator to the nearest value  Off/on based on threshold  Sampling rate affects the computation  Might want to average the derivative  Computations are typically non-integer

Understanding PID  evel evel 

PID Tuning  Set Ki=0, Kd=0, Kp=1  Increase Kp until the actual oscillates with a constant amplitude  Let U = this Kp  Let P = oscillation period (in seconds)  Set Kp = U/1.7, Ki = (Kp*2), Kd = (Kp*P)/8

PID Tuning  In general requires a bit of sophistication  Control theory  Control system design  Control engineers

For More Information  Wikipedia : PID  PID-without-a-PhD

Homework  Design a SIMON game   What are the tasks  What types of models are appropriate  Develop appropriate models (of at least one task)  Be prepared to show and explain models for the tasks  Be prepared to hand in the models