System Modeling: Motor position, θ The physical parameters for the dc motor are:

Similar documents
DC Motor Position: System Modeling

Example: DC Motor Speed Modeling

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

EEL2216 Control Theory CT1: PID Controller Design

FEEDBACK CONTROL SYSTEMS

King Saud University

LabVIEW 开发技术丛书 控制设计与仿真实战篇

Dept. of EEE, KUET, Sessional on EE 3202: Expt. # 1 2k15 Batch

3 Lab 3: DC Motor Transfer Function Estimation by Explicit Measurement

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

EE 422G - Signals and Systems Laboratory

CHAPTER 1 Basic Concepts of Control System. CHAPTER 6 Hydraulic Control System

Lab 3: Quanser Hardware and Proportional Control

Outline. Classical Control. Lecture 5

Lab 3: Model based Position Control of a Cart

PID Control. Objectives

R10 JNTUWORLD B 1 M 1 K 2 M 2. f(t) Figure 1

PID controllers. Laith Batarseh. PID controllers

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Mechatronics Engineering. Li Wen

Feedback Control Systems

Positioning Servo Design Example

Video 5.1 Vijay Kumar and Ani Hsieh

Control 2. Proportional and Integral control

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BSC (HONS) MECHATRONICS TOP-UP SEMESTER 1 EXAMINATION 2017/2018 ADVANCED MECHATRONIC SYSTEMS

LIAPUNOV S STABILITY THEORY-BASED MODEL REFERENCE ADAPTIVE CONTROL FOR DC MOTOR

Position Control Experiment MAE171a

Application Note #3413

Mathematical Modeling and Dynamic Simulation of DC Motors using MATLAB/Simulink Environment

Root Locus. Motivation Sketching Root Locus Examples. School of Mechanical Engineering Purdue University. ME375 Root Locus - 1

ME 3210 Mechatronics II Laboratory Lab 4: DC Motor Characteristics

State Feedback Controller for Position Control of a Flexible Link

ECE317 : Feedback and Control

R a) Compare open loop and closed loop control systems. b) Clearly bring out, from basics, Force-current and Force-Voltage analogies.

EDEXCEL NATIONALS UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES. ASSIGNMENT No. 3 - ELECTRO MAGNETIC INDUCTION

The basic principle to be used in mechanical systems to derive a mathematical model is Newton s law,

Course Summary. The course cannot be summarized in one lecture.

MATHEMATICAL MODELING OF OPEN LOOP PMDC MOTOR USING MATLAB/SIMULINK

Overview of motors and motion control

School of Mechanical Engineering Purdue University. ME375 ElectroMechanical - 1

System Parameters and Frequency Response MAE 433 Spring 2012 Lab 2

Survey of Methods of Combining Velocity Profiles with Position control

International Journal of Advance Research in Computer Science and Management Studies

Inverted Pendulum: State-Space Methods for Controller Design

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

ME 375 Final Examination Thursday, May 7, 2015 SOLUTION

ENGG4420 LECTURE 7. CHAPTER 1 BY RADU MURESAN Page 1. September :29 PM

Introduction to Feedback Control

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

IMPROVED TECHNIQUE OF MULTI-STAGE COMPENSATION. K. M. Yanev A. Obok Opok

DOUBLE ARM JUGGLING SYSTEM Progress Presentation ECSE-4962 Control Systems Design

6.1 Sketch the z-domain root locus and find the critical gain for the following systems K., the closed-loop characteristic equation is K + z 0.

UNIVERSITY OF WASHINGTON Department of Aeronautics and Astronautics

Control of Electromechanical Systems

Analysis and Design of Control Systems in the Time Domain

QNET DC Motor Control

Laboratory Exercise 1 DC servo

Liapunov s Stability Theory-based Model Reference Adaptive control for DC Motor

Design via Root Locus

Full Order Observer Controller Design for DC Motor Based on State Space Approach

The Application of Anti-windup PI Controller, SIPIC on FOC of PMSM

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) IN BIOMEDICAL ENGINEERING SEMESTER 1 EXAMINATION 2017/2018 ADVANCED BIOMECHATRONIC SYSTEMS

PD, PI, PID Compensation. M. Sami Fadali Professor of Electrical Engineering University of Nevada

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

2.004 Dynamics and Control II Spring 2008

Root Locus Design Example #3

Design via Root Locus

Rotary Motion Servo Plant: SRV02. Rotary Experiment #11: 1-DOF Torsion. 1-DOF Torsion Position Control using QuaRC. Student Manual

AN INTRODUCTION TO THE CONTROL THEORY

Eigenvalues and eigenvectors System Theory: electricmotor

9/9/2011 Classical Control 1

2.010 Fall 2000 Solution of Homework Assignment 8

Control Systems. University Questions

Due Wednesday, February 6th EE/MFS 599 HW #5

Mo de ling, Ide nti cat ion, and Control of a DC-Servomotor

Alireza Mousavi Brunel University

