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.30RON
Ex Tax: 2.30RON
  • 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 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.39RON
Ex Tax:6.39RON
Add to Cart
šŸŽ® Arduino Joystick ShieldThe Arduino Joystick Shield is a multifunctional add-on board designed to bring intuitive joystick control to your Arduino pr..
19.78RON
Ex Tax:19.78RON
Arduino Motor Shield L293D – Dual H-Bridge Motor Control ShieldThe Arduino Motor Shield L293D is a versatile motor control module designed for Arduino..
14.35RON
Ex Tax:14.35RON
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.48RON
Ex Tax:17.48RON
DS3231 RTC I2C Module—Precision Real-Time Clockā±ļøThe DS3231 RTC I2C Module is a high-accuracy real-time clock breakout that integrates a DS3231 temper..
16.88RON
Ex Tax:16.88RON
HC-SR501 Adjustable PIR Motion Detector Module šŸ””The HC-SR501 Adjustable PIR Motion Detector is a compact, easy-to-use motion sensor module designed fo..
5.43RON
Ex Tax:5.43RON
Add to Cart