SW-520D Tilt Ball Switch Vibration Sensor for Arduino, Raspberry Pi & ESP32

SKU AC018

$1.99 USD Shipping & tax calculated at checkout
In stock· Order by 3pm ET and it ships today

SW-520D tilt ball switch vibration sensor detects tilt, shake, and motion as a digital GPIO trigger for Arduino, Raspberry Pi, and ESP32 alarms, robotics, tamper detection, and prototyping.

  • Free Ground Shipping U.S. orders $35+
  • Ships from USA Domestic fulfillment
  • 30-day returns Free defect replacement
  • 7-day support Fast email replies
Frequently bought together
SW-520D tilt ball switch vibration sensor with black cylindrical body and two metal pins for Arduino and ESP32 SW-520D Tilt Ball Switch Vibration Sensor for Arduino, Raspberry Pi & ESP32No reviews yet $1.99 This item
Total for 4 items
$68.96

Products related to this item

Product Overview

The SW-520D Tilt Ball Switch Vibration Sensor is a simple mechanical tilt and vibration sensor that acts like a motion-sensitive switch, changing state when the device is tilted, shaken, or disturbed. Based on the SW-520D ball switch design, it provides an easy way to add digital tilt detection or vibration triggering to Arduino, Raspberry Pi, ESP32, and other microcontroller projects through a basic GPIO input. Ideal for alarms, tamper detection, robotics, orientation sensing, and DIY prototyping, it enables low-complexity movement sensing without I2C, SPI, or analog signal processing.

Frequently asked questions

Yes, the SW-520D Tilt Ball Switch Vibration Sensor is compatible with Arduino. It connects through a basic GPIO input, making it easy to integrate into Arduino-based projects for digital tilt detection or vibration triggering.
The SW-520D sensor module is pre-soldered and ready for use. Simply connect it to any available GPIO pin on your microcontroller for immediate tilt and vibration detection without additional setup or soldering.
The SW-520D sensor uses a simple digital interface. It connects to your microcontroller's GPIO pin and changes state when it detects tilt or vibration, eliminating the need for complex protocols like I2C or SPI.
Yes, the SW-520D sensor is ideal for use in alarm systems. Its ability to detect tilt and vibrations makes it perfect for applications like tamper detection, where movement or interference needs to trigger a response.
Ensure the SW-520D sensor is correctly connected to a GPIO input and powered. Check for correct orientation and secure connections, as loose wires or incorrect setup can prevent it from sensing tilt or vibration accurately.

Have other questions?

Chat with our US-based team — we usually reply fast.

Features & Specs

Sensor TypeSW-520D is a mechanical ball switch sensor for tilt and vibration detection.

Trigger EventsIt changes state when the device is tilted, shaken, or otherwise disturbed.

Digital OutputThe sensor acts as a simple on/off switch for digital motion or orientation triggering.

Interface TypeIt connects through a basic GPIO input with no I2C, SPI, UART, or analog signal processing required.

Board CompatibilityCompatible with Arduino, Raspberry Pi, ESP32, and other microcontrollers that support digital input reading.

Project UsesCommon use cases include alarms, tamper detection, robotics, orientation sensing, and DIY prototyping.

Related Videos

Customer Reviews