Home/ Shop/ Sensors/ SW-520D Vibration Sensor Metal Ball Tilt Switch - Mercury Free Orientation and Motion Detector Module for Arduino and Raspberry Pi DIY Electronics Projects
DIY-226 Sensors DIYKIT

SW-520D Vibration Sensor Metal Ball Tilt Switch - Mercury Free Orientation and Motion Detector Module for Arduino and Raspberry Pi DIY Electronics Projects

Price on request
Free shipping over AED 150 Ships today before 3pm
Out of Stock
Request Bulk Quote for this item
Secure checkout Card payments handled by Stripe — we never see or store your card number.
Visa & Mastercard accepted Paid online at checkout — no cash needed at the door.
Free delivery over AED 150 Shipped from our own UAE stock.
VISA stripe
Part
SW-520D
Type
Ball tilt switch
Output
On/off contact (angle dependent)
Mercury-free
Yes
SKU
DIY-226
Category
Sensors
Brand / MPN
DIYKIT
Min. order
1 pc
Barcode
DKU-000258
Full specs
11 published — see below

Overview The SW-520D Vibration Sensor Metal Ball Tilt Switch is an essential electromechanical component designed for makers, hobbyists, and engineers working on electronics, robotics, and DIY automation projects.

24h UAE dispatch
7-day returns
Genuine components
Expert support
Included Components DIY-226

1x SW-520D Vibration Sensor Metal Ball Tilt Switch Module

Part SW-520D
Type Ball tilt switch
Output On/off contact (angle dependent)
Mercury-free Yes
Operating Voltage 3.3 to 5 V
Sensor Type Metal Ball Tilt Switch
Hazardous Materials Mercury-free
Communication Interface Digital Switch Output
Mounting Style Through-hole Pin Header
Operating Temperature Check datasheet degrees Celsius
Primary Function Orientation and Vibration Detection

Overview

The SW-520D Vibration Sensor Metal Ball Tilt Switch is an essential electromechanical component designed for makers, hobbyists, and engineers working on electronics, robotics, and DIY automation projects. Utilizing gravity as the primary trigger mechanism, this sensor provides a reliable and cost-effective method for detecting physical tilt, orientation changes, and abrupt motion. Whether you are building an anti-theft alarm, a tip-over safety cutoff switch for a space heater, or an interactive robotic chassis, this module delivers straightforward digital feedback that easily interfaces with any standard microcontroller. Built with safety in mind, it completely avoids toxic substances by using a mercury-free design, making it ideal for classroom settings, maker spaces, and consumer-grade product prototyping.

Technical Details

At the core of the SW-520D is a sealed conductive metal cylinder housing free-moving internal metal balls. When the sensor is held upright or tilted beyond a specific threshold angle, the rolling balls shift under the influence of gravity to physically bridge two internal contact pins, closing the circuit. Conversely, tilting the sensor in the opposite direction causes the balls to roll away, opening the circuit. This mechanical transition generates a high or low digital signal that can be read directly by digital input pins on microcontrollers like Arduino and Raspberry Pi. Because mechanical switches are inherently prone to transient contact chatter, developers should implement software debouncing techniques or add a small external capacitor to ensure clean, false-trigger-free state transitions in their firmware.

Specifications

Operating Voltage: Varies by module revision, typically compatible with 3.3V and 5V logic systems

Switch Type: Normally open or closed depending on spatial orientation and gravity vector

Contact Material: Conductive metal construction

Hazardous Materials: 100 percent mercury-free

Mounting Style: Through-hole or module pin header configuration

Operating Temperature Range: Check datasheet for specific thermal limits

Applications

This versatile tilt and vibration switch is widely deployed in various DIY and industrial prototype applications. Common use cases include fall detection for autonomous mobile robots, anti-tamper security alarms for enclosures, orientation-aware user interfaces, interactive electronic toys, and automatic power-cutoff switches for upright appliances prone to accidental tipping. It is also an excellent educational tool for teaching students about basic electromechanical switching, gravity vectors, and digital input reading in microcontroller programming.

Integration Notes

Integrating the SW-520D into your circuit is remarkably straightforward. Connect the power and ground pins to your development board's supply rails, and route the signal pin to a digital input. Because the module acts as a simple switch, utilizing an internal pull-up resistor (often built into microcontroller GPIO pins like those on the Arduino) ensures a stable logic level when the switch is open. Remember to account for mechanical bounce in your code logic by introducing a short delay or debounce algorithm to prevent rapid multi-triggering from minor vibrations.

Included Components

1x SW-520D Vibration Sensor Metal Ball Tilt Switch Module

No reviews for this component yet.

Related Components

Browse all →
Root
Online — usually replies instantly
Catalog assistant: verify final stock/price on the product page before checkout.