A sound sensor is defined as a module that detects sound waves through its intensity and converting it to electrical signals. Featured By RoboticsBD.
Product Images are shown for illustrative purposes only and may differ from the actual product.
Note: Product images/ Components brand may vary from actual product as our stock rotates.
Note: PCB might be different from the picture as per stock
Features:
- For sound detection module has two outputs: AO, DO.
- High sensitive microphone and high sensitivity.
- With power indicator light.
- There is a mounting screw hole 3mm
- With analog output.
General Specification |
Color |
Red |
Operating Voltage |
5 |
Size |
35 x 15 x 14 mm |
Weight |
3 g |
Shipment Weight |
0.005 kg |
Shipment Dimensions |
12 × 8 × 2.5 cm |
Please allow 5% measuring deviation due to manual measurement.
Documentation:
Sample Code Digital Output:
int Led=13;//define LED interface
int buttonpin=3 //Define D0 Sensor Interface
int val;//define numeric variables val
void setup()
{pinMode(Led,OUTPUT);// Define LED as output interface
pinMode(buttonpin,INPUT);//Define D0 Sensor as output Interface}
(void loop)
{val=digitalRead(buttonpin);//digital interface will be assigned a value of 3 to read val
if(val==HIGH)//When the light sensor detects a signal is interrupted, LED flashes
{digitalWrite(Led,HIGH)}else
{digitalWrite(Led,LOW)}
Sample Code Analog Output:
int sensorPin = A5; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
(void setup)
{pinMode(ledPin, OUTPUT);
Serial.begin(9600);}
(void loop)
{sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
Serial.println(sensorValue, DEC);}
Package Includes:
1 x Big Microphone Sound Sensor Module