DCMS DC MOTOR SYSTEM User Manual



Similar documents
Manufacturing Equipment Modeling

Lab Session 4 Introduction to the DC Motor

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

2.6. In-Laboratory Session QICii Modelling Module. Modelling Module Description

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

DC motors: dynamic model and control techniques

LABORATORY 10 TIME AVERAGES, RMS VALUES AND THE BRIDGE RECTIFIER. Bridge Rectifier

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES NQF LEVEL 3 OUTCOME 4 - ALTERNATING CURRENT

An Industrial Case Study - Control of BeoSound 9000 Sledge System

Available online at Available online at

Brush DC Motor Basics. by Simon Pata Business Unit Manager, Brushless DC

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Positive Feedback and Oscillators

Magnetic electro-mechanical machines

RC Circuits and The Oscilloscope Physics Lab X

FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

SYNCHRONOUS MACHINES

Simple Harmonic Motion

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

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

E x p e r i m e n t 5 DC Motor Speed Control

Laboratory 4: Feedback and Compensation

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

Inductors in AC Circuits

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

Harmonic Drive acutator P r e c i s i o n G e a r i n g & M o t i o n C o n t r o l

Homework Assignment 03

Applications of Second-Order Differential Equations

Controller Design in Frequency Domain

maxon sensor maxon sensor

Modelling, Simulation and Performance Analysis of A Variable Frequency Drive in Speed Control Of Induction Motor

Motor Modeling and Position Control Lab Week 3: Closed Loop Control

Q1. The graph below shows how a sinusoidal alternating voltage varies with time when connected across a resistor, R.

The Time Constant of an RC Circuit

MATHEMATICAL MODELING OF BLDC MOTOR WITH CLOSED LOOP SPEED CONTROL USING PID CONTROLLER UNDER VARIOUS LOADING CONDITIONS

See Horenstein 4.3 and 4.4

Performance Analysis of Speed Control of Direct Current (DC) Motor using Traditional Tuning Controller

OPERATIONAL AMPLIFIERS. o/p

Lecture - 4 Diode Rectifier Circuits

Active Vibration Isolation of an Unbalanced Machine Spindle

EE 402 RECITATION #13 REPORT

Technical Guide No High Performance Drives -- speed and torque regulation

Switch Mode Power Supply Topologies

Prepared by: Paul Lee ON Semiconductor

Testing a power supply for line and load transients

Chapter 11 SERVO VALVES. Fluid Power Circuits and Controls, John S.Cundiff, 2001

MILE Encoder for EC 90 flat

Real-Time Digital Simulator Enabled Hardware-in-the-Loop Electric Machine Drive Lab

INSTRUMENTATION AND CONTROL TUTORIAL 2 ELECTRIC ACTUATORS

BASIC ELECTRONICS AC CIRCUIT ANALYSIS. December 2011

ANALYTICAL METHODS FOR ENGINEERS

Electrical Resonance

THE LUCAS C40 DYNAMO & ITS ARMATURE.

Analog Servo Drive 25A8

A simple method to determine control valve performance and its impacts on control loop performance

Lock - in Amplifier and Applications

Application Information

How To Measure Power Of A Permanent Magnet Synchronous Motor

BLWR23MDA Series. 24V, 15A Brushless Controller / Motor. User s Guide. 910 East Orangefair Lane, Anaheim, CA info@anaheimautomation.

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

CURRENT ELECTRICITY - I

Outline Servo Control

DC Motor control Reversing

L and C connected together. To be able: To analyse some basic circuits.

EE 1202 Experiment #4 Capacitors, Inductors, and Transient Circuits

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

Prepared By: Sheilani Binti Shaari Department of Electrical Engineering/PKB

= V peak 2 = 0.707V peak

AAV003-10E Current Sensor

SKY LF: 20 MHz-3.0 GHz High Power SP4T Switch With Decoder

ABR Brake Rectifier Instruction Manual

Mini-Lab Projects in the Undergraduate Classical Controls Course

DC Motor Driver 24V 20A [RKI-1340]

Frequency Response of Filters

Lab 3 - DC Circuits and Ohm s Law

The Fourier Analysis Tool in Microsoft Excel

MicroMag3 3-Axis Magnetic Sensor Module

hp digital home networking wireless USB network adapter hn210w quick start guide

Using Current Transformers with the 78M661x

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

MDC Series

Chapter 7 Direct-Current Circuits

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis

Current and Temperature Ratings

