Lab 3 - Aero Kit Rotor Speed Control

Scripts

Code snippet for calculating gains according to requirements

% Proportional gain (V.s/rad)

kp = (2*zeta*wn*tau-1)/(K)

% Integral gain (V/rad)

ki = wn^2*tau/K

Models

Variant Subsystem Block

Pasted image 20260325201300.png

Subsystems

Pasted image 20260325201340.png

Results

Given Parameters

K = 19.0; % dc gain
tau = 0.165; % time constant
tp = 0.3; % peak time (s)
PO = 5; % percent overshoot (%)

Calculated Parameters

zeta = 0.7613 % damping ratio
wn = 32.3023 % natural frequency
kp = 0.3745 % proportional gain
ki = 9.0615 % integral gain

Overview

Pasted image 20260325203114.png

Using kp and 1.5ki

Pasted image 20260325203643.png

tp = 0.1; % peak time (s)
PO = 8.3; % % percent overshoot (%)

Using 1.5kp and ki

System is not underdamped
Pasted image 20260325203942.png

Using kp and ki

Pasted image 20260325204316.png

tp = 0.15; % peak time (s)
PO = 2.5; % percent overshoot (%)

Conclusion

Assets