I have been trying to get a mini microphone module with an inbuilt microphone module I got from AliExpress to my Arduino to confirm if it is working. It was a four pin microphone with pins labeled V, L, and two G pins. The V represents voltage in and the L represents audio output positive.
However, when I ran the code to check whether it works the value does not change that much, Is there something I'm doing wrong (I'm a beginner btw) or is the microphone not just working?
My code
const int audioPin = A0; // Analog input pin connected to the microphone module output
void setup() {
Serial.begin(9600); // Initialize the Serial Monitor
}
void loop() {
int audioValue = analogRead(audioPin); // Read the analog value from the microphone module
Serial.println(audioValue); // Print the analog value to the Serial Monitor
// Add a small delay to control the rate of readings
delay(10);
}
I connected the output (L) to A0 and connected both the G pins to the arduino ground, I connected the V pin to the 3.3V pin on the Arduino Uno.