CATEGORIES

My Account

CATEGORIES
Your Cart

SW-520D Tilt Sensor Module Switch

SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
SW-520D Tilt Sensor Module Switch
Your orders placed before 17:00 PM on weekdays are shipped the same day. Free shipping over 150 RON.
2.30 ron
Ex Tax: 2.30 ron
  • Stock: In Stock
  • Model: T837.SW-520D
Our products are shipped from our warehouse in Romania
Shipping is free for purchases of 150 RON and above.
5% discount coupon for purchases over 500 RON
10% discount coupon for purchases over 1000 RON
Same day shipping until 16:30
No minimum order price limit
Our products are shipped from our warehouse in Romania
Shipping is free for purchases of 150 RON and above.
5% discount coupon for purchases over 500 RON
10% discount coupon for purchases over 1000 RON
Same day shipping until 16:30
No minimum order price limit
Our products are shipped from our warehouse in Romania
Shipping is free for purchases of 150 RON and above.
5% discount coupon for purchases over 500 RON
10% discount coupon for purchases over 1000 RON
Same day shipping until 16:30
No minimum order price limit
Our products are shipped from our warehouse in Romania
Shipping is free for purchases of 150 RON and above.
5% discount coupon for purchases over 500 RON
10% discount coupon for purchases over 1000 RON
Same day shipping until 16:30
No minimum order price limit
Our products are shipped from our warehouse in Romania
Shipping is free for purchases of 150 RON and above.
5% discount coupon for purchases over 500 RON
10% discount coupon for purchases over 1000 RON
Same day shipping until 16:30
No minimum order price limit

SW-520D Tilt Sensor Module Switch 🌐

The SW-520D Tilt Sensor Module is a compact, reliable angle/tilt detection solution for Arduino, Raspberry Pi, and other microcontroller platforms. It uses a rolling-ball SW-520D tilt switch and an on-board LM393 comparator to provide a clean, logic-level digital output for motion, orientation, and anti-tamper applications in your electronics projects and modules.

How It Works 🔍

Inside the SW-520D are conductive balls that make or break contact depending on orientation:
Upright position: balls contact the electrodes, the switch closes.

  • Tilted past a threshold: balls separate, the switch opens.

The on-board LM393 comparator converts this behavior into a stable digital signal. The trip point is adjustable via the on-board potentiometer (threshold tuning), and status LEDs indicate power and output state.

Key Features ✅

  • Uses the highly sensitive SW-520D tilt switch as the angle sensor.
  • On-board LM393 comparator provides a clean, well-defined output signal.
  • Digital output (DO): logic 0/1, suitable for direct connection to a microcontroller.
  • Adjustable threshold via potentiometer for sensitivity tuning.
  • Comparator output drive capability: > 15 mA (open-collector sink).
  • Wide working voltage: 3.3 V–5 V (ideal for Arduino, Raspberry Pi, ESP32, etc.).
  • Integrated status LEDs for quick visual diagnostics.
  • Compact PCB: 3.2 cm × 1.4 cm with a fixed mounting hole for easy installation.

Electrical Behavior ⚡

  • When the angle switch is OFF (tilted/open): DO = HIGH.
  • When the angle switch is ON (upright/closed): DO = LOW.
  • Output topology: LM393 open-collector with onboard pull-up (logic-ready).

Pinout & Wiring 🔌

  • VCC: 3.3 V–5 V
  • GND: Ground
  • DO: Digital output to a microcontroller GPIO


Connect DO to a digital input on your Arduino, Raspberry Pi, or other microcontroller module. Monitor the pin for HIGH/LOW to detect tilt events. For detailed wiring, refer to the wiring diagram below.

Typical Applications 💡

  • Device orientation and tilt detection
  • Anti-tamper and motion alarms
  • Automatic power cut-off on excessive tilt
  • Robotics, toys, and DIY electronics components projects

Driving External Loads 🧰

The comparator can sink over 15 mA, suitable for LEDs and logic inputs. To switch larger loads, connect the module’s DO to a relay module or drive a relay/transistor stage. This enables a high-power tilt-activated switch for protecting electrical equipment by cutting power at a set angle.

Compatibility 🤝

  • Works with Arduino, Raspberry Pi, ESP32, STM32, and most 3.3 V/5 V microcontrollers.
  • Ideal for breadboards, prototyping, and embedded electronics modules.

Specifications 📐

  • Sensor: SW-520D ball tilt switch
  • Comparator: LM393 (wide-voltage)
  • Supply Voltage: 3.3 V–5 V
  • Output: Digital (0/1), open-collector with pull-up
  • Output Drive: > 15 mA sink capability
  • Indicators: Power LED, Output/Status LED
  • Mounting: Fixed bolt/mounting hole
  • PCB Size: 3.2 cm × 1.4 cm

Note: Adjust the potentiometer to set the desired tilt activation threshold. For best results, mechanically mount the board so the sensor’s “upright” orientation matches your application’s reference position.

Your orders placed before 16:30 on weekdays are dispatched the same day.

Write a review

Note: HTML is not translated!
Rating
Bad Good

Category Products

🎮 Arduino Joystick ShieldThe Arduino Joystick Shield is a multifunctional add-on board designed to bring intuitive joystick control to your Arduino pr..
19.78 ron
Ex Tax:19.78 ron
Arduino XBee Shield V3.0 📶Empower your Arduino projects with reliable wireless communication. The XBee Shield V3.0 is a purpose-built expansion board ..
17.48 ron
Ex Tax:17.48 ron
Sensor Shield v5.0 Expansion Board ⚡The Sensor Shield v5.0 is a versatile expansion board designed to streamline prototyping with Arduino-compatible b..
11.27 ron
Ex Tax:11.27 ron
Add to Cart
Arduino 2-Channel 24V Relay Module ⚡The 24V 2-Channel Relay Module is a reliable switching board designed for direct control via a 5V logic signal fro..
6.39 ron
Ex Tax:6.39 ron
Arduino Button Switch Module🔘 The Arduino Button Switch Module is a reliable, tactile input component designed for interactive electronics projects. I..
2.99 ron
Ex Tax:2.99 ron
Add to Cart
Arduino Flame Detection Sensor Module🔥Detect infrared flame signatures with this compact, high-sensitivity flame sensor module designed for Arduino, R..
4.97 ron
Ex Tax:4.97 ron
Add to Cart

WhatsApp Chat

Hi Guest! Please click one of our representatives Below To Chat On WhatsApp.