Recent Posts

SW-420 Vibration Sensor Module: Features, Specifications, and Applications

The SW-420 vibration sensor module is a compact and affordable sensor designed to detect vibrations, shocks, or sudden movements. It’s widely used in DIY electronics, home security systems, and industrial monitoring applications where motion or vibration needs to be detected and reported.

In this article, we’ll explore the basic features, technical specifications, and common uses of the SW-420 vibration sensor module, making it easy to integrate into your next project.


What is the SW-420 Vibration Sensor?

The SW-420 is a digital vibration sensor that includes a vibration-detecting switch and a built-in comparator circuit to output a digital signal when vibration is detected. It can detect both continuous vibrations and sudden impacts, making it ideal for alarm systems, safety monitoring, and motion-triggered applications.


✅ Key Features of SW-420 Module

  • Digital Vibration Detection
  • Adjustable Sensitivity via onboard potentiometer
  • Digital Output (High/Low)
  • Simple Interface with Microcontrollers (Arduino, ESP32, etc.)
  • Operating Voltage: 3.3V to 5V
  • Low Power Consumption
  • Compact PCB with Indicator LEDs
  • Onboard LM393 Comparator for Stable Output

Technical Specifications

Parameter

Specification

Sensor Type

Vibration (Shock) Sensor

Operating Voltage

3.3V to 5V

Output Type

Digital (0V or Vcc)

Comparator Chip

LM393 Dual Comparator

Adjustable Sensitivity

Yes (via potentiometer)

Output Indicators

Power LED and Output LED

PCB Dimensions

Approx. 32mm x 14mm

Operating Temperature

–40°C to +85°C


Applications of SW-420 Vibration Sensor

  1. Anti-Theft Alarms
    • Trigger alarms when vibration is detected on doors, windows, or safes.
  2. Home Automation
    • Detect movement on tables, cabinets, or objects.
  3. Industrial Equipment Monitoring
    • Monitor vibration levels of motors or machines to detect failures.
  4. Scientific Experiments
    • Measure external disturbances in physics or engineering projects.
  5. Smart Packages
    • Detect shock or mishandling during shipping and handling.
  6. DIY Projects
    • Use with Arduino or Raspberry Pi for interactive vibration-based triggers.

⚙️ How to Use the SW-420 with Arduino

Connecting the SW-420 module to a microcontroller like Arduino is simple:

️ Wiring

  • VCC → 5V
  • GND → GND
  • DO (Digital Out) → Digital I/O Pin (e.g., D2)

Sample Arduino Code

int sensorPin = 2;

void setup() {

pinMode(sensorPin, INPUT);

Serial.begin(9600);

}

void loop() {

int vibration = digitalRead(sensorPin);

if (vibration == LOW) {

Serial.println("Vibration detected!");

}

delay(100);

}

Note: The output is LOW when vibration is detected due to the logic of the onboard comparator.


The SW-420 vibration sensor module is a versatile and easy-to-use component for detecting shock and vibration in various projects. With its digital output, adjustable sensitivity, and compatibility with popular microcontrollers, it’s perfect for beginners and advanced developers alike.

Whether you're building a theft alarm, monitoring machinery, or adding an interactive touch to your DIY creation, the SW-420 is a reliable and cost-effective solution.

For video tutorial

No comments