Features:
- 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:
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 pin
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}
Package Included:
3 x Microphone Noise Decibel Sound Sensor Measurement Module