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

Similar documents
State Feedback Controller for Position Control of a Flexible Link

Lab 5a: Pole Placement for the Inverted Pendulum

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

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

Lab 6a: Pole Placement for the Inverted Pendulum

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

Lab 3: Quanser Hardware and Proportional Control

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

SRV02-Series Rotary Experiment # 7. Rotary Inverted Pendulum. Student Handout

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

State Feedback MAE 433 Spring 2012 Lab 7

Rotary Flexible Joint

YTÜ Mechanical Engineering Department

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

YTÜ Mechanical Engineering Department

Mechatronics Modeling and Analysis of Dynamic Systems Case-Study Exercise

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

2.004 Dynamics and Control II Spring 2008

FEEDBACK CONTROL SYSTEMS

Video 5.1 Vijay Kumar and Ani Hsieh

Positioning Servo Design Example

Modeling and System Identification for a DC Servo

ECE-320: Linear Control Systems Homework 8. 1) For one of the rectilinear systems in lab, I found the following state variable representations:

UNIVERSITY OF WASHINGTON Department of Aeronautics and Astronautics

Example: DC Motor Speed Modeling

Rotary Flexible Link. Workbook FLEXGAGE. Student Version

Control Systems Design

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

PID Control. Objectives

DC-motor modelling and parameter identification

Double Inverted Pendulum (DBIP)

Lab 3: Model based Position Control of a Cart

Control Systems. University Questions

Computer Aided Control Design

EE C128 / ME C134 Fall 2014 HW 9 Solutions. HW 9 Solutions. 10(s + 3) s(s + 2)(s + 5) G(s) =

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

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

Digital Control Semester Project

The Control of an Inverted Pendulum

DC-motor PID control

FALL UNIVERSITY OF NEVADA, LAS VEGAS DEPARTMENT OF MECHANICAL ENGINEERING MEG 421 Automatic Controls Design Project

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

Overview of motors and motion control

ECE3510 Lab #5 PID Control

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

Experiment # 5 5. Coupled Water Tanks

Flexible Pendulum (FLEXPEN)

ECE 5670/6670 Lab 8. Torque Curves of Induction Motors. Objectives

D(s) G(s) A control system design definition

Mechatronics Engineering. Li Wen

MECH 3140 Final Project

Predictive Cascade Control of DC Motor

Department of Mechanical Engineering

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Inverted Pendulum: State-Space Methods for Controller Design

DC Motor Position: System Modeling

Chapter 3. State Feedback - Pole Placement. Motivation

System Parameters and Frequency Response MAE 433 Spring 2012 Lab 2

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

Laboratory handouts, ME 340

Automatic Control (MSc in Mechanical Engineering) Lecturer: Andrea Zanchettin Date: Student ID number... Signature...

ECE 5670/ Lab 3. PID Control of a Brush DC Motor. Objectives

Rotary Inverted Pendulum

ECEn 483 / ME 431 Case Studies. Randal W. Beard Brigham Young University

sc Control Systems Design Q.1, Sem.1, Ac. Yr. 2010/11

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

EE 422G - Signals and Systems Laboratory

The Torsion Pendulum (One or two weights)

Manufacturing Equipment Control

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

Automatic Control II Computer exercise 3. LQG Design

MEM04: Rotary Inverted Pendulum

EE 3CL4: Introduction to Control Systems Lab 4: Lead Compensation

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

EE 476 DC Motor Control Lab

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

Real-Time Implementation of a LQR-Based Controller for the Stabilization of a Double Inverted Pendulum

Position Control Experiment MAE171a

Multivariable Control Laboratory experiment 2 The Quadruple Tank 1

QNET Experiment #04: Inverted Pendulum Control. Rotary Pendulum (ROTPEN) Inverted Pendulum Trainer. Instructor Manual

Laboratory Exercise 1 DC servo

The control of a gantry

Lab 1: Dynamic Simulation Using Simulink and Matlab

STUDENT Workbook IP02 Base Unit Experiment for MATLAB /Simulink Users