Physical Quantities, Symbols and Units

Dynamic Process Modeling. Process Dynamics and Control

The D.C Power Supply

System Modeling and Control for Mechanical Engineers

2. A conductor of length 2m moves at 4m/s at 30 to a uniform magnetic field of 0.1T. Which one of the following gives the e.m.f. generated?

POWER SYSTEM HARMONICS. A Reference Guide to Causes, Effects and Corrective Measures AN ALLEN-BRADLEY SERIES OF ISSUES AND ANSWERS

Abstract. Cycle Domain Simulator for Phase-Locked Loops

Lab 8: DC generators: shunt, series, and compounded.

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power

Transcription:

DCMS DC MOTOR SYSTEM User Manual release 1.3 March 3, 2011

Disclaimer The developers of the DC Motor System (hardware and software) have used their best efforts in the development. The developers make no warranty of any kind, expressed or implied, with regard to the developed system. The developers shall not be liable in any event for incidental or consequential damages in connection with or arising out of the performance or use of this system. The system is provided as-is and its users assume all risks and responsibility when using it. The system (hardware and software) and this document are subject to change without notice. Brand names or product names are trademarks or registered trademarks of their respective owners. Copyright The DC Motor System (hardware and software) contains proprietary information protected by copyright. All rights reserved. No parts of the hardware, software and this document may be reproduced, ported, copied, distributed or translated in any form or by any means in whole or in part without the prior written consent of Zeltom LLC. c 2011 by Zeltom LLC web: http://zeltom.com email: info@zeltom.com 47001 Harbour Pointe Ct. Belleville, MI 48111 USA

CONTENTS 1. INTRODUCTION 1 1.1. System Features..................................... 1 1.2. Possible Experiments.................................. 1 1.3. Requirements...................................... 1 1.4. Specifications...................................... 2 1.5. Connections....................................... 2 2. SYSTEM MODEL 3 3. MODEL PARAMETERS 5 4. EXPERIMENTS 6 4.1. System Identification.................................. 6 4.2. Position Control..................................... 7 4.3. Speed Control...................................... 8 REFERENCES 9

1. INTRODUCTION DC motors are widely used to convert electrical energy into mechanical energy. They are relatively small, fast, efficient and inexpensive. DC motors are important components of numerous control systems and several basic features of control systems can be investigated by studying DC motor control. The DCMS has been developed to offer a low-cost experimental setup for students, educators and researchers. The developed system is modeled very accurately and fully compatible with Hilink (hardwarein-the-loop real-time control platform for Matlab/Simulink). 1.1. System Features Fascinating demonstrations and experiments Optical incremental encoder position sensing Compatible with Hilink (hardware-in-the-loop real-time control platform for Matlab/Simulink) Accurate model with precise model parameters Compact and low-cost Position and speed control experiments 1.2. Possible Experiments System modeling and identification Simulation and real-time systems P, PD, PI, PID, lead controller design Root locus, time-domain and frequency-domain analysis and design Reference tracking and disturbance rejection State-space design (LQR, LQG, observer, H 2, H, µ-synthesis, sliding-mode, adaptive) Intelligent control (neural networks, fuzzy logic, genetic algorithms) 1.3. Requirements PC with Windows XP or later Matlab R2007b or later with Simulink, Real-Time Workshop and Real-Time Windows Target Hilink (hardware-in-the-loop real-time control platform for Matlab/Simulink) 1.0 or later Power supply (6 15 V, 2 A) 1

1.4. Specifications Motor: 12 V permanent magnet motor with carbon brushes Encoder: 1024 ppr encoder with index Size: approximately 4.2 cm 3.2 cm 8.3 cm Weight: approximately 320 g 1.5. Connections Motor: red positive (A), black negative (B) Encoder: red VDD, yellow A, green B, black GND, blue X 2

