Datasheet

4
3. Demonstration
3.1 With Arduino
This module uses the chip LM2904 to amplify the electronic signal produced by the mini microphone. At
last, you will get the analog-to-digital conversion value. Let's try to read the output value.
As the picture on the below indicates, the Loudness sensor is connected to analog port A0 of
the Grove - Basic Shield
Connect Arduino/Seeeduino to PC by using a USB cable.
Copy and paste code below to a new Arduino sketch.
int val;
void setup()
{
Serial.begin(9600);
}
void loop()
{
analogRead(0);
delay(10);
val = analogRead(0);
Serial.println(val);
delay(200);