{"product_id":"ky020-tilt-switch-sensor-module-for-arduino-raspberry-pi","title":"Ky020 Tilt Switch Sensor Module for Arduino, Raspberry Pi","description":"\u003ch1\u003eKy020 Tilt Switch Sensor Module — Digital Tilt Detection for Microcontrollers\u003c\/h1\u003e\n\n\u003cp\u003eThe Ky020 Tilt Switch Sensor Module is a digital orientation sensor that detects tilt or inclination using an internal conductive ball switch. It provides a simple high\/low output when tilted beyond a threshold, making it ideal for motion-triggered projects. Compact and easy to use, this module requires no analog conversion and works seamlessly with popular development boards.\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 – 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\u003e≥15° from horizontal (omni-directional)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003e3-pin (VCC, GND, DO)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003eApprox. 25mm × 15mm\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  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-window-security-alarm-kit-with-arduino-uno-plus-led\"\u003eTilt-activated door or window alarm for security systems\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003eOrientation-based robot control (flip to stop or change direction)\u003c\/li\u003e\n  \u003cli\u003eInteractive game controller using motion gestures\u003c\/li\u003e\n  \u003cli\u003eSimple digital inclinometer for slope measurement\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eThe Ky020 module works with any microcontroller that reads a digital input, including Arduino Uno, Nano, Mega; Raspberry Pi; ESP8266\/ESP32; and STM32. It operates at 3.3V and 5V logic, making it safe for all common boards without level shifting. Pair it with relay modules or buzzers for immediate physical feedback.\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 I\/O pin. The onboard pull-up resistor keeps the output high when the sensor is upright; it goes low when tilted. No additional components are required. For Raspberry Pi, use a GPIO pin configured as input.\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?\u003c\/summary\u003e\u003cp\u003eYes, the Ky020 works directly with Arduino boards. Connect VCC to 5V, GND to GND, and DO to any digital pin to read the tilt state in your code.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the tilt angle sensitivity?\u003c\/summary\u003e\u003cp\u003eThe switch activates when tilted more than approximately 15 degrees from horizontal in any direction. It is omnidirectional and does not distinguish tilt direction.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan it be used as a vibration sensor?\u003c\/summary\u003e\u003cp\u003eIt can detect sudden vibrations that cause tilting, but it is not optimized for small, rapid vibrations. For dedicated vibration sensing, consider a piezo or spring-type vibration module.\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":53444959175021,"sku":"CDN-0335","price":40.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_59bb584c-7fb3-42ec-8201-8eb62b1ef1f0.jpg?v=1781512472","url":"https:\/\/compoden.com\/products\/ky020-tilt-switch-sensor-module-for-arduino-raspberry-pi","provider":"Compoden","version":"1.0","type":"link"}