2. SYSTEM MODEL The model of the permanent magnet DC motor is shown in Figure 1, whereris the armature resistance, L is the armature inductance, v is the voltage applied to the motor, i is the current through the motor, e is the back emf voltage, J is the moment of inertia of the load, B is the viscous friction coefficient, τ is the torque generated by the motor, θ is the angular position of the motor, ω is the angular velocity of the motor and m is the external torque. The angular position of the motor is measured by an incremental encoder and the motor voltage is applied through an H bridge. v i R L + e τ θ ω J xxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxxx B m Figure 1. Permanent magnet DC motor system model. The back emf voltage is proportional to the shaft angular velocity and can be expressed as e = k ω ω, (2.1) where k ω is the back emf constant of the motor [1. The motor torque is proportional to the armature current and can be expressed as τ = k i i, (2.2) where k i is the torque constant of the motor [1. In SI units, the numerical values of k ω and k i are the same. It follows from Kirchhoff s voltage law that Moreover, it follows from Newton s second law that v = L i+ri+e = L i+ri+k ω ω. (2.3) τ = J ω +Bω+m = k i i. (2.4) A block diagram representation of the DC motor system obtained from (2.3) and (2.4) is as shown in Figure 2. Thus, the transfer function from v to ω (by assuming m = 0) is Ω(s) V(s) = k i (Ls+R)(Js+B)+k ω k i, (2.5) 3

where V(s) and Ω(s) are the Laplace transforms of v(t) and ω(t), respectively. Since w = θ, the transfer function from v to θ (by assuming again m = 0) is Θ(s) V(s) = where Θ(s) is the Laplace transform of θ(t). k i s[(ls+r)(js+b)+k ω k i, (2.6) m(t) v(t) + 1 Ls+R i(t) k i τ(t) + 1 Js+B ω(t) 1 s θ(t) e(t) k ω Figure 2. Permanent magnet DC motor system block diagram. Letting x = [ x 1 x 2 x 3 = [ θ ω i be the state, y = [ y1 y 2 = [ θ ω be the output and u = [ u 1 u 2 = [ v m be the input of the system, the standard state equation description of the system can be written as 0 1 0 ẋ 1 ẋ 2 = 0 B k x 1 i J J x 2 + ẋ 3 0 k ω L R x 3 L [ [ x 1 [ y1 1 0 0 0 0 = x 2 + 0 1 0 0 0 y 2 The transfer matrix of the system from u(t) to y(t) is k i P(s) = s[(ls+r)(js+b)+k ω k i and k i x 3 (Ls+R)(Js+B)+k ω k i 0 0 0 1 J 1 L [ u1 u 2 0. [ u1 u 2 (Ls+R) s[(ls+r)(js+b)+k ω k i (Ls+R) (Ls+R)(Js+B)+k ω k i, (2.7) (2.8) Y(s) = P(s)U(s), (2.9) where Y(s) and U(s) are the Laplace transforms of y(t) and u(t), respectively. In this derivation, the nonlinear effects in the DC motor (hysteresis, saturation, static friction, etc.) are ignored. Moreover, the quantization due to the encoder and the distortion due to the H bridge are assumed to be negligible. 4

3. MODEL PARAMETERS Using measurements obtained by the Hilink platform, the parameters of the DC motor system are determined as R = 5.65 Ω, L = 2.90 10 3 H, B = 2.03 10 5 N m s, J = 1.88 10 6 N m s 2, k ω = 2.39 10 2 V s, k i = 2.39 10 2 N m/a. With these parameter values, the matrices in the state equation are 0 1 0 0 0 0 10.7979 1.2713 10 4, 0 5.3191 10 5 0 8.2414 1.9483 10 3 [ 1 0 0, 0 1 0 344.8276 0 [ 0 0, 0 0, (3.1) (3.2) and P(s) = 4.3837 10 6 s(s 2 +1.9591 10 3 s+1.2581 10 5 ) 5.3191 10 5 s 1.0363 10 9 s(s 2 +1.9591 10 3 s+1.2581 10 5 ) 2.3680 10 6 s 2 +1.9591 10 3 s+1.2581 10 5 5.3191 10 5 s 1.0363 10 9 s 2 +1.9591 10 3 s+1.2581 10 5. (3.3) The model becomes more accurate if the static friction is also taken into account. For this, equation (2.4) should be modified as The values of B and C are determined as τ = J ω +Bω+Csgn(ω)+m = k i i. (3.4) B = 1.97 10 6 N m s, C = 2.98 10 3 N m. (3.5) In addition, it should be noted that the output of the H bridge saturates at ±12 V. 5

4. EXPERIMENTS A few possible experiments with the DCMS are outlined below. It is assumed that the supply voltage is 12 V and the encoder resolution is 1024 ppr throughout these experiments. In addition, it is assumed that an additive sinusoidal dithering signal with amplitude 1 V and frequency 100 Hz is applied to the motor to reduce the effect of static friction. 4.1. System Identification Measure the resistance between the terminals of the motor to determine the armature resistance R of the motor. Connect the positive terminal of the motor to P0 A, and connect the negative terminal of the motor to GND of the Hilink board through a 10 Ω (5 W) resistor. Note that the motor will run even when nothing is done on the Matlab side. Connect also the negative terminal of the motor to A0 of the Hilink board. Finally, connect the encoder to VDD, E0 A, E0 B and GND of the Hilink board. Construct a Simulink model with a constant of value 3/12 connected to a H0 block in normal conversion mode (to apply 3 V to the motor and the series resistor), an E0 block connected to a Scope through either a derivative block or a transfer function block with s/(0.01s + 1) (to measure the angular speed of the motor), and an A0 block in normal conversion mode connected to a Scope (to observe the current through the motor). Run the model and measure the steady state current i through the motor and its steady state angular speed ω. Determine the back emf constant k ω, and thus the torque constant k i, from v = Ri+k ω ω. Moreover, determine the viscous friction coefficient B from Bω = k i i. Run the model briefly and then disconnect the motor while observing the speed waveform. Measure the time constant τ m of the observed waveform and determine the moment of inertia J of the motor from τ m = J/B. Lock the shaft of the motor. In the Simulink model, Replace the constant with a square wave block of amplitude 3/12 and frequency 10 Hz. Run the model and observe the voltage across the resistor. Measure the time constant τ e of the voltage waveform and determine the armature inductance L of the motor from τ e = L/R. Questions What is a mathematical model and why is it important in engineering? 6

Describe a method for determining the time constant of an exponential rise or decay. Using the DC motor equations, describe a method to measure the parameters of the motor. Show that the back emf constant is equal to the torque constant for a DC motor. Hint: Use the conservation of energy principle. Propose a method to determine both viscous friction coefficient and static friction coefficient of a DC motor. Observe the waveform applied to the motor by an oscilloscope and derive an equation between the voltage that the motor feels and the applied voltage. 4.2. Position Control Using the model of the DC motor obtained, design a controller (using root-locus, time-domain, frequency domain or state-space techniques) to control the position of the motor using only the position measurement. The specifications are: settling time < 2 s and overshoot < 10% in its unit step (step height of 1 rad) response. Connect the positive terminal of the motor to P0 A and the negative terminal to P0 B of the Hilink board, and connect the encoder to VDD, E0 A, E0 B and GND of the Hilink board. Implement the controller in a Simulink model and run it. Show that the controller satisfies the design specifications. Change some of the parameters of the controller while the system is running and observe the corresponding change in the response. Questions Describe a method for determining the step response of a system using the Hilink platform. Why is the step response important in control engineering? Determine the type of the system with the designed controller. Apply a square waveform with amplitude ±3 V and frequency 0.5 Hz directly to the motor terminals (open-loop) and observe its position using the Hilink platform. Is the response of the motor repeatable? Determine if the designed controller ever saturates the H bridge driver. If it does, propose a practical method to avoid saturation. Hint: What happens if the unit step input is smoothed by a command preshaping filter? 7

What happens if the unit step input is replaced by a sinusoidal input? Describe a method to measure the frequency response of the system. 4.3. Speed Control Using the model of the DC motor obtained, design a controller (using root-locus, time-domain, frequency domain or state-space techniques) to control the speed of the motor using only the speed measurement. The specifications are: settling time < 2 s and overshoot < 10% in its step (step height of 10 rad/s) response. Connect the positive terminal of the motor to P0 A and the negative terminal to P0 B of the Hilink board. Connect the encoder to VDD, E0 A, E0 B and GND of the Hilink board, and also connect the index output of the encoder to C1. Implement the controller in a Simulink model and run it. Show that the controller satisfies the design specifications. Change some of the parameters of the controller while the system is running and observe the corresponding change in the response. Questions Describe two methods for measuring the speed of the DC motor using the Hilink platform. Which one is better? Relate the step response of the DC motor in this part to the step response obtained in the previous part. Determine the type of the system with the designed controller. Apply a square waveform with amplitude ±3 V and frequency 0.5 Hz directly to the motor (openloop) and observe its speed. Is the response of the motor repeatable? Determine if the designed controller ever saturates the H bridge driver. If it does not, describe how the H bridge can be forced into saturation? What happens if the unit step input is replaced by a sinusoidal input? Describe a method to measure the frequency response of the system. 8

REFERENCES [1 B. C. Kuo, Automatic Control Systems. NJ: Prentice-Hall, 1995. 9