I have an Arduino Mega2560 and I want to know how to use the FFT library from Open Music Labs for my board for frequency analysis of sound. Any help on this will be much appreciated.
- I will be using an off-the-shelf audio microphone circuit which gives me a voltage o/p in the 0-5V range. Using this I should be able to sample the amplitude v time values of the incoming sound. And, applying a transform like FFT will help me convert the time domain signal to a frequency domain signal. After this conversion, looking at the specific frequency bin and setting a threshold for the occurrence of that frequency, I should be able to confirm the presence of the whistle sound I am looking for. Is my understanding correct on this?
- I tried downloading the library files in that site and running the sample programs provided. Upon doing so, I encountered an error which said that it cannot be compiled for the Mega or Mega2560. Even as I changed the boards to Due, Uno etc., the error message kept repeating itself. I don’t think it is the problem with the library as this is one which I found was extensively used. Why am I facing this issue and is there a way I can correct this?
I downloaded the zip file of the FFT library from the below link