Arduino Uno; For More Information - Parallax 29132 Manual

Sound impact sensor kickstart
Table of Contents

Advertisement

Arduino Uno

int sound = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sound = digitalRead(2);
if (sound == 1) {
Serial.println("Sound detected!");
delay(100);
}
Note: To view the results of the demonstration, after uploading is complete click the Serial
Monitor icon in the Arduino IDE. This displays the Serial Monitor window. Momentarily
depress the Reset button on the Arduino board to restart the sketch.

For More Information

Read the full documentation for the
Copyright © Parallax Inc.
// If loud sound
// Wait 1/10 second
// Repeat
Sound Impact Sensor
(#29132).
Page 5 of 5

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents