Stufin
Home Quick Cart Profile

Sound Sensor Module

Buy Now

Operating Voltage

3.3V to 5V

Operating Current

10mA

Sensitivity

50 dB

Frequency Range

20 Hz to 20 kHz

Digital Output

0 or 1

Relay Output

Normally Open (NO) or Normally Closed (NC)

Response Time

10ms

Operating Temperature

-20C to 70C

Storage Temperature

-40C to 80C

Dimensions

25mm x 20mm x 10mm

Applications

The Sound Sensor Module is ideal for a wide range of applications, including

Home automation systems

Robotics and autonomous systems

Voice-controlled systems

Noise monitoring systems

Sound-activated switches

Security systems

Industrial automation systems

Conclusion

The Sound Sensor Module is a versatile and highly sensitive sound detection module that is perfect for a wide range of IoT applications. Its compact design, low power consumption, and adjustable sensitivity make it an ideal choice for developers, hobbyists, and professionals alike.

Pin Configuration

  • Sound Sensor Module Documentation
  • Pin Description:
  • The Sound Sensor Module has a total of 5 pins, each serving a specific purpose. Below is a detailed explanation of each pin:
  • 1. VCC (Power Supply Pin):
  • Function: Connects to the power supply of the microcontroller or circuit.
  • Description: This pin is used to provide power to the sensor module. Typically, a voltage range of 3.3V to 5V is recommended.
  • Connection: Connect VCC to the positive terminal of the power supply (e.g., Arduino's 5V or 3.3V pin).
  • 2. GND (Ground Pin):
  • Function: Connects to the ground of the microcontroller or circuit.
  • Description: This pin is used to provide a reference point for the sensor module's circuitry.
  • Connection: Connect GND to the negative terminal of the power supply (e.g., Arduino's GND pin).
  • 3. OUT (Analog Output Pin):
  • Function: Outputs an analog voltage signal proportional to the detected sound intensity.
  • Description: This pin provides an analog signal that can be read by an ADC (Analog-to-Digital Converter) of a microcontroller. The output voltage ranges from 0V to VCC.
  • Connection: Connect OUT to an analog input pin on the microcontroller (e.g., Arduino's Analog In pins A0-A5).
  • 4. DO (Digital Output Pin):
  • Function: Outputs a digital signal indicating the presence or absence of sound above a certain threshold.
  • Description: This pin provides a digital signal that can be read by a digital input pin of a microcontroller. The output is HIGH (VCC) when the sound intensity exceeds the threshold, and LOW (GND) otherwise.
  • Connection: Connect DO to a digital input pin on the microcontroller (e.g., Arduino's Digital In pins 2-13).
  • 5. EN (Enable Pin):
  • Function: Enables or disables the sound sensor module.
  • Description: This pin is used to control the power consumption of the module. When EN is set HIGH, the module is enabled, and when set LOW, it is disabled.
  • Connection: Connect EN to a digital output pin on the microcontroller (e.g., Arduino's Digital Out pins 2-13). Typically, EN is connected to VCC to enable the module by default.
  • Connection Structure:
  • Here's a suggested connection structure for the Sound Sensor Module:
  • Connect VCC to the power supply (e.g., Arduino's 5V pin).
  • Connect GND to the ground (e.g., Arduino's GND pin).
  • Connect OUT to an analog input pin on the microcontroller (e.g., Arduino's A0 pin).
  • Connect DO to a digital input pin on the microcontroller (e.g., Arduino's D2 pin).
  • Connect EN to a digital output pin on the microcontroller (e.g., Arduino's D13 pin) or VCC to enable the module by default.
  • Note: Ensure to check the specific datasheet of the Sound Sensor Module and microcontroller being used for any specific connection requirements or recommendations.

Code Examples

Sound Sensor Module Documentation
Overview
The Sound Sensor Module is a digital sensor that detects sound waves and converts them into an electrical signal. This module is commonly used in various IoT applications, such as voice control systems, sound-activated switches, and noise level monitoring systems.
Pinouts
The Sound Sensor Module typically has the following pinouts:
VCC: Power supply pin (typically 5V)
 GND: Ground pin
 OUT: Digital output pin (TTL level)
 AOUT: Analog output pin (optional)
Operating Principle
The Sound Sensor Module uses a microphone to detect sound waves and a amplifier to amplify the signal. The amplified signal is then compared to a predefined threshold level, and if the signal exceeds this level, the digital output pin (OUT) goes high.
Code Examples
### Example 1: Sound-Activated LED using Arduino
In this example, we will use the Sound Sensor Module to control an LED. When the sound level exceeds a certain threshold, the LED will turn on.
```c++
const int ledPin = 13;  // Choose the pin for the LED
const int soundPin = 2;  // Choose the pin for the sound sensor
void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(soundPin, INPUT);
}
void loop() {
  int soundState = digitalRead(soundPin);
  if (soundState == HIGH) {
    digitalWrite(ledPin, HIGH);
  } else {
    digitalWrite(ledPin, LOW);
  }
  delay(10);
}
```
### Example 2: Sound Level Monitoring using Raspberry Pi (Python)
In this example, we will use the Sound Sensor Module to monitor the sound level and display it on a serial console.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
sound_pin = 17  # Choose the pin for the sound sensor
GPIO.setup(sound_pin, GPIO.IN)
while True:
    sound_state = GPIO.input(sound_pin)
    if sound_state == 1:
        print("Sound detected!")
    else:
        print("No sound detected.")
    time.sleep(0.1)
```
### Example 3: Sound-Controlled Robot using ESP32 (MicroPython)
In this example, we will use the Sound Sensor Module to control a robot's movement. When the sound level exceeds a certain threshold, the robot will move forward.
```python
import machine
import utime
sound_pin = 14  # Choose the pin for the sound sensor
motor_forward_pin = 15  # Choose the pin for the motor forward control
machine.Pin(sound_pin, machine.Pin.IN)
machine.Pin(motor_forward_pin, machine.Pin.OUT)
while True:
    sound_state = machine.Pin(sound_pin, machine.Pin.IN).value()
    if sound_state == 1:
        machine.Pin(motor_forward_pin, machine.Pin.OUT).value(1)
        print("Robot moving forward!")
    else:
        machine.Pin(motor_forward_pin, machine.Pin.OUT).value(0)
        print("Robot stopped.")
    utime.sleep_ms(50)
```
Note: Make sure to adjust the pin numbers and thresholds according to your specific setup and requirements.