MEM01: DC-Motor Servomechanism

Similar documents
Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

Lab 11. Speed Control of a D.C. motor. Motor Characterization

UNIT 2: DC MOTOR POSITION CONTROL

Sfwr Eng/TRON 3DX4, Lab 4 Introduction to Computer Based Control

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

Position Control of DC Motor by Compensating Strategies

MEM 01 DC MOTOR-BASED SERVOMECHANISM WITH TACHOMETER FEEDBACK

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

Motor Modeling and Position Control Lab 3 MAE 334

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

ECE 5670/ Lab 5. Closed-Loop Control of a Stepper Motor. Objectives

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 402 : CONTROL SYSTEMS SESSIONAL

Open Loop Frequency Response

Penn State Erie, The Behrend College School of Engineering

Lab 2: Quanser Hardware and Proportional Control

Ver. 4/5/2002, 1:11 PM 1

EE 482 : CONTROL SYSTEMS Lab Manual

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

DC SERVO MOTOR CONTROL SYSTEM

Ball Balancing on a Beam

Compensation of a position servo

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Ball and Beam. Workbook BB01. Student Version

Teaching Mechanical Students to Build and Analyze Motor Controllers

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

Industrial Control Equipment. ACS-1000 Analog Control System

Electrical Drives I. Week 4-5-6: Solid state dc drives- closed loop control of phase controlled DC drives

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor


EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

A Case Study of Rotating Sonar Sensor Application in Unmanned Automated Guided Vehicle

A Comparative Study on Speed Control of D.C. Motor using Intelligence Techniques

Cantonment, Dhaka-1216, BANGLADESH

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

Example Data for Electric Drives Experiment 6. Analysis and Control of a Permanent Magnet AC (PMAC) Motor

Modelling and Control of Hybrid Stepper Motor

Optimal Control System Design

Lab 23 Microcomputer-Based Motor Controller

Figure 1: Unity Feedback System. The transfer function of the PID controller looks like the following:

Experiment Of Speed Control for an Electric Trishaw Based on PID Control Algorithm

Lab 2: Introduction to Real Time Workshop

Modeling and Analysis of Signal Estimation for Stepper Motor Control. Dan Simon Cleveland State University October 8, 2003

EE 560 Electric Machines and Drives. Autumn 2014 Final Project. Contents

7 Lab: Motor control for orientation and angular speed

Feedback Systems. Many embedded system applications involve the concept of feedback. Sometimes feedback is designed into systems: Actuator

Figure 1.1: Quanser Driving Simulator

IDENTIFICATION AND CONTROL OF DC MOTORS

DC MOTOR SPEED CONTROL USING PID CONTROLLER. Fatiha Loucif

Comparisons of Different Controller for Position Tracking of DC Servo Motor

Automatic Control Systems 2017 Spring Semester

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

Analysis and Design of Conventional Controller for Speed Control of DC Motor -A MATLAB Approach

Design Applications of Synchronized Controller for Micro Precision Servo Press Machine

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

Tracking Position Control of AC Servo Motor Using Enhanced Iterative Learning Control Strategy

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

Actuators. EECS461, Lecture 5, updated September 16,

Course Outline. Time vs. Freq. Domain Analysis. Frequency Response. Amme 3500 : System Dynamics & Control. Design via Frequency Response

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

5 Lab 5: Position Control Systems - Week 2

Rotary Motion Servo Plant: SRV02. Rotary Experiment #17: 2D Ball Balancer. 2D Ball Balancer Control using QUARC. Instructor Manual

2.737 Mechatronics Laboratory Assignment 1: Servomotor Control

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

Lab 1: Simulating Control Systems with Simulink and MATLAB

SYSTEM IDENTIFICATION OF A HOBBY DC MOTOR USING A LOW COST ACQUISITION SETUP

Fundamentals of Servo Motion Control

Motomatic Servo Control

A Searching Analyses for Best PID Tuning Method for CNC Servo Drive

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

Frequency Response Analysis and Design Tutorial

Massachusetts Institute of Technology. Lab 2: Characterization of Lab System Components

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

ECE 5670/ Lab 6. Parameter Estimation of a Brushless DC Motor. Objectives

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SCIENCE AND ENGINEERING

ME 3200 Mechatronics I Laboratory Lab 8: Angular Position and Velocity Sensors

Servo Tuning. Dr. Rohan Munasinghe Department. of Electronic and Telecommunication Engineering University of Moratuwa. Thanks to Dr.

Speed control of double stator synchronous machine supplied by two independent voltage source inverters

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

