plus AED 20 delivery · free over AED 100
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 ↓The parts this one is wired with in our kits — have them on the bench before you start.
10 x SW-520D Ball Tilt Switch Sensors
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.
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.
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.
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.
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.
10 x SW-520D Ball Tilt Switch Sensors
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.
We use cookies that the shop needs to work — signing in, your cart, form security. We also measure how the shop is used so we can stock the right parts and fix what is broken. Choose “Only essential” and we will not load Google Analytics or the Meta pixel, and will not record your visit. Read more.