Analog Sound Sensor SKU:DFR0034

Introduction

This is our updated version of the Analog Sound Sensor. Analog Sound Sensors are typically used in detecting the ambient loudness in your enviroment. The Arduino can collect its output signal by imitating the input interface. You may use it to make some fun interactive projects such as a voice operated switch.

As one of our new version of breakout boards, we have improved the analog sound sensor in the following ways:

Specification

PinOut

Pinout_DFR0034new.jpg

Blue:Analog signal output

Red:VCC

Black:GND

Tutorial

Connection Diagram

Pinout_DFR0034new.jpg

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.

Result_DFR0034_new.png

FAQ

More questions and cool idea, please visit DFRobot Forum

More Documents

DFshopping_car1.png Get Gravity: Analog Sound Sensor For Arduino from DFRobot Store or DFRobot Distributor.

Category: DFRobot > Sensors & Modules > Sensors > Sound Sensors

category: Product Manual category: DFR Series category: Sensors

category: Diagram category: DFRobot

Turn to the Top