This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

After I read mic PDM data, how do I convert it to DB?

Hi,

   I am doing a micphone "sph0641lm4h-1",  and I use api of nrf_drv_pdm.c, 

   when I read mic data from sph0641lm4h-1,  they are just sets of 16 bit data, the following figure:

pdm_buffer[0], pdm_buffer[1], pdm_buffer[2], pdm_buffer[3], pdm_buffer[4]........

so my question:   when I read all the array data ,   how I convet them to db?

Related