{"product_id":"ky-020-tilt-switch-sensor-module-ball-tilt-detector","title":"KY-020 Tilt Switch Sensor Module – Ball Tilt Detector","description":"\u003ch1\u003eKY-020 Tilt Switch Sensor Module – Digital Ball Tilt Detector\u003c\/h1\u003e\u003cp\u003eThe KY-020 tilt switch sensor module detects orientation using a rolling ball mechanism. When tilted beyond the adjustable threshold, it outputs a digital signal, making it suitable for motion-triggered projects, orientation alerts, and basic fall detection. This cost-effective sensor is easy to integrate with microcontrollers for instant tilt feedback.\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\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V–5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eDigital (DO: High\/Low)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSensor Type\u003c\/td\u003e\n\u003ctd\u003eBall tilt switch\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eComparator\u003c\/td\u003e\n\u003ctd\u003eLM393 with sensitivity potentiometer\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSignal Indicator\u003c\/td\u003e\n\u003ctd\u003ePower LED and status LED\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e~15mm x 36mm\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 alarm for doors, windows, or enclosures\u003c\/li\u003e\n\u003cli\u003eOrientation-based game controller or interactive toy\u003c\/li\u003e\n\u003cli\u003eVibration or shake detector for security systems\u003c\/li\u003e\n\u003cli\u003eFall detection for robots, drones, or wearable safety devices\u003c\/li\u003e\n\u003cli\u003eDIY digital spirit level or angle alert\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eThe KY-020 module works with any microcontroller that accepts digital input: Arduino Uno, Nano, Mega, ESP8266, ESP32, and Raspberry Pi (with 3.3V power). No level shifting is required when powered at 3.3V or 5V, as the digital output matches the supply voltage.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eConnect VCC to 3.3V or 5V, GND to ground, and DO to a digital input pin. Turn the onboard potentiometer to adjust tilt sensitivity. The status LED lights when the output goes low. For Raspberry Pi, use a GPIO pin; an external pull-up is usually unnecessary because the module drives the line actively.\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, it connects directly: VCC to 5V, GND to GND, DO to any digital pin (e.g., D2). The module outputs clean 0\/5V levels.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eDoes this module detect tilt in all directions?\u003c\/summary\u003e\u003cp\u003eIt detects tilt in a cone determined by the ball switch and sensitivity setting. Turning the potentiometer changes the angle threshold for triggering.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eCan I use this with a Raspberry Pi?\u003c\/summary\u003e\u003cp\u003eYes, power the module from the 3.3V pin, connect GND, and DO to a GPIO. It outputs 3.3V logic, safe for the Pi without conversion.\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":53445017174381,"sku":"CDN-0711","price":40.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_842cdd95-16b9-4a82-851f-a0e3a4dd9861.jpg?v=1781512841","url":"https:\/\/compoden.com\/products\/ky-020-tilt-switch-sensor-module-ball-tilt-detector","provider":"Compoden","version":"1.0","type":"link"}