The KY-031 Percussion Knocking Knock Sensor detects physical knock and tap events using a piezoelectric element that generates a voltage pulse on impact. The pulse triggers the onboard comparator and produces a brief digital output signal that your microcontroller reads as a single HIGH pulse. The ky-031 knock sensor runs on 3.3V to 5V DC and outputs through a standard three-pin header.
The ky-031 knock sensor module outputs a high-speed pulse that lasts only a few milliseconds on knock detection. A non-obvious detail is that the default baud rate is set high, meaning the output pulse is very brief. If your GPIO polling loop runs too slowly, it will miss the pulse entirely. Use an interrupt-driven digital Read with attachInterrupt in Arduino IDE rather than a polling loop to catch every knock reliably.
Students and tap-detection project builders use this module with Arduino IDE and MicroPython. StemVolt provides this sensor with trusted quality, ensuring reliable performance.
Related Products:
Features:
- Piezoelectric knock sensor type responds to physical percussion without any moving parts
- Digital output gives a single high pulse per knock on the output pin
- PCB module design with mounting holes allows secure installation on project enclosures
Technical specifications:
| Specification | Details |
|---|---|
| Operating Voltage | 3.3V to 5V DC |
| Default Baud Rate | High |
| Sensor Type | KY-031 Piezoelectric knock sensor |
| Output Type | Digital output |
| Mounting | PCB module with holes |
| PINs | Single output, VCC, GND |
Applications:
- Tap-activated desk lamp uses Knocking Knock Sensor to toggle relay on double knock
- Anti-theft enclosure alarm fires a buzzer when the protected box receives any physical impact
- School electronics lab uses ky-031 knock sensor module to demonstrate interrupt-driven GPIO programming
Package includes:
- 1 x KY-031 Percussion Knocking Knock Sensor Module














Reviews
Clear filtersThere are no reviews yet.