

The Sound Sensor Module (Manufacturer: STMicroelectronics, Part ID: LM393) is a device designed to detect sound levels and convert them into an electrical signal. It is commonly used in projects requiring sound detection or voice activation. The module is based on the LM393 comparator and includes a microphone, signal processing circuitry, and an adjustable sensitivity potentiometer.








The following table outlines the key technical details of the Sound Sensor Module:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Output Type | Digital (DO) and Analog (AO) |
| Sensitivity Adjustment | Via onboard potentiometer |
| Microphone Type | Electret Condenser Microphone |
| Comparator IC | LM393 |
| Dimensions | ~32mm x 15mm x 12mm |
| Mounting Holes | 2 x M3 holes |
The Sound Sensor Module typically has a 4-pin interface. The pin descriptions are as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V) |
| 2 | GND | Ground connection |
| 3 | DO | Digital output (HIGH when sound exceeds threshold) |
| 4 | AO | Analog output (proportional to sound intensity) |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.DO pin for digital output. The output will be HIGH when the sound level exceeds the threshold set by the potentiometer.AO pin for analog output. This provides a continuous voltage proportional to the detected sound intensity.Below is an example of how to connect the Sound Sensor Module to an Arduino UNO:
| Sound Sensor Pin | Arduino UNO Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| DO | Digital Pin 2 |
| AO | Analog Pin A0 |
The following Arduino code demonstrates how to use both the digital and analog outputs of the Sound Sensor Module:
// Define pins for the sound sensor
const int digitalPin = 2; // Digital output pin from the sensor
const int analogPin = A0; // Analog output pin from the sensor
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read digital output (HIGH or LOW)
int digitalValue = digitalRead(digitalPin);
// Read analog output (0-1023)
int analogValue = analogRead(analogPin);
// Print the values to the Serial Monitor
Serial.print("Digital Output: ");
Serial.print(digitalValue);
Serial.print(" | Analog Output: ");
Serial.println(analogValue);
delay(500); // Wait for 500ms before the next reading
}
No Output from the Module:
VCC and GND connections).Digital Output Always HIGH or LOW:
Analog Output Not Changing:
AO pin is connected to an analog input on the microcontroller.Q: Can the module detect specific sounds (e.g., voice or clapping)?
A: The module detects sound intensity but cannot differentiate between specific sounds. Additional signal processing is required for sound classification.
Q: Can I use the module with a 3.3V microcontroller?
A: Yes, the module operates at 3.3V to 5V, making it compatible with 3.3V microcontrollers like ESP32 or Raspberry Pi Pico.
Q: How do I increase the detection range?
A: Increase the sensitivity using the potentiometer. However, note that higher sensitivity may also increase false triggers from background noise.
Q: Is the module suitable for outdoor use?
A: The module is not weatherproof. For outdoor use, ensure it is housed in a protective enclosure.