sound detector

150

Categories: ,

Description

 

 

The Sound Detector is a sensor module containing a microphone and a power amplifier. It can be used for detecting the sound strength of the environment. The sensitivity of the digital output can be adjusted by the potentiometer. Analog output is also available.

The Sound Detector has two outputs:
AO – Analog output, real-time output of the microphone signal.
DO – When sound intensity is below a pre-defined threshold, the output is low. When sound intensity raises above that threshold, the output is high. The threshold (sensitivity) can be adjusted via the potentiometer on the sensor.

 

 

 

 

code with arduino

/* SETUP

Sound Sensor   Arduino
A0      -      
GND     -      GND
+       -      3.3V
D0      -      D3
*/
 
int Led = 13 ;// define LED Interface
int buttonpin = 3; // define D0 Sensor Interface
int val = 0;// define numeric variables val
 
void setup ()
{
  pinMode (Led, OUTPUT) ;// define LED as output interface
  pinMode (buttonpin, INPUT) ;// output interface D0 is defined sensor
}
 
void loop ()
{
  val = digitalRead(buttonpin);// digital interface will be assigned a value of pin 3 to read val
  if (val == HIGH) // When the sound detection module detects a signal, LED flashes
  {
    digitalWrite (Led, HIGH);
  }
  else
  {
    digitalWrite (Led, LOW);
  }
}

 

Reviews

There are no reviews yet.

Be the first to review “sound detector”

Your email address will not be published. Required fields are marked *