Assign 2 SSP
Assign 2 SSP
1. The simplified model of a DC motor is given in the following figure where va (t), ia (t), Ra and
La are the armature voltage, current, resistance and inductance, respectively. Jm is the motor
moment of inertia, and Kb and Kt are the back emf and motor torque constants, and Tm (t),
vb (t) and ω(t) are the motor torque, back emf voltage and motor speed, respectively.
Suppose thatThe simplified
the model ofRaaDCand
parameters motor
Kist given in the following
are known: Ra =figure Ω and Kt = 6 ∗ 10−5 N m/A.
0.2 where
𝑣 𝑡 + 𝟏 𝑖 𝑡 𝑇 𝑡 𝟏 𝜔 𝑡
𝑲𝒕
_ 𝑳𝒂 𝒔 𝑹𝒂 𝑱𝒎 𝒔
𝑣 𝑡
𝑲𝒃
1
2. In this problem you are supposed to estimate the moment of inertia of the motor using recursive
least squares (RLS) algorithm. Suppose that the only unknown parameter is Jm and the other
−
parameters are given (La = 0.005 and Kb = 5.5 ∗ 10 2 ). In this simulation we assume that the
inertia is changing (this is realistic as in reality the load attached to the motor can be varying).
For simulation, suppose that the value of Jm is changing sinusoidal between 0.8 ∗ 10−7 and
1.2 ∗ 10−7 with the frequency of 1 Hz. Figure 2 shows how to simulate this case in simulink.
Run the simulation for 5 sec and estimate Jm online using the RLS method. Investigate the
effect of forgetting factor λ on the convergence rate.
Hint: Notice that in this problem there is only one unknown parameter (Jm ) therefore the
dimension of θ is 1x1. What you can do is to use the forward difference (FD) approximation
of s as s = z−1
Ts
and write a difference equation corresponding to Fig. 1. Then keep all known
terms in one side of the equation and take the terms containing θ to the other side.
In this simulation you can (for example) apply a sine wave with amplitude=1 and frequency=
1 rad/sec to the input (va (t)). As an example, Fig. 3 shows the estimated inertia (Jˆm ) where
ˆ
the initial parameters are selected as: Jm(0) = 10−7 , P0 = 1000 and λ = 0.7.
2
Figure 3: Estimated Inertia