ECE 5570 - Lab 1 Modeling and Parameter Estimation For The Brush DC Motor
ECE 5570 - Lab 1 Modeling and Parameter Estimation For The Brush DC Motor
Introduction
The objective of this lab is to become familiar with the hardware and the software in the
lab and to begin experimentation with a brush DC motor. A model for the brush DC
motor is
di
" v # Ri # K !
dt
d!
" Ki # C sgn(! ) # B!
J
dt
(1)
where v (V) is the voltage applied to the motor, i (A) is the current, and ! (rad/s) is the
angular velocity of the motor. The parameters are:
$ R(%) the armature resistance,
$ L (H) the armature inductance,
$ K ( N & m / A or V & s ) the torque constant, also called the back-emf constant,
$ J (kg & m 2 ) the rotor intertia,
$ C ( N & m) the coefficient of Coulomb friction,
$ B ( N & m & s ) the coefficient of viscous friction
Assuming that the inductance is negligible, so that v " Ri ' K! , the following model is
obtained
J
d!
K2
K
" #(
' B)! ' v # C sgn(! )
dt
R
R
(2)
With constant direction of motion, the Coulomb friction can be viewed as a constant
disturbance, and the transfer function from the voltage to the angular velocity is that of a
first-order system. Three parameters then define the response of the system:
$ (1 " ( K 2 / R ' B ) / J
$ ( 2 " K / JR
$ (3 " C / J
!SS " (
(
(
K2
K
K2
' B) #1 vSS # (
' B) #1 C " 2 vSS # 3
R
R
R
(1
(1
(3)
for positive voltage. Measurements for two values of the voltage or more give the
information needed to determine the remaining parameters.
Experiments
Equipment list:
You will need
$ brush DC motor,
$ dual power amplifier,
$ voltmeter,
$ cable rack, and
$ dSpace kit which includes an encoder cable and I/O
breakout box.
2.1
Preliminary Testing
Be sure to read the dSpace tutorial for basic hardware and software setup.
$
Connect the encoder input cable from the I/O breakout box port INC1 to
the encoder plug on the motor support bracket. Run the system and check
the operation of the encoder by manually spinning the motor noting a
change in encoder position in the layout window.
Repeat testing for a BNC cable connected to DACH2 and the remaining
output of the linear amp.
Finish hooking up the system by attaching leads from the motor to the
amplifier.
2.2
Parameter Estimation
The experiment ECE5570_lab1 allows the operator to apply voltages to the DC motor.
Note that the layout includes a set of entry boxes to specify the voltage to be applied to
each channel and accounts for the value of the amplifier gain. The program stores
samples at 500 Hz or a sample every 2 ms. To capture the data needed for this lab, use
the procedure for Working with data in the tutorial to save data.
The data is available in Matlab by setting the current working directory to the
location of the saved file and by typing mat_unpack. The script file, mat_unpack
provides an automated method for unpacking the .mat file created by dSpace. Follow the
prompts to store the position, average velocity, voltage, and time variables in variables
pos, vol1, vol2 and, t which have the units of radians, volts, volts, and seconds
respectively.
Proceed with the following experiments:
$
The three parameters (1 , ( 2 , and (3 are sufficient for control design since they
characterize the input/output behavior of the motor. However, it is impossible to
deduce the values of the five parameters R, L, K, B and C without further
From these results, deduce what the maximum torque deliverable by the motor is
for a current limit of 2A.