Control 3 Keypoints: PID control

Slides:



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

PID Control for Embedded Systems
PID Controllers and PID tuning
Unit 4 The Performance of Second Order System 中華技術學院電子系 副教授 蔡樸生 副教授 林盈灝.
Design with Root Locus Lecture 9.
Chapter 4: Basic Properties of Feedback
PID Control -1 + Professor Walter W. Olson
CHE 185 – PROCESS CONTROL AND DYNAMICS
Introduction to Control: How Its Done In Robotics R. Lindeke, Ph. D. ME 4135.
The City College of New York 1 Jizhong Xiao Department of Electrical Engineering City College of New York Manipulator Control Introduction.
Chapter 10 – The Design of Feedback Control Systems
Chapter 10 – The Design of Feedback Control Systems PID Compensation Networks.
ECE 4951 Lecture 5: PID Control of Processes. PID Control A closed loop (feedback) control system, generally with Single Input-Single Output (SISO) A.
Transient and steady state response (cont.)
Control Theory (2) Jeremy Wyatt School of Computer Science University of Birmingham.
Design of Control Systems Cascade Root Locus Design This is the first lecture devoted to the control system design. In the previous lectures we laid the.
LECTURE#11 PID CONTROL AUTOMATION & ROBOTICS
PID Control and Root Locus Method
Lecture 4: Basic Concepts in Control CS 344R: Robotics Benjamin Kuipers.
Lecture 5: PID Control.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Control 2 Keypoints: Given desired behaviour, determine control signals Inverse models: Inverting the forward model for simple linear dynamic system Problems.
Ch. 6 Single Variable Control
INC341 Design with Root Locus
Lecture 18. Electric Motors simple motor equations and their application 1.
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.
Control 1 Keypoints: The control problem Forward models: –Geometric –Kinetic –Dynamic Process characteristics for a simple linear dynamic system.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Feedback Control.
20/10/2009 IVR Herrmann IVR:Control Theory OVERVIEW Control problems Kinematics Examples of control in a physical system A simple approach to kinematic.
ME 335 Boğaziçi University A Study on Motor Speed Control.
Introduction to ROBOTICS
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,
Control of Robot Manipulators
27/10/2009 IVR Herrmann 1 IVR: Control Theory OVERVIEW Given desired behaviour, determine control signals Inverse models: – Inverting the forward model.
Feedback Control system
Lecture 5: Basic Dynamical Systems CS 344R: Robotics Benjamin Kuipers.
Design Realization lecture 22
Modern Control System EKT 308
MESB374 System Modeling and Analysis PID Controller Design
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.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
Lecture 17: Introduction to Control (part III)
Subsea Control and Communications Systems
Chapter 5 Dynamics and Regulation of Low-order Systems
Features of PID Controllers
Lecture 16: Introduction to Control (Part II)
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.
Control. 3 Motion Control (kinematic control) for mobile platform The objective of a kinematic controller is to follow a trajectory described by its position.
Lecture 9: PID Controller.
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
BIRLA VISHWAKARMA MAHAVIDHYALAYA ELECTRONICS & TELECOMUNICATION DEPARTMENT o – ANKUR BUSA o – KHUSHBOO DESAI UNDER THE GUIDENCE.
ABE425 Engineering Measurement Systems ABE425 Engineering Measurement Systems PID Control Dr. Tony E. Grift Dept. of Agricultural & Biological Engineering.
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.
PID Control for Embedded Systems
Salman Bin Abdulaziz University
PID Control Systems (Proportional, Integral, Derivative)
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.
Design via Root Locus (Textbook Ch.9).
Lec 14. PID Controller Design
Control Loops Nick Schatz FRC 3184.
PID Controller.
Basic Design of PID Controller
Chapter 9 Design via Root Locus <<<4.1>>>
Chapter 9 Design via Root Locus <<<4.1>>>
Dynamical Systems Basics
Control.
The Design of Feedback Control Systems
Chapter 7 Inverse Dynamics Control
Presentation transcript:

Control 3 Keypoints: PID control Steady-state error and the integral method Overshoot and ringing in system with time delay Overshoot and ringing in second order systems The derivative method

PID control P = Proportional error I = Integral D = Derivative A standard and very useful method for augmenting simple feedback control E.g. used in wheel position/speed control in the Khepera