Feedback Control of Linear SISO systems. Process Dynamics and Control

ME 375 Final Examination Thursday, May 7, 2015 SOLUTION

The output voltage is given by,

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

School of Mechanical Engineering Purdue University. DC Motor Position Control The block diagram for position control of the servo table is given by:

Control of Electromechanical Systems

Outline. Classical Control. Lecture 5

Control System Design

(Refer Slide Time: 00:01:30 min)

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

State space control for the Two degrees of freedom Helicopter

IfA Fachpraktikum - Experiment 3.7A : Flexible Shaft A

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

Target Tracking Using Double Pendulum

Implementation Issues for the Virtual Spring

a) Find the equation of motion of the system and write it in matrix form.

Transcription:

Laboratory 11 State Feedback Controller for Position Control of a Flexible Joint 11.1 Objective The objective of this laboratory is to design a full state feedback controller for endpoint position control in the face of flexibility effects for a flexible joint mounted on the SRV-2DC servomotor. For this, we will use the state space model of the combined system (i.e., servomotor and flexible joint) introduced in the Laboratory 8 (refer to [1]) and then tune the feedback gain matrix K to find the best position tracking while minimizing endpoint oscillation. 11.2 Model From Section 8.2 of the course textbook [1], the default connection that we will use in this laboratory is illustrated. For this laboratory, the servo is used in the high gear ratio configuration (refer to Figure 3.5 in the textbook [1]). The flexible joint is described with a fourth-order system and is shown in Figure 1. Figure 1: Flexible Joint. The following variables are used to describe the state-space model of the flexible joint: Page 1 of 7

