I have a sound which is between 150Hz-250Hz. I need two things:
1) The average frequency of the sound for the last 5 seconds. After a discussion with @Gordon it appeared that 1Khz sampling rate will be enough and this could be done on the Puck with FTT.
2) Get the digitalized sound from the microphone for the last 5 seconds.
The microphone is connected on D2(for analog), D1 (for power) and GND.