SW-520D Ball Tilt Switch Sensor (2-Pack)
SW-520D Ball Tilt Switch Sensor (2-Pack)
Compatible JST cables for sensors and modules — secure & reliable. Shop now.
Couldn't load pickup availability
Simple ball activated switch that closes when the leads are pointed downward.
Description
The SW-520D Ball Tilt Switch Sensor is a simple ball activated switch that closes when the leads are pointed downward.
PACKAGE INCLUDES:
- Qty 2 – SW-520D Ball Tilt Switch Sensor
KEY FEATURES OF SW-520D BALL TILT SWITCH SENSOR:
- Switch closes when leads are pointed down
- Maximum current of 30mA
- Contact rating up to 20V
This mechanical sensor incorporates a ball that rolls down and shorts the output leads together when the leads are pointed downwards plus/minus about 45 degrees.
The two leads are interchangeable and very robust. They can be bent as needed for mounting the sensor at the desired angle.
OUR EVALUATION RESULTS:
These mechanical sensors work fairly well for sensing a change in position from horizontal to vertical. The point in rotation at which the ball makes contact is not well controlled and there will be some amount of bouncing before the ball settles down.
The waveform shown here is a typical result when the sensor is moved from horizontal to vertical fairly quickly. One side is tied to 5V through a resistor and the other size is tied to ground

When the leads are pointed down and contact has been made, vibration or bumping the sensor can cause the contact to be momentarily lost as the ball again bounces around. This allows the sensor to be used as a basic shock sensor for some applications. If using as a tilt sensor, this behavior may need to be taken into consideration by debouncing the output.
Notes:
- None
Technical Specifications
| Operating Ratings | ||
| Vcc | Maximum voltage across contacts | 20V |
| Imax | Maximum current through contacts | 30mA |
| Dimensions | L x W (Body) | 13.5 x 5.5mm (0.53 x 0.22″) |
| L (Leads) | 10mm (0.39″) |

Blog posts
View all-
Best JST Connector Crimping Tools in 2026: Engi...
Choosing the wrong crimping tool ruins JST connectors and wastes wire. This guide compares the top crimping tools for JST SH, GH, PH, XH, and VH series — including Engineer...
Best JST Connector Crimping Tools in 2026: Engi...
Choosing the wrong crimping tool ruins JST connectors and wastes wire. This guide compares the top crimping tools for JST SH, GH, PH, XH, and VH series — including Engineer...
-
Molex KK 254 vs Mini-Fit Jr. vs Micro-Fit 3.0: ...
Choosing between Molex KK 254, Mini-Fit Jr., and Micro-Fit 3.0? This guide compares pitch, current rating, locking mechanism, wire gauge, and typical applications — with decision tables, part number references,...
Molex KK 254 vs Mini-Fit Jr. vs Micro-Fit 3.0: ...
Choosing between Molex KK 254, Mini-Fit Jr., and Micro-Fit 3.0? This guide compares pitch, current rating, locking mechanism, wire gauge, and typical applications — with decision tables, part number references,...
-
DuPont Connector vs JST PH 2.0: Pinout, Specs &...
Not sure whether to use a DuPont 2.54mm or JST PH 2.0mm connector? This guide compares pitch, locking mechanism, current rating, pinout, and best use cases — so you can...
DuPont Connector vs JST PH 2.0: Pinout, Specs &...
Not sure whether to use a DuPont 2.54mm or JST PH 2.0mm connector? This guide compares pitch, locking mechanism, current rating, pinout, and best use cases — so you can...