OK. a digital mic is not an option as i'm applying it to an existing hardware.
I want to see the amplitude of the sound after the frequency is filtered.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputAnalog adc1; //xy=283,132
AudioFilterBiquad biquad1; //xy=451.00000762939453,142.00000095367432
AudioAmplifier amp1; //xy=680.0000076293945,164.00000190734863
AudioConnection patchCord1(adc1, biquad1);
AudioConnection patchCord2(biquad1, amp1);
// GUItool: end automatically generated code
void setup() {
// put your setup code here, to run once:
AudioNoInterrupts();
AudioMemory(16);
audioShield.enable();
AudioInterrupts();
}
void loop() {
// put your main code here, to run repeatedly:
}