How do you think - is there resources enough to add SPL (sound pressure level) measurement functionality into Nordic Thingy:52? Is microphone appropriate or may be external one is needed?
From this DIY meter davidegironi.blogspot.se/.../a-simple-sound-pressure-level-meter-spl.html
steps are following
- collects N samples 2.do FFT for the N samples collected, the signal is now transformed in the frequency domain 3.apply A or C weighting (in freq domain) 4.get magnitude of the signal
- get RMS value of the signal
- apply a time-weight filter to RMS value (fast or slow) 7.compute the SPL using the RMS value 8.output data
and also add calibration possibility (with sound calibrator 94db@1kHz, 105db@1kHz).
Since sound measurement is quite intensive in terms of sampling and logging, best way to save battery probably be measure each second and log only values above certain levels. Or make active measurements only above certain sound level.
Thanks for all that reading and answering.