AudioAnalyzePeak processing incorrectly

Unforgiven

New member
I have a simple personal project where Im trying to connect an INMP441 i2s mic to my teensy 4.0, which it worked before but after a few months later, the peak detection became very sensitive, and even a hand clap would have a peak of 0.7-0.8. When i first connected it, the hand clap is at most 0.1. Was there an update that changed the way the data is processed? I checked again using an esp32 with inmp441 and configured the i2s and it works fine (just like before), but with teensy its limit is capped by a lot. I attached my .ino file below.
 

Attachments

  • counter.txt
    1.9 KB · Views: 15
Suggest to check the time series of the acoustic data. Some (or all?) I2S mems seem to be DC-coupled before ADC and have terrible DC-offset and DC-drifts. As a consequence they lost the dynamic range one would expect. Alternatively to checking the timeseries, use the FFT module and inspect the DC term (frequency bin 0).
 
Back
Top