Lab4 - DC Motor Position Digital Controller Design - 7-11-2018
Lab4 - DC Motor Position Digital Controller Design - 7-11-2018
Faculty of Engineering
Mechatronics Department
Lab4:
DC Motor Position: Digital Controller Design
Eng Mohamed Doba
07 – 11 – 2018
Quiz - 3
For the transfer function model of the cruise control system that is shown below
m = 1000; b = 50;
Output:
- Value of Kp,Ki,KD (Kp = 900;Ki = 30;Kd = 2;)
- Gain and any modification to digital PID controller
- Step response with the digital PID controller
DC Motor Position: Digital Controller Design
Digital Controller Design
We will consider the digital version of the DC motor position control
problem.
A sampled-data DC motor model can be obtained from conversion
of the analog model.
Also, we will design a Digital PID controller.
DC Motor Position: Digital Controller Design
The continuous open-loop transfer function for an input of armature
voltage and an output of angular position was derived previously as
the following:
Design Criteria
For a 1-radian step reference, the design criteria are the
following.
Settling time less than 0.040 seconds
Overshoot less than 16%(0%)
No steady-state error, even in the presence of a step disturbance input
Creating A Sampled-data Model of The Plant
J = 3.2284E-6; b = 3.5077E-6;
K = 0.0274; R = 4;
L = 2.75E-6;
s = tf('s');
P_motor = K/(s*((J*s+b)*(L*s+R)+K^2));
Ts = 0.001;
dP_motor = c2d(P_motor, Ts, 'zoh');
Closed-loop Step Response
sys_cl = feedback(dP_motor,1);
step(sys_cl);
xlabel('Time (s)')
ylabel('Position (radians)')
title('Stairstep Response: Original')
Root Locus Design
We will now employ a root locus
design methodology to generate a
digital controller for our system.
This approach can also be used for
discrete-time models. We will use
the Control System Designer
graphical user interface (GUI) for
designing our controller. Adding the
command
controlSystemDesigner('rlocus',sys)
to your m-file.
Root Locus Design
In order to reject the effect of a constant disturbance in steady state, we will add
an integrator.