0% found this document useful (0 votes)
2 views3 pages

Small Microphone Module

The document provides information on interfacing a Small Microphone Sound Detection Module with Arduino, detailing its specifications and pin configuration. It highlights the module's ability to detect sound signals and output digital or analog signals, making it suitable for projects like a clap switch. An example code is included to demonstrate how to control LED lights using the module's outputs.

Uploaded by

pacho_1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Small Microphone Module

The document provides information on interfacing a Small Microphone Sound Detection Module with Arduino, detailing its specifications and pin configuration. It highlights the module's ability to detect sound signals and output digital or analog signals, making it suitable for projects like a clap switch. An example code is included to demonstrate how to control LED lights using the module's outputs.

Uploaded by

pacho_1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Small microphone module

DESCRIPTION:
Learn interfacing Small Microphone Sound Detection Module in Arduino. Small
sound sensor acts like a microphone which detects sound signals. The sensor will
detect sound signals an provide digital or analog output. The sound sensor can be used
to make exciting projects like clap switch.

Specification:
● Voltage:5V/3.3V
● there is a mounting screw hole 3mm
● the use 5v DC power supply
● with analog output
● there is threshold level output flip
● high sensitive microphone and high sensitivity.
● a power indicator light
● the comparator output is light
● Weight: 4g
● Frequency Response range:50Hz~20kHz
● Impedance:2.2K ohm
● Sensitivity:48~66dB

1/3
● polar pattern:Universal
● Operating temperature: -40 to 85 degrees celsius
● Operating humidity: <90%
● Storage temperature : -40 to 85 degrees celsius
● Storage humidity : <75%
● product size: 41*15mm

PIN CONFIGURATION:
1、 “A0”: Analog
2、 “G” : GND
3、 “+” : +5V
4、 “D0”: digital output

Example :
In this example we try to combine digital pin and analog pin together to control two
LED lights, connection and code as below.

2/3
Code:
int Led=13; int ledPin=12;
int buttonpin=7; // define D0 Sensor Interface int
sensorPin = A0;
int sensorValue = 0;
int val;
void setup()
{
[Link](9600);
pinMode(Led,OUTPUT);
pinMode(ledPin, OUTPUT);
pinMode(buttonpin,INPUT);
}
void loop()
{
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
[Link](sensorValue, DEC);
val=digitalRead(buttonpin);
if(val==HIGH)
{
digitalWrite(Led,HIGH);
}
else
{
digitalWrite(Led,LOW);
}
}

3/3

You might also like