Analog_Sound_Sensor_(SKU__DFR0034) - jimaobian/DFRobotWiki GitHub Wiki
Introduction
This small breakout board couples a small electret microphone with a 100x opamp to amplify the sounds of voice, door knocks, etc loud enough to be picked up by a microcontroller's Analog to Digital converter.
Pin Definition
The definition of sound sensor pin is
- Signal Output
- GND
- Power
Connection Diagram
Sample Code
void setup()
{
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0); //connect mic sensor to Analog 0
Serial.println(val,DEC);//print the sound value to serial
delay(100);
}
Projects
shopping analog sound sensor (sku: dfr0034)
category: Product Manual category: DFR Series category: Sensors category:source category:Diagram