Lab Manual
Lab Manual
Laboratory Manual
Closed Loop Speed Control of a DC Motor
1 Introduction
This practical work allows the student to have a better understanding on
how to build a system that controls the speed of a DC motor at a certain
error rate.
The DC motor speed, ωm depends on the input voltage into the motor,
Vin through the relationship
Vin T R
ωm = − 2 (1)
km km
where T is the torque, R is the motor coil resistance and km is the motor
constant. If the load borne by the motor is constant, then
Vin
ωm = −C (2)
km
1
Figure 1: Layout of the electromechanical module
2
• An electromagnet system. The electromagnet system is used to move
the position of a steel plate such that it touches the disc or not. When
the plate touches the disc, friction will increase, representing a distur-
bance that should aect the speed of the motor.
3 Tachogenerator Calibration
3.1 Background
3
4 Estimation of the DC Motor Transfer Function
Model
4.1 Background
Recall that the general transfer function form for any rst order system is
given by
X (s) 1
G (s) = = KDC (4)
U (s) τs + 1
where KDC is the static DC gain (constant), τ is the time constant, ζ is the
damping ratio, and ωn is the natural frequency.
A DC motor transfer function can be given by
ωm (s) km
G (s) = =
Vin (s) JLs2 + (RJ + bL) s + km
2
km
G (s) =
RJs + k 2
m
1 1
= (6)
km RJ
s+1
2
km
Comparing (6) to the general rst order form (4) gives KDC = k1m and
τ = RJ2 . However, the values of R and J are not normally known as they
km
are not provided by the manufacturers. Alternatively, the transfer function
may be estimated from the system response behaviour.
For a rst order system, starting with zero initial conditions, given a
constant input of magnitude A, u (t) = A, i.e. U (s) = As , then
1 A
X (s) = G (s) U (s) = KDC . .
τs + 1 s
The solution is t
x (t) = AKDC 1 − e− τ
4
At steady-state (i.e. as t → ∞),
lim x (t) = AKDC
t→∞
At time t = τ ,
τ
x (τ ) = AKDC 1 − e− τ
= AKDC 1 − e−1
= AKDC (1 − 0.37)
= 0.63AKDC
Similarly,
• at time t = 2τ , x (2τ ) = 0.86AKDC
In short, for any rst order system, given a constant input, the transient
response will reach 63% of the nal (steady state`) value after a time t = τ
seconds, 86% at 2τ , 95% at 3τ , 98% at t = 4τ and 99% at t = 5τ seconds.
Figure 4 illustrates this.
Wire the electromechanical module such that the tachogenerator output volt-
age, VT (which represents the motor speed) can be observed on the oscillo-
scope. Then, with the motor initially at rest, provide suitable input voltage
values, Vin and observe the response displayed on the oscilloscope. The val-
ues of τ and KDC may be estimated from the observed response curve. For
each value of Vin that you use, what would you expect the value of the motor
speed to be when
• t = τ?
• t = 5τ ?
• t → ∞?
5
Figure 4: Step response
In this part, the speed of the DC motor is to be controlled such that the
steady state motor speed approaches the reference setpoint value (the de-
sired motor speed) as closely as possible. The motor speed should also au-
tomatically self-adjust to the setpoint value when subjected to disturbances
during operation. Referring to Figure 5, the closed loop transfer function is
given by
ωm (s)
T (s) =
Vr (s)
Kp G (s)
=
1 + Kp KT G (s)
6
and then, taking inverse Laplace transforms,
ωm (t) = L−1 {ωm (s)}
The steady state value of ωm (t) as t → ∞ can also be found using the Final
Value Theorem:
lim ωm (t) = lim sωm (s)
t→∞ s→0
= lim sT (s) Vr (s)
s→0
7
What would be suitable values of R1 , R2 , R3 and R4 that would result in
Eq. (7)?
Likewise, the controller used in this case is a proportional gain (P) con-
troller realized by the non-inverting amplier circuit shown in Figure 7.
Hence,
Rf
Vin = 1+ Ve
R5
= Kp Ve
where Kp = 1 + RRf5 .
The operational amplier (op-amp) is a general purpose LM741 inte-
grated circuit whose pinout is shown in Figure 8. Note that in the actual
8
3. With R5 xed at 10 kΩ, what would be the required value of Rf such
that the control gain Kp in (2) is realised?
4. Now, using an op-amp and resistors with suitable resistance values,
implement in the electromechanical module, the control gain Kp value
found in (2).
5. Switch the electromagnet on and o, and observe the techogenerator
output behaviour as shown on the oscilloscope. Also, monitor the con-
trol input voltage, Vin into the motor as the electromagnet is switched
on and o.
6 Conclusion
In this laboratory work, you should have managed to construct a Propor-
tional feedback control system that regulates the angular velocity of a DC
motor. The motor speed should closely follow a given setpoint value de-
termined by the user. The motor speed should also automatically readjust
itself to the setpoint speed value should there occur disturbances aecting
the system dynamics. The controller gain, designed through mathematical
formulation, was then translated into the actual physical system in the form
of electronic circuits using operational ampliers.
Discuss your observations of both the steady state and transient be-
haviours of the motor speed,
1. without feedback control.
2. under feedback control with dierent values of controller gain, Kp .
Discuss also possible alternative controller types that could be implemented
to improve the motor speed behaviour in following the setpoint reference.