Selecting microphone input produces static/noise/etc.

Status
Not open for further replies.

rainnw

New member
Hello,

I soldered up an electret condenser mic that I had laying around to the mic and gnd pins. Red to mic, black to gnd.

However, I don't hear any audio when doing a passthrough test with my headphones. As i raise the mic gain, i hear more and more noise. Touching my fingers on the pin, I am able to generate some noise as well, but absolutely no audio. I've even tried smacking the small mic on the table -- not even a pop.

Any idea what the problem could be?

Here is a link to the mic I am using:

https://www.digikey.com/en/products/detail/cui-devices/CMEJ-4618-42-L120/10253440

Hardware:

Audio Board Rev D
Teensy 4.1

Here is the code I am using:

Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioInputI2S            i2s2;           //xy=222,170
AudioOutputI2S           i2s1;           //xy=578,170
AudioConnection          patchCord1(i2s2, 0, i2s1, 0);

AudioControlSGTL5000     sgtl5000_1;     //xy=156,296
// GUItool: end automatically generated code

const int myInput = AUDIO_INPUT_MIC;

void setup() {
  // put your setup code here, to run once:
  AudioMemory(8);
  sgtl5000_1.enable();
  sgtl5000_1.volume(0.8);
  sgtl5000_1.inputSelect(myInput);
  sgtl5000_1.micGain(63);

}

void loop() {
  // put your main code here, to run repeatedly:

}
 
A condenser mic needs power. The circuit diagram at the bottom of page 3 of the datasheet shows how to wire the power and a capacitor to the red lead. The specifications on page 1 give the typical supply voltage as 2V and a maximum of 10V. The Teensy 3V3 is well within this so you should have no trouble with it.

Pete
 
A condenser mic needs power. The circuit diagram at the bottom of page 3 of the datasheet shows how to wire the power and a capacitor to the red lead. The specifications on page 1 give the typical supply voltage as 2V and a maximum of 10V. The Teensy 3V3 is well within this so you should have no trouble with it.

Pete

According to the Audio adapter board schematic, bias voltage is already provided for condenser mics:

Screen Shot 2021-06-07 at 6.43.46 PM.png

Is this not actually on the board?
 
From everything you've described, it really should work.

As you can see in the audio library tutorial (and video demo) this does work.


Any idea what the problem could be?

Kinda feels like a defective mic or wire between the mic and Teensy.
 
Thanks Paul and el_supermo for helping me troubleshoot this. I will order another mic off arrow and see if that helps.
 
Status
Not open for further replies.
Back
Top