Sound Detection Module



I purchased a New Sensitivity Control Potentiometer Sound Detection Sensor Module for Arduino for £0.90.

See also Buzzin’.

Using it

I found a terrible, nearly incomprehensible, wiki, from TkkrLab, although mine only has the digital output, so that a signal is sent out when the sound level reaches, or surpasses, a preset level, which is set by the variable resistor.

Sound Detection Module
Sound Detection Module

Wiring up is simple:

  • GND to GND;
  • VCC to 5V, and;
  • Out goes to whatever pin (12?) of the Arduino that you choose to use, which is, then, set as an input. In the example below, pin 3 is used.

A piece of code to drive it:

int ledPin = 13 ;       // define LED Interface
int soundDetectPin = 3; // define Sensor Interface
int val = 0;            // define numeric variables val
void setup ()
  pinMode (ledPin, OUTPUT) ;        // define LED as output
  pinMode (soundDetectPin, INPUT) ; // define sensor as input
void loop ()
  val = digitalRead(soundDetectPin); // read sensor
  if (val == HIGH) // When the sound detection module detects a signal, LED flashes
    digitalWrite (ledPin, HIGH);
    digitalWrite (ledPin, LOW);

One thought on “Listen!”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s