π A scalable, production-ready driver for analog sound sensors like KY-037/KY-038 using ESP32.
- Voltage & ADC reading
- Loud sound detection (
isLoud()
) - Clap detection with debounce (
detectClap()
)
BasicUsage
β Print live sound voltageLoudnessMonitor
β Detect loud environmentsClapDetector
β Detect clap gestures
Sensor | ESP32 |
---|---|
VCC | 3.3V |
GND | GND |
A0 | GPIO34 (analog input) |
MIT License