The SparkFun Electret Microphone Breakout is a compact and versatile module designed to capture audio signals through its onboard electret microphone. This breakout board amplifies the weak electrical signals from the microphone, providing a usable analog output that can be easily interfaced with a variety of microcontrollers, such as the Arduino UNO, for audio detection and recording applications. Common use cases include sound level meters, audio recording, voice recognition, and simple audio-triggered systems.
Pin Name | Description |
---|---|
AUD | Audio output signal |
GND | Ground |
VCC | Power supply (2.7V to 5.5V) |
Gain | Gain adjustment (potentiometer onboard) |
Powering the Module:
Adjusting Gain:
Reading Audio Signal:
// Define the pin connected to the audio output
const int microphonePin = A0;
void setup() {
// Initialize serial communication at 9600 baud rate
Serial.begin(9600);
}
void loop() {
// Read the analog value from the microphone
int audioLevel = analogRead(microphonePin);
// Print the audio level to the Serial Monitor
Serial.println(audioLevel);
// Delay for a short period to avoid flooding the serial output
delay(10);
}
Q: Can I use this module with a 5V Arduino? A: Yes, the module can be powered with a 5V supply, making it compatible with 5V Arduinos.
Q: How do I adjust the gain on the module? A: Use a small screwdriver to turn the onboard potentiometer. Clockwise increases the gain, while counterclockwise decreases it.
Q: What is the purpose of the AUD pin? A: The AUD pin outputs the amplified audio signal from the microphone, which can be read by an analog input on a microcontroller.
Q: Can I connect this module directly to a speaker? A: No, the output is an analog signal meant for microcontroller ADCs. To drive a speaker, additional amplification is needed.
For further assistance, please refer to the SparkFun Electret Microphone Breakout product page and forums for community support and resources.