Open Migaspin opened 4 years ago
If you want to get real-world dB values this is not so easy, as you have to take into account the non-linearity of your microphone (see this). In general you can convert complex values to dB using: magnitude_dB = 20 * log10(magnitude_complex).
I've been developing a project with help of this library. It consists in an arduino board capable of identifying sound pollution. The code I'm using was found in here and was adapted to my needs. The code is the following:
I've been trying for a while now to figure out a relation between the values provided by the program and a decibel value.
Any ideas?