r/ControlTheory • u/HotelFirm3622 • 3d ago
Technical Question/Problem Filter coefficient PID?
what is a filter coefficient in PID in matlab?
1
Upvotes
r/ControlTheory • u/HotelFirm3622 • 3d ago
what is a filter coefficient in PID in matlab?
•
u/nitcactin 3d ago
A low pass filter parameters so that your PID is not affected by the noise in the error signal. Basically derivatives amplify the noise so you need to filter it before the derivative.
•
u/airconditioner26 3d ago
A pure dfifferentiation is not practical as it amplifies noise as well. So in practice you implement D part of PID like:
D*Ns/(s+N).
This N sets the bandwdith after which the D part does not amplify the signal.
•
u/Plus-Painter-2004 2d ago
random noise often has high frequency components which get amplified by differentiation. If you add a low pass filter then that helps prevent the derivative term from becoming a mess
•
u/Barnowl93 3d ago
It is a first-order low-pass filter placed on the derivative term. A pure derivative amplifies measurement noise without limit. MATLAB replaces it with a filtered derivative.
In terms of what it means for your response:
A larger N is closer to an ideal derivative, gives less phase lag and passes more noise through.
A smaller N filters more heavily but adds phase lag near crossover and weakens the derivative’s phase lead.
hope this helps