Project 2 - Speed Control of a Direct Current (DC) motor
Ans:
For mathematical modelling we will write down the equations obtained from KCL and Inertia .
Where
is the armature voltage,
is the armature resistance,
is the armature inductance,
is the armature current,
is the back EMF (Electromotive Force)
The back EMF is proportional to the angular velocity (ω) of the motor:
E b = K e ω KMechanical System:
The torque developed by the motor is proportional to the armature current:
T m = K t* I a where:
is the motor torque,
is the torque constant
We can derive the State Space model and Transfer function model from these equations.
Plant Model is is defined as
A=[-Bm/J Kt/J;-Km/La -Ra/La];
B=[0;1/La]; C=[1 0]
Script for defining the DC motor parameters
% Parameter of DC motor
J=0.01; %moment of inertia
Bm=0.1; %Viscous force constant
Km=0.01; %Bback enf constatnt
Kt=0.01; %Torque constant
Ra=1; %Armature resistant
La=0.5; %Inductance
As we have already decided the parameters for DC motor. Next part is to Obtain the controller gains from pole placement Kp & Kd
Script: Also attached
run DC_MOTOT_parameter.m
% DC moor ss
Gains obtained from the Pole Placement are K1=Kp=17.49 K2=Kd=-2.0. Applying these gains in our simulink model to analyze the response of speed reference tracking.
Now we need to run simulink model to analyze the system response.
Subsystem Model for DC motor is shown
Now adding Controller gains obtained from Pole placement to the model.(Keeping Integral gain 0 at the moment)
Entire Simulink Model with controller gains and reference speed 5.
Script to generate the plots