Microphone Noise Decibel Sound Sensor Measurement Module 3p / 4p Interface for Arduino
$2.15
SKU: EB0043581
Copy to clipboard
93 Sales
0 reviews
In Stock Availability
Bulk Purchase, Auto Savings:
$2.04
10-19 PCS
$1.94
20-99 PCS
$1.72
100+ PCS
Deliver to United States
Flat Shipping Rate $10.00
- This module can be connected to the analog I / O port,
- when speaking to the microphone, the analog value will be changed.
- A recorder can be made by reading and saving the analog value.
Specifications:
2const int thresholdvalue=400; //The threshold to turn the led on
3void setup() {
4pinMode(ledPin, OUTPUT);
5}
6void loop() {
7 int sensorValue = analogRead(A0); //use A0 to read the electrical signal
8 if(sensorValue>thresholdvalue)
9digitalWrite(ledPin,HIGH); //if the value read from A0 is larger than 400,then light the LED
10 delay(200);
11 digitalWrite(ledPin,LOW);
12}
Brick Type | Sensor Brick |
Brick Interface | 3PIN |
Brick Power Supply | 5V |
Board Size | 33 × 14 × 1.6mm |
Parameter | Min. | Typical | Max. | Unit |
Working voltage | 4.5 | 5 | 5.5 | VDC |
Digital output voltageVCC=5V | 0 | - | 5 | V |
Working current5V | - | 260 | - | uA |
Frequency range | 100 | - | 10000 | Hz |
Sensitivity | - | -50 | - | dB |
DEMO:
Connect S port of electronic brick of microphone to A0 port of for , and we will use the following program to read the analog value. When the value exceeds the threshold, the LED indicator will flash.
1const int ledPin = 13; // the number of the LED pinConnect S port of electronic brick of microphone to A0 port of for , and we will use the following program to read the analog value. When the value exceeds the threshold, the LED indicator will flash.
2const int thresholdvalue=400; //The threshold to turn the led on
3void setup() {
4pinMode(ledPin, OUTPUT);
5}
6void loop() {
7 int sensorValue = analogRead(A0); //use A0 to read the electrical signal
8 if(sensorValue>thresholdvalue)
9digitalWrite(ledPin,HIGH); //if the value read from A0 is larger than 400,then light the LED
10 delay(200);
11 digitalWrite(ledPin,LOW);
12}