Project - Speed Control of a Direct Current (DC) motor
in this model, i have used all Simulink block to control the speed of the dc motor by changing the value of pid in the pid block.
By changing the value of p,i,d the speed of motor can be varied and initial spike will be reduced



J=0.01;
B=0.1;
Km=0.01;
Kt=0.01;
Ra=0.1;
La=0.5;