Professional Documents
Culture Documents
Ijisa V5 N5 6 2 PDF
Ijisa V5 N5 6 2 PDF
Mohammed M. K.
Design and production program, Department of Mechanical Engineering, Faculty of Engineering, Taif University, 888,
Taif, Saudi Arabia
Email: m.mohamed2000@yahoo.com
Farhan A. Salem
Mechatronics Section. Department of Mechanical Engineering, Faculty of Engineering, Taif University, 888, Taif,
Saudi Arabia;
Alpha Center for Engineering Studies and Technology Researches, Amman, Jordan
Email: salem_farh@yahoo.com
Abstract — The accurate control of motion is a dynamics analysis and controller selection and design
fundamental concern in mechatronics applicat ions, issues, of mechatronics single joint robot arm. where a
where placing an object in the exact desired location electric DC motor is used and a control system is
with the exact possible amount of force and torque at selected and designed to move a Robot arm to a desired
the correct exact t ime is essential for efficient system output position, θ corresponding to applied input
operation. An accurate modeling, simu lation and voltage, Vin and satisfying all required design
dynamics analysis of actuators for mechatronics motion specifications.
control applications is of big concern. The u ltimate goal
of this paper addresses different approaches used to
Index Terms — Electric Motor, PMDC Motor,
derive mathematical models, building corresponding
Separately Excited Motor, Mathematical Model, State
simu lin k models and dynamic analysis of the basic open
Space, Simu lation, Response, MATLA B m.file and
loop electric DC motor system, used in mechatronics
Function Block
motion control applications, particularly, to design,
construct and control of a mechatronics robot arm with
single degree of freedo m, and verification by
MATLAB/Simu link. To simplify and accelerate the I. Introduction
process of DC motors sizing, selection, dynamic
analysis and evaluation for different motion Mechatronic systems often use electric motors to
applications, different mathemat ical models in terms of drive their work loads, where electric motors are used to
output position, speed, current, acceleration and torque, provide rotary or linear motion to a variety of
as well as corresponding simulink models, supporting electro mechanical devices and servo systems [1].
MATLAB m.file and general function block models are Depending on application (e.g. robots, electric vehicles,
to be introduced. The introduced models were verified low-to-mediu m power machine-tools etc.) and desired
using MATLAB/ Simu link. These models are intended dynamic and steady state performances , as well as for
for research purposes as well as for the application in motor's performance analysis, controller selection and
educational process. design, it is of concern to derive mathematical models
of electric DC motor, and built corresponding Simulink
This paper is part I of writers' research about models, that can simp lify and accelerate the process of
mechatronics motion control, the ultimate goal of this modeling, simulat ion and dynamic analysis of DC
research addresses design, modeling, simulation, motor motion control for mechatronics applications.
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
40 Modeling, Simulation and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Motion control systems takes input voltage as manufacturing operation [2]. To simp lify and accelerate
actuator input, and outputs linear o r rotational the process of DC motors s izing and selection for
position/speed/ acceleration/ torque, the most used different applications, We are to model, simulat ion and
actuator for motion control systems is DC motors. A analyze the basic open loop DC motor system using
single joint robot arm is an application examp le of an different methods and verification by MATLA B/
electro mechanical system used in industrial automat ion. Simu link, also to suggest MATLAB m.file and function
Each degree of freedom (DOF) is a joint on Robot arm, block model for purposes of design and analysis.
where a rm can rotate or translate, each DOF requires an
actuator. When designing and building a robot arm it is
required to have as few degrees of freedom allowed for
II. Robot Arm System Characteristic
J2, F2
given application, a single jo int Robot arm is a system
with one DOF. In industrial automation, the control of Single joint robot arm system consists of three parts
motion is a fundamental concern, putting an object in (Fig. 1); arm, connected to actuator through gear train
the correct place with the right amount of force and with gear ratio, n.
torque at the right time is essential for efficient
θ(t)
θ0
Load,( arm), torque ,TL
Mass
L
Pinion
N1
N2
spur
Gear
Fig. 1: Schematic model of a single joint (one DOF) robot arm driven by an armature-controlled DC motor
The actuator used is a DC motor shown in Fig.2. DC current will generate lines of flu x around the armature
motor turns electrical energy into mechanical energy and affect the lines of flu x in the air gap between two
and produces the torque required to move the load to coils, generating two magnetic fields, the interaction
the desired output position, θL, o r rotate with the desired between these two magnetic fields (attract and repel one
output angular speed, ωL. The produced torque is another) within the DC motor, results in a torque which
exerted to accelerate the rotor and ultimately this tends to rotate the rotor (the rotor is the rotating
mechanical power will be transmitted through a gear set member of the motor). As the rotor turns, the current in
to robot arm, therefore, part of the torque produced will the windings is commutated to produce a continuous
cause a rotational acceleration of the rotor, depending torque output resulting in motion.
on its inertia, Jm , and the other part of the energy will
DC machines are characterized by their versatility.
be dissipated in the bearings according to its viscous
By means of various combinations of shunt-, series-,
friction, b m and the rotational speed.
and separately-excited field windings, they can be
designed to display a wide variety of volt-ampere or
speed-torque characteristics for both dynamic and
III. Modeling the Electric Motor steady-state operation. Because of the ease with which
they can be controlled, systems of DC machines have
DC motors (mach ines) consist of one set of a current
been frequently used in many applications requiring a
carrying conductive coil, called an armature, inside
wide range of motor speeds and a precise output motor
another set of a current carrying conductive coils or a control [3, 4]. The selection of motor for a specific
set of permanent magnets, called the stator. The input
application is dependent on many factors, such as the
voltage can be applied to armature terminal (armature
intention of the application, correspondingly allowable
current controlled DC motor), or to carrying conductive variation in speed and torque and ease of control, etc.
coils terminals (field current controlled DC motor). This
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric M otor, 41
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
The dynamic equations of DC motors can be derived, becomes transformed to the desirable form [7], A
mainly based on the Newton’s law combined with the designer can often make a linear appro ximation to a
Kirchoff’s laws. The fundamental system of nonlinear system. Linear appro ximations simplify the
electromagnetic equations for any electric motor is analysis and design of a system and are used as long as
given by [5,6]: the results yield a good approximation to reality [8].In
modeling DC motors and in order to obtain a linear
d s model, the hysteresis and the voltage drop across the
us Rs is j k s motor brushes is neglected, and the motor input voltage
dt
may be applied to the field or armature terminals . In this
d R
us RRiR j ( Pbm ) R
k
(1)
paper we are most concerned with armature controlled
dt and field controlled DC motor.
s Ls is L iR
R LR iR L iS 3.1 Modeling of the Armature Controlled PMDC
Motor
where : the angular speed of rotating coordinate
k
The Permanent Magnet DC (PMDC) motor is an
system (reference frame), Depending on motor example of electromechanical systems with electrical
construction (AC or DC), the method of the supply and and mechanical components, a simplified equivalent
the coordinate system (stationary or rotating with the representation the armature controlled DC motor's two
rotor or stator flu x) the above mentioned mod el components are shown in Fig.2(a).
m m
ELECTRIC component of PMDC motor system MECHANICAL component of PMDC motor system
Electromechanical PMDC motor system
Fig. 2(a): Schematic of a simplified equivalent representation of the armature controlled DC motor's electromechanical components, (PMDC motor)
Fig. 2(b): Schematic of a simplified equivalent representation of the field controlled DC motor 's electromechanical components
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
42 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
3.2 Modeling of Motor Dynamics, Approach I; The equations describing mechanical characteristics can be
Basic Ideal, Linear, PMDC Motor Model derived; the sum of the torques must equal zero, we
have:
3.2.1 Electrical Characteristics of PMDC Motor
∑T = J *α = J*d 2 θ/dt2
Applying a voltage to motor coils produce a torque in
the armature, the torque developed by the motor ,Tm is Te – Tα – Tω - TEMF = 0
related to the armature current, ia by a torque constant,
Kt and given by the following equation: Substituting the following values: T e = Kt *i a , Tα =
Jm *d 2 θ/dt 2 , and Tω= b m *dθ/dt , in open loop PMDC
Motor Torque = Tm = Kt * ia 2 motor system without load attached, that is the change
in Tmotor is zero, gives:
The back electromotive force, EMF voltage, e a is
d 2 d
induced by the rotation of the armature windings in the K t * i T Load J m 2 bm 0
fixed magnetic field, the polarity of EMF voltage acts in
dt dt
opposition to the current that produces the motion. The
EMF is related to the motor shaft angular speed ,ωm by Taking Laplace transform and rearranging, gives:
a linear relation given by:
Kt *I(s) - Jm *s2 θ(s)– b m *s θ(s) = 0
d m (t ) 7
ea (t ) K b K b m Kt I (s) = (Jm s + b m ) s θ(s)
dt 3
The electrical and mechanical PMDC motor two
Where: Kb : EMF constant. Based on the Newton’s components are coupled to each other through an
law combined with the Kirchoff’s law, the algebraic torque equation given by (1). In summary; a
mathematical model in the form of differential satisfactory PMDC motor equations that describes the
equations describing electric characteristics of the electric and mechanical characteristics of a practical
armature controlled PMDC motor can be derived, PMDC motor for many purposes is given by Eqs. (1),
where the electrical equivalent of the armature circuit, (2),(5) and (7).
can be described as an inductance, L in series with a
resistance, R in series with an induced EMF voltage
which opposes the voltage source. Applying Kirchoff’s 3.3 Deriving PMDC Motor Open Loop System
law around the electrical loop by summing voltages Transfer Functions
throughout the R-L circuit gives:
To derive the PMDC motor transfer function, we
V V in VR VL EMF 0 4
need to rearrange (6) describing electrical
characteristics of PMDC, such that we have only I(s) on
the right side, then substitute this value of I(s) in (7)
Applying Ohm's law, substituting and rearranging, describing PMDC mechanical characteristics, as
we get differential equation that describes the electrical follows:
characteristics of PMDC motor:
1
di (t ) d (t ) I a (s ) V in (s ) K b (s )
La s R a
V in R a i a (t ) La a K b
dt dt 8
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 43
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
1 La
s
Rearranging (11), and knowing that the electrical and
mechanical PMDC motor components are coupled to I a (s ) La Jm
each other through an algebraic torque equation given
V in (s ) R b R b K K
by Eq. (1), we obtain the PMDC motor open loop s 2 a m s a m b t
transfer function without any load attached relating the La J m La J m La J M 15
input voltage, Vin (s), to the motor shaft output angle,
θm (s), given by:
(s) 3.4 Modeling of Motor dynamics, approach II :
Gangle ( s )
Vin ( s) The armature, i a current can be found by rearranging
12 the torque equation given by (1), rearranging and taking
Kt
Laplace transform, gives:
s L s R J
a a m s bm Kt K B
T m (s )
I a (s )
(s) Kt 16
Gangle ( s )
Vin ( s)
Kt To find the transfer function of the PMDC motor, in
L J
a m s ( Ra J m bm La ) s ( Rabm K t K b ) s
3 2
terms of input voltage Vin and output angular position
θm , we first substitute (3), and (16), in (5) and taking
Laplace transform, this gives:
The PMDC motor open loop transfer function
relating the input voltage, Vin (s), to the motor shaft
output angular velocity, ωm (s), given by: V in (s )
Las R a T m (s ) K s (s )
b
Kt 17
(s)
Gspeed ( s) The torque developed by the motor, Tm (s), in terms of
Vin ( s)
13 output angle θm (s), is given by (14), substituting in (17),
Kt and manipulating, gives:
L s R J
a a m s bm Kt Kb Las R a J m s 2 bm s (s )
V in (s ) K b s (s )
( s) Kt
Gspeed ( s )
Vin ( s)
Manipulating and Rearranging gives:
Kt
L Ja m s 2 ( Ra J m bm La ) s ( Rabm K t K b ) R a J m s 2 bm s
V in (s ) K b s (s )
Kt
Here note that the transfer function Gangle(s) can be
expressed as: Gangle(s) =Gspeed (s) *(1/s) . This can be
obtained using MATLAB, by the following, code: La s R a J m s 2 b m s K t K b s (s )
V in (s )
>> G_angle = tf(1,[1,0] )* G_speed Kt
Where: running tf(1,[1,0] ), will return 1/s
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
44 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Moto r,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
J m s 2 s
obtained by substituting (La =0), and given by:
Ia s
Kt ( s)
Gangle ( s )
Substituting (19) in (6), and rearranging gives:
Vin ( s )
Kt
J m s 2 s 22
La s Ra V in s K b s s
Ra J M
Kt
1 Kt Kb
s s bm
Jm Ra
J ms 2 s J s 2 s
La s Ra m + Kb s s Vin s
Kt Kt Eq.(12) can be simplified by substituting,(La =0), to
have any of the following two forms, where the second
(s ) Kt form given by (22) can be simplified to second order
G angle (s ) system, given by:
V in (s ) La J m s 3 R a J m s 2 K t K b s 20
( s)
To write t ransfer function in terms of output speed ω, Gangle ( s )
we rewrite the torque Eq.(19) in terms of output speed Vin ( s )
Kt *i a = Jm dω /dt , and repeat previous steps. Kt
23
Ra J m s ( Ra bm K t K b ) s
2
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 45
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Tf = Kt *ia - b*ω 26
( s)
Gspeed ( s)
Vin ( s) 25
Kt IV. PMDC Motor Model Representation,
Simulation and Analysis
( Ra J m s K t K b )
4.1 PMDC Motor Model Representation Using
Block Diagrams
3.7 Nonlinear Model of PMDC Motor Applying a voltage, Vin , to motor coils produce a
Mechanical control systems are supposed to operate torque in the armature. The produced torque produces
with high accuracy and speed despite adverse effects of an angular shaft velocity, ω= dθ/dt, according to the
system nonlinearities and uncertainties. This robustness inertia J and viscous friction b, the armature will rotate
property is of great importance if the system is part of a at a speed and direction dependent on the applied
robotic or servo system, which requires insensitivity to voltage and polarity. Theoretically, as a result of
unmodeled dynamics [11,12]. The ideal simplified applied voltage the motor shaft should continue to
PMDC motor model rarely accurate compared with accelerate to a higher and higher speed unless there is a
actual results and measurements, since note all factors force that works in opposition to the applied voltage,
are considered. To obtain the full system model, major this force is back electromotive force, EMF, eb., where
mechanical and electrical nonlinearities such as because the rotation of the PMDC motor's armature
saturation, coulomb friction and backlash must be windings in the fixed magnetic field generates, EMF,
included in the model. Here we will derive more an that opposes the applied voltage. Using this we can
actual equations of PMDC motor, identifying all build the block diagram model of the open loop PMDC
possible parameters, (actual simulink model is shown in motor system. The PMDC motor electric component
Fig.7). Coulomb friction is a non-linear element in transfer function relating input armature current, ia and
which forces tend to appose the motion of bodies in voltage Vin , is given by (9), the DC motor mechanical
contact in mechanical systems, it acts as disturbance component transfer function relating output torque and
torque feedback for the mechanical system, Coulomb input rotor speed is given by (10), also the electrical and
friction is considered to be a constant retarding force mechanical PMDC motor components are coupled to
but is discontinuous over zero crossings, that is, when a each other through an algebraic torque equation given
DC motor reverses direction it must come to a stop at by (2), using these relations we can build the block
which point Coulomb friction drops to zero and then diagram model of the open loop PMDC motor system
opposes the reversed direction. In effect Coulomb shown in Fig.3 , block diagram model shows the
friction is constant when rotational velocity is not zero feedback action in the open loop PMDC motor system,
[3]. Introducing in Eq.(6) ,Coulomb friction and dead also shows that the electrical and mechanical PMDC
zone friction, where (Tload =0) , we have: motor components are coupled to each other through
torque constant Kt .
Load torque
TL
Angular Output Output
Voltage V(s) velocity Motor angle Load angle
V(s)-EMF Current Torque
1 I(s) Tm(s) - 1 ω(s) 1 θ(s)
+ + n
Vin - Ls + R Kt Js + b s
Armature, Load, Gear ratio
electric mechan.
part part
Vb(s) Kb
Back emf
Fig. 3: T he block diagram representation of open loop PMDC motor system
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
46 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
dx
Ax Bu
dt
y CX Du
Looking at DC motor speed , as being the output, the
Rearranging (5) and (6) to have the below two first following state space model obtained:
order equations, relating the angular speed and armature
current:
d K t i a bm T L
dt Jm Jm Jm 27
29
di a R i K V in
a a b
dt La La La 28
Looking at the DC motor output shaft position θ, and
choosing the state variable to be the motor shaft output
position θm , velocity ωm and armature currents ia : The state space models are the basis for building the
simulink model of open loop DC model.
x1
d
x2
dt
x 3 ia
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 47
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
48 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Fig. 5: PMDC motor simulink model based on transfer function model given by (11)
6.3 Block diagram representation of simplified given by equations (21) and (22), assuming La =0 , is
mathematical model in simulink of PMDC motor shown in Fig. 6.
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 49
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Fig. 7: a suggested full block diagram model of PMDC motor open loop system with introduced saturation and coulomb friction
6.4 Suggested Function Blocks with Its Function 6.4.1 Simplified function block based on block
Block Parameters Window diagram model, shown in Fig.8(a), is shown in
Fig.8(b)(c), running this with nominal values, will
To simplify and accelerate the process of DC motors
return response curves shown in Fig. 9as well as
sizing and selection for different applications, the
angular acceleration/time curve.
following two simplified and accurate a function blocks
with its function block parameters windows are 6.4.2 Accurate function block based on simulink
introduced below, these models can be used by defining model, given in Fig.8(c), is shown in Fig.8(d). Running
parameters, in corresponding blocks or running m.file this with nominal values, will return response curves
with these parameters defined and running the model, shown in Fig. 9, as well as angular acceleration/time
will result in corresponding Torque/time, speed/time , curve, here note that the current/time curve will differ
position/time and current/time curves for given step from that in Fig. 9(a) and is shown in Fig.9(b) , this is
input volte. because of (La=0) simplification.
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
50 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Fig. 8(b): Simplified PMDC function block PMDC motor sub system
Fig. 8(d): Accurate function block with its parameters window for open loop DC motor performance verification and analysis
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 51
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
6.5 Modeling and Analysis Using MATLAB. disp('Transfer function relating input Vin(s)and
output current I(s) : ')
The transfer function can be defined and entered in
G_Current=tf([1/La,1/Jm],
MATLAB in a number of different ways ; by defining
[1,((Ra/La)+(bm/Jm)),((Ra*bm)/(La*Jm))+((Kb*Kt)/(L
the variables in the transfer function , that are: Vin , Ra ,
a*Jm)) ])
la , Kt , Kb ,Jm , b m in polynomial coefficient form, then
disp(' Simplified Transfer function relating input
defining numerator and denominator, or we can
Vin(s)and output angle: ')
separately enter transfer functions describing
G_angle_simpl=tf(Kt,[Ra*Jm,(Ra*bm + Kt*Kb),0])
mechanical and electric DC motor characteristics ,then
disp(' Simplified Transfer function relating input
combine them in series, and finally using MATLAB
Vin(s)and output speed :')
function feedback to create a feedback connection of
G_speed_simpl=tf(Kt,[Ra*Jm,(Ra*bm + Kt*Kb)])
two transfer functions, a program m.file can be written
to simplify analysis process, the following m.file can be
subplot(4,2,1), step(Vin*G_angle),title( 'Step
used to return the transfer function relations Gangle(s),
response , output angle ')
Gspeed (s), θ m(s)/ Tm (s) , Ia (s)/ Vin (s),simplified Gspeed (s),
subplot(4,2,2), step(Vin*G_speed),title('Step
simplified Gangle(s) as well as their response to step
response , output speed ')
input signal, shown in Fig. 10
subplot(4,2,3), step(Vin*G_torque_angle),title('Step
response , input motor torque output angle')
clc, close all, clear all subplot(4,2,4),step(Vin*G_Current), title( 'Step
Vin= 12;Jm=0.02 ;b m =0.03; Kt =0.023; Kb =0.023; response,Vin output current')
Ra =1 ; La=0.23; TL= 0; subplot(4,2,5),step(G_angle_simpl),title( 'Simplified
% Jm = input(' Enter moment of inertia of the rotor, response, output angle ')
(Jm) ='); subplot(4,2,6),step(Vin*G_speed_simpl),title( 'Simplif
% bm = input(' Enter damping constant of the ied response, output speed ')
mechanical system ,(bm)=');
% Kt = input(' Enter torque constant, Kt='); % state space
% Kb = input(' Enter electromotive force constant, num = Kt;
Kb='); den_speed =
% Ra = input('Enter electric resistance of the motor [(Jm*La),(Jm*Ra)+(La*bm),(Ra*bm)+(Kt*Kb )];
armature (ohms), Ra ='); den_angle =
% La =input(' Enter electric inductance of the [(Jm*La),(Jm*Ra)+(La*bm),(Ra*bm)+(Kt*Kb ),0];
motor armature (Henry), La='); G_speed2=tf(num,den_speed);
% Vin = input(' Enter applied input voltage, Vin ='); G_anle2=tf(1,[1,0] )*G_speed2;
num1 = [1]; disp('State matrix, output angle: ')
den1= [La ,Ra]; [A1,B1,C1,D1]=tf2ss(num ,den_angle)
num2 = [1]; subplot(4,2,7), step(A1, B1, C1, D1), title( 'state
den2= [Jm ,bm]; space response,output angle')
A = conv( [La ,Ra], [Jm ,bm]); disp('State matrix, output speed : ')
TF1 =tf(Kt, A); [A,B,C,D]=tf2ss(num ,den_speed)
subplot(4,2,8), step(Vin*A, Vin*B, Vin*C, Vin*D),
disp('DC motor electric part Transfer title('state space response, output speed ')
function ,output current: ') % steady state calculations : % for velocity steady
G_electric=tf(num1,den1) state value
disp('DC motor mechanical part Transfer function t=0:0.01:1000;
o,output speed: ') y=step(12* G_speed,t);
G_mechanical=tf(num1,den2) speed_steady_state_value=y(length(t));
disp('DC motor system open loop Transfer fprintf(' Output steady state speed, OMEGA= %f
function ,output angle ') rad/sec \n ',speed_steady_state_value)
G_speed= feedback(TF1,Kb) % for angle steady state value
disp('DC motor system open loop Transfer y=step(12* G_angle,t);
function ,output speed ') angle_steady_state_value=y(length(t));
G_angle=tf(1,[1,0] )*G_speed fprintf('Output steady state angle for given time
disp('Transfer function relating torque developed by range, THETA= %f radians \n
the motor , Tm(s) and shaft angle ?m(s),') ',angle_steady_state_value)
G_torque_angle=tf(1,[Jm,bm,0])
disp(' Transfer function relating torque developed by
the motor , Tm(s) and shaft speed , ')
VII. Modeling of Separately Excited DC Motor
G_torque_speed=tf(1,[Jm,bm])
7.1 Modeling of the field current controlled DC
motor, with i a (t) held constant
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
52 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Vin _ field s
The torque developed by the motor is related linearly Km * bm s s J ms 2 s 33
to air-gap flux, Φ and the armature current ia(t), and Lf s Rf
given by:
Rearranging Eq.(33), the electrical and mechanical
Motor Torque T m K 1 * *i a (t ) 31 field current controlled DC motor components are
coupled to each other through an algebraic the motor
constant , Km , we obtain the transfer function relating
Substituting (30) in (31), we have:
input filed voltage Vin_field (s), and motor output angle
θm (s), and given by:
T m K 1 * K f *i a (t ) * i f (t )
(s ) Km
G angle (s )
The armature current must maintained constant ia(t) V in _ filed (s ) s Lf s R f Js b
= ia= constant, yields:
V V in _ field VR _ field VL _ field 0 system (Fig.2(b)); the sum of the torques must equal
zero, we have:
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 53
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
V f R f I f (t ) Lf sI a
Vf
I f (s )
R f Lf s
Applying Kirchoff’s law around the armature
electrical loop by summing voltages throughout the R-L
circuit, taking Laplace transform, gives:
V V in VR VL EMF 0
1
I a (s ) V a (s ) K b * i f * (s )
La s R a
Fig. 9(b): Angular acceleration/time curve, and simplified model
Substituting in (43) .(43), gives: current/time curve ,both for 12 V step input
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
54 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulin k
Fig. 12(a)
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 55
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Fig. 12(b)
Fig. 12(a)(b): Simulink model of separately excited DC motor
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
56 Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor,
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
[6] R.D. Doncker, D.W.J. Pulle, and A. Velt man. [12] Faber MN, Estimating the uncertainty in estimates
Advanced Electri-cal Drives: Analysis, Modeling, of root mean square error of prediction:
Control. Springer, 2011. Application to determin ing the size of an adequate
test set in mult ivariate calibration. Chemo metr
[7] Grzegorz SIEKLUCKI,Analysis of the Transfer-
Intel Lab 1999;49(1):79– 89.
Function Models of Electric Drives with
Controlled Vo ltage Source PRZEGL ˛ AD [13] The MathWorks (www.mathwo rks.co m), Control
ELEKTROTECHNICZNY (Electrical Review), System Toolbo x documentation Version V5.2
ISSN 0033-2097, R.88NR7a/2012. (R2009b).
[8] Richard C. Do rf and Robert H. Bishop. Modern [14] Katsuhiko Ogata, Modern control engineering,
Control Systems. Ninth Ed ition, Prentice-Hall Inc., third edition, Prentice Hall, 1997.
New Jersey, 2001.
[15] Bou mediene Allaua, Abdellah Laoufi, Brahim
[9] Norman S. Nise, Control system engineering, sixth GA SBAOUI, Abdelfatah NASRI and Abdessalam
edition, John Wiley & Sons, Inc, 2011. Abdelrahmani Intelligent Controller Design for DC
Motor Speed Control based on Fuzzy Logic -
[10] P. Wolm, X.Q. Chen, J.G. Chase, W. Pettigrew,
GeneticAlgorith msOptimization.http://ljs.academic
C.E. Hann1, Analysis of a PM DC Motor Model
direct. org/ A13/090_102.htm
for Application in Feedback Design for Electric
Powered Mobility Vehicles.
[11] Slotine E, Li W. Applied nonlinear control. USA :
Prentice Hall Inc.; 1991.
Appendi x I: Table-Nomenclature
Symbol Q uantity UNIT
V, or Vin T he applied input voltage ,(Motor terminal voltage) Volte, V
Vin_field (s) Input filed voltage Volte, V
Ra Armature resistance,( terminal resistance) Ohm ,Ω
Rf Stator resistance Ohm ,Ω
Lf Stator inductance
La Armature inductance
Φ Air-gap flux,
ia Armature current Ampere, A
If Field current
Kt Motor torque constant N.m/A
Ke Motor back-electromotive force const. V/(rad/s)
Km T he motor constant
ωm Motor shaft angular velocity rad/s
Tm T orque produced by the motor N.m
Jm Motor armature moment of inertia kg.m 2
Jtotal T otal inertia=Jm+Jload kg.m 2
La Armature inductance Henry , H
b Viscous damping, friction coefficient N.m/rad.s
ea ,EMF: T he back electromotive force, EMF =Kb dθ/dt ea ,EMF:
θm Motor shaft output angular position radians
ωm Motor shaft output angular speed rad/sec
VR = R*i T he voltage across the resistor Voltage
VL=Ldi/dt T he voltage across the inductor Voltage
Tload T orque of the mechanical load Tload
Tα T orque du to rotational acceleration Tα
Tω T orque du to rotational velocity Tω
T EMF T he electromagnetic torque. T EMF
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57
Modeling, Simulat ion and Dynamics Analysis Issues of Electric Motor, 57
for Mechatronics Applications, Using Different Approaches and Verification by MATLAB/Simulink
Authors’ Profiles
Ahmad A. Mahfouz : B.Sc. and
M.Sc; Bari Un iversity, Italy and
Moscow state Academy. No w, He
in Automatic and Mechatronics
Systems, Vladimir State
University and the director of
alpha center for engineering
studies and technology researches.
Major academic and research interests: Design,
modeling and analysis of primary Mechatronics
Machines Control Systems, Robotics, Electronics,
Microcontrollers, and Quantity Surveying.
Copyright © 2013 MECS I.J. Intelligent Systems and Applications, 2013, 05, 39-57