Vibration Switch Module KY-002

SKU: FA3032 Tag:
Dimensions 1.85 × 1.5 × 3 cm
Operating Voltage


The Vibration Switch Module KY-002 detects shaking and knocking. When the module is moved, a spring mechanism will close the circuit sending a short high signal.

This module consists of a conductive spring, a 10k resistor, and 3 male header pins. Knocking or shaking the module will cause the spring to momentarily close the circuit.

It can be used with a variety of microcontrollers like Arduino, ESP32, Raspberry Pi and others.


Connect the module signal pin (S) to pin 3 on the Arduino.

Then connect the module’s power pin (middle) and ground (-) to +5V and GND on the Arduino respectively.

KY-002 Arduino
S Pin 3
middle +5V