The ky-037 module comes with a sensitive capacitive microphone along with an amplifier circuit for detecting sound. This comes in the 37 in 1 Starter kit for Arduino. It can make sound-related projects like clap activated lights etc.
USA purchase link
UK purchase link
Germany purchase link
Specifications :
- Frequency range:100 ~ 10,000 Hz.
- Sensitivity: – 46 ± 2.0, ( 0 dB = 1V / Pa ) at 1K Hz.
- Power supply: 5V maximum
- Minimum Sensitivity to Noise Ratio: 58dB
How do the KY-037 Work :
The Microphone detects the sound of the surround and gives an analog output. The digital pin gets activates whenever input has reached a certain threshold. Using a potentiometer on the sensor threshold can be adjusted.
KY-037 Pin Configuration :
The Sensor works in both analog or digital mode.
Depending on how you are planning to use it, you need to connect the pin.
For analog output, we are connecting it to Pin A0. Connect the Ground to the GND of the Arduino and Vcc to +5 V of the Arduino. In case you are planning to use it in digital mode connect it to the Digital pin 13.
Code for analog input :
int AnalogPi=A0; void setup() { Serial.begin(9600); // setup serial pinMode(AnalogPin,INPUT); } void loop() { int Soundlevel; Soundlevel=analogRead (Analog_Eingang) * (5.0 / 1023.0); Serial.println(analogRead(A0)); delay(100); }
Code for the digital input :
int DigitalPin= 8; void setup() { Serial.begin(9600); // setup serial pinMode (DigitalPin, INPUT); } void loop() { int SoundLevel; SoundLevel= digitalRead (Digital_Eingang); if(SoundLevel==1) { Serial.println (" reached"); } else { Serial.println (" not reached yet"); } delay(100); }