Sharjah, UAE GST
Home/ Shop/ Sensors/ SW-520D Vibration Sensor Metal Ball Tilt Switch
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
Out of stock
1
Request a price
Ask on WhatsApp stock, bulk pricing, will it work with my board · replies Mon–Sat 9am–6pm
  • UAE-wide delivery, 1–2 working days once dispatched · AED 20 · free on orders AED 100+
  • Out of stock — leave your email above and we tell you when it is back
  • 7-day returns on unopened items
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 on orders AED 100+ AED 20 below that · Shipped from our own UAE stock.
VISA stripe
Key specs
Part
SW-520D
Type
Ball tilt switch
Output
On/off contact (angle dependent)
Mercury-free
Yes
All 11 specifications ↓
Details
SKU
DIY-226
Category
Sensors
Brand / MPN
DIYKIT
Min. order
1 pc
Barcode
DKU-000258

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.

Read the full description ↓

Complete the build

Our own DIYKIT board was made for this — plus what it is usually wired or ordered with.

Included Components DIY-226

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

Description

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

Specifications

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

No reviews yet · be the first

Reviews come from buyers

Sign in to review a product you have bought - or use the review link in your order email, which needs no account and marks your review as a verified purchase.

Bot
ECHO
Online — usually replies instantly
Catalog assistant: verify final stock/price on the product page before checkout.