Anda di halaman 1dari 1

29/01/18 1:54 D:\sistem kontrol\UAS_JODY.

m 1 of 1

%Sistem Kontrol Motor DC dengan PID Controller


J=3.228E-6; %Momen Inersia Motor (kgm2/s2)
B=3.5077E-6; %Viskositas Rotasi (Nms)
R=4; %Resistansi Armature Motor DC (Ohm)
L=2.75E-6; %Induktansi Armature Motor DC (H)
Km=0.0274; %Konstanta Motor (Nm/Amp)
Ke=0.0274; %Konstanta Armature (Nm/Amp)
Kd=7; %Konstanta Derivative
Kp=330; %Konstanta Proportional
Ki=130; %Konstanta Integral

%Transfer Function
num=[0 0 Km];
den=[(J*L) (R*J)+(B*L) (B*R)+(Km*Ke) 0];
GPlant=tf(num,den);
numPID=[Kd Kp Ki];
denPID=[0 1 0];
GPID=tf(numPID,denPID);
Gopen=GPlant*GPID;
Gclose=feedback(Gopen,1)
step(Gclose)

Anda mungkin juga menyukai