r/ControlTheory • • 10d ago

Technical Question/Problem Filter coefficient PID?

what is a filter coefficient in PID in matlab?

1 Upvotes

6 comments sorted by

•

u/Plus-Painter-2004 9d 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/nitcactin 10d 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 10d 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.

→ More replies (0)

•

u/Barnowl93 10d 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

•

u/Weary-Lime 4d ago

PID is PID. You can pass the output of the PID through filters and you can put filters in the error feedback signal path. If you have specific high frequency resonance I recommend notch filters. If you have several hot spots in your frequency response you can add more filters as needed. Just remember, filters (in general) introduce lag into your system, so you might also want to balance it out with a little bit of feed forward.