Code Example For Arduino - SeeedStudio Grove Introduction

Loudness sensor
Hide thumbs Also See for Grove:
Table of Contents

Advertisement

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);
}
Upload the code.
Then open the serial monitor to observe the output results. There will be a significant
change when blow to the sensor.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Grove and is the answer not in the manual?

Table of Contents