You are on page 1of 3

Bode Plot

Nyquist Plot
PID Control of DC Motor
clc
Kp=105.000;
Ki=155.000;
Kd=6.200;

Jm=0.01;
Dm=0.1;
Kt=0.01;
Kb=0.01;
Ra=1;
La=0.5;

s=tf('s');
motorTF=Kt/((Jm*s+Dm)*(Ra+La*s)+Kb*Kt);
PID=Kp+Ki/s+Kd*s;
disp(PID);

CLTF=feedback(PID*motorTF,1);
t=0:0.001:10;
step(CLTF,t)
title('PID Control of DC motor speed')

You might also like