tttapa / Arduino-Filters

Arduino Finite Impulse Response and Infinite Impulse Response filter implementations.
GNU General Public License v3.0
113 stars 14 forks source link

Converting Butterworth LPF to HPF #7

Open MichaelSeaman opened 2 years ago

MichaelSeaman commented 2 years ago

Hi Pieter and team,

In going through your example code for the Butterworth filter library, I notice there's no example of a HPF, just a low pass. While I know you discuss the conversion of the transfer function in your github io page, I can't seem to understand how to specify those changes to the transfer function while using the library.

To use the same examples from Butterworth.ino, what would the values of f_s, f_c, and f_n have to be in order to implement an equivalent high pass filter with cutoff 25Hz and sample rate 100Hz?

Thanks