Descriptions:
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 voltage VCC=5V | 0 | – | 5 | V |
Working current 5V | – | 260 | – | uA |
Frequency range | 100 | – | 10000 | Hz |
Sensitivity | – | -50 | – | dB |
DEMO:
Connect S port of electronic brick of microphone to A0 port of Arduino, and we will use the following program to read the analog value. When the value exceeds the threshold, the LED indicator will flash.
1 const int ledPin = 13; // the number of the LED pin
2 const int thresholdvalue=400; //The threshold to turn the led on
3 void setup() {
4 pinMode(ledPin, OUTPUT);
5 }
6 void loop() {
7 int sensorValue = analogRead(A0); //use A0 to read the electrical signal
8 if(sensorValue>thresholdvalue)
9 digitalWrite(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:
1 x NEW 3pin/4pin Electronic Brick Sound Sensor Microphone Mic Module for Arduino
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
Reviews
There are no reviews yet.