Description
Detect shaking and vibration with your Arduino using the SW-420 Vibration Sensor Module. Inside the blue cylinder is an SW-420 normally-closed vibration switch: at rest it stays closed, and when the module is shaken or knocked, the switch opens for a moment and the module’s output changes. The onboard LM393 comparator turns that into a clean HIGH / LOW digital signal your Arduino can read on one pin. It is an easy circuit for students in Pakistan who want to build vibration alarms, movement monitors and anti-theft alerts.
Key features
- SW-420 vibration switch — normally closed; any shake, knock or movement triggers it.
- LM393 comparator — gives a clean digital output from the vibration switch signal.
- Digital output — one digital pin, easy to read with digitalRead() in your Arduino sketch.
- Sensitivity potentiometer — turn the onboard potentiometer to set your own trigger level, from a hard knock to a gentle shake.
- Power and output LEDs — the LEDs show at a glance that the module has power and when vibration is detected.
- Works on 3.3–5V — runs directly from your Arduino’s 5V pin.
How to connect
| SW-420 pin | Connect to Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| DO (Digital Output) | D2 (any digital pin) |
Read the output pin with digitalRead() in your sketch. When the module is shaken, the output changes and your sketch can sound a buzzer, switch on an LED, or send an alert.
How it works
At rest, the SW-420 switch inside the module stays closed. A shake or knock opens it for a moment. The LM393 comparator detects that change and flips the digital output. Your Arduino sketch watches the pin and reacts — for example, it can count the shakes, start a buzzer, or switch on a light.
What you can build
- Vibration alarm — sound a buzzer when a door, window or box is moved or shaken.
- Baby cradle movement monitor — watch the baby’s cradle and sound an alert when movement stops or starts unexpectedly. This is the vibration sensor used in the baby-cradle project in our FYP Project Idea Book.
- Anti-theft alert — hide the sensor in a bag or box and get an alert when someone moves it.
- Shock detection — detect knocks and impacts in machines, models and test rigs.
Who is it for
School students, college students, engineering students and beginners in Pakistan who want a simple circuit for their first sensor project, semester project or science exhibition model.
You may also need
- Arduino UNO R3 SMD Board Kit — the board used with this sensor.
- FYP Project Idea Book — 42 project ideas, including the baby-cradle movement monitor that uses this vibration sensor.
- IR Sensor Module — another easy sensor for your alarm and automation projects.
- LDR Light Sensor Module — detect light levels and build automatic lights.
Delivery
Delivery all over Pakistan — Rs 450, 3–4 working days. Cash on Delivery and Direct Bank Transfer available.
Need help?
Message us on WhatsApp at +92-336-4459320 and we will help you connect and use this sensor. Need the project built for you? A ready-made system is available on order — contact us. Components are also available in our store.
Frequently Asked Questions
What is the price of the SW-420 Vibration Sensor Module in Pakistan?
Rs 130. Delivery is Rs 450 all over Pakistan, in 3–4 working days, with Cash on Delivery available.
How do I connect the SW-420 to Arduino?
Connect VCC to 5V, GND to GND, and the digital output pin to any digital pin such as D2. Then read the pin with digitalRead() in your sketch.
What does normally closed mean?
At rest the vibration switch inside stays closed, and a shake opens it for a moment. The module turns that change into a digital signal your Arduino can read.
How do I set the sensitivity?
Turn the blue potentiometer on the module with a small screwdriver. One way makes it trigger on a gentle shake, the other way needs a harder knock — test it and adjust until it triggers the way you want.
Can the SW-420 detect earthquakes?
No. It is a simple vibration switch for shakes, knocks and movement in small projects — it is not a seismometer and cannot measure earthquake strength.
Can a beginner use the SW-420?
Yes. It needs only three wires and one digital pin, and the example sketches are short. It is a good first sensor for school and college students.





Reviews
There are no reviews yet.