Professional Documents
Culture Documents
Laboratory objectives
Introduce students to measuring the time constant of a first order system and experimentally determine
the model (transfer function) of system.
Laboratory activities
Lab deliverables
Complete the pages in the deliverable section and submit it into ANGEL before you leave the lab
today. The electronic version of the lab deliverable can be downloaded from ANGEL.
Background
A DC motor can be modelled as
Figure 1
𝑑𝑖𝑎 𝑑𝜃𝑚
𝑣𝑎 (𝑡) = 𝑅𝑎 𝑖𝑎 (𝑡) + 𝐿𝑎 + 𝐾𝑒
𝑑𝑡 𝑑𝑡
𝑑𝜃𝑚 𝑑2 𝜃
𝐾𝑡 𝑖𝑎 (𝑡) − 𝑇(𝑡) − 𝑏 𝑑𝑡 = 𝐽𝑚 𝑑𝑡 2
Where
La = armature winding inductance = negligible
Ra = armature winding resistance
Ke = back emf constant
Kt = motor torque constant
Jm = mass moment of inertia of the rotor of the motor
b = viscous-friction coefficient of the rotor of the motor = negligible
T(t) = load applied on the motor shaft of the motor (such as coulomb friction, weight lifted by the
motor)
So for a motor with zero load (i.e. T(t) = 0), the transfer function from the applied voltage va(t) to
the motor speed m(t) can be simplified as a first order system:
1
𝜔𝑚 (𝑠) 𝐾𝑒
=
𝑉𝑎 (𝑠) 𝐽 𝑅
𝑚 𝑎
𝐾𝑡 𝐾𝑒 𝑠 + 1
𝑎
𝐺(𝑠) =
𝑠 + 1
Given a step input
𝑢(𝑡) = 𝑏 ∗ 𝑢𝑠 (𝑡)
The LEGO Mindstorm brick is the controller to the accessory motors. It must be plugged into the
computer using the USB cable in order to control with MATLAB/Simulink. Bluetooth is also
used to communicate with the brick and sensors. If connecting a motor is desired, connect to
ports A, B, or C. The sensors will be connected using ports 1, 2, 3 and/or 4. (See image on next
page)
USB Port
Ports A, B, and C
Power
ON
Ports 1, 2, 3, and 4
Activity 1. Identify the time constant and the model (transfer function) of LEGO motor