Proportional error control Desired output Control Law Motor command Robot in environment Disturbances Actual output Measurement Same as servo, i.e. using a control signal proportional to the difference between the actual (measured) output and the desired (target) output. I.e. want to make large change when error is large, small change if error is small

Steady state error Servo control law: New process: Battery voltage VB Vehicle speed s ? gain=K sgoal s With steady state (ds/dt=0): Steady state error:

Steady state error k1 is determined by the motor physics: e= k1 s Battery voltage VB Vehicle speed s ? gain=K sgoal s k1 is determined by the motor physics: e= k1 s Can choose Kp: to reach target want But we can’t put an infinite voltage into our motor!

Steady state error For any sensible Kp the system will undershoot the target velocity. s sgoal t

Proportional Integral (PI) Control If we could estimate this error we could add it to the control signal: The best way to estimate it is to integrate the error over time: Obtain new control law: Basically, this sums some fraction of the error until the error is reduced to zero. With careful choice of Kp and Ki this can eliminate the steady state error.

Feedback with time delays Desired output Control Law Motor command Robot in environment Disturbances Actual output Measurement Imagine trying to move a robot to some zero position with the simple control law: If xt < -δ move forward at 1cm/second, If xt > δ move backward at 1cm/second, If -δ < xt < δ stop What happens if there is a 1 second delay in feedback?

Feedback with time delays In general, a time-lag in a feedback loop will result in overshoot and oscillation. Depending on the dynamics, the oscillation could fade out, continue or increase. Sometimes we want oscillation, e.g. CPG

Central Pattern Generators Many movements in animals, and robots, are rhythmic, e.g. walking Rather than explicitly controlling position, can exploit an oscillatory process, e.g. If A is tonically active, it will excite B When B becomes active it inhibits A When A is inhibited, it stops exciting B When B is inactive it stops inhibiting A A B

Feedback with time delays In general, a time-lag in a feedback loop will result in overshoot and oscillation. Depending on the dynamics, the oscillation could fade out, continue or increase. Sometimes we want oscillation, e.g. CPG Note that integration introduces a time delay. Time delays are equivalent to energy storage e.g. inertia will cause similar effects.

AmplificationK of current I Second order system Need more sophisticated model for oscillations AmplificationK of current I Output torque T θ error θgoal Want to move to desired postion θgoal For a dc motor on a robot joint where J = joint inertia, F = joint friction Proportional control:

Second order system solution For simplicity let Then the system process is The solution to this equation has the form The system behaviour depends on J,F,Kp as follows: where [May be complex]

Over and Under Damping The system returns to the goal The system returns to the goal with over-damping The system returns to the goal with under-damped, sinusoidal behaviour

Steady state error – Load Droop If the system has to hold a load against gravity, it requires a constant torque But PE controller cannot do this without error, as torque is proportional to error (so, needs some error) If we knew the load L could use But in practice this is not often possible

Proportional integral (PI) control As before, we integrate the error over time, i.e. Effectively this gradually increases L until it produces enough torque to compensate for the load PI copes with Load Droop

Proportional derivative (PD) control Commonly, inertia is large and friction small Consequently the system overshoots, reverses the error and control signal, overshoots again… To actively brake the motion, we want to apply negative torque when error is small and velocity high Make Artificial friction:

Combine as PID control Kp θ error θg Ki Kdd/dt Torque

PID control demo Rearranging becomes (almost) solveable as:

PID control demo II Pure proportional control with friction & inertia Overdamped, overshoot, oscillate Choosing Kp, Kd, Ki a bit tricky

PID control demo III Use Kp=0.003 Add integral control Less overdamped, overshoot, oscillate

PID control demo IV Add derivative control Less overdamped, overshoot, oscillate

PID control demo V Goal: track oscillating goal position (red) Original Kp=0.003 gain lags, undershoots Kp=0.006 ok, but lags. Kp=0.03 tracks better but overshoots

Further reading: Most standard control textbooks discuss PID control. For the research on robot juggling see: Rizzi, A.A. & Koditschek, D.E. (1994) Further progress in robot juggling: Solvable mirror laws. IEEE International Conference on Robotics and Automation 2935-2940 S. Schaal and C.G. Atkeson. Open Loop Stable Control Strategies for Robot Juggling. In Proc. IEEE Conf. Robotics and Automation, pages 913 -- 918, Atlanta, Georgia, 1993. CPGs are used in many more recent examples of walking robots.