Components / Sensors / Sound sensor module (KY-038)

Sound sensor module (KY-038)

Electret microphone with a comparator. Detects claps and loud sounds, not good for recording.

MeasuresSound level (relative)
InterfaceDigital threshold out plus analog out
Supply voltage3.3 to 5 V
SensorsReviewedMPN KY-038Used in 11 projects
KY038
In short

What is the Sound sensor module (KY-038) and what is it used for?

Electret microphone with a comparator. Detects claps and loud sounds, not good for recording. Makers use it for clap switches, noise alarms.

How it works

An electret microphone feeds an LM393 comparator, with the analog signal also brought out.

Key specifications

Sensor specValue
MeasuresSound level (relative)
InterfaceDigital threshold out plus analog out
Supply voltage3.3 to 5 V

Pinout

AOAnalog microphone signal around mid-supply
GNDGround
+3.3 to 5 V
DODigital, HIGH when sound passes the trimmer threshold

How to use it

Use DO for clap or knock switches after setting the trimmer. AO is noisy and has little gain, so sample it fast and measure the peak-to-peak level rather than single readings.

Applications

Alternatives

Buy at

Common questions

What is the Sound sensor module (KY-038) used for?

In maker projects: clap switches, noise alarms.

How does the Sound sensor module (KY-038) work?

An electret microphone feeds an LM393 comparator, with the analog signal also brought out.

What voltage does the Sound sensor module (KY-038) need?

3.3 to 5 V.

How do I connect the Sound sensor module (KY-038) to an Arduino or ESP32?

Digital threshold out plus analog out. Pins: AO (Analog microphone signal around mid-supply), GND (Ground), + (3.3 to 5 V), DO (Digital, HIGH when sound passes the trimmer threshold).

What can I use instead of the Sound sensor module (KY-038)?

MAX9814 microphone with AGC.