POSITION TRACKING PERFORMANCE OF AC SERVOMOTOR BASED ON NEW MODIFIED REPETITIVE CONTROL STRATEGY

Position Control of AC Servomotor Using Internal Model Control Strategy

Brushed DC Motor System

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

PERSONALIZED EXPERIMENTATION IN CLASSICAL CONTROLS WITH MATLAB REAL TIME WINDOWS TARGET AND PORTABLE AEROPENDULUM KIT

Sensors and Sensing Motors, Encoders and Motor Control

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

Analysis and Comparison of Speed Control of DC Motor using Sliding Mode Control and Linear Quadratic Regulator

Implementation of Conventional and Neural Controllers Using Position and Velocity Feedback

Simulink Based Model for Analysing the Ziegler Nichols Tuning Algorithm as applied on Speed Control of DC Motor

PHYS 1444 Section 003 Lecture #19

EC CONTROL SYSTEMS ENGINEERING

Performance Optimization Using Slotless Motors and PWM Drives

Transcription:

MEM01: DC-Motor Servomechanism Interdisciplinary Automatic Controls Laboratory - ME/ECE/CHE 389 February 5, 2016 Contents 1 Introduction and Goals 1 2 Description 2 3 Modeling 2 4 Lab Objective 5 5 Model Identification 5 5.1 Model Identification: Open-loop Step Response Analysis.................. 5 5.2 Model Identification: Open-loop Frequency Response Analysis............... 7 6 Velocity Controller Design 8 7 Position Controller Design 8 1 Introduction and Goals The Precision Modular Servo (PMS) workshop serves as a model of a very popular device, the DC Servo Motor. This is often used in robotic applications. The word servo comes from the Latin word servus meaning servant or slave. Thus the servo motor is intended to react to a given command, for example a desired position or velocity. In order for the motor to be called a servo motor it has to be equipped with a velocity and position measurement unit and motor driver. It may also include a simple servo motor controller. The main features distinguishing servo motors from normal motors are: minimized rotor inertia, minimized armature inductance, improved withstand voltage and magnet saturation, designed to withstand sudden acceleration and high frequency operation. The PMS unit allows for the design of different servo motor controllers and to test them in real time using the Matlab and Simulink environment. 1

Figure 1: Precision Modular Servo mechanical unit 2 Description The description of the PMS setup in this section refers mostly to the mechanical part and the control aspect. For details of the mechanical and electrical connection, the interface and an explanation of how the signals are measured and transferred to the PC, refer to the Installation & Commissioning manual. As shown in Figure 1, the PMS mechanical unit consists of a DC Motor, Tachometer/Gearbox, Digital Encoder, Input and Output Potentiometers and Magnetic Brake. Apart from the mechanical units, the electrical units play an important role for motor control. They allow measured signals to be transferred to the PC via an I/O card. The amplifiers are used to transfer control signals from the PC to the DC Motor. The mechanical and electrical units provide a complete control system setup presented in Figure 2. In order to design any control algorithms one must first understand the physical background behind the process and carry out identification experiments. The next section explains the modelling process of the PMS. 3 Modeling Every control project starts with plant modeling, so as much information as possible is given about the process itself. The mechanical-electrical model of the servo motor is presented in Figure 3. For the DC motor model, nonlinearities are so small that they can be neglected. According to the electrical-mechanical diagram presented in Figure 3 the linear model equations can be derived. 2

Figure 2: PMS control system The torque τ generated by the DC motor is proportional to the motor current i: τ = K t i, (1) where K t is the torque constant. The induced electromotive force, v emf, is a voltage proportional to the angular shaft velocity θ: v emf = K b θ, (2) where K b s a motor property dependant constant related to physical properties of the motor. Using Newtons law the mechanical dynamics can be described by: J θ = τ i = d θ + K t i, (3) where d is a linear approximation of the viscous friction. The equations governing the behaviour of the electrical model are: u v emf = L di + Ri, (4) dt where u is the control signal. Including equation (2) transforms (4) into: u = L di dt + Ri + K b θ. (5) Q1: Use equations (3) and (5) to write the motor model in state space form by defining the state vector a x = [ω i] T, were ω = θ represents the angular velocity, and the output as y = ω. Q2: Give an expression for the transfer function G(s) = Y (s)/u(s). What is the order of the transfer function? What are the units of the input and the output? Table 1 gives the values of the motor parameters supplied by the manufacturer. The motor used for the experiments is a 24V DC brushed motor with a no-load speed of 4050 rpm. An extra gain term k a = 24/2.5 = 9.6 needs to be added to input of the model to represent the gain provided by the PA150 Preamplifier and SA150 Servo Amplifier. In this way, the model can be run with a 2.5 V control signal 3

