KY-031 Vibration Sensor Board
- Product Code:
- 2018-2-756
- Availability:
- 10
Ex Tax: 8.33 ₺
- Same-Day Shipping For orders placed by 15:00
- Free Shipping On orders over 3000 TL
- Easy Returns 14-day right of return
-
Secure Payment 256-bit SSL protected
KY-031 Knock Sensor Module
The KY-031 knock sensor converts impact, collision or vibration into a digital signal using a spring-based vibration detection mechanism. It is suitable for use in door knock detection, smart home automation and alarm applications.
Technical Specifications
| Operating Voltage | DC 3.3V – 5V |
| Operating Current | 15 mA |
| Output Type | Digital (0/1) |
| Internal Resistance | 10kΩ |
| Operating Temperature | -20°C ~ 65°C |
| Dimensions | 14 mm x 18 mm |
| Weight | 2 g |
| Mounting Holes | 2 pieces |
| Pin Connections | S (Signal), VCC (+), GND (-) |
Example Usage
When using the module with Arduino, connect the S pin to a digital input (e.g., pin 2). When vibration is detected, the sensor output drops to LOW level. The following code sends a message to the serial monitor when a knock is detected.
int knockPin = 2;
void setup() {
pinMode(knockPin, INPUT);
Serial.begin(9600);
}
void loop() {
if (digitalRead(knockPin) == LOW) {
Serial.println("Vibration detected");
delay(100);
}
}
Package Contents
- 1 x KY-031 Knock Sensor Module