Sound Detection Microphone Sensor Tutorial in Arduino UNO R3

Overview

Sound Detection Microphone Sensor

This module incorporates a highly responsive microphone designed for sound detection. It offers a dual output capability, providing both digital and analog signals. The analog pin delivers a continuous voltage signal in real-time, reflecting the microphone's input. Simultaneously, the digital pin can transmit either a high or low signal, serving as an indicator when the sound intensity surpasses a specified threshold. To fine-tune the sensitivity threshold, users can make adjustments using the potentiometer integrated into the sensor.

A sound sensor proves to be a straightforward, user-friendly, and budget-friendly tool employed for the detection of air-traveling sound waves. Furthermore, it has the capability to gauge sound intensity and, most notably, can transform it into an electrical signal that can be conveniently interpreted by a microcontroller.

How Does a Sound Sensor Module Work?

The operation of the sound sensor module is straightforward and easy to grasp, with its primary component being a condenser microphone. When a sound wave strikes the sensor's diaphragm, it generates analog signals, which are then processed by an operational amplifier (op-amp) to produce digital output.

Within the realm of sound sensors, the microphone serves as the central component. Although various microphone types exist, including Carbon, Fiber Optic, Ribbon, and Laser microphones, our employed sound sensor module employs a condenser microphone.

This microphone consists of two plates: the diaphragm and the backplate, collectively forming a capacitor. When sound waves impinge upon the microphone's diaphragm, it initiates vibrations, altering the distance between the two plates. This movement and spacing variation generate an electrical signal mirroring the captured sound. Subsequently, this signal undergoes processing through the onboard op-amp. Furthermore, the module incorporates two onboard LEDs—one illuminates upon powering the board, while the other activates when the incoming audio signal surpasses the threshold value established by the potentiometer.

This versatile sensor finds utility in diverse projects, enabling the construction of sound-responsive switches or LED visualizers. It's particularly favored by beginners due to its attributes of low power consumption, cost-effectiveness, durability, and an adjustable sensing range to tailor sensitivity as needed.

Lets get Start

Step 1: Gather the components

Collect the required components for this project, including the Arduino UNO board, the Sound Detection Microphone Sensor, an LED, a current-limiting resistor, jumper wires, and a breadboard.

Step 2: Connect the components

Connect the Sound Detection Microphone Sensor to the Arduino UNO board. Ensure that the VCC pin of the module is connected to the 5V pin of the Arduino, the GND pin to the GND pin, and the DO pin to D7 pin.

Connect the LED to the Arduino by connecting its longer leg (anode) to a current-limiting resistor and then to Digital Pin 13. Connect the shorter leg (cathode) of the LED to GND.

Step 3: Write the code

Write the Arduino code that reads the digital input from the Sound Detection Microphone Sensor and controls the LED accordingly. The code should detect changes in the sensor's output and toggle the LED on and off.

Step 4: Upload the code and test

Upload the code to the Arduino UNO using the Arduino IDE. Once uploaded, observe the LED's behavior as it blinks in response to detected Sound.

Components and Supplies

Total price:$47.93 $28.17

Pinout

# Pin Function
1 AO Analog
2 G Ground
3 + 5V
4 DO Digital
Lonely Binary Project Pinout

Wiring

# Sound Sensor UNO R3
1 G GND
2 + 5V
3 DO D7
Lonely Binary Project Wiring

LONELY BINARY LEARNING CENTRE

Leave a comment

Your email address will not be published. Required fields are marked *

Please note, comments must be approved before they are published