Sound detector SEN-12642, voltage to decibles

I am using the sound detector SEN-12642 with a Sparkfun RedBoad, using the 3.3v pin as the input voltage.

I am using MATLAB to stream real-time data. I am getting voltage outputs for the three outputs (AUDIO, GATE and ENVELOPE).

How do I convert the AUDIO voltage output to decibles?

Thanks :slight_smile:

I don’t think SparkFun has an exact equation for you. But you should look at this blog: https://www.gcaudio.com/tips-tricks/the … -decibels/. It might help

Thanks,

After some research I have found that:

Voltage gain (dB) = 20×log (Audio output voltage / Audio input voltage)