Teaching Mechanical Students to Build and Analyze Motor Controllers

Similar documents
ME 461 Laboratory #5 Characterization and Control of PMDC Motors

GE 320: Introduction to Control Systems

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

MEM01: DC-Motor Servomechanism

DC motor control using arduino

Actuators. EECS461, Lecture 5, updated September 16,

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

Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

Motomatic Servo Control

DC SERVO MOTOR CONTROL SYSTEM

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

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

Sensors and Sensing Motors, Encoders and Motor Control

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

Electronics Design Laboratory Lecture #4. ECEN 2270 Electronics Design Laboratory

5 Lab 5: Position Control Systems - Week 2

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

Motor Modeling and Position Control Lab 3 MAE 334

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

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

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

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

Step vs. Servo Selecting the Best

D102. Damped Mechanical Oscillator

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

Sensors and Sensing Motors, Encoders and Motor Control

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

Modelling and Control of Hybrid Stepper Motor

EE 482 : CONTROL SYSTEMS Lab Manual

Chapter 10 Digital PID

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

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

DC Motor Speed Control using PID Controllers

MSK4310 Demonstration

Lab 2A: Introduction to Sensing and Data Acquisition

Experiment 9 : Pulse Width Modulation

MAE106 Laboratory Exercises Lab # 5 - PD Control of DC motor position

CIS009-2, Mechatronics Signals & Motors

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

ACTUATORS AND SENSORS. Joint actuating system. Servomotors. Sensors

Using Signal Express to Automate Analog Electronics Experiments

CHAPTER 7 HARDWARE IMPLEMENTATION

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

EKT 314/4 LABORATORIES SHEET

Penn State Erie, The Behrend College School of Engineering

Robot Actuators. Motors and Control. Stepper Motor Basics. Increased Resolution. Stepper motors. DC motors AC motors. Physics review: Nature is lazy.

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

Laboratory Tutorial#1

Introduction to BLDC Motor Control Using Freescale MCU. Tom Wang Segment Biz. Dev. Manager Avnet Electronics Marketing Asia

Elements of Haptic Interfaces

University of Tennessee at. Chattanooga

CONTROLLING THE OSCILLATIONS OF A SWINGING BELL BY USING THE DRIVING INDUCTION MOTOR AS A SENSOR

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

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

Introduction to MS150

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

Upgrading from Stepper to Servo

MEM380 Applied Autonomous Robots I Winter Feedback Control USARSim

Job Sheet 2 Servo Control

Lab 1: Steady State Error and Step Response MAE 433, Spring 2012

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

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

AC : A STUDENT-ORIENTED CONTROL LABORATORY US- ING PROGRAM CC

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

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

Magnetic Levitation System

EMG Electrodes. Fig. 1. System for measuring an electromyogram.

Automatic Control Systems 2017 Spring Semester

Lab Report 4: Root Locus and Proportional Controller

Design of PID Control System Assisted using LabVIEW in Biomedical Application

Lab Exercise 9: Stepper and Servo Motors

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

STUDY OF RC AND RL CIRCUITS Venue: Microelectronics Laboratory in E2 L2

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

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

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

The MFT B-Series Flow Controller.

SERVO MOTOR CONTROL TRAINER

Proportional-Integral Controller Performance

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

PHYSICS 330 LAB Operational Amplifier Frequency Response

King Fahd University of Petroleum and Minerals. Department of Electrical Engineering

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

University of Tennessee at Chattanooga. Step Response Modeling. Control Systems Laboratory

Computer Numeric Control

Design of double loop-locked system for brush-less DC motor based on DSP

Interfacing dspace to the Quanser Rotary Series of Experiments (SRV02ET)

Operational Amplifier BME 360 Lecture Notes Ying Sun

Speed Feedback and Current Control in PWM DC Motor Drives

9 Things to Consider When Specifying Servo Motors

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

Chapter 3: Multi Domain - a servo mechanism

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

55:041 Electronic Circuits The University of Iowa Fall Exam 3. Question 1 Unless stated otherwise, each question below is 1 point.

7 Lab: Motor control for orientation and angular speed

Position Control of AC Servomotor Using Internal Model Control Strategy

