Sharjah, UAE GST
Home/ Shop/ Sensors/ SW-520D Ball Tilt Switch - Mercury-Free 2-Pin
DIY-339 Sensors

SW-520D Ball Tilt Switch - Mercury-Free 2-Pin Vibration & Orientation Sensor, Radial Leads, for Arduino, ESP32 & DIY Alarm Projects

AED 10.86

plus AED 20 delivery · free over AED 100

In stock · 5 units
1
Ask on WhatsApp stock, bulk pricing, will it work with my board · replies Mon–Sat 9am–6pm
  • UAE-wide delivery, 1–2 working days · AED 20 · free on orders AED 100+
  • Ships today — order by 3pm
  • 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
Product Type
Ball Tilt Switch
Model
SW-520D
Pin Count
2
Lead Type
Radial
All 12 specifications ↓
Details
SKU
DIY-339
Category
Sensors
Min. order
1 pc
Barcode
DKU-000384

Overview The SW-520D Ball Tilt Switch is a reliable, mechanical orientation and vibration sensor designed for hobbyists, electronics engineers, and makers. Unlike traditional mercury-based switches that pose environmental hazards, this component uses a safe, non-toxic conductive rolling ball housed inside a sealed metal cylinder.

Read the full description ↓

Complete the build

The parts this one is wired with in our kits — have them on the bench before you start.

Included Components DIY-339

10 x SW-520D Ball Tilt Switch Sensors

Description

Overview

The SW-520D Ball Tilt Switch is a reliable, mechanical orientation and vibration sensor designed for hobbyists, electronics engineers, and makers. Unlike traditional mercury-based switches that pose environmental hazards, this component uses a safe, non-toxic conductive rolling ball housed inside a sealed metal cylinder. When the switch is maintained in an upright position, the rolling ball bridges the two internal contacts, effectively closing the electrical circuit. When the device is tilted past an operational angle or subjected to physical vibration, the ball shifts away from the contacts, opening the circuit. This straightforward mechanical behavior provides an intuitive way to detect physical movement and spatial orientation changes in DIY electronics.

Technical Details

As a bare two-lead electromechanical component rather than an active sensor module, the SW-520D features no onboard comparator chips, indicator LEDs, or pre-soldered pull-up resistors. It functions identically to a standard tactile push button, where the physical action of tilting or vibrating the switch opens or closes the internal contact points. Wiring the device is simple: connect one lead to a digital input pin on your microcontroller and the other lead to ground, while implementing either an internal or external pull-up resistor. When upright, the pin reads LOW due to the closed path to ground, and when tilted, it reads HIGH as the internal pull-up resistor pulls the line up.

Specifications

The switch is housed in a compact metal cylinder measuring approximately 3.6mm in diameter and 10mm in body length, excluding the protruding radial connection leads. It operates effectively across standard low-voltage logic levels utilized by modern development boards. The typical trigger angle ranges between 30 and 45 degrees of tilt from the vertical axis. The maximum electrical rating typically supports low-current switching applications up to 12V and small milliamp loads, making it well-suited for digital logic level inputs rather than heavy power switching. Mechanical life and contact resistance depend on operating conditions, but the sealed metal construction protects the internal rolling mechanism from dust and ambient debris.

Applications

This versatile tilt switch finds its place in a broad spectrum of maker and industrial prototyping applications. It is frequently implemented in DIY security systems, fall-detection prototypes, interactive art installations, and automated power-saving sleep triggers for portable equipment. Educational settings often utilize the SW-520D to teach basic digital input handling, state monitoring, and pull-up resistor configuration using microcontrollers. Additionally, hobbyists use it to detect physical tampering, enclosure opening, or sudden movement in robotics and remote monitoring enclosures.

Integration Notes

Because the switch mechanism relies on a free-rolling ball, rapid shaking or vibration can cause contact bouncing, where the circuit rapidly opens and closes over a short timespan. To ensure stable digital readings and prevent false triggering in your microcontroller code, it is strongly recommended to implement software debouncing algorithms or a small hardware filtering capacitor across the digital input pin. Always verify the orientation markings on the body and test continuity with a multimeter before permanent soldering to ensure proper alignment and reliable performance within your circuit design.

Included Components

10 x SW-520D Ball Tilt Switch Sensors

Specifications

Product Type Ball Tilt Switch
Model SW-520D
Pin Count 2
Lead Type Radial
Body Diameter 3.6 mm
Body Length 10 mm
Trigger Angle 30 to 45 degrees
Operating State Normally Closed when upright
Mercury Content Mercury-Free
Contact Mechanism Rolling conductive ball
Max Switching Voltage 12 V
Max Switching Current 50 mA

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.