How to calculate dB from the mems microphone data?
Hello all.
I would like to ask how to calculate dB from a data recorded by a MEMS microphone.
I currently use the MP34DT04 on the SensorTile Kit. I checked the SensorTile can record sound with the microphone, and store a wav data file in MicroSD.
In the .wav file, there are chunk of data and, of course, there are sound level data. Then, I would like to calculate dB data from the sound level data. How can I calculate?
If the sound level data is 16 bit, the data would be in between -32768 and 32768. Is the digit can be mapped to full scale sensitivity? The sensitivitiy means the parameter in the datasheet. In the case of the MP34DT04, the sensitivity is in the range of -26dB to 120 dB.
I also wonder what the description in the page 6 of the datasheet means. It says "Duty cycle: min = 40% max = 60%". Is it related to the dB calculation?
Please take care yourself first, and looking forward to the answers.
Thanks in advance.
Masaru
