{"product_id":"sw-520d-tilt-vibration-sensor-module-arduino-kit","title":"SW-520D Tilt \u0026 Vibration Sensor Module Kit for Arduino","description":"\n\u003ch2\u003eSW-520D Angle Sensor Module – Ball Tilt \u0026amp; Vibration Switch Kit for Arduino\u003c\/h2\u003e\n\u003cp\u003eTake your electronics projects to the next level with the \u003cstrong\u003eSW-520D Angle Sensor Module\u003c\/strong\u003e — a compact, easy-to-use tilt and vibration detection module designed for Arduino and other microcontroller development boards. Whether you're building interactive gadgets, motion-triggered alarms, or smart robotics, this sensor delivers reliable angular displacement detection in a tiny, low-profile package.\u003c\/p\u003e\n\n\u003cp\u003eMade in Mainland China.\u003c\/p\u003e\n\n\u003ch3\u003eKey Features\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eModel:\u003c\/strong\u003e HS-S21A | SW-520D Ball Tilt Switch\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSensor Type:\u003c\/strong\u003e Inclination \/ Tilt Switch — Angular Displacement Sensor\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorking Principle:\u003c\/strong\u003e Ball-based angular displacement detection triggers a digital output signal when tilted beyond a threshold angle\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput Type:\u003c\/strong\u003e Digital signal (High\/Low) — easy to read with any microcontroller\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompact Dimensions:\u003c\/strong\u003e 37 × 18 × 8 mm — fits neatly on breadboards and in enclosures\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaterial:\u003c\/strong\u003e Durable polymer construction\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eArduino Compatible:\u003c\/strong\u003e Plug-and-play with standard 3-pin sensor headers\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNo high-concern chemicals\u003c\/strong\u003e in materials\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eWhat's in the Box?\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e1× SW-520D Angle Sensor \/ Ball Tilt Vibration Switch Module (HS-S21A)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eHow It Works\u003c\/h3\u003e\n\u003cp\u003eThe SW-520D uses a small conductive ball inside a cylindrical chamber. When the module is tilted past a certain angle, the ball rolls and completes (or breaks) the internal circuit, sending a clean digital signal to your microcontroller. This makes it perfect for detecting orientation changes, vibrations, knocks, and motion events — no complex programming required.\u003c\/p\u003e\n\n\u003ch3\u003ePerfect For\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eArduino \u0026amp; Raspberry Pi hobby projects\u003c\/li\u003e\n  \u003cli\u003eSTEM education and kit development boards\u003c\/li\u003e\n  \u003cli\u003eMotion-triggered alarms and alerts\u003c\/li\u003e\n  \u003cli\u003eRobotics orientation detection\u003c\/li\u003e\n  \u003cli\u003eVibration and impact sensing\u003c\/li\u003e\n  \u003cli\u003eAnti-theft and security devices\u003c\/li\u003e\n  \u003cli\u003eInteractive science fair projects\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSpecifications\u003c\/h3\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eModel\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eHS-S21A (SW-520D)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eSensor Category\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eTilt Switch \/ Inclination Sensor\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eWorking Principle\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eAngular Displacement (Ball Tilt)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eOutput\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eDigital (High\/Low)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e37 × 18 × 8 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eMaterial\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003ePolymer\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eMainland China\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/table\u003e\n\n\u003cp\u003eLearn more: \u003ca href=\"https:\/\/www.osha.gov\/personal-protective-equipment\" target=\"_blank\" rel=\"noopener\"\u003eOSHA on personal protective equipment\u003c\/a\u003e\u003c\/p\u003e\n\u003ch3\u003eFrequently Asked Questions\u003c\/h3\u003e\n\u003ch4\u003eQ: Is the SW-520D tilt sensor module compatible with Arduino boards?\u003c\/h4\u003e\n\u003cp\u003eA: Yes! The SW-520D angle sensor module is fully compatible with Arduino, Raspberry Pi, ESP8266, ESP32, and most other 3.3V\/5V microcontroller development boards. It outputs a simple digital signal that can be read directly with a digital input pin — no additional libraries required.\u003c\/p\u003e\n\n\u003ch4\u003eQ: What is the difference between a tilt switch and a vibration switch?\u003c\/h4\u003e\n\u003cp\u003eA: In practice, the SW-520D ball tilt switch can detect both orientation changes (tilt) and physical vibrations or impacts. When tilted beyond its trigger angle, the internal ball rolls to complete the circuit. Rapid vibrations or knocks cause the ball to bounce, producing a series of on\/off signals — making it useful for both tilt detection and simple vibration sensing applications.\u003c\/p\u003e\n\n\u003ch4\u003eQ: What angle triggers the SW-520D sensor?\u003c\/h4\u003e\n\u003cp\u003eA: The SW-520D is sensitive to angular changes, typically triggering when tilted approximately 10–45 degrees from its resting position, depending on orientation. Because it uses a physical ball mechanism, sensitivity can vary slightly with mounting angle and vibration intensity.\u003c\/p\u003e\n\n\u003ch4\u003eQ: Do I need any special code or libraries to use this module with Arduino?\u003c\/h4\u003e\n\u003cp\u003eA: No special libraries are needed. Since the SW-520D outputs a standard HIGH or LOW digital signal, you can read it using Arduino's built-in \u003ccode\u003edigitalRead()\u003c\/code\u003e function. Many beginner-friendly Arduino code examples are freely available online for tilt and vibration switch projects.\u003c\/p\u003e\n\u003c!-- production-packaging-notice --\u003e\n\u003ch3\u003eProduction \u0026amp; Packaging Notice\u003c\/h3\u003e\n\u003cp\u003eTo maintain high stock availability and fast shipping times, our items are sourced from multiple verified manufacturing facilities. While the core quality, materials, and product specifications remain identical, you may notice slight variations in the packaging design, manufacturing origin, or the wording of the printed instructions.\u003c\/p\u003e\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Is the SW-520D tilt sensor module compatible with Arduino boards?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes! The SW-520D angle sensor module is fully compatible with Arduino, Raspberry Pi, ESP8266, ESP32, and most other 3.3V\/5V microcontroller development boards. It outputs a simple digital signal that can be read directly with a digital input pin — no additional libraries required.\"}}, {\"@type\": \"Question\", \"name\": \"What is the difference between a tilt switch and a vibration switch?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In practice, the SW-520D ball tilt switch can detect both orientation changes (tilt) and physical vibrations or impacts. When tilted beyond its trigger angle, the internal ball rolls to complete the circuit. Rapid vibrations or knocks cause the ball to bounce, producing a series of on\/off signals — making it useful for both tilt detection and simple vibration sensing applications.\"}}, {\"@type\": \"Question\", \"name\": \"What angle triggers the SW-520D sensor?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The SW-520D is sensitive to angular changes, typically triggering when tilted approximately 10–45 degrees from its resting position, depending on orientation. Because it uses a physical ball mechanism, sensitivity can vary slightly with mounting angle and vibration intensity.\"}}, {\"@type\": \"Question\", \"name\": \"Do I need any special code or libraries to use this module with Arduino?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No special libraries are needed. Since the SW-520D outputs a standard HIGH or LOW digital signal, you can read it using Arduino's built-in digitalRead() function. Many beginner-friendly Arduino code examples are freely available online for tilt and vibration switch projects.\"}}]}\u003c\/script\u003e\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"BreadcrumbList\", \"itemListElement\": [{\"@type\": \"ListItem\", \"position\": 1, \"name\": \"Home\", \"item\": \"https:\/\/0dwbi8-fa.myshopify.com\/\"}, {\"@type\": \"ListItem\", \"position\": 2, \"name\": \"Home page\", \"item\": \"https:\/\/0dwbi8-fa.myshopify.com\/collections\/frontpage\"}, {\"@type\": \"ListItem\", \"position\": 3, \"name\": \"SW-520D Tilt \u0026 Vibration Sensor Module Kit for Arduino\", \"item\": \"https:\/\/0dwbi8-fa.myshopify.com\/products\/sw-520d-tilt-vibration-sensor-module-arduino-kit\"}]}\u003c\/script\u003e","brand":"Quake","offers":[{"title":"Default Title","offer_id":50287370731747,"sku":"\u003cnone\u003e","price":34.65,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0820\/9439\/1523\/files\/S8c26bffc6c7e48fe9f2101c91e271a4dU.webp?v=1790296164","url":"https:\/\/quakegoods.com\/products\/sw-520d-tilt-vibration-sensor-module-arduino-kit","provider":"Quake","version":"1.0","type":"link"}