- Fri Aug 30, 2019 3:27 am
#83607
Hey there! i am new to this forum and already enjoying it. Actually i am trying to interface a "GY MAX4466" electret microphone module with NodeMCU 12E microcontroller but on the serial monitor i am getting a constant value of 956-958 on the monitor which doesn't change even if the surrounding is quiet or noisy. I am using the following code:
int val=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int val= analogRead(A0);
Serial.println(val);
}
Where am i going wrong?? Please help me out...
Thanks in advance.