Components / Sensors / Vibration sensor module (SW-420)

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 specValue
MeasuresVibration (on or off)
InterfaceDigital out with a sensitivity trimmer
Supply voltage3.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

Alternatives

Buy at

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).