Hi everybody!
I'm working on a project that detects specific sounds in my surroundings. I've connected an electret microphone to a preamp that I assembled myself and then to an ESP32 ADC. The ESP32 performs FFT within the 0Hz to 2kHz range and calculates the correlation coefficient using preloaded "target" spectrums as a reference. This coefficient indicates the presence or absence of the "target" sound.
However, I'm encountering the issue of aliasing, which results in numerous false spectrum components from sounds above 2 kHz. This severely decreases the accuracy of the used algorithm. Since there's no magic digital solution for this I need to cut or vastly reduce analog frequencies above 2kHz using LPF. And here's where I'm stuck - I've got to admit I'm clueless about it.(( All my tries with standard active filters/RC/LC filters were unsuccessful (output was corrupted and/or signals 2+kHz were still present). Please help me. I need some working scheme of a low-pass filter "attachment" that will work.
As the preamp I'm using a pretty standard scheme based on LM358 (please refer to the attached file) with the only change of R2 & R3 which are adjusted to receive 1.65V as Esp32 ADC max voltage is 3.3V while my power supply is 5V.
I would greatly appreciate any assistance you can provide. Thank you in advance!
I'm working on a project that detects specific sounds in my surroundings. I've connected an electret microphone to a preamp that I assembled myself and then to an ESP32 ADC. The ESP32 performs FFT within the 0Hz to 2kHz range and calculates the correlation coefficient using preloaded "target" spectrums as a reference. This coefficient indicates the presence or absence of the "target" sound.
However, I'm encountering the issue of aliasing, which results in numerous false spectrum components from sounds above 2 kHz. This severely decreases the accuracy of the used algorithm. Since there's no magic digital solution for this I need to cut or vastly reduce analog frequencies above 2kHz using LPF. And here's where I'm stuck - I've got to admit I'm clueless about it.(( All my tries with standard active filters/RC/LC filters were unsuccessful (output was corrupted and/or signals 2+kHz were still present). Please help me. I need some working scheme of a low-pass filter "attachment" that will work.
As the preamp I'm using a pretty standard scheme based on LM358 (please refer to the attached file) with the only change of R2 & R3 which are adjusted to receive 1.65V as Esp32 ADC max voltage is 3.3V while my power supply is 5V.
I would greatly appreciate any assistance you can provide. Thank you in advance!
Attachments
-
20 KB Views: 31