kg, N·s/m, force 500 N. The state and output are velocity [m/s].
Procedure
Build a model using , , , and , and plot the response over s to a constant force of 500 N.
Change only and apply the same force. Substitute into to obtain steady-state velocity, and match the coefficients of to the standard 1st-order form to obtain the time constant.
For each mass, record the calculated steady-state velocity alongside the final simulation sample . Find when the curve reaches approximately 63.2% of the calculated steady-state velocity, and compare this time with the calculated time constant.
Results to retain
A table of 3 mass conditions, 1 velocity plot, and a brief explanation of the properties changed by mass.
Items to record and points to check
m [kg]
Predicted final velocity [m/s]
Measured velocity [m/s]
Time Constant [s]
Points to check
Did you avoid multiplying by the input force 500 twice?
For fixed b, does changing mass affect the time constant rather than the steady-state velocity?
2. Comparing motor-model coefficients
Starting conditions
, , , . Compare Ω with an input of 1 V.
Procedure
Construct and calculate its response over s.
Tabulate the poles, DC gain, and final output for each R.
Explain which terms in the equation change with electrical resistance and inertia.
Results to retain
3 response curves and 1 coefficient table.
Items to record and points to check
R [Ω]
Pole
DC Gain
Final velocity [rad/s]
Points to check
Did you use the same J, b, K, L, and input for all conditions?
Did you compare the long-term output with 1 V×DC gain?
Use the supplied measurement array as the target values for curve_fit, and estimate of .Read the supplied step_measurements.csv and estimate using fminsearch in the starter code. Keep the code that optimizes the logarithms of the estimated variables.
Apply the same estimation separately to the full – s record and the first – s. Tabulate the sample count and estimated for each interval.
Plot each fitted curve on the same time axis as the measurements, and plot residuals as measured minus estimated values. Based on the final values and residual patterns, choose one time interval where you would like more measurements and explain why.
Results to retain
A table of estimates for both measurement intervals and response and residual plots.
Items to record and points to check
Recording interval [s]
Estimated gain
Estimated time constant [s]
RMSE
Points to check
Did you estimate the synthetic data as if their generating settings were unknown, as with actual measurements?
Did you avoid assessing uncertainty from a short record using residual size alone?