If you want to have aan accurate PID coefficient:
- Get your statistic actuator data (i.e. collecting input voltagescollecting input voltages + encoder pulsesencoder pulses in a const frequentlyfrequent (
0.01sec
) time for20secs
as a3
x2000
matrix) - GetObtain the transfer function (TF) of your actuator (using Ident toolbox in MATLAB).
- Finally, use PIDTool toolbox in MATLAB and upload your transform function.
Or in a quick and simple manner:
There is a quicker approach called Ziegler–Nichols:
And in thisThis image demonstratedemonstrates the PID parameters effects: