Vibration sensor module (SW-420)
Spring switch that detects knocks and shakes.
MeasuresVibration (on or off)
InterfaceDigital out with a sensitivity trimmer
Supply voltage3.3 to 5 V
SensorsReviewedMPN SW-420Used in 8 projects
In short
What is the Vibration sensor module (SW-420) and what is it used for?
Spring switch that detects knocks and shakes. Makers use it for theft alarms, knock detectors.
How it works
A spring contact inside the SW-420 opens and closes when shaken, and a comparator cleans up the signal.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Vibration (on or off) |
| Interface | Digital out with a sensitivity trimmer |
| Supply voltage | 3.3 to 5 V |
Pinout
VCC3.3 to 5 V
GNDGround
DODigital output, toggles while vibration is detected
How to use it
Set the trimmer, then count pulses over a short time window rather than reacting to a single pulse. Mount it firmly to the surface you are monitoring.
Applications
Theft alarmsknock detectors
Builds that use it
Alternatives
- ADXL345 accelerometerMeasures vibration strength and direction
- Piezo vibration sensor (disc)Fast tap and knock detection
Common questions
What is the Vibration sensor module (SW-420) used for?
In maker projects: theft alarms, knock detectors.
How does the Vibration sensor module (SW-420) work?
A spring contact inside the SW-420 opens and closes when shaken, and a comparator cleans up the signal.
What voltage does the Vibration sensor module (SW-420) need?
3.3 to 5 V.
How do I connect the Vibration sensor module (SW-420) to an Arduino or ESP32?
Digital out with a sensitivity trimmer. Pins: VCC (3.3 to 5 V), GND (Ground), DO (Digital output, toggles while vibration is detected).
What can I use instead of the Vibration sensor module (SW-420)?
ADXL345 accelerometer and Piezo vibration sensor (disc).
