{"product_id":"sw520d-tilt-sensor-module-vibration-and-angle-detection","title":"SW520D Tilt Sensor Module – Vibration and Angle Detection","description":"\u003ch1\u003eSW520D Tilt Sensor Module – Vibration and Angle Detection\u003c\/h1\u003e\n\n\u003cp\u003eThe SW520D Tilt Sensor Module is a vibration and angle detection switch that outputs a digital signal when tilted. Commonly used in orientation detection, alarm systems, and robotics, it provides a simple interface for detecting movement or change in position. With a built-in comparator, it offers clean digital output for microcontrollers like Arduino and Raspberry Pi.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\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\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V to 5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eDigital (High\/Low)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eTilt Angle Detection\u003c\/td\u003e\n\u003ctd\u003eBeyond 10-15 degrees\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePCB Dimensions\u003c\/td\u003e\n\u003ctd\u003eApprox. 15mm x 20mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eWeight\u003c\/td\u003e\n\u003ctd\u003e2g\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003ePin Count\u003c\/td\u003e\n\u003ctd\u003e3 (VCC, GND, DO)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eVibration alarm for doors or windows\u003c\/li\u003e\n  \u003cli\u003eOrientation detection for robots (e.g., fall detection)\u003c\/li\u003e\n  \u003cli\u003eDIY motion-activated light or sound\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/arduino-solar-tracker-kit-with-ldr-sensors-and-servos-track-the-sun\"\u003eAngle sensing for solar tracker projects\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eWorks with any 3.3V or 5V microcontroller, including Arduino Uno, Nano, Mega, ESP8266, ESP32, and Raspberry Pi (with proper level shifting if using 3.3V logic). The digital output can be directly connected to a GPIO pin. The module includes an onboard pull-up resistor, so no external components are required for basic operation.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 3.3V or 5V, GND to ground, and DO to a digital input pin. The output goes LOW when tilted, HIGH when upright. For noisy environments, add a small capacitor (0.1µF) between DO and GND to debounce the signal.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\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\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino Uno?\u003c\/summary\u003e\u003cp\u003eYes, the SW520D module works directly with Arduino Uno. Connect VCC to 5V, GND to GND, and DO to any digital pin (e.g., pin 2). Use digitalRead() to detect tilt.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the typical response time?\u003c\/summary\u003e\u003cp\u003eThe tilt switch responds within milliseconds when the orientation changes beyond the threshold angle. The ball inside makes contact quickly, suitable for real-time detection.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan it detect vibration, not just tilt?\u003c\/summary\u003e\u003cp\u003eYes, the SW520D can sense vibration by detecting rapid changes in tilt. It’s suitable for simple vibration alerts but not as sensitive as a dedicated accelerometer.\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":53444995481965,"sku":"CDN-0600","price":40.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_ef545f9e-e285-4532-bc16-32c6bdba30d5.jpg?v=1781512712","url":"https:\/\/compoden.com\/products\/sw520d-tilt-sensor-module-vibration-and-angle-detection","provider":"Compoden","version":"1.0","type":"link"}