University of Pittsburgh

AC : THE UBIQUITOUS MICROCONTROLLER IN MECHANICAL ENGINEERING: MEASUREMENT SYSTEMS

Transcription:

Teaching Mechanical Students to Build and Analyze Motor Controllers Hugh Jack, Associate Professor Padnos School of Engineering Grand Valley State University Grand Rapids, MI email: jackh@gvsu.edu Session 2666 1. Introduction All junior Mechanical and Manufacturing engineering students take EGR 345, Dynamic Systems Modelling and Control, at Grand Valley State University. This course looks at modeling systems with mechanical, electrical and other components. This is supported by laboratory work that includes motor modeling and feedback control. There is also a major design project in the course to reinforce theoretical and experimental design. The topics covered in the course are listed below. 1. Translation 2. Differential equation review 3. First/second order systems 4. Numerical methods 5. Rotation 6. The differential operator and input-output equations 7. Circuits (resistors/capacitors/inductors and op-amps) 8. Feedback control 9. Phasors 10. Transfer functions and Fourier analysis 11. Bode plots 12. Root locus plots 13. Analog IO, sensors and actuators 14. Motion control (single and multiple axes) Prerequisites for the course include basic circuits, statics, differential equations and digital systems (C programming on 6811 microprocessors). The course is followed by another controls course, EGR 450 - Manufacturing Control Systems, which focuses on discrete state control systems using PLCs. EGR 450 is required for the Manufacturing students, while it is a popular elective for the Mechanical students. EGR 450 is followed by EGR 474 - Integrated Manufacturing Systems, which focuses on high level control using databases and networks to integrate devices such as robots and CNC machines. EGR 474 is a popular elective for Manufacturing students, and an elective for the Electrical students.

Throughout the course students use computers for numerical analysis, data collection and control. The software used includes Mathcad, Labview [3], Scilab (a free Matlab clone) and C/C++ compilers. Use of these tools is reinforced throughout the semester with laboratory work that uses industrial sensors and actuators to verify theoretical calculations. The laboratory sequence is listed below. 1. Review/tutorial (Web pages, Scilab, etc.) 2. Labview introduction 3. Sensors and introduction to writing labs 4. Mass-spring and mass-spring-damper systems 5. Rotational systems (torsional pendulum) 6. Using PWM to generate voltages tutorial 7. Motor modeling and speed control with PWM and transistors 8. Proportional feedback control 9. Tutorial with Ultra 5000 servo drives 10. Op-amp filter Bode plot 11. Multi-axis motion control system with Ultra 100 serve drives 12. Variable frequency drive tutorial with Series 161 drives 13. PLC (Programmable Logic Controller) tutorial The first motor laboratory examines motor speed control using an inexpensive transistor and pulse width modulation (PWM). The second laboratory experiment focuses on modeling DC brushed motors and deriving basic parameter values. The final experiment uses a proportional feedback controller to control the motor speed. When the laboratory sequence is complete students are able to build and analyze basic feedback controllers. 2. The Controller The controller the students analyze and build is based upon a transistor which switches power to the motor. To allow the effective voltage to be varied, a pulse width modulation method is used, as shown in Figure 1. The power is switched fast enough so that the dynamic effects of the motor filter out the effects of the rapid switching. Typically this can be a frequency as low as 100Hz, although a higher frequency is better, and above 20KHz puts it above the audible range. This method does require some sophistication to generate the PWM signal, but the result is a much simpler and more efficient power amplifier.

V max 0 V max 0 V max 0 V max 0 50% duty cycle V 50 eff --------V 100 max t 20% duty cycle V 20 eff --------V 100 max t 100% duty cycle V 100 eff --------V 100 max t 0% duty cycle 0 V eff --------V 100 max t Figure 1 - PWM (Pulse Width Modulation) The motor control system is connected as shown in Figure 2. The counter output from the computer drives a TIP-120 (Darlington coupled NPN) transistor that switches the voltage from a high current (>1amp) voltage supply. When the counter output is on (+5V) the transistor turns on and allows current to flow. In this configuration the voltage across the transistor is about Vce 2V (the Vce value is available in the transistor datasheets). This means the maximum voltage delivered to the motor is Vs Vp - Vce. Multiplying this by the duty cycle gives the effective (RMS) voltage delivered to the motor. The shaft of the motor is coupled to the tachometer. The tachometer can be any permanent magnet DC motor. When the shaft of the motor is turned, it acts as a generator and delivers a voltage that is proportional to angular velocity. The voltage from the tachometer is read as an analog input (Vt) to the computer.

