Robot Pi Shop

SW-520D Metal Ball Tilt & Vibration Sensor Switch

$0.50

Shipping calculated at checkout.

Quantity

SW-520D Metal Ball Tilt & Vibration Sensor Switch

The SW-520D Metal Ball Tilt and Vibration Sensor Switch is a compact mechanical sensor designed to detect changes in orientation, tilting, shaking, and movement. It uses conductive metal balls inside a sealed housing to open or close an electrical contact depending on its position.

Unlike mercury-based tilt switches, the SW-520D uses a mercury-free mechanical design, making it suitable for Arduino, ESP32, Raspberry Pi, and other electronic projects.

The sensor is commonly used in motion detection, anti-theft alarms, orientation monitoring, and DIY electronics applications.

Key Features

  • Tilt Detection: Detects changes in orientation and inclination.
  • Vibration Detection: Responds to shaking and mechanical movement.
  • Metal Ball Mechanism: Uses conductive metal balls to make or break an electrical connection.
  • Mercury-Free Design: Does not contain liquid mercury.
  • Digital Switching: Provides an open or closed contact state.
  • Compact Size: Suitable for small electronic circuits.
  • Low Power Consumption: Passive mechanical switch requiring no dedicated power supply.
  • Microcontroller Compatible: Can be interfaced with Arduino, ESP32, Raspberry Pi, and other controllers using a suitable input circuit.
  • Two-Pin Connection: Easy integration into electronic circuits.

Technical Specifications

Parameter Specification
Model SW-520D
Product Type Metal Ball Tilt and Vibration Switch
Detection Method Mechanical Ball Contact
Internal Mechanism Conductive Metal Balls
Number of Pins 2
Output Type Open/Closed Electrical Contact
Sensitivity Approximately 15° or greater, depending on orientation
Operating Principle Gravity and Mechanical Movement
External Power Supply Not Required
Mercury Content Mercury-Free
Mounting Type Through-Hole
Compatible Platforms Arduino, ESP32, Raspberry Pi, PIC

Pin Configuration

Pin Description
Pin 1 Switch Contact
Pin 2 Switch Contact

The sensor has two interchangeable terminals and does not have a fixed polarity.

Arduino Connection Example

SW-520D Sensor Arduino UNO
Pin 1 Digital Pin D2
Pin 2 GND

Configure Arduino pin D2 as INPUT_PULLUP to enable the internal pull-up resistor.

The Arduino reads the electrical contact state to determine whether the sensor has been activated.

Applications

  • Tilt and Orientation Detection
  • Vibration and Shaking Detection
  • Anti-Theft Alarm Systems
  • Robotics and DIY Projects
  • Movement-Activated Devices
  • Electronic Security Systems
  • Position Monitoring
  • Educational Electronics Experiments

Important Notes

  • This is a mechanical switching sensor, not an accelerometer or precision vibration measurement device.
  • The sensor detects contact changes rather than measuring vibration frequency or acceleration.
  • Its switching behavior depends on physical orientation and movement.
  • Mechanical contact bouncing may occur during movement. Software debouncing is recommended.
  • Use an appropriate pull-up or pull-down resistor when connecting the sensor to a microcontroller.
  • The sensor does not require an external power supply for operation.

Package Includes

  • 1 × SW-520D Metal Ball Tilt and Vibration Sensor Switch