10 years, 9 months ago.

High/low pass filter

Hello guys , I need to make a low and a high pass filter function with which I can just give a specific cutoff frequency and sampling rate along with the array to process and get an array of the filtered information . I am working on an M0 so I need it to be as light as possible but nevertheless at least fairly accurate . Can you please help me on this ? I have already made a few filters using algorithms I found but they don't seem to function properly .

2 Answers

10 years, 9 months ago.

Normally, your filter design would be separate from your implementation, you can then use the cmsis-dsp library as your implementation. If you want to follow this pattern, scilab or python scipy are good free options. If you want a simple first order solution, you can achieve your aims without separate design utilities. See http://dsp.stackexchange.com/questions/10609/mathematical-proof-of-complementary-filter/10611#10611 and http://dsp.stackexchange.com/questions/10220/how-to-determine-the-parameter-of-a-complementary-filter/10613#10613 also see the difference equation implementations for a low pass and high pass exponentially weighted moving average on Wikipedia.

10 years, 9 months ago.

Thanks for your answer , I have used the wikipedias algorithm and it looks like it works most of the time .