counter OUTB1 digital com V C TIP 120 V P V+ V- PCI-1200 DAQ card in computer V S motor analog in ACH0 analog com V t tachometer shaft coupler ω Figure 2 - The schematic for the DC motor controller Part of the setup procedure requires that the speed-voltage ratio for the tachometer be established experimentally. This is done by supplying a voltage to the motor, and measuring the motor speed (ω) and tachometer voltage (Vt). We normally measure the angular velocity with a strobe light tachometer. Multiple readings are taken by changing the motor voltage and then repeating the previous readings. Graphing the data should yield a straight line and show a linear relationship. The data can be used to determine the coefficient Kt in the equation Vt Kt(ω). The computer is interfaced to the process through a National Instruments PCI-1200 DAQ card [3]. It is used to read the analog voltage input from the tachometer and generate the PWM motor output with a counter. The PWM output is characterized with a frequency for the output pulses, and a delay for the on/off transition as shown in equation 1. In this application the frequency remains fixed, but the counter value is changed to vary the duty cycle. When using the counter the upper and lower limits must not be exceeded. At best this will make the system non-linear, at worst it may make the motor output unpredictable.

V S ( V P V CE ) C MAX C C --------------------------- C MAX 1 Where, V S The effective voltage delivered to the motor (1) V P The power supply voltage V CE The voltage across the transistor when on (2V typ.) C MAX The maximum count in the counter C C The variable counter value A Labview program, similar to that shown in Figures 3 and 4 is written by the students to handle inputs and outputs, and do calculations. The front panel is shown in Figure 3. It has a knob so that a desired speed can be set, and a chart that displays the tachometer speed reading as a function of time. Figure 3 - Labview front panel for the control system The wiring diagram in Figure 4 shows the basic system setup. Variables have been labeled so that they correspond to the equations in this paper. Outside the while loop there is a calculation that

only needs to be done once, and the PULSE CONFIG function to setup the counter on the PCI- 1200 DAQ board. Inside the while loop are the functions that should be repeated each scan. On the left hand side the analog voltage is read in using the AI ONE PT function block. The voltage is converted to a speed and subtracted from the desired voltage. It is then multiplied by the controller gain constant to obtain the desired motor voltage. This is then converted to a counter value that will produce a corresponding PWM output with the ICTR Control function block. This program does not include functions to limit the values to the counter. The scan time is notably absent in this program because the proportional control equation is not a function of time. Figure 4 - Labview wiring diagram for the proportional feedback controller The equations for the control system are given below. Equation 2 was obtained by manipulating equation 1 to isolate the desired value for the counter as a function of the desired motor voltage. Equation 3 is the proportional feedback controller. Equation 4 is the speed-voltage relationship for the tachometer. Equation 5 is a simplified differential equation for a permanent magnet brushed DC motor, relating the speed of the motor to the supplied voltage. In the equation the K and R values are fixed, but the J value is a function of the inertia in the system. This equation obviously ignores friction and viscosity effects.

V C c C s max -------------------- ( Cmax 1) (2) V p V ce V s P( ω d ω t ) (3) ω t Where, P ω d V t ----- (4) K t ω t ' + ----- ωt ----- K Vs (5) The feedback controller gain The desired motor speed (setpoint) R Motor winding resistance J Inertia of motor and load K Motor speed constant (not to be confused with Kt) The coefficients for the motor equation can be found using the method shown in Figure 5, although other methods are available. In this case the resistance of the motor windings is measured directly. The motor speed constant and the second moment of inertia are determined by applying a voltage step input to the motor and observing the first order response. The steady state speed is used to determine the motor speed constant. The second moment of inertia is determined by finding the time constant of the response and relating it to the coefficient in the first order differential equation for the motor. This method is not perfect, but from a pedagogical perspective it strongly reinforces many important principles of first order differential equations.

