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

đŸ§” LilyPad Conductive Thread – 1 MeterElevate your wearable electronics and e-textile designs with the versatile LilyPad Conductive Thread. This 1-mete..
4.14RON
Ex Tax:4.14RON
Add to Cart
20x4 Character LCD Display Module with I2C InterfaceThe I2C 2004 character LCD module features 4 lines of 20 characters each. With the pre-soldered I2..
35.01RON
Ex Tax:35.01RON
Add to Cart
🌟 LilyPad Accelerometer Module – ADXL335 (3‑Axis) for WearablesEnhance your wearable electronics projects with the LilyPad Accelerometer Module ADXL33..
23.00RON
Ex Tax:23.00RON
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 Due R3 Development Board
Free Shipping
Arduino Due R3 — High‑Performance 32‑bit Development Board for Advanced ProjectsThe Arduino Due R3 is a powerful 32‑bit microcontroller platform built..
276.00RON
Ex Tax:276.00RON
Arduino Esplora Development Board
Free Shipping
Arduino Esplora – All‑in‑One Learning and Prototyping Board 🎼The Arduino Esplora is a versatile handheld development board built around the ATmega32U4..
158.70RON
Ex Tax:158.70RON
Add to Cart