OEL Report (2)
OEL Report (2)
Group Members
C
Ahmed Faraz 21ME04
Faizan 21ME38
Unaib 21ME 76
System Description
The system under consideration is a simplified DC motor model. DC motors are widely used
in various industrial and robotic applications where precise control of motor speed is
required. The motor is modeled using a transfer function derived from its mechanical
parameters.
G(s) = K / (Js + b)
Where:
- J: Moment of inertia (kg.m^2)
- b: Damping coefficient (N.m.s)
- K: Motor constant (N.m/A)
J = 0.01;
b = 0.1;
K = 0.01;
num = [K];
den = [J b];
motor_tf = tf(num, den);
figure;
step(motor_tf)
title('DC Motor Speed Response Without PID')
grid on
Kp = 1;
Ki = 2;
Kd = 0.01;
C = pid(Kp, Ki, Kd);
figure;
step(T)
title('DC Motor Speed Response With PID Controller')
grid on