Analog Sound Sensor SKU: DFR0034
Contents
1 Introduction
2 Specification
3 PinOut
4 Tutorial
4.1 Connection Diagram
4.2 Sample Code
4.3 Result
5 Trouble shooting
Introduction
This is an updated version of the Analog Sound Sensor. Analog Sound Sensor is typically used in
detecting the loudness in ambient, the Arduino can collect its output signal by imitating the input
interface. You may use it to make some funny interactive works such as a voice operated switch.
As one of our new version of breakout boards, we have improved the analog sound sensor in below:
Wide voltage range from 3.3V to 5V
Standard assembling structure (two 3mm holes with multiple of 5cm as interval)
Easily recognitive interfaces of sensors ("A" for analog and "D" for digital)
Icons to simplely illustrate sensor function
High quality connector
Immersion gold surface
Specification
Supply Voltage: 3.3V to 5V
Detects the sound intensity
Interface: Analog
Size:22x30mm
PinOut
Blue:Analog signal output
Red:VCC
Black:GND
Tutorial
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);
}
Result
Open the Serial monitor, Baud rate: 9600.
Trouble shooting
More question and cool idea, visit DFRobot Forum
Powered By DFRobot © 2008-2017
很抱歉,暂时无法提供与“DFR0034”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+38.364101+4.60751
- 国内价格
- 1+97.19832
- 2+91.01297
- 3+86.15305
- 国内价格
- 1+77.10239
- 2+70.89778
- 3+68.02306
- 5+67.01691