Numeric Filter Synthesis : CutOff Frequency 50Hz (Or 60Hz)
Posted: Wed Feb 26, 2025 9:16 am
Good morning,
I encounter the following problem (In my job) :
Using a microcontroller, I sample a signal comming from a microphone at the sampling frequency of 16KHz. This signal goes through a hardware preampli. I get a buffer of 250 samples at the output.
An algorithm computes statistics on this buffer, but this one is disturbed by the presence of a 50Hz signal mixed with the noise recorded by the microphone.
I would like to realize a numeric filter on the buffer in order to remove the 50Hz (Or 60Hz depending on the country). I studied numeric filtering 15 years ago, I remember that we managed to synthetize RIF filter using Matlab (Choosing a window, the filter order an so on...) and that we managed to obtain coefficients that. I also remeber that we managed to implement this filter on a DSP.
Now, I do not remember the method, I do not rememeber how to obtain the coefficients and I do not rememebr how to implement this kind of filter practically...
Does anyone knows how to do it please ? And does anyone could explain me the method in detail and how to get the coefficients of the filter ? Moreover, could you please explain me how to implement this filter practically ?
If anyone has good knowledges on numeric filtering, thank you by advance for your help on this subject.
I wish you a good day, best regards.
Thomas TRUILHE
I encounter the following problem (In my job) :
Using a microcontroller, I sample a signal comming from a microphone at the sampling frequency of 16KHz. This signal goes through a hardware preampli. I get a buffer of 250 samples at the output.
An algorithm computes statistics on this buffer, but this one is disturbed by the presence of a 50Hz signal mixed with the noise recorded by the microphone.
I would like to realize a numeric filter on the buffer in order to remove the 50Hz (Or 60Hz depending on the country). I studied numeric filtering 15 years ago, I remember that we managed to synthetize RIF filter using Matlab (Choosing a window, the filter order an so on...) and that we managed to obtain coefficients that. I also remeber that we managed to implement this filter on a DSP.
Now, I do not remember the method, I do not rememeber how to obtain the coefficients and I do not rememebr how to implement this kind of filter practically...
Does anyone knows how to do it please ? And does anyone could explain me the method in detail and how to get the coefficients of the filter ? Moreover, could you please explain me how to implement this filter practically ?
If anyone has good knowledges on numeric filtering, thank you by advance for your help on this subject.
I wish you a good day, best regards.
Thomas TRUILHE