Description
Hello,
Thank you very much for this library.
We are using it with an Arduino/Genuino Zero in order to develop applications for ambient noise frequency analysis, within the SmartCitizen project. We would like to perform FFT analysis on the new version of the kit and we found this library very useful.
However, we are finding some problems while trying to perform FFT analysis with sampling frequencies >30kHz and fftSizes = 64 (for 15kHz max frequency according to Nyquist Theorem). At some point during the acquisition and FFT calculation, it seems there is an Overload that provokes the execution to freeze. I am not sure of it being a memory Overload or other problem, so I give some details below of the case.
- Arduino/Genuino Zero with the ICS43432 installed on a Breadboard
- Execution of the example SpectrumSerialPlotter, although it also happens without the instruction
fftAnalyser.read
- For fftSizes = 64, it happens when the sampling frequency is >30kHz (and lower freq if fftSizes are higher)
- Works finely at 8kHz - 15kHz, Although it sometimes has some issues when we have more frequencies implied (i.e. noises with broader spectrum effect)
- I have tried to track the failure by inputing some
Serial.println
on the different classes / functions and the execution seems to freeze after the I2S callback to theAudioInI2SClass::OnReceive
.
Would you kindly shed some light on this issue? Have you tried to perform tests at these frequencies levels?
My apologies for any bad explanation I might have provided, I hope it is somehow clear.
Thank you beforehand for your help,
Óscar