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:
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:
}