Sound sensor module (KY-038)
Electret microphone with a comparator. Detects claps and loud sounds, not good for recording.
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.
An electret microphone feeds an LM393 comparator, with the analog signal also brought out.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Sound level (relative) |
| Interface | Digital threshold out plus analog out |
| Supply voltage | 3.3 to 5 V |
Pinout
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
Builds that use it
Double-clap light switch
Moving cat ears headband
Talking robot toy
Desk robot with expressive eyes
Applause meter
Clap switch
Clap-controlled door sign
Sound-reactive night light
Alternatives
- MAX9814 microphone with AGCProper amplified audio with automatic gain
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.