Introduction to Control (034040) lecture no. 2

Acceleration Feedback

UNIVERSITY OF WASHINGTON Department of Aeronautics and Astronautics

EEE 184 Project: Option 1

CHAPTER 7 STEADY-STATE RESPONSE ANALYSES

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Belt Tension Clamp. Drive Motor. Friction Brake. Load. Encoder 2. Drive. (4000 lines/rev incremental) Encoder 1. (4000 lines/rev incremental)

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

Mechatronics Modeling and Analysis of Dynamic Systems Case-Study Exercise

Predictive Cascade Control of DC Motor

Lab Experiment 2: Performance of First order and second order systems

7.4 STEP BY STEP PROCEDURE TO DRAW THE ROOT LOCUS DIAGRAM

Linear Experiment #11: LQR Control. Linear Flexible Joint Cart Plus Single Inverted Pendulum (LFJC+SIP) Student Handout

Simulation of joint position response of 60 kg payload 4-Axes SCARA configuration manipulator taking dynamical effects into consideration

Experiment 81 - Design of a Feedback Control System

Appendix A: Exercise Problems on Classical Feedback Control Theory (Chaps. 1 and 2)

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) IN MECHANICAL ENGINEERING SEMESTER 1EXAMINATION 2017/2018

Introduction to Controls

Evaluation of SIPIC01 and SIPIC02 on Motor Speed Control

What happens when things change. Transient current and voltage relationships in a simple resistive circuit.

YTÜ Mechanical Engineering Department

E11 Lecture 13: Motors. Professor Lape Fall 2010

Transcription:

Dept. of EEE, KUET, Sessional on EE 3202: Expt. # 2 2k15 Batch Experiment No. 02 Name of the experiment: Modeling of Physical systems and study of their closed loop response Objective: (i) (ii) (iii) (iv) (v) (vi) The objective of this experiment is the modeling of physical systems and study of their closed loop response. Study closed loop system with the variation of different parameters of the system Simulation of a dc motor Study of PID controller Study of feedback Check the state-space representation of the system. Introduction: We will consider the following unity feedback controlled system, where the plant is assumed as a dc motor and the controller is used as a P, I, D, PI, PD or PID controller. System Modeling: Motor position, θ The physical parameters for the dc motor are: (J) moment of inertia of the rotor 0.01 kg.m^2 (b) motor viscous friction constant 0.1 N.m.s (Ke) electromotive force constant 0.01 V/rad/sec (Kt) motor torque constant 0.01 N.m/Amp (R) electric resistance 1 Ohm (L) electric inductance 0.5 H Figure: A dc motor System Equations: In SI units, the motor torque and back emf constants are equal, that is, K t = K e ; therefore, we will use K to represent both the motor torque constant and the back emf constant. 1. Transfer Function Applying the Laplace transform, the above modeling equations can be expressed in terms of the Laplace variable s. ( ) ( ) ( ) ( ) ( ) ( ) ( )

Dept. of EEE, KUET, Sessional on EE 3202: Expt. # 2 2k15 Batch We arrive at the following open-loop transfer function by eliminating I(s) between the two above equations, where the rotational speed is considered the output and the armature voltage is considered the input. ( ) ( ) ( ) ( )( ) 2. State-Space In state-space form, the governing equations above can be expressed by choosing the rotational speed and electric current as the state variables. Again the armature voltage is treated as the input and the rotational speed is chosen as the output. [ ] [ ] [ ] [ ] Design requirements First consider that our uncompensated motor rotates at 0.1 rad/sec in steady state for an input voltage of 1 Volt. Since the most basic requirement of a motor is that it should rotate at the desired speed, we will require that the steadystate error of the motor speed be less than 1%. Another performance requirement for our motor is that it must accelerate to its steady-state speed as soon as it turns on. In this case, we want it to have a settling time less than 2 seconds. Also, since a speed faster than the reference may damage the equipment, we want to have a step response with overshoot of less than 5%. In summary, for a unit step command in motor speed, the control system's output should meet the following requirements. Settling time less than 2 seconds Overshoot less than 5% Steady-state error less than 1% MATLAB representation 1. Transfer Function We can represent the above open-loop transfer function of the motor in MATLAB by defining the parameters and transfer function as follows. Running this code in the command window produces the output shown below. J = 0.01; b = 0.1; K = 0.01; R = 1; L = 0.5; s = tf('s'); P_motor = K/((J*s+b)*(L*s+R)+K^2) P_motor = 0.01 --------------------------- Continuous-time transfer function. 0.005 s^2 + 0.06 s + 0.1001 2. State Space We can also represent the system using the state-space equations. The following additional MATLAB commands create a state-space model of the motor and produce the output shown below when run in the MATLAB command window. A = [-b/j K/J -K/L -R/L]; B = [0 1/L]; C = [1 0]; D = 0; motor_ss = ss(a,b,c,d)

The above state-space model can also be generated by converting your existing transfer function model into state-space form. This is again accomplished with the ss command as shown below. motor_ss = ss(p_motor); PID controller: The output of a PID controller, equal to the control input to the plant, in the time-domain is as follows: ( ) ( ) ( ) (1) The transfer function of a PID controller is found by taking the Laplace transform of Eq.(1)., where = Proportional gain = Integral gain = Derivative gain We can define a PID controller in MATLAB using the transfer function directly, for example: Kp = 1; Ki = 1; Kd = 1; s = tf('s'); C = Kp + Ki/s + Kd*s Alternatively, we may use MATLAB's pid controller object to generate an equivalent continuous-time controller as follows: C = pid(kp,ki,kd) Controller = tf(c) The Characteristics of P, I, and D Controllers A proportional controller (K P ) will have the effect of reducing the rise time and will reduce but never eliminate the steady-state error. An integral control (K i ) will have the effect of eliminating the steadystate error for a constant or step input, but it may make the transient response slower. A derivative control (K d ) will have the effect of increasing the stability of the system, reducing the overshoot, and improving the transient response. The effects of each of controller parameters, K p, K i, and K d on a closedloop system are summarized in the table below. CL RESPONSE RISE TIME OVERSHOOT SETTLING TIME S-S ERROR K p Decrease Increase Small Change Decrease K i Decrease Increase Increase Eliminate K d Small Change Decrease Decrease No Change Note that these correlations may not be exactly accurate, because K p, K i, and K d are dependent on each other. In fact, changing one of these variables can change the effect of the other two. For this reason, the table should only be used as a reference when you are determining the values for K p, K i, and K d. General Tips for Designing a PID Controller When you are designing a PID controller for a given system, follow the steps shown below to obtain a desired response. 1. Obtain an open-loop response and determine what needs to be improved 2. Add a proportional control to improve the rise time 3. Add a derivative control to improve the overshoot 4. Add an integral control to eliminate the steady-state error 5. Adjust each of Kp, Ki, and Kd until you obtain a desired overall response. You can always refer to the table shown in this "PID Tutorial" page to find out which controller controls what characteristics. Lastly, please keep in mind that you do not need to implement all three controllers (proportional, derivative, and integral) into a single system, if not necessary. For example, if a PI controller gives a good enough response (like the above example), then you don't need to implement a derivative controller on the system. Keep the controller as simple as possible.

Proportional Control: Let's first try employing a proportional controller with a gain of 100, that is, C(s) = 100. To determine the closed-loop transfer function, we use the feedback command. Add the following code to the end of your m- file. Kp = 100; %% Use Kp = 300; C = pid(kp); Now let's examine the closed-loop step response. Add the following commands to the end of your m-file and run it in the command window. You should generate the plot shown below. You can view some of the system's characteristics by right-clicking on the figure and choosing Characteristics from the resulting menu. In the figure below, annotations have specifically been added for Settling Time, Peak Response, and Steady State. t = 0:0.01:5; step(sys_cl,t) grid title('step Response with Proportional Control') Proportional-Integral Control: K I = 30 & K I =70 Proportional-Derivative Control: K d = 10 & K d = 20 PID control: Use MatLab tools, RLTOOL, design a PID controller with the following specifications: (i) Settling time of 0.5 seconds, (ii) Overshoot of <10%. PID control Let's try a PID controller with small Ki and Kd. Modify your m-file so that the lines defining your control are as follows. Running this new m-file gives you the plot shown below. Kp = 75; Ki = 1; Kd = 1;

C = pid(kp,ki,kd); step(sys_cl,[0:1:200]) title('pid Control with Small Ki and Small Kd') Inspection of the above indicates that the steady-state error does indeed go to zero for a step input. However, the time it takes to reach steady-state is far larger than the required settling time of 2 seconds. Tuning the gains In this case, the long tail on the step response graph is due to the fact that the integral gain is small and, therefore, it takes a long time for the integral action to build up and eliminate the steady-state error. This process can be sped up by increasing the value of Ki. Go back to your m-file and change Ki to 200 as in the following. Rerun the file and you should get the plot shown below. Again the annotations are added by rightclicking on the figure and choosing Characteristics from the resulting menu. Kp = 100; Ki = 200; Kd = 1; C = pid(kp,ki,kd); step(sys_cl, 0:0.01:4) grid title('pid Control with Large Ki and Small Kd') As expected, the steady-state error is now eliminated much more quickly than before. However, the large Ki has greatly increased the overshoot. Let's increase Kd in an attempt to reduce the overshoot. Go back to the m-file and change Kd to 10 as shown in the following. Rerun your m-file and the plot shown below should be generated. Kp = 100; Ki = 200; Kd = 10; C = pid(kp,ki,kd); step(sys_cl, 0:0.01:4) grid title('pid Control with Large Ki and Large Kd')

As we had hoped, the increased Kd reduced the resulting overshoot. Now we know that if we use a PID controller with Kp = 100, Ki = 200, and Kd = 10, all of our design requirements will be satisfied.