Skip to main content
Visitor II
July 3, 2019
Question

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

  • July 3, 2019
  • 2 replies
  • 964 views

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

    This topic has been closed for replies.

    2 replies

    Super User
    July 4, 2019

    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

    BMendAuthor
    Visitor II
    July 5, 2019

    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.