Sound Sensor with Arduino: Clap-Controlled Lighting

Engineering illustration: Sound Sensor with Arduino: Clap-Controlled Lighting

A sound sensor built around the LM393 comparator lets Arduino respond to ambient sounds like clapping, tapping, or music, forming a simple foundation for building sound-reactive lighting or alarm systems.

Components needed

An Arduino Uno board, a sound sensor module fitted with a microphone and a sensitivity-adjustment potentiometer, an LED with a 220-ohm resistor, and connecting wires.

Wiring it up

The module's digital output connects to digital pin 2 on the Arduino, while the LED connects to digital pin 3 through a 220-ohm resistor to protect it.

How it works

The module's built-in microphone picks up ambient sound, and the LM393 comparator checks it against a sensitivity level preset via the on-board potentiometer. When the sound level exceeds this threshold, the module's output sends a HIGH digital signal. The code continuously reads this state — if it's HIGH, the LED lights up immediately, and once the signal returns to LOW after the sound ends, the LED turns off automatically, producing an instant clap-like response for controlling lighting.

You can find sound sensor modules at Juthour Tech.

اترك تعليقا

*
*
يمكن للأعضاء المسجلين فقط ترك تعليقات.