Skip to main content
Visitor II
February 18, 2025
Question

MEMS audio sensor MP23DB01HP Values/Units

  • February 18, 2025
  • 1 reply
  • 3494 views

I have a question about the MEMS audio sensor MP23DB01HP.

I think i already undertood that the output is a PDM, but my question is, how can I convert that to obtain a corresponding value in dB? Or some used unit?

I have done the acquisitons, but know i don't know what to do with that values...

Thank you in advance for your replies

    This topic has been closed for replies.

    1 reply

    ST Employee
    February 19, 2025

    What have you acquired? not clear - if you have the PCM (pulse code modulated) stream then you already have everything. If you do not know how to convert from PDM to PCM, then PCM was not saved, did you save the PDM bitstream?

    The PDM to PCM conversion can be done by the firmware, check for example AN3998 and UM2372 that describe the API of the library in STM32Cube software packages: 

    The PDM to PCM conversion can also be done by a dedicated hardware peripheral on STM32 models equipped with that peripheral, check AN5027 for more information

    Finally, audio processing and fusion such as BeamForming (BF), Sound Source Localization (SL), FFT analysis, and of course PDM to PCM conversion is in X-Cube-MEMSMIC1 software package!

     

    Visitor II
    February 20, 2025

    Thanks @Andrea VITALI 

    I am using steval mkboxpro with FP-SNS-DATALOG2, and after acquisition i obtained a .dat file, then i used the program that came in  FP-SNS-DATALOG2 to convert .dat to .csv, after opening the .csv i have the timestamps and waveform. Like this:

    FilipeLoureno_0-1740044539396.png

    From what i understand by reading the files and your explanation, the output is a PDM, a stream os 0s and 1s, but i don't have that output. My problem is that i need to have this in db or dbSPL.

    Visitor II
    February 20, 2025

    Any of the solution that you suggested is compatible with using FP-SNS-DATALOG2?