Project - Speed Control of a Direct Current (DC) motor
%Pole placement design
%Kp and Kd gain
%command
Kp = 3.86;
Kd = 628.32;
Ki = 0.0;
figure(3);
subplot(321);plot(out.time,out.vs);grid;title('Supply Voltage (v)');
subplot(322);plot(out.time,out.vb);grid;title('Back EMF (V)');
subplot(323);plot(out.time,out.ia);grid;title('Armature Current (A)');
subplot(324);plot(out.time,out.ia);grid;title('Motor Torque(N-m');
subplot(325);plot(out.time,out.w);grid;title('Speed (rad/s)');
%Integrator value = -0.01 and Supply Voltage = 230


