Notch Filter on feedback


I have a steady 12.5Hz oscillation in my feedback that i’d like to filter out in the controller but i dont want to introduce phase delay. I was thinking a notch filter might work, but i dont see one implemented in the controller anywhere. Has anyone used one in an RMC150 or similar before?


Here’s a nice little example program with a notch filter implemented.

Here’s the basic equation:

It’s easy to change the notch center and also the width - Q with the variables in the equation.
Here’s the project, this one is implemented and an RMC75 but will be easy to copy over to your 150.
NotchFilter.rmcproj (21.1 KB)

Also, here’s a quick screen shot of the filter in action, I have this one setup with a notch center at 10Hz, you can see its working very well:

One last note, the filter works just as it should, but if it’s feedback you are wanting to filter, you’ll want to setup your axis as a custom feedback axis and run the actual feedback you are receiving through this filter then back into the axis as a variable. Here’s an example where this is done: Redundant/Custom Feedback

Don’t hesitate to reach out if you have questions, and good luck on your project!

Thanks David!

This looks great! If i understand correctly, i need to define the NotchCenter and Q variables in the variable table?

Also what are the units for each variable? Hz?

No problem! Happy to help.

If you take a look at the project, you can see how I’ve got the variables set up:

You could just copy and and paste this section into your variable table if you like, might save some time!

Also, you’ve got it, everything is in Hz.

Awesome! Thanks!

Next question: Am i reading this correctly that the feedback would go in as Xn and come out of the filter as Yn?

No problem!

You are correct, feedback will go in as Xn and come out as Yn, then you’ll need to use Yn with the custom feedback feature to control off the filtered signal.

Delta Computer Systems Website