θ: motor shaft position, measured using channel 1 encoder ENC1 θ: angular velocity of the motor shaft, measured using channel 3 ADC α: angular deflection of the joint s arm, measured using channel 2 encoder ENC2 α: angular rate of the joint s angle, computed with a derivative filter of the form 15s s+15 K stiff : linear approximation of the joint stiffness. K stiff = 1.618 Nm/rad J hub : total inertia of the motor. J hub =.21 Kg.m 2 J load : inertia of the arm. J load =.59 Kg.m 2 R m : armature resistance of the motor. R m = 2.6 Ω K m : one of the motor torque constants. K m =.767 K g : gear ratio of the motor. In the high gear ratio configuration, K g = 7 The fourth-order linearized differential equation representing the dynamics of the plant can be written in a first-order matrix differential equation, representing the state variable description of the system. The state variable representation is a compact notation combining four coupled first-order differential equations each describing the dynamic of one state of the plant. We define the state vector, x, for the flexible joint as follows x = θ α θ α (1) Let y be the output of the system and u the voltage input to the motor (V in ). The state variable model is of the form { ẋ = Ax + Bu (2) y = Cx The derivation of the model equations from physics involves mathematical modeling and linearization techniques that are beyond the scope of this lab. The following matrices will comprise the design model for the system A = 1 1 K stiff J hub K stiff (J load +J hub ) J hub J load K2 m K2 g K 2 mk 2 g, B = K mk g KmKg, C = 1 1 1 1 Page 2 of 7

11.3 Laboratory Preparation 1. Write a MATLAB script to design a pole placement based full state feedback controller for the model of the flexible joint. Use the (A, B, C) state space matrices given in this laboratory. Check for controllability of the system. Choose appropriate locations for the closed loop poles such that the settling time (t s ) is less than.9 seconds and with no overshoot based in the simulation described in question 2. 2. Construct the following Simulink model in order to test the pole placement based full state feedback controller designed in question 1. You will plug-in the following information: Figure 2: Simulink model for simulation of state feedback controller. Set the Signal Generator amplitude to 45 pi/18 and frequency to.5 Hz. Set the simulation time to 6 seconds. Enter the corresponding A, B, C, D matrices in the State-Space box. Remember that we are interested in all the states at the output so the matrix C is different from the one given by the model. Define the gain K of the box Gain (this is not the feedback gain) such that y = θ +α. Page 3 of 7

Tune the feedback gain matrix K until you obtain the desired design performance. Remember to take into account the input voltage constraint of the motor, that is ±5V. Save all the scopes data as an array into the workspace. Do not limit the size of the output data. 3. Generate the following plots: Comparison between the plant output (γ = θ + α) and reference input (θ d ). Indicate in the same plot the settling time of the system (2% criterion). Control signal applied to the plant. Make sure to that it is in the range ±5V. Error between the plant output and reference input (i.e., error = θ - θ d ). Subplot including all the states variables θ, θ, α, and α. 11.4 Laboratory Procedure 11.4.1 Connections Connect the motor in the position control configuration then connect the encoder port located on the back of the flexible joint to the channel 2 encoder ENC2 on the DS114 interface board. 11.4.2 Simulink Diagram and ControlDesk - Open MATLAB and Simulink and create a new model called Lab11 Group #.mdl, where # corresponds to the lab group number. Set the simulation parameters to a fixed step size of 1 ms and a simulation time of 6 seconds. Turn off block reduction and set the simulation initial state to STOP. - The model should look as follows: Figure 3: Simulink model for implementation of state feedback controller in dspace. Page 4 of 7

- The Signal Generator amplitude is 45 pi/18 and frequency is.5 Hz. (a) Configure the safety stop condition of the Simulink Diagram for a save operation between +45 and 45 degrees (remember all the angles should be in radians). Hint: use the blocks relational operator, stop simulation, and constant. (b) Configure the Position and Velocity of Motor box such that you can measure the angular position (θ) using channel 1 encoder and the angular velocity ( θ) via channel 3 ADC (Analog input 2 in the dspace board). (c) Configure the Position and Angular Rate of Joint box such that you can measure the angular position of the joint (α) using channel 2 encoder and compute the angular rate of the joint using a derivative filter of the form 15s. Remember that the encoder for angle α of the s+15 joint needs a 1 gain as well. (d) Develop a graphical interface in dspace control desk where you can observe the simulation time, control the simulation states (i.e., STOP, PAUSE, and RUN), change the feedback gain matrix K, and show plots of the reference input, angular position of the motor shaft, angular velocity of the motor shaft, angular position of the joint, angular rate of the joint angle, error, and control signal. (e) Start with the feedback gain matrix K found in the pre-laboratory. Can you obtain a good performance? If not, try to re-tune your feedback gain matrix K. (f) Perform several iterations until you reach a steady-state error of less than.5% and a settling time less than 1.1 seconds. 11.5 Post-Laboratory Exercises - Plot the acquired data in MATLAB plots as you did for the pre-laboratory. Indicate the settling time and steady-state error on the plot whenever necessary. Also, include your feedback gain matrix K in at least one plot. - Compare your simulation and implementation results. Do they perfectly match? Comment about the differences. - Explain why the simulation and implementation results differ or perfectly match. Page 5 of 7

11.6 Pre-Lab Report Summary Sheet After having completed the Laboratory Preparation problems, remove this sheet and use it to summarize and organize your results. Attach this as a cover sheet (required) when you turn in the Laboratory Preparation assignment. You may wish to keep a copy of this sheet for use during the Laboratory Procedure. - Final iteration tuned feedback gain matrix: K = [ ] - Transient Characteristics: Setting time (t s ) = Steady-state error (e ss )= NAME: Page 6 of 7

Suggested MATLAB Commands 1. Controllability 1 % C o n t r o l l a b i l i t y Matrix and i t s Rank 2 CO = ctrb (A,B) ; 3 rank CO = rank (CO) ; 2. Feedback Gain Matrix K 1 % C o n t r o l l e r Gain Matrix K 2 p = [ f i r s t p o l e s e c o n d p o l e ] ; 3 K = acker (A,B, p ) ; % A cl = A B K; References [1] Yurkovich, S. and Abiakel, E. Control Systems Technology Lab. Pearson Publishing. 24. Page 7 of 7