Robot Pi Shop

SW-420 Vibration Sensor Module

$1.25

Shipping calculated at checkout.

Quantity

The SW-420 Vibration Sensor Module is a compact electronic sensor designed to detect vibration, shaking, and mechanical movement. It combines an SW-420 vibration sensing element with an LM393 voltage comparator to provide a digital output signal when vibration is detected.

The module features an adjustable sensitivity potentiometer, allowing users to configure the vibration detection threshold according to their application.

Compatible with Arduino, ESP32, ESP8266, Raspberry Pi, and other microcontroller platforms when connected using appropriate logic voltage levels, this sensor is suitable for vibration alarms, security systems, robotics, and electronic monitoring projects.

Key Features

  • Vibration Detection: Detects shaking, vibration, and mechanical disturbances.
  • LM393 Comparator: Provides a digital output for easy microcontroller interfacing.
  • Adjustable Sensitivity: Onboard potentiometer allows threshold adjustment.
  • Digital Output: HIGH/LOW signal indicating the sensor's detection state.
  • LED Indicators: Onboard power and detection status indicators.
  • Compact Design: Easy to integrate into electronic projects.
  • Microcontroller Compatible: Suitable for Arduino, ESP32, ESP8266, and Raspberry Pi with appropriate voltage levels.
  • Simple 3-Pin Interface: Requires power, ground, and one digital input connection.

Technical Specifications

Parameter Specification
Product Model SW-420
Sensor Type Vibration Detection Sensor
Sensor Element SW-420
Comparator IC LM393
Operating Voltage 3.3V–5V DC
Output Type Digital
Output Signal HIGH / LOW
Sensitivity Adjustment Onboard Potentiometer
Detection Method Mechanical Vibration
Indicators Power and Detection LEDs
Interface 3-Pin
Approximate Dimensions 32 × 14 mm
Mounting PCB Mounting Hole

Pin Configuration

Pin Description
VCC 3.3V–5V DC Power Supply
GND Ground
DO Digital Output Signal

Connection Examples

Arduino UNO

SW-420 Pin Arduino UNO
VCC 5V
GND GND
DO D2

ESP32

SW-420 Pin ESP32
VCC 3.3V
GND GND
DO GPIO 27

Note: Use a 3.3V supply when connecting the module directly to an ESP32 GPIO to avoid applying a 5V logic signal.

How It Works

  1. Connect the module to a compatible power supply.
  2. Adjust the onboard potentiometer to set the detection threshold.
  3. When vibration occurs, the SW-420 sensing element responds to mechanical movement.
  4. The LM393 comparator processes the sensor signal and changes the digital output state.
  5. The connected microcontroller reads the output to detect vibration events.

Typical Output Behavior:

  • No Vibration: Digital output LOW.
  • Vibration Detected: Digital output HIGH.

The output polarity may vary depending on the module implementation.

Applications

  • Vibration Detection Systems
  • Anti-Theft and Security Alarms
  • Robotics Projects
  • Mechanical Movement Detection
  • Equipment Vibration Monitoring
  • DIY Electronic Projects
  • Arduino and ESP32 Sensor Projects
  • Educational Electronics

Important Notes

  • The SW-420 detects vibration events; it does not measure precise vibration amplitude, frequency, or acceleration.
  • Sensitivity can be adjusted using the onboard potentiometer.
  • The output may change rapidly during vibration, so software filtering or debouncing may be necessary.
  • For Raspberry Pi and ESP32 applications, ensure the digital output does not exceed 3.3V.
  • The sensor is intended for basic vibration detection rather than calibrated industrial vibration measurement.

Package Includes

  • 1 × SW-420 Vibration Sensor Module with LM393 Comparator