Vibration Switch Module
A KY-002 vibration switch module changes state when movement or shock shakes its internal contact.
Part images
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.