{"product_id":"sw520d-ball-tilt-sensor-15-tilt-switch","title":"SW520D Ball Tilt Sensor – 15° Tilt Switch","description":"\u003ch1\u003eSW520D Ball Tilt Sensor – 15° Angle Detection\u003c\/h1\u003e\u003cp\u003eThe SW520D is a non-mercury ball tilt switch that closes its circuit when tilted beyond approximately 15° from horizontal. It is used in orientation sensing, motion detection, and simple automation tasks. Its compact size and low current draw make it ideal for battery-powered projects.\u003c\/p\u003e\u003ch2\u003eKey Specifications\u003c\/h2\u003e\u003ctable\u003e\n\u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eActivation Angle\u003c\/td\u003e\n\u003ctd\u003e±15° typical\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMax Voltage\u003c\/td\u003e\n\u003ctd\u003e24 V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMax Current\u003c\/td\u003e\n\u003ctd\u003e10 mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eContact Type\u003c\/td\u003e\n\u003ctd\u003eNormally open (closes on tilt)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOperating Temperature\u003c\/td\u003e\n\u003ctd\u003e-25°C to +85°C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e4.2 x 12 mm (cylindrical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eTilt-activated alarm for doors or boxes\u003c\/li\u003e\n\u003cli\u003eRobot upset detection to halt motors\u003c\/li\u003e\n\u003cli\u003eWearable step counter using tilt pulses\u003c\/li\u003e\n\u003cli\u003eDigital level tool with LED indicators\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eThis switch works with any microcontroller that can read a digital input, including Arduino, ESP32, and Raspberry Pi. Connect one leg to ground and the other to a digital pin configured with an internal pull‑up resistor. It handles both 5 V and 3.3 V logic levels.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eSolder one pin to GND and the other to a digital input pin. Enable the microcontroller's internal pull‑up on that pin. When tilted, the switch closes and the pin reads LOW. No external resistor is needed for basic operation.\u003c\/p\u003e\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino Uno?\u003c\/summary\u003e\u003cp\u003eYes. Connect one pin to GND and the other to any digital pin (e.g., pin 2) with pinMode set to INPUT_PULLUP. The pin will read LOW when tilted.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eHow sensitive is the tilt angle?\u003c\/summary\u003e\u003cp\u003eThe switch activates at roughly 15° off horizontal. It is best used for coarse tilt detection; for precise angle measurement consider an accelerometer module.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eIs this switch normally open or closed?\u003c\/summary\u003e\u003cp\u003eThe SW520D is normally open when upright. It closes the circuit only when tilted past its activation angle.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53445016387949,"sku":"CDN-0700","price":10.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/download_33667dd7-a68e-41cb-bb75-90234f5810a6.jpg?v=1781595925","url":"https:\/\/compoden.com\/products\/sw520d-ball-tilt-sensor-15-tilt-switch","provider":"Compoden","version":"1.0","type":"link"}