SlideShare a Scribd company logo
1 of 5
Abstract— In this lab, students modeled a motor/flywheel
system using LabVIEW, the SADIDAQ and hardware in the lab.
Using LabVIEW, data was collected for sinusoidal and square
voltage wave forms and compared with a theoretical model of the
system using the given motor specifications. Transfer functions,
step responses and bode plots were the primary means of
performing the comparison.
Index Terms—Bodine DC motor, bode plots, step response,
transfer functions
I. INTRODUCTION
ransfer functions are used to model a system’s dynamic
characteristics. A Transfer function is the ratio of the
system’s output response to input command signal. Any type of
control system can be modeled in this fashion. In this lab,
LabVIEW is used to experimentally collect data and this data
enables student to model the system’s transfer function, step
response and bode plots. The theoretical transfer function
model is found using the motor data sheet [1] located on
Canvas. Initially, the experimental input command consists of
a sinusoidalvoltage signal with the following frequencies (Hz):
0.1, 0.2, 0.5, 1, 2, 5, 7.5, 10, 15, 20. At each frequency,5 cycles
of data were obtained for the experimental model. After this
data is found, a square wave input command was used at a
frequency of 0.2 Hz in order to find the system’s velocity step
response.
II. PROCEDURE
A. Determining the system transfer function
The first step of this lab is to find the system’s transfer function
based on the given systemparameters. Fig.1 shows the system
dynamics/parameters. This diagram is used as a basis for
creating the system’s transfer function.
Fig. 1. Diagram of system dynamics
The system’s input/output dynamics and parameters are
located in the following table. The electrical dynamics are
modeled using the following formula.
𝑉 = 𝑖𝑅 +
𝐿𝑑𝑖
𝑑𝑡
+ 𝑒 (1)
Where 𝑉 is the input voltage, 𝑖 is the current, 𝑅 is the
resistance, 𝐿 is the motor inductance,
𝑑𝑖
𝑑𝑡
is the time rate of
change of the current and 𝑒 is the back electromotive force of
the motor. The motor dynamics are modelled using the
following equation:
𝐽Ӫ = 𝑇 − 𝑏 𝑚 𝜔 (2)
Where 𝐽 is the rotational inertia, Ӫ is the motors angular
acceleration, 𝑇 is the motor torque, 𝑏 𝑚 is the viscous friction
coefficient and 𝜔 is the angular velocity of the motor. In order
to relate the electrical dynamics with the motor dynamics,
electromechanical relations are used. The following equations
represent the systems electromechanical relations:
𝑒 = 𝐾𝑒 𝜔 (3)
𝑇 = 𝐾𝑇 𝑖 (4)
Where 𝐾𝑇 is the motor torque constant. To find the system
transfer function, the Laplace transform is taken of the motor
dynamics and the electrical dynamics and through algebraic
manipulation, the system transfer function relating the input
voltage to the motor velocity is obtained [1]. The following
equation represents the system’s transfer function.
𝜃(𝑠)
𝑉(𝑠)
=
𝐾𝑇
( 𝐽𝐿) 𝑆3 + ( 𝐽𝑅 + 𝑏 𝑚 𝐿) 𝑆2 + (𝑏 𝑚 𝑅 + 𝐾𝑒 𝐾𝑇 )𝑆
(5)
B. Creation of LabVIEW VI to obtain theoretical transfer
function/step response/Bode plots
In order to find the theoretical system transfer function/step
response/Bode plots, students must create a LabVIEW VI that
allows for the input of the symbolic systeminputs (symbolic
denominator) and the symbolic system outputs (symbolic
Lab 1: Modeling a Motor/Flywheel System
Ballingham, Ryland
Section 7042 9/10/16
T
<Section####_Lab#> Double Click to Edit 2
2
numerator). This is done by following the motor/flywheel
system tutorial provided online [1]. Once the parameter
constants are found using the motor data sheet, the theoretical
systemtransfer function/step response can be found.
C. Creation of LabVIEW VI to obtain experimental transfer
function/step response
In order to properly collect data, a LabVIEW VI must be
created that takes an input frequency and voltage signal and
outputs the system’s tachometer voltage, motor velocity, motor
rotation and command signal. A LabVIEW template file found
on Canvas is used as a basis for the VI creation. During lab, data
is obtained for both sinusoidal and square wave form input
voltages. For the sinusoidal waveform input, the voltage is set
to 2V and data is obtained for five cycles over the following
frequency range (Hz): 0.1, 0.2, 0.5, 1, 2, 5, 7.5, 10, 15, 20. For
the square wave input, the voltage is set to 2V and data is
obtained for only 0.2 Hz for 5 steps. The data obtained for both
waveform inputs was exported to Excel for analysis.
D. Bode Magnitude/Phase Diagrams
In order to find both the Bode magnitude/phase diagrams for
the sinusoidal input voltage data, the motor velocity derivative
is plotted versus time at each individual frequency. Using these
plots, the motor velocity derivative minimum/maximu m
magnitudes are found and an average magnitude is found at
each frequency using the following formula:
𝑀𝑜𝑢𝑡 = 0.5 ∗ (𝜔 𝑚𝑎𝑥 − 𝜔 𝑚𝑖𝑛 ) (6)
Also,the tachometer voltage offset is found using the following
formula:
𝑂𝑜𝑢𝑡 = 0.5 ∗ (𝜔 𝑚𝑎𝑥 + 𝜔 𝑚𝑖𝑛 ) (7)
Once these calculations are complete, the same steps must be
performed for the input waveform (command signal). Once this
is complete, the input sinusoid must be scaled to match the
output sinusoid,and then it is shifted by the offset. This data is
then plotted on the same plot as the motor velocity derivative.
The following plot shows this for 1 Hz frequency range:
Fig. 2. Output/scaled and shifted input vs time for 2 Hz frequency
Once all these plots are made for all frequencies, the next step
is to find the time of several corresponding input/output peaks
for all frequencies. The time difference between each
corresponding input/output peakis the systems delay. Once the
delay is found for each frequency, the phase delay (𝜙)(for each
frequency can be found using the following formula:
𝜙 = 𝑑𝑒𝑙𝑎𝑦 ∗ 𝑠𝑖𝑔𝑛𝑎𝑙 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 ∗ 360 (8)
Since the voltage input magnitude entered into LabVIEW was
2 V, the Bode magnitude (𝑀 𝐵𝑜𝑑𝑒 ) can be found using the
following formula:
𝑀 𝐵𝑜𝑑𝑒 = 20 ∗ 𝐿𝑜𝑔10 (
𝑀𝑜𝑢𝑡
𝑀𝑖𝑛
) (9)
Now that both the Bode magnitudes and phase delays have been
found, both Bode plots can be made.
E. Velocity step response plot square wave data
In order to find the velocity step response for the square wave
data, students need to download the given excel file on
Canvas. With this excel file, the motor velocity derivative data
found in lab for the first step wave is pasted into this excel file
as well as the time. When this is done, a plot is created over
the existing plot.
F. Calculating parameter constants
In order to find the theoretical transfer function, bode plots
and pole-zero equations in LabVIEW, the parameter constants
must be calculated. 𝑘 𝑇 , 𝐿, 𝑅, can be found on the given motor
data sheet [2]. 𝑏 𝑚 and 𝐽 must be calculated by hand. 𝑏 𝑚 can be
calculated by using the following formula:
𝑏 𝑚 =
𝑇
𝜔
(10)
𝜔 can be found on the motor data sheet. To calculate the
motor torque, the following formula can be used:
𝑇 = 𝐾𝑇 ∗ 𝑖 (11)
Once the torque is calculated, 𝑏 𝑚 can be found. The rotational
inertia can be found by creating the flywheel in SolidWorks.
G. Estimated gain/ pole locations/parameter values for the
system
The theoretical gain for the systemcan be found by using the
following formula:
𝐾𝑉 =
𝐾𝑇
𝑏 𝑚 𝑅 + 𝐾𝑒 𝐾𝑇
(12)
The experimental gain can be found be looking at the
experimental Bode magnitude plot.
The theoretical pole locations of the systemcan be looking
<Section####_Lab#> Double Click to Edit 3
3
at pole-zero equation found in LabVIEW. In this equation,
setting the denominator equal to 0 and solving for S roots will
yield the system’s pole locations. The experimental pole
locations can be found by looking at fig. 4.
The theoretical system parameter values (𝑎, 𝑑) can be
derived from the system transfer function using the following
formulas:
𝑎 =
𝑏 𝑚 + 𝐾𝑒 𝐾𝑇
𝐽𝑅
(13)
𝑑 =
𝐾𝑇 𝐾𝑎𝑚𝑝
𝐽𝑅
(14)
Where 𝐾𝑎𝑚𝑝 is 90 V. The experimental parameter values can
be found by importing the motor velocity derivative lab data
into the provided step response excel file. Using the solvertool,
𝑎 and 𝑑 can be calculated.
H. Calibrating the tachometervoltage
In order to obtain a proper tachometer voltage reading, the
tachometer voltage needs to be calibrated. This is done by
plotting the motor velocity derivative vs the tachometer
voltage reading. Once this is done,a linear trend line is found
and the resulting slope is the calibration constant. This is done
to convert the voltage reading from the tachometer to a
velocity. Using this calibration constant,a new motor velocity
derivative reading can be found.
III. RESULTS
Fig. 3. Experimental Bode magnitude plot
Fig. 4. Experimental pole location
Fig. 5. Experimental Bode phase plot
Fig. 6. Velocity step response of square wave data
Fig. 7. Theoretical Bode magnitude plot
Fig. 8. Theoretical Bode phase plot
<Section####_Lab#> Double Click to Edit 4
4
Fig. 9. Theoretical transfer function found in LabVIEW
Fig. 10. Theoretical pole-zero equation found in LabVIEW
Fig. 11. Motor velocity derivative vs time for square waveform plot
Fig. 12. Calibratedmotor velocitytachometer vs timefor square waveformplot
Fig. 13. Motor velocity tachometer vs motor velocity derivative with linear
trendline
TABLE I
THEORETICAL PARAMETER VALUES
Parameter Value
𝐾𝑇 [(N-m)/A] 0.4202
𝐾𝑒 [V/(rad-s)] 0.4202
J [N-m^(2)] 0.0064
R [Ohms] 11
L [H] 0.00028
𝑏 𝑚 [(N-m)/(rad/s)] 0.003157
TABLE II
A AND D PARAMTER VALUES
Parameter Theoretical Experimental
𝑎 2.97 10.31
𝑑 (rad/s) 9.35 6.79
Gain 1.99 1.33
TABLE III
THEORETICAL/EXPERIMENTAL POLE LOCATIONS
Parameter Theoretical Experimental
𝑆1 0 0
𝑆2 -3.00154 4.4
𝑆3 -39,283.2 -
IV. DISCUSSION
A. Comparison of experimental/theoretical Bode plots
Both Bode magnitude plots (figures 3 & 7) have the same
general trend and shape. The main difference is the magnitude
values at which the plots begin/end. The same is true for the
Bode phase plots (figures 5 & 8). The reason for this could be
due to the additional gain constant on the experimental transfer
function.
B. Numerical time derivative vs tachometer voltage
Using the tachometer voltage yields a better reading then the
motor time derivative. This is because the numerical derivative
is a calculated value in LabVIEW which is based on a position
reading. Since a series of calculations has to be performed to
get a motor derivative value, it is more prone to error
propagation. The tachometer voltage is based on a sensor
reading with no intermediate calculations, thus providing a
more accurate reading.
C. Parameter comparison
A 71% difference was calculated between the theoretical 𝑎
value and the experimental 𝑎 value while a 27% error was
calculated between the theoretical 𝑑 value and the
experimental 𝑑 value. These errors are likely due to estimation
errors and noise during data collection.
D. Model improvements
In order to make this model better, closed-loop control could
be used instead of open-loop. This will help account for
numerical errors in the systemby accounting for the system
error in the input command signal. This will help reduce
overshoot and steady-state errors in the system.
<Section####_Lab#> Double Click to Edit 5
5
V. CONCLUSION
This lab is a good demonstration of a basic control system.
Using the hardware in lab, an experimental systemmodel was
created to compare to a theoretical system model. This lab
demonstrated that using a motor velocity derivative doesn’t
work as well as using a tachometer voltage reading due to
intermediate calculation errors that propagate. Also, closed-
loop control should be used to account for calculation errors in
LabVIEW.
REFERENCES
[1] N. Instruments, "ModelingDC motorposition,"2008. [Online].
Available: http://www.ni.com/tutorial/6859/en/#toc1.Accessed: Sep. 11,
2016.
[2] Bodine Electric Company, 33ASeries Permanent Magnet DC Motor:
Model 6435specifications. http://www.bodine-
electric.com/Products/Asp/ProductSpecs.asp?Co%E2%80%A6&Name=
33A%20Series%20Permanent%20Magnet%20DC%20Motor&Model=6
[3] S. Banks. “Simplified MF model, EML4312C

More Related Content

What's hot

2_DOF_Inverted_Pendulum_Laboratory_Session
2_DOF_Inverted_Pendulum_Laboratory_Session2_DOF_Inverted_Pendulum_Laboratory_Session
2_DOF_Inverted_Pendulum_Laboratory_SessionPeixi Gong
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqreSAT Publishing House
 
Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd Iaetsd
 
Inverted Pendulum Control: A Brief Overview
Inverted Pendulum Control: A Brief OverviewInverted Pendulum Control: A Brief Overview
Inverted Pendulum Control: A Brief OverviewIJMER
 
1 mrac for inverted pendulum
1 mrac for inverted pendulum1 mrac for inverted pendulum
1 mrac for inverted pendulumnazir1988
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumFrancesco Corucci
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd Iaetsd
 
Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole systemShubhobrata Rudra
 
Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...IOSRJEEE
 
Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...hunypink
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLeonides De Ocampo
 
Linear quadratic regulator and pole placement for stabilizing a cart inverted...
Linear quadratic regulator and pole placement for stabilizing a cart inverted...Linear quadratic regulator and pole placement for stabilizing a cart inverted...
Linear quadratic regulator and pole placement for stabilizing a cart inverted...journalBEEI
 
LMI based antiswing adaptive controller for uncertain overhead cranes
LMI based antiswing adaptive controller for uncertain overhead cranes LMI based antiswing adaptive controller for uncertain overhead cranes
LMI based antiswing adaptive controller for uncertain overhead cranes IJECEIAES
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Thomas Templin
 
Transfer function, determination of transfer function in mechanical and elect...
Transfer function, determination of transfer function in mechanical and elect...Transfer function, determination of transfer function in mechanical and elect...
Transfer function, determination of transfer function in mechanical and elect...Saad Mohammad Araf
 
Analysis of a pendulum problem
Analysis of a pendulum problemAnalysis of a pendulum problem
Analysis of a pendulum problemSuman Lata
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modelingvishalgohel12195
 
Transient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fanTransient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fanLahiru Dilshan
 
final year presentation
final year presentationfinal year presentation
final year presentationrao tahir
 

What's hot (20)

2_DOF_Inverted_Pendulum_Laboratory_Session
2_DOF_Inverted_Pendulum_Laboratory_Session2_DOF_Inverted_Pendulum_Laboratory_Session
2_DOF_Inverted_Pendulum_Laboratory_Session
 
Controller design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqrController design of inverted pendulum using pole placement and lqr
Controller design of inverted pendulum using pole placement and lqr
 
Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...Iaetsd modelling and controller design of cart inverted pendulum system using...
Iaetsd modelling and controller design of cart inverted pendulum system using...
 
Inverted Pendulum Control: A Brief Overview
Inverted Pendulum Control: A Brief OverviewInverted Pendulum Control: A Brief Overview
Inverted Pendulum Control: A Brief Overview
 
1 mrac for inverted pendulum
1 mrac for inverted pendulum1 mrac for inverted pendulum
1 mrac for inverted pendulum
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pid
 
Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole system
 
Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...Applying Parametric Functional Approximations for Teaching Electromechanical ...
Applying Parametric Functional Approximations for Teaching Electromechanical ...
 
Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...Mathematical model analysis and control algorithms design based on state feed...
Mathematical model analysis and control algorithms design based on state feed...
 
Lecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical ModelingLecture 4 ME 176 2 Mathematical Modeling
Lecture 4 ME 176 2 Mathematical Modeling
 
Linear quadratic regulator and pole placement for stabilizing a cart inverted...
Linear quadratic regulator and pole placement for stabilizing a cart inverted...Linear quadratic regulator and pole placement for stabilizing a cart inverted...
Linear quadratic regulator and pole placement for stabilizing a cart inverted...
 
LMI based antiswing adaptive controller for uncertain overhead cranes
LMI based antiswing adaptive controller for uncertain overhead cranes LMI based antiswing adaptive controller for uncertain overhead cranes
LMI based antiswing adaptive controller for uncertain overhead cranes
 
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
Troubleshooting and Enhancement of Inverted Pendulum System Controlled by DSP...
 
Project report. fin
Project report. finProject report. fin
Project report. fin
 
Transfer function, determination of transfer function in mechanical and elect...
Transfer function, determination of transfer function in mechanical and elect...Transfer function, determination of transfer function in mechanical and elect...
Transfer function, determination of transfer function in mechanical and elect...
 
Analysis of a pendulum problem
Analysis of a pendulum problemAnalysis of a pendulum problem
Analysis of a pendulum problem
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modeling
 
Transient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fanTransient three dimensional cfd modelling of ceilng fan
Transient three dimensional cfd modelling of ceilng fan
 
final year presentation
final year presentationfinal year presentation
final year presentation
 

Viewers also liked

MBA Project Marco Marques
MBA Project Marco MarquesMBA Project Marco Marques
MBA Project Marco MarquesMarco Marques
 
adiomovlennya i_telebachennya
adiomovlennya i_telebachennyaadiomovlennya i_telebachennya
adiomovlennya i_telebachennyapc8kab17ppt
 
Відкритий урок.
Відкритий урок. Відкритий урок.
Відкритий урок. pc8kab17ppt
 
права и обовязки дитини
права и обовязки дитиниправа и обовязки дитини
права и обовязки дитиниpc1kab17ppt
 
Jeopardy REVIEW (YOUR BODY)
Jeopardy REVIEW (YOUR BODY)Jeopardy REVIEW (YOUR BODY)
Jeopardy REVIEW (YOUR BODY)jfhidal
 
How To Design Your Content Marketing Hub
How To Design Your Content Marketing HubHow To Design Your Content Marketing Hub
How To Design Your Content Marketing HubMichael Brenner
 
Sharepoint implementation quick points to grasp
Sharepoint implementation  quick points to graspSharepoint implementation  quick points to grasp
Sharepoint implementation quick points to graspNeha Rai
 

Viewers also liked (13)

MBA Project Marco Marques
MBA Project Marco MarquesMBA Project Marco Marques
MBA Project Marco Marques
 
Свидницький і Миргород.
Свидницький і Миргород. Свидницький і Миргород.
Свидницький і Миргород.
 
Портфоліо МО ЗОШ №7
Портфоліо МО ЗОШ №7Портфоліо МО ЗОШ №7
Портфоліо МО ЗОШ №7
 
Cонце ...
Cонце ...Cонце ...
Cонце ...
 
Elementary reading -_legends_of_robin_hood
Elementary reading -_legends_of_robin_hoodElementary reading -_legends_of_robin_hood
Elementary reading -_legends_of_robin_hood
 
adiomovlennya i_telebachennya
adiomovlennya i_telebachennyaadiomovlennya i_telebachennya
adiomovlennya i_telebachennya
 
Відкритий урок.
Відкритий урок. Відкритий урок.
Відкритий урок.
 
2015 catalog
2015 catalog2015 catalog
2015 catalog
 
One Weird Trick
One Weird TrickOne Weird Trick
One Weird Trick
 
права и обовязки дитини
права и обовязки дитиниправа и обовязки дитини
права и обовязки дитини
 
Jeopardy REVIEW (YOUR BODY)
Jeopardy REVIEW (YOUR BODY)Jeopardy REVIEW (YOUR BODY)
Jeopardy REVIEW (YOUR BODY)
 
How To Design Your Content Marketing Hub
How To Design Your Content Marketing HubHow To Design Your Content Marketing Hub
How To Design Your Content Marketing Hub
 
Sharepoint implementation quick points to grasp
Sharepoint implementation  quick points to graspSharepoint implementation  quick points to grasp
Sharepoint implementation quick points to grasp
 

Similar to ControlsLab1

Diapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangencialesDiapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangencialesARIELMATHEOCHANCUSIG
 
Unity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle BodyUnity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle BodySteven Ernst, PE
 
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLAB
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLABField-Oriented Control of PMSM Drive Based on SVPWM Using MATLAB
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLABIJERA Editor
 
Field_Oriented_Control_Induction_Machine
Field_Oriented_Control_Induction_MachineField_Oriented_Control_Induction_Machine
Field_Oriented_Control_Induction_MachineHelion Dhrimaj
 
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...IAES-IJPEDS
 
Dc motor modelling lab report
Dc motor modelling lab reportDc motor modelling lab report
Dc motor modelling lab reportAlexRobert25
 
Transfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersTransfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersSachin Mehta
 
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...csandit
 
EE380-4 Course project Experimental determination of a Ser.docx
EE380-4  Course project Experimental determination of a  Ser.docxEE380-4  Course project Experimental determination of a  Ser.docx
EE380-4 Course project Experimental determination of a Ser.docxjack60216
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentIsham Rashik
 
AntennaProject_NathanJaniczek
AntennaProject_NathanJaniczekAntennaProject_NathanJaniczek
AntennaProject_NathanJaniczekNathan Janiczek
 
Experimental dataset to develop a parametric model based of DC geared motor i...
Experimental dataset to develop a parametric model based of DC geared motor i...Experimental dataset to develop a parametric model based of DC geared motor i...
Experimental dataset to develop a parametric model based of DC geared motor i...IJECEIAES
 
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINK
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINKMODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINK
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINKsanjay kumar pediredla
 
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...IRJET Journal
 
Simulation of Direct Torque Control of Induction motor using Space Vector Mo...
Simulation of Direct Torque Control of Induction motor using  Space Vector Mo...Simulation of Direct Torque Control of Induction motor using  Space Vector Mo...
Simulation of Direct Torque Control of Induction motor using Space Vector Mo...IJMER
 

Similar to ControlsLab1 (20)

Diapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangencialesDiapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangenciales
 
Unity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle BodyUnity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle Body
 
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLAB
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLABField-Oriented Control of PMSM Drive Based on SVPWM Using MATLAB
Field-Oriented Control of PMSM Drive Based on SVPWM Using MATLAB
 
Field_Oriented_Control_Induction_Machine
Field_Oriented_Control_Induction_MachineField_Oriented_Control_Induction_Machine
Field_Oriented_Control_Induction_Machine
 
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...
A Novel Direct Torque Control for Induction Machine Drive System with Low Tor...
 
H010245763
H010245763H010245763
H010245763
 
3rd year vi sem ms lab
3rd year vi sem ms lab3rd year vi sem ms lab
3rd year vi sem ms lab
 
Dc motor modelling lab report
Dc motor modelling lab reportDc motor modelling lab report
Dc motor modelling lab report
 
Transfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersTransfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational Amplifiers
 
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
A NEW FUZZY LOGIC BASED SPACE VECTOR MODULATION APPROACH ON DIRECT TORQUE CON...
 
EE380-4 Course project Experimental determination of a Ser.docx
EE380-4  Course project Experimental determination of a  Ser.docxEE380-4  Course project Experimental determination of a  Ser.docx
EE380-4 Course project Experimental determination of a Ser.docx
 
A010220109
A010220109A010220109
A010220109
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
AntennaProject_NathanJaniczek
AntennaProject_NathanJaniczekAntennaProject_NathanJaniczek
AntennaProject_NathanJaniczek
 
Experimental dataset to develop a parametric model based of DC geared motor i...
Experimental dataset to develop a parametric model based of DC geared motor i...Experimental dataset to develop a parametric model based of DC geared motor i...
Experimental dataset to develop a parametric model based of DC geared motor i...
 
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINK
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINKMODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINK
MODELLING OF DC SERVO MOTOR USING MATLAB-SIMULINK
 
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
 
Jw3417821791
Jw3417821791Jw3417821791
Jw3417821791
 
Simulation of Direct Torque Control of Induction motor using Space Vector Mo...
Simulation of Direct Torque Control of Induction motor using  Space Vector Mo...Simulation of Direct Torque Control of Induction motor using  Space Vector Mo...
Simulation of Direct Torque Control of Induction motor using Space Vector Mo...
 
Pi controller ieee format
Pi controller ieee formatPi controller ieee format
Pi controller ieee format
 

More from Ryland Ballingham (8)

FEA_project1
FEA_project1FEA_project1
FEA_project1
 
MOMLabFinalProject-1
MOMLabFinalProject-1MOMLabFinalProject-1
MOMLabFinalProject-1
 
LabReport5
LabReport5LabReport5
LabReport5
 
LabReport4
LabReport4LabReport4
LabReport4
 
Lab3report
Lab3reportLab3report
Lab3report
 
LabReport2
LabReport2LabReport2
LabReport2
 
Staircase Design Report
Staircase Design ReportStaircase Design Report
Staircase Design Report
 
Transmission Design Report
Transmission Design ReportTransmission Design Report
Transmission Design Report
 

ControlsLab1

  • 1. Abstract— In this lab, students modeled a motor/flywheel system using LabVIEW, the SADIDAQ and hardware in the lab. Using LabVIEW, data was collected for sinusoidal and square voltage wave forms and compared with a theoretical model of the system using the given motor specifications. Transfer functions, step responses and bode plots were the primary means of performing the comparison. Index Terms—Bodine DC motor, bode plots, step response, transfer functions I. INTRODUCTION ransfer functions are used to model a system’s dynamic characteristics. A Transfer function is the ratio of the system’s output response to input command signal. Any type of control system can be modeled in this fashion. In this lab, LabVIEW is used to experimentally collect data and this data enables student to model the system’s transfer function, step response and bode plots. The theoretical transfer function model is found using the motor data sheet [1] located on Canvas. Initially, the experimental input command consists of a sinusoidalvoltage signal with the following frequencies (Hz): 0.1, 0.2, 0.5, 1, 2, 5, 7.5, 10, 15, 20. At each frequency,5 cycles of data were obtained for the experimental model. After this data is found, a square wave input command was used at a frequency of 0.2 Hz in order to find the system’s velocity step response. II. PROCEDURE A. Determining the system transfer function The first step of this lab is to find the system’s transfer function based on the given systemparameters. Fig.1 shows the system dynamics/parameters. This diagram is used as a basis for creating the system’s transfer function. Fig. 1. Diagram of system dynamics The system’s input/output dynamics and parameters are located in the following table. The electrical dynamics are modeled using the following formula. 𝑉 = 𝑖𝑅 + 𝐿𝑑𝑖 𝑑𝑡 + 𝑒 (1) Where 𝑉 is the input voltage, 𝑖 is the current, 𝑅 is the resistance, 𝐿 is the motor inductance, 𝑑𝑖 𝑑𝑡 is the time rate of change of the current and 𝑒 is the back electromotive force of the motor. The motor dynamics are modelled using the following equation: 𝐽Ӫ = 𝑇 − 𝑏 𝑚 𝜔 (2) Where 𝐽 is the rotational inertia, Ӫ is the motors angular acceleration, 𝑇 is the motor torque, 𝑏 𝑚 is the viscous friction coefficient and 𝜔 is the angular velocity of the motor. In order to relate the electrical dynamics with the motor dynamics, electromechanical relations are used. The following equations represent the systems electromechanical relations: 𝑒 = 𝐾𝑒 𝜔 (3) 𝑇 = 𝐾𝑇 𝑖 (4) Where 𝐾𝑇 is the motor torque constant. To find the system transfer function, the Laplace transform is taken of the motor dynamics and the electrical dynamics and through algebraic manipulation, the system transfer function relating the input voltage to the motor velocity is obtained [1]. The following equation represents the system’s transfer function. 𝜃(𝑠) 𝑉(𝑠) = 𝐾𝑇 ( 𝐽𝐿) 𝑆3 + ( 𝐽𝑅 + 𝑏 𝑚 𝐿) 𝑆2 + (𝑏 𝑚 𝑅 + 𝐾𝑒 𝐾𝑇 )𝑆 (5) B. Creation of LabVIEW VI to obtain theoretical transfer function/step response/Bode plots In order to find the theoretical system transfer function/step response/Bode plots, students must create a LabVIEW VI that allows for the input of the symbolic systeminputs (symbolic denominator) and the symbolic system outputs (symbolic Lab 1: Modeling a Motor/Flywheel System Ballingham, Ryland Section 7042 9/10/16 T
  • 2. <Section####_Lab#> Double Click to Edit 2 2 numerator). This is done by following the motor/flywheel system tutorial provided online [1]. Once the parameter constants are found using the motor data sheet, the theoretical systemtransfer function/step response can be found. C. Creation of LabVIEW VI to obtain experimental transfer function/step response In order to properly collect data, a LabVIEW VI must be created that takes an input frequency and voltage signal and outputs the system’s tachometer voltage, motor velocity, motor rotation and command signal. A LabVIEW template file found on Canvas is used as a basis for the VI creation. During lab, data is obtained for both sinusoidal and square wave form input voltages. For the sinusoidal waveform input, the voltage is set to 2V and data is obtained for five cycles over the following frequency range (Hz): 0.1, 0.2, 0.5, 1, 2, 5, 7.5, 10, 15, 20. For the square wave input, the voltage is set to 2V and data is obtained for only 0.2 Hz for 5 steps. The data obtained for both waveform inputs was exported to Excel for analysis. D. Bode Magnitude/Phase Diagrams In order to find both the Bode magnitude/phase diagrams for the sinusoidal input voltage data, the motor velocity derivative is plotted versus time at each individual frequency. Using these plots, the motor velocity derivative minimum/maximu m magnitudes are found and an average magnitude is found at each frequency using the following formula: 𝑀𝑜𝑢𝑡 = 0.5 ∗ (𝜔 𝑚𝑎𝑥 − 𝜔 𝑚𝑖𝑛 ) (6) Also,the tachometer voltage offset is found using the following formula: 𝑂𝑜𝑢𝑡 = 0.5 ∗ (𝜔 𝑚𝑎𝑥 + 𝜔 𝑚𝑖𝑛 ) (7) Once these calculations are complete, the same steps must be performed for the input waveform (command signal). Once this is complete, the input sinusoid must be scaled to match the output sinusoid,and then it is shifted by the offset. This data is then plotted on the same plot as the motor velocity derivative. The following plot shows this for 1 Hz frequency range: Fig. 2. Output/scaled and shifted input vs time for 2 Hz frequency Once all these plots are made for all frequencies, the next step is to find the time of several corresponding input/output peaks for all frequencies. The time difference between each corresponding input/output peakis the systems delay. Once the delay is found for each frequency, the phase delay (𝜙)(for each frequency can be found using the following formula: 𝜙 = 𝑑𝑒𝑙𝑎𝑦 ∗ 𝑠𝑖𝑔𝑛𝑎𝑙 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 ∗ 360 (8) Since the voltage input magnitude entered into LabVIEW was 2 V, the Bode magnitude (𝑀 𝐵𝑜𝑑𝑒 ) can be found using the following formula: 𝑀 𝐵𝑜𝑑𝑒 = 20 ∗ 𝐿𝑜𝑔10 ( 𝑀𝑜𝑢𝑡 𝑀𝑖𝑛 ) (9) Now that both the Bode magnitudes and phase delays have been found, both Bode plots can be made. E. Velocity step response plot square wave data In order to find the velocity step response for the square wave data, students need to download the given excel file on Canvas. With this excel file, the motor velocity derivative data found in lab for the first step wave is pasted into this excel file as well as the time. When this is done, a plot is created over the existing plot. F. Calculating parameter constants In order to find the theoretical transfer function, bode plots and pole-zero equations in LabVIEW, the parameter constants must be calculated. 𝑘 𝑇 , 𝐿, 𝑅, can be found on the given motor data sheet [2]. 𝑏 𝑚 and 𝐽 must be calculated by hand. 𝑏 𝑚 can be calculated by using the following formula: 𝑏 𝑚 = 𝑇 𝜔 (10) 𝜔 can be found on the motor data sheet. To calculate the motor torque, the following formula can be used: 𝑇 = 𝐾𝑇 ∗ 𝑖 (11) Once the torque is calculated, 𝑏 𝑚 can be found. The rotational inertia can be found by creating the flywheel in SolidWorks. G. Estimated gain/ pole locations/parameter values for the system The theoretical gain for the systemcan be found by using the following formula: 𝐾𝑉 = 𝐾𝑇 𝑏 𝑚 𝑅 + 𝐾𝑒 𝐾𝑇 (12) The experimental gain can be found be looking at the experimental Bode magnitude plot. The theoretical pole locations of the systemcan be looking
  • 3. <Section####_Lab#> Double Click to Edit 3 3 at pole-zero equation found in LabVIEW. In this equation, setting the denominator equal to 0 and solving for S roots will yield the system’s pole locations. The experimental pole locations can be found by looking at fig. 4. The theoretical system parameter values (𝑎, 𝑑) can be derived from the system transfer function using the following formulas: 𝑎 = 𝑏 𝑚 + 𝐾𝑒 𝐾𝑇 𝐽𝑅 (13) 𝑑 = 𝐾𝑇 𝐾𝑎𝑚𝑝 𝐽𝑅 (14) Where 𝐾𝑎𝑚𝑝 is 90 V. The experimental parameter values can be found by importing the motor velocity derivative lab data into the provided step response excel file. Using the solvertool, 𝑎 and 𝑑 can be calculated. H. Calibrating the tachometervoltage In order to obtain a proper tachometer voltage reading, the tachometer voltage needs to be calibrated. This is done by plotting the motor velocity derivative vs the tachometer voltage reading. Once this is done,a linear trend line is found and the resulting slope is the calibration constant. This is done to convert the voltage reading from the tachometer to a velocity. Using this calibration constant,a new motor velocity derivative reading can be found. III. RESULTS Fig. 3. Experimental Bode magnitude plot Fig. 4. Experimental pole location Fig. 5. Experimental Bode phase plot Fig. 6. Velocity step response of square wave data Fig. 7. Theoretical Bode magnitude plot Fig. 8. Theoretical Bode phase plot
  • 4. <Section####_Lab#> Double Click to Edit 4 4 Fig. 9. Theoretical transfer function found in LabVIEW Fig. 10. Theoretical pole-zero equation found in LabVIEW Fig. 11. Motor velocity derivative vs time for square waveform plot Fig. 12. Calibratedmotor velocitytachometer vs timefor square waveformplot Fig. 13. Motor velocity tachometer vs motor velocity derivative with linear trendline TABLE I THEORETICAL PARAMETER VALUES Parameter Value 𝐾𝑇 [(N-m)/A] 0.4202 𝐾𝑒 [V/(rad-s)] 0.4202 J [N-m^(2)] 0.0064 R [Ohms] 11 L [H] 0.00028 𝑏 𝑚 [(N-m)/(rad/s)] 0.003157 TABLE II A AND D PARAMTER VALUES Parameter Theoretical Experimental 𝑎 2.97 10.31 𝑑 (rad/s) 9.35 6.79 Gain 1.99 1.33 TABLE III THEORETICAL/EXPERIMENTAL POLE LOCATIONS Parameter Theoretical Experimental 𝑆1 0 0 𝑆2 -3.00154 4.4 𝑆3 -39,283.2 - IV. DISCUSSION A. Comparison of experimental/theoretical Bode plots Both Bode magnitude plots (figures 3 & 7) have the same general trend and shape. The main difference is the magnitude values at which the plots begin/end. The same is true for the Bode phase plots (figures 5 & 8). The reason for this could be due to the additional gain constant on the experimental transfer function. B. Numerical time derivative vs tachometer voltage Using the tachometer voltage yields a better reading then the motor time derivative. This is because the numerical derivative is a calculated value in LabVIEW which is based on a position reading. Since a series of calculations has to be performed to get a motor derivative value, it is more prone to error propagation. The tachometer voltage is based on a sensor reading with no intermediate calculations, thus providing a more accurate reading. C. Parameter comparison A 71% difference was calculated between the theoretical 𝑎 value and the experimental 𝑎 value while a 27% error was calculated between the theoretical 𝑑 value and the experimental 𝑑 value. These errors are likely due to estimation errors and noise during data collection. D. Model improvements In order to make this model better, closed-loop control could be used instead of open-loop. This will help account for numerical errors in the systemby accounting for the system error in the input command signal. This will help reduce overshoot and steady-state errors in the system.
  • 5. <Section####_Lab#> Double Click to Edit 5 5 V. CONCLUSION This lab is a good demonstration of a basic control system. Using the hardware in lab, an experimental systemmodel was created to compare to a theoretical system model. This lab demonstrated that using a motor velocity derivative doesn’t work as well as using a tachometer voltage reading due to intermediate calculation errors that propagate. Also, closed- loop control should be used to account for calculation errors in LabVIEW. REFERENCES [1] N. Instruments, "ModelingDC motorposition,"2008. [Online]. Available: http://www.ni.com/tutorial/6859/en/#toc1.Accessed: Sep. 11, 2016. [2] Bodine Electric Company, 33ASeries Permanent Magnet DC Motor: Model 6435specifications. http://www.bodine- electric.com/Products/Asp/ProductSpecs.asp?Co%E2%80%A6&Name= 33A%20Series%20Permanent%20Magnet%20DC%20Motor&Model=6 [3] S. Banks. “Simplified MF model, EML4312C