No Output from Electret Microphone Amplifier MAX4466

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
sunj
 
Posts: 1
Joined: Wed Sep 13, 2017 1:20 pm

No Output from Electret Microphone Amplifier MAX4466

Post by sunj »

Hi,

I purchased an Electret Microphone MAX4466 and I'm having some issues with
getting it to work. I followed the wiring instructions at
https://learn.adafruit.com/adafruit-mic ... and-wiring, as attached

Code: Select all

const int sampleWindow = 50; // Sample window width in mS (50 mS = 20Hz)
unsigned int sample;
 
void setup() 
{
   Serial.begin(9600);
}
 
 
void loop() 
{
   unsigned long startMillis= millis();  // Start of sample window
   unsigned int peakToPeak = 0;   // peak-to-peak level
 
   unsigned int signalMax = 0;
   unsigned int signalMin = 1024;
 
   // collect data for 50 mS
   while (millis() - startMillis < sampleWindow)
   {
      sample = analogRead(0);
      if (sample < 1024)  // toss out spurious readings
      {
         if (sample > signalMax)
         {
            signalMax = sample;  // save just the max levels
         }
         else if (sample < signalMin)
         {
            signalMin = sample;  // save just the min levels
         }
      }
   }
   peakToPeak = signalMax - signalMin;  // max - min = peak-peak amplitude
   double volts = (peakToPeak * 5.0) / 1024;  // convert to volts
 
   Serial.println(volts);
}
I adjusted the gain in allowed range and used very load sound, results were always like

Code: Select all

0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
Does anyone have similar issue? Does this imply a defective module?

Thank you for your help.

Jeff
Attachments
wiring on MAX4466
wiring on MAX4466
IMG_2.jpg (139.93 KiB) Viewed 308 times
wiring on Arduino
wiring on Arduino
IMG_1.jpg (152.24 KiB) Viewed 308 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”