Microphone Audio & Sound Detection Sensor Module (KY-037)
$33.54
$41.59
The KY-037 microphone audio and sound detection sensor module is a small electronic device that is used to detect sound and convert it into an electrical signal. It consists of a microphone and a signal processing circuit that is used to amplify and filter the signal from the microphone. The output of the module is an electrical voltage that varies in proportion to the intensity of the sound being detected. This type of module is often used in a wide range of electronic projects and applications where it is necessary to detect sound and respond to it in some way. For example, it might be used in a security system to trigger an alarm when it detects a loud noise, or in a music player to start playing music when it detects a clap or other sound. The module is typically connected to a microcontroller or other electronic device, which can interpret the output signal and take appropriate action. This module is great for Arduino. Use the analog input pin to determine the sound level surrounding the module. It is not suitable to recognise speech. For sound detection module has two outputs: There is a mounting screw hole 3mm The use 5v DC power supply With analog output High sensitive microphone and high sensitivity. A power indicator light The comparator output is light int Led=13;//define LED interface int buttonpin=3 //Define D0 Sensor Interface int val;//define numeric variables val void setup() { pinMode(Led,OUTPUT);// Define LED as output interface pinMode(buttonpin,INPUT);//Define D0 Sensor as output Interface } void loop() { val=digitalRead(buttonpin);//digital interface will be assigned a value of 3 to read val if(val==HIGH)//When the light sensor detects a signal is interrupted, LED flashes { digitalWrite(Led,HIGH) } else { digitalWrite(Led,LOW) } } Alternative Code: int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor void setup() { pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { sensorValue = analogRead(sensorPin); digitalWrite(ledPin, HIGH); delay(sensorValue); digitalWrite(ledPin, LOW); delay(sensorValue); Serial.println(sensorValue, DEC); }
Arduino