SW420 Vibration Sensor Module | Shock Detection for DIY
Vibration/Shock Sensor Module (SW420)
The SW420 sensor module detects physical vibrations and shocks, converting them into a clean digital signal. It uses an onboard comparator to set a threshold, making it reliable for alarm systems, impact logging, and tap-based controls. Its adjustable sensitivity and broad voltage compatibility fit a wide range of embedded projects.
Key Specifications
| Specification | Value |
|---|---|
| Operating Voltage | 3.3V – 5V DC |
| Output Signal | Digital (TTL, active low) |
| Sensitivity Adjustment | Onboard potentiometer |
| Detection Angle | 360° (omnidirectional) |
| Dimensions | 32mm × 14mm × 8mm |
| Interface | 3-pin (VCC, GND, DO) |
What You Can Build With This
- Anti‑theft vibration alarm for doors or windows
- Earthquake or machine‑vibration data logger
- Tap‑sensitive light switch or interactive installation
- Contact‑less knock detection for a secret lock
Compatibility
The module works directly with any 3.3V or 5V microcontroller, including Arduino Uno, Mega, Nano, ESP8266, ESP32, and Raspberry Pi GPIO. Pair it with a relay module to drive external sirens or a microSD shield for long‑term vibration logging.
Wiring Notes
Connect VCC to your board’s 5V pin, GND to ground, and DO to any digital input. The module’s built‑in LED lights up when vibration is detected; no external pull‑up is needed. Current draw is under 5mA, so it can be powered directly from most development boards.
Why Buy from Compoden
Every component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.
Is this compatible with Arduino Uno?
Yes, simply connect VCC to 5V, GND to GND, and the DO pin to any digital input (e.g., pin 2). The active‑low output can be read with digitalRead() in your sketch.
Can I adjust sensitivity?
Yes, turn the onboard potentiometer clockwise to increase sensitivity (detects smaller vibrations) or counter‑clockwise to desensitize it and avoid false triggers.
What is the default output state?
When no vibration is detected, the DO pin stays HIGH (logic 1, near VCC). When a shock or vibration exceeds the threshold, it drops to LOW (logic 0) and the onboard LED glows.
📦 Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
What you can build with this
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items