This modules has a high sensitivity microphone sound detection circuit, with adjustable gain control. Two outputs are provided for sound detection:
– AO, analog output, real-time output voltage signal of the microphone
– DO, when the sound intensity reaches a certain threshold, the output goes high
Please note that this is NOT an audio amplifier! It is meant to detect sounds about a configurable level.
Specifications
- Operating voltage 5V
- 3mm mounting screw holes
- 1 x Analog Output (A0)
- 1 x Digital threshold level output
- High sensitive microphone and high sensitivity circuit
- LED Comparator output indicator
- Standard Pin spacing: 2.54mm
- Size 35mm x 15mm
Documentation, Sample Code and Resources
The following sample Arduino code can be used to turn a LED on when a sound above a certain level is detected.
int Led=13; //define LED as interface int buttonpin=3 //Define D0 Sensor as Interface int val; //define numeric variables val void setup() { // Define LED as output interface pinMode(Led,OUTPUT); //Define D0 Sensor as output Interface pinMode(buttonpin,INPUT); } void loop() { //digital interface will be assigned a value of 3 to read val val=digitalRead(buttonpin); //When the light sensor detects a signal is interrupted, LED flashes if(val==HIGH) { digitalWrite(Led,HIGH) } else { digitalWrite(Led,LOW) } }
Package Includes
1 x Sound Detection board with microphone (as shown in picture)