1. The resistance of the motor windings is measured with a multimeter. R 40Ω 2. The speed curve below is obtained by starting the motor at rest. The motor voltage is stepped, in this example to 15V and the speed is measured. rpm 2400 0.5s The steady-state velocity can be used to find the value of K, when the angular acceleration becomes zero. ---- d dt ω ω + ------ V K s ----- ( 0) 2400--------- rot min + ------ 15V K JR ----- ( 0) 2400--------- rot 1min ------------ -------------- 2πrad min 60s 1rot ( K) 15V 15V K ---------------------------- 120πrads 1 39.8 10 3 ------- Vs rad The time constant can be used to find the remaining parameters. It is found graphically by drawing a line tangent to the start of the curve and locating the time it intersects the steady state velocity. ------ JR J 1 --------- 2s 1 0.5s 39.8 10 3 Vs ------- 2 ------------------------------------------- rad 0.198005-4 10 19.8 10 6 Kgm 2 ( 40Ω) ( 2s 1 ) d ---- dt ω ω2s + 1 V s ( 50.3V 1 s 2 rad) Figure 5 - A sample calculation for determining motor constants experimentally Once armed with the constant values for the motor and the tachometer, the system response can be modelled theoretically. The equations for the feedback controller and the motor can be combined and simplified to obtain equation 6.

ω t ' + ----- ωt ----- K P ( ωd ω t ) ω t ' + ----- KP + ------- JR ωt KP ------- ωd (6) The time constant for the resulting first order differential equation can be found by inspection. 1 τ -------------------- JR -------------------- ------ KP + ------- + KP JR JR Given a specific desired velocity, the steady state velocity can be found. ( 0) ------ KP + + ------- JR ωtt ω tt KP ------- KP ------- --------------------------ω d ------ KP + ------- JR ωd ( P) ( ------------------ K+ P) ω d Assuming the system starts at rest the response equation is, t - τ ω t () t ω tt 1 e ( P) ( ------------------ K+ P) ω 1 e d tk ( 2 + KP) --------------------------- JR Please note that the solution shown uses an abbreviated method. Other methods may also be used, but will result in an equivalent solution. The laboratories were structured to distribute the laboratory over a three laboratory sequence, as listed below. In the first week students connect a simple motor controller. This establishes a level of comfort with the concepts of pulse width modulation and using transistors for power switching. The second week builds upon the first including the use of motors as tachometers and motor modelling. The third week integrates the components into a feedback control system. Lab 1 - PWM Control Tutorial - Students are shown how to develop a Labview program to use a DAQ card counter to generate a PWM output from the computer. They then connect this through a transistor to control the speed of a motor. Lab 2 - Motor Modelling - The constants for a motor are calculated using the technique described earlier. Students are introduced to using a motor as a tachometer. Lab 3 - Feedback Control - The full feedback system is built and tested. The results are compared to theory.

The results of the experiments are documented in formal laboratory reports. In addition to expected elements, these ultimately include a comparison between theoretical and actual responses of the feedback systems. Through this lab students find the common problem with the proportional controller, particularly the significant steady state error. This supports the lectures by providing a basis for discussion of the Integral and Derivative components of a PID controller. 3. Conclusions Upon completion the students are able to construct a fairly complex motor control system that allows them to input parameters and observe the results. These are then compared to the theoretical prediction of performance. There are discrepancies because of standard problems, such as friction and velocity, but the students gain and appreciation of this. References [1] Jack, H., EGR 345 Course Home Page, http://claymore.engineer.gvsu.edu/~jackh/eod/ egr345.html [2] Jack, H. Dynamic System Modeling and Control, http://claymore.engineer.gvsu.edu/~jackh/ books/model/index.html [3] http://www.ni.com Biography Hugh Jack earned his bachelors degree in electrical engineering, and masters and Ph.D. degrees in mechanical engineering at the University of Western Ontario. He is currently an associate professor at Grand Valley State University and chairs the graduate and manufacturing programs. His research interests include using open source software for industrial control.