Figure 3: DC motor phenomenological model Parameter Description Value J Moment of inertia 140 10 7 kg m 2 K t Torque constant 0.052Nm/A K b Electromotive force constant 0.057V s/rad d Viscous friction coefficient 10 6 Nms/rad R Resistance 2.4Ω L Inductance 2.5 10 3 H Table 1: DC Motor parameters amplitude (as used by Simulink to drive the DAC output), which corresponds to the 24 V amplitude signal applied to the motor. In order words, the input of the model is the output of the DAC and not the motor voltage. Moreover, an extra gain term k ω = 60/(2π) needs to be added to the output of the model to change the output units to rpm. Q3: How would you modify G(s) to incorporate k a and k ω? Compute the transfer function using the parameter values in Table 1. Where are the poles of the transfer function? Q4: Obtain a first-order approximation of the obtained transfer function. Explain why this is possible. What is the DC gain and time constant of the model? Plot in the same figure the step response for both actual and approximated transfer functions when the amplitude of the step is 2.5V. Does the result justify the approximation? Q5: Obtain the experimental step response of the system when the amplitude of the step is 2.5V. Plot in the same figure the obtained experimental step response and that predicted by the approximated first-order transfer function. How well the predictions by the model match the experimental data? 4

4 Lab Objective In this laboratory you will obtain a experimentally validated model for the DC motor-based servomechanism and design model-based controllers to regulate both the speed and the position of the servo. A plant transfer function, i.e. the open loop response of the system, will be obtained from experimental data. Identification of model parameters from experimental data is known as system identification. 5 Model Identification In this section, you will obtain the plant transfer function (open loop system) by two separate system identification methods: i) analysis of the open loop step response and ii) analysis of the open loop frequency response. 5.1 Model Identification: Open-loop Step Response Analysis Assume the plant G(s) is of the form G(s) = k τs + 1, (6) i.e. a first order linear system with a stable (LHP) pole. The objective of system identification is to determine the steady state gain k and the time constant τ from experimental data. If the system, G(s), is excited by a step input of magnitude A, the response will be U(s) = A s, Y (s) = G(s)U(s) = Ak s(τs + 1). (7) Then, the steady-state value y ss of y(t) can be computed by the the final value theorem, i.e., and the steady-state gain of the system can be obtained as y ss = lim t y(t) = lim s 0 sy (s) = Ak, (8) k = y ss A. (9) Note that y ss can be obtained directly from the experimentally step response of the system as shown in Figure 4 (left). By computing the inverse Laplace transform of Y (s) in (7), we can write Therefore, y(t) = Ak(1 e t/τ ) = y ss (1 e t/τ ). (10) ( ) y(t) y ss = e t/τ yss y(t) ln = t y ss τ, (11) which implies that if we plot ln((y ss y(t)/y ss ) versus t as shown in Figure 4 (right), we can obtain 1/τ, and therefore τ, just by computing the slope of the plotted line. y ss 5

Figure 4: System identification by step response. Open Loop Step Response: Lab Procedure NOTE: There should be no need to adjust the hardware 1. Open up matlab and point the matlab path to C:\Program Data\Feedback Instruments\33-927 Modular Servo 2. Run the matlab file startup the startup function adds relevant directories to the matlab path type path in the matlab workspace and notice the additional directories in the current path 3. Obtain the open-loop step response (a) Navigate to the directory...\examples\real-time examples (b) Use the function ME389 Ident step.mdl (c) Excite the system with step functions of 0.5 and 1.0 volts (d) When the model file completes, it saves the measured input / output data to the workspace under the variable IdentStepData (e) Use the function ME389 PlotIdent step.m to plot the step data The function can be called from the workspace: ME389 PlotIdent step(identstepdata) Make your own copy of the plotting routine and edit as needed You may find the function ginput.m for sampling data points from the plot, test it out by calling var = ginput(1) from the workspace 4. Obtain k and τ using the method described above. Q6: Plot both y(t) versus t and ln((y ss y(t)/y ss ) versus t for the system. What are the values of the DC gain k and the time constant τ? Write down the identified first-order transfer function. Q7: Plot in the same figure the obtained experimental step response and that predicted by the identified first-order transfer function when the amplitude of the step is 2.5V. How well the predictions by the identified model match the experimental data? 6

5.2 Model Identification: Open-loop Frequency Response Analysis For stable linear systems the open loop transfer function can be determined from the frequency response. The frequency response can be obtained from experimental data by exciting the system with a sinusoidal signal of varying frequency. The measured gain and phase shift between the input and output signal constitute the frequency response. The transfer function of the system can then be inferred from the experimental Bode plot. For review of frequency response and bode plots see the lectures available on the web. Open Loop Frequency Response: Lab Procedure NOTE: There should be no need to adjust the hardware 1. Excite the system with a sinusoidal function (a) Use the function ME389 Ident freq.mdl (b) Connect the DAQ to the hardware Build the mdl file (compile the code), use the build button at the top left corner (Three arrows pointing down) Connect the DAQ to the hardware with the connect button Power on the motor (green switch on the power supply) When ready, run the mdl file with the green arrow (c) Excite the system with a sinusoidal function of amplitude 0.5 Volts and frequency 2 rad/s (d) When the model file completes, it saves the measured input / output data to the workspace under the variable IdentFreqData 2. Use the function ME389 PlotIdent freq.m to plot the input / output data The function can be called from the workspace: ME389 PlotIdent freq(identfreqdata) First the function plots the sampled data. Only the last 10 s are plotted since we are only interested in steady state data. The plot routine, then queries for a frequency, this is used as an initial guess to a fitting routine, which will fit the measured data to a sinusoid of the form Input : A in sin (ωt + φ in ) + offset and Output : A out sin (ωt + φ out ) + offset (12) The details of the fitting routing are not important. (a) However, it is sensitive to initial guess values (b) If you are not satisfied with the resulting fit, try again with a different frequency guess (c) Once you are satisfied with the fit, the plotting function will print the gain an phase shift, which are determined from the fitted sinusoids gain = A out A in and Phase Shift = φ out φ in (13) 3. Repeat the process for varying frequencies, with intervals of 5 per decade. Q8: Plot the experimental Bode plot for the system. Write down the identified first-order transfer function. Q9: Plot in the same figure the obtained experimental step response and that predicted by the identified first-order transfer function when the amplitude of the step is 2.5V. How well the predictions by the identified model match the experimental data? 7

6 Velocity Controller Design Figure 5: Block diagram of servomechanism-based regulator. Q10: Using the identified model of the plant obtained either in Section 5.1 or Section 5.2, compute the step response of the open loop system for 0 <= t <= 2 using the Matlab command step. Use the Matlab command stepinfo to summarize the characteristics of the step response. Q11: Consider a P controller (K(s)=Kp). Plot the position of the closed-loop poles as a function of the controller gain. Give an expression for the steady state error in the closed loop step response. Will this controller guarantee zero steady-state error? How could you reduce the steady-state error? Could you destabilize the closed-loop system by pursuing a smaller steady-state error? Could you drive the closedloop system response into saturation by pursuing a smaller steady-state error. Compute the step response of the closed-loop system for a small gain of K p = 0.01 and for a big gain of K p = 100. Plot both the input and the output of the plant. Q12: Consider a PI controller (K(s)=Kp+Ki/s). Give an expression for the steady state error in the closed-loop step response. Will this controller guarantee zero steady-state error? Choose Kp and Ki such that the overshoot is less than 3% and the settling time is less than 0.5 s. Compute the step response of the closed-loop system for 0 <= t <= 4 using the Matlab command step. Use the Matlab command stepinfo to summarize the characteristics of the step response. Does the step response undershoot (goes below zero)? Explain why in the positive case. What can you do to eliminate the undershoot? Q13: Test developed controller experimentally. Compare simulated (use step command) and experimental step responses. Compare simulated (use slim command) and experimental sinusoidal responses. 7 Position Controller Design Q14: Using the identified model G(s) for the angular velocity in response to the voltage command, obtain the model H(s) for the angular position in response to the same voltage command. Q15: Using the identified model of the plant obtained either in Section 5.1 or Section 5.2, compute the step response of the open loop system for 0 <= t <= 2 using the Matlab command step. Use the Matlab command stepinfo to summarize the characteristics of the step response. Q16: Consider a P controller (K 1 (s) = K p ) with the structure shown in Figure 5 (K d 0). Plot the position of the closed-loop poles as a function of the controller gain. Give an expression for the steady state error in the closed loop step response. Will this controller guarantee zero steady-state error? Obtain K p to guarantee an overshoot of 10%. 8

Q17: By root locus, show that you can improve performance by adding tachometer feedback (K 2 (s) = K d ) as proposed in Figure 5. Use the value of K p obtained in the previous question. Improved performance is evidenced by reduced overshoot without extending the risetime, or reduced risetime without incurring increased overshoot. What value of K d will allow you to demonstrate this improved performance? Q18: Test developed controller experimentally. Compare simulated (use step command) and experimental step responses. Compare simulated (use slim command) and experimental sinusoidal responses. 9