ESP32 Sound Detection System Using Microphone Sensor, LCD & LED

by mansiramteke139 in Circuits > Sensors

283 Views, 0 Favorites, 0 Comments

ESP32 Sound Detection System Using Microphone Sensor, LCD & LED

20260315_174910[1].jpg

In this project, I build a sound detection system using ESP32 and sound sensor module. The sound sensor contains a small microphone that detects sound waves from the environment.

When a loud sound as a clap or noise is detected, the sensor sends a signal to the ESP32. The ESP32 then display a message on the 16*2 LCD Display and turns on an LED indicator. When there is no sound, the LCD shows that the area is quiet.

This project helps to learn about microphone sensors, signa; detection and microcontroller interfacing.

Supplies

Screenshot 2026-03-14 171637.png
Screenshot 2026-03-14 171711.png
Screenshot 2026-03-15 150145.png

Components lists:

  1. ESP32 DEV Module
  2. Sound Sensor Module
  3. 16*2 LCD Display
  4. I2C Module
  5. Breadboard
  6. Jumper wires
  7. USB Cable

About Sound Sensor

Screenshot 2026-03-15 175235.png

The Sound Sensor:

  1. A sound sensor is an electronics module that detects sound or noise levels. it works using a microphone that converts sound waves into electrical signals.
  2. The sensor processes these signals and sends a digital or analog output to the microcontroller depending on the sound intensity.
  3. Sound sensor are widely used in clap switches, noise monitoring system, security alarms, and smart home automation.


Connections

Sound Sensor Connections:


Sound Sensor - ESP32

VCC - 3.3V

GND - GND

DO - GPIO 25


LCD Connections:

LCD - ESP32

VCC - 5V

GND - GND

SDA - GPIO 13

SCL - GPIO 14


LED Connection:

LED(+) - GPIO 26

LED(-) - GND

Working

The sound sensor continuously listens to the surrounding environment using its built-in microphone. When sound waves such as a clap or loud noise the sensor, they are converted into electrical into electrical signals.

if the sound intensity crosses a certain threshold level, the sensor send high signal to the ESP32. The ESP32 display sound Detected on the LCD and turns on the LED.

If no sound is detected , the sensor sends a low signals, and the ESP32 display No Sound on the LCD while the LED remains off.

CODE

Output

20260315_174902[1].jpg
20260315_174910[1].jpg
20260315_174954[1].jpg

Conclusion

20260315_172218[1].jpg

The projects shows how to use a sound sensor with ESP32 to detect noise in the environment. By adding an LCD display and LED indicator, the system provides a simple and effective sound detection and alert mechanism.


(Move potentiometer for sensitivity)