Good morning,
I encounter the following problem (In my job) :
Using a microcontroller, I digitalize a signal coming from a microphone at a sampling frequency of 16KHz. (This signal goes through a hardware preampli). I get a buffer containing 250 samples.
An algorithm computes statistics on this buffer, but this one is disturbed due to the presence of a 50Hz (Or 60Hz depending on the country) frequency coming from surrounding power supplies mixed with the signal recorded by the microphone.
I would like to realize a numeric filter on this buffer in order to remove this 50Hz frequency (Or 60Hz). I studied numeric filtering 15 years ago, I remember that we managed to synthesize RIF filter using Matlab (Choosing Window, filter order an so on ...).
Now, I do not remember the method, I do not remember how to obtain the coefficients and how to implement the filter practically...
Does anyone knows how to do it please ? Does anyone could explain me the mthod in detail, how to obtain the coefficients and how to implement it ?
If anyone has knowledge on numeric filtering, thank you by advance for your help on the subject.
I wish you a good day.
Best regards,
Thomas
I encounter the following problem (In my job) :
Using a microcontroller, I digitalize a signal coming from a microphone at a sampling frequency of 16KHz. (This signal goes through a hardware preampli). I get a buffer containing 250 samples.
An algorithm computes statistics on this buffer, but this one is disturbed due to the presence of a 50Hz (Or 60Hz depending on the country) frequency coming from surrounding power supplies mixed with the signal recorded by the microphone.
I would like to realize a numeric filter on this buffer in order to remove this 50Hz frequency (Or 60Hz). I studied numeric filtering 15 years ago, I remember that we managed to synthesize RIF filter using Matlab (Choosing Window, filter order an so on ...).
Now, I do not remember the method, I do not remember how to obtain the coefficients and how to implement the filter practically...
Does anyone knows how to do it please ? Does anyone could explain me the mthod in detail, how to obtain the coefficients and how to implement it ?
If anyone has knowledge on numeric filtering, thank you by advance for your help on the subject.
I wish you a good day.
Best regards,
Thomas