Sensor Digital

Vibration Switch Module

A KY-002 vibration switch module changes state when movement or shock shakes its internal contact.

Part images

KY-002 Module Photo. Module Photo for the KY-002 Vibration Switch Module. Image source: Joy-IT SensorKit KY-002 module documentation
KY-002 Pinout / Module Diagram. Pinout / Module Diagram for the KY-002 Vibration Switch Module. Image source: Joy-IT SensorKit KY-002 module documentation
KY-002 Arduino Wiring Diagram. Arduino Wiring Diagram for the KY-002 Vibration Switch Module. Image source: Joy-IT SensorKit KY-002 module documentation
KY-002 Raspberry Pi Wiring Diagram. Raspberry Pi Wiring Diagram for the KY-002 Vibration Switch Module. Image source: Joy-IT SensorKit KY-002 module documentation

What it is

A KY-002 vibration switch module changes state when movement or shock shakes its internal contact.

How students use it

Students use it for knock alerts, movement triggers, tamper demos, and event counters.

Pins and power

Signal, VCC, and GND on common KY-002 boards.

Passive/digital switch module. Use Pico-safe pull-up or pull-down wiring.

Read it like a switch and debounce or latch events in code.

Voltage and safety

Keep switch signal wiring Pico-safe.

Do not hit electronics hard; test with gentle taps or controlled vibration.

Module internals

Main component: Spring/contact vibration switch.

Vibration switch, support resistor/components, PCB, and header pins.

Datasheet notes

It detects vibration events, not precise acceleration or force.

Common libraries

Use machine.Pin, optionally with interrupts and debounce timing.

Common mistakes

Expecting analog strength, missing short pulses, not debouncing, and mounting it where normal cable motion triggers false events.