I am entirely new to the Arduino (but I'm familiar with programming). In order to built a VU meter, I want to put a microphone to the analog 0 pin of the Arduino and display the value via the serial connection.
I googled and found this circuit:
... and I tried to build it with this result:
The values on the serial monitor don't change depending on the music volume.
What is the easiest way to measure the volume on the analog input of the Arduino?
Also, I have a TDA2822M, but I don't know if it is helpful for this project. The caption on the microphone reads XF-18D.
My arduino code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(analogRead(0));
delay(300);
}
The serial output: 1023 1022 1022 1022 1022 1023 1022 and so on
How can I check if the microphone works at all? Is it directional?