% CONTOH Motor punya Yusuf
clear
Ta = 100; % Waktu akhir simulasi [sec]
% DATA MOTOR
Ea = 60; % Ea NOMINAL [Volt]
Ra = 10.7; % Tahanan Jangkar [Ohm]
La = 0.0405; % Induktansi Jangkar [Henry]
Km = 0.15987; % Konstanta Motor [Nm/Amp]
Kb = 60/293.22; % EaNOM/w[rad/sec]
B = 0.001; % [Nm/(rad/sec}]
J = 0.035; %[Nm sec^2/rad]
sim('Motor2021.slx')
subplot(311), plot(time, tegangan), grid on, xlabel('time [sec]'), ylabel('Ea(t), [Volt]')
subplot(312), plot(time, RPM), grid on, xlabel('time [sec]'), ylabel('RPM')
subplot(313), plot(time, arus), grid on, xlabel('time [sec]'), ylabel('Ia(t), [Amp]')