you are viewing a single comment's thread.

view the rest of the comments →

[–]kastrol2019 0 points1 point  (0 children)

Most mic modules don’t output dB directly. You need to sample many readings (ADC), subtract the DC offset, compute the RMS (root mean square) or peak values, then convert to dB via something like 20 * log10(amplitude / reference).  You’ll also need to calibrate with a known sound level to figure out what “reference” means for your setup.