Project - Speed Control of a Direct Current (DC) motor
matlab coding
% this file consists of design parameters to model a dc motor
j = 0.01 ; % moment of inertia of the motor in kgm^2;
B = 0.1 ; % motor viscous friction constant in Nms;
km = 0.01; % back emf constant in v/radians/s;
Kt = 0.01; % motor torque constant in Nm/amphere;
Ra=1 ; % armature resistance in ohm;
La=0.5; % armature inductance in henry;
% nominal parameters for the spring mass constant
m = 100 ; % mass for the system ;
k = 3944.0; % stiffness constant for the system;
% Kp and Kd gains obtained from the earlier design using plave command
kp = 3.8602;
kd = 628.3200;
ki = 0;