Embedded Systems, Control System.
on; plot(t, y, 'r'); xlim([6 15]); ylim([100 240]); title('PI Controller'); xlabel('Time [s]'); ylabel('Motor Speed [RPM]'); grid on; legend('Target Speed [RPM]', 'Simulation Motor Speed [RPM]'); And when you plot this, it looks like the following. 1) Kp = 0.2 (P Controller) 2) Kp = 0.2, Ki = 0.35