Filtering¶
Overview¶
A digital filter removes unwanted components from the signal which passes through it.
This feature can be used for example as:
Position Feedback filters - Reduce encoder noise. 1st, 2nd or 3rd order low-pass filters are supported.
Velocity feedback filters - Reduce noise and effects of encoder nonlinearity in the velocity signal. 1st, 2nd or 3rd order low-pass filters are supported.
Loop shaping filter - Suppress excitation of resonance frequencies in the output of the motion control loop or in the input of the torque control loop. 2nd order notch filters are supported.
Any signal can be decomposed into a sum of sine waves with different frequencies. Some of them might negatively affect the control loops. It is possible to attenuate these unwanted frequencies by properly configuring a corresponding filter.
Configurable filters are implemented for the signals that are considered the most important for motion control.
The position feedback filter can also be used with a simple PID loop:
Methods¶
Definitions¶
Low-pass filters¶

First Order Low-pass¶
A 1st order Butterworth filter is used for the continuous filter:
Second Order Low-pass¶
A 2nd order Butterworth filter is used for the continuous filter:
Third Order Low-pass¶
A 3rd order Butterworth filter is used for the continuous filter:
Torque loop input shaping filter¶

The following equation was used to design the torque loop input shaping filter: