cancel
Showing results for 
Search instead for 
Did you mean: 

Where to start with capturing audio data with MEMS pdm-microphone?

BMend
Associate

I'm trying to capture audio data such that I could process it and create spectrograms. So far I'm able to create frequency domain graphs with my device using fast fourier transform. But my true goal would be to capture enough data to create wav files. Is this possible? If so could you guys give me an initial code base to work on? Since I'm not very familiar with all the lower level stuff at the moment. Any help would be appreciated, thanks.

Here are my current devices:

Micro-Controller: STM32L476RG

MEMS pdm-mic: SPH0641LU4H-1 Knowles

Initial Codebase: https://github.com/y2kblog/NUCLEO-L476RG_DFSDM_PDM-Mic

2 REPLIES 2
KnarfB
Principal III

Download the firmware STM32Cube_FW_L4_V1.14.0 from STM and look at the example Projects\32L476GDISCOVERY\Examples\BSP\. The board support package (BSP) covers audio, you may need to integrate your mics as new components.

I did similar things on a STM32F746G-DISCO board.

Frank

BMend
Associate

Would it work despite having a PDM MEMS microphone? Since I'm in the process of adapting my microphone and it's proving to be tricky. Thanks for your time.