KY-020 Tilt Switch Sensor Module – Ball Tilt Detector
KY-020 Tilt Switch Sensor Module – Digital Ball Tilt Detector
The 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.
Key Specifications
| Specification | Value |
|---|---|
| Operating Voltage | 3.3V–5V DC |
| Output Type | Digital (DO: High/Low) |
| Sensor Type | Ball tilt switch |
| Comparator | LM393 with sensitivity potentiometer |
| Signal Indicator | Power LED and status LED |
| Dimensions | ~15mm x 36mm |
What You Can Build With This
- Tilt alarm for doors, windows, or enclosures
- Orientation-based game controller or interactive toy
- Vibration or shake detector for security systems
- Fall detection for robots, drones, or wearable safety devices
- DIY digital spirit level or angle alert
Compatibility
The 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.
Wiring Notes
Connect 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.
Why Buy from Compoden
Every 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.
Is this compatible with Arduino Uno?
Yes, it connects directly: VCC to 5V, GND to GND, DO to any digital pin (e.g., D2). The module outputs clean 0/5V levels.
Does this module detect tilt in all directions?
It detects tilt in a cone determined by the ball switch and sensitivity setting. Turning the potentiometer changes the angle threshold for triggering.
Can I use this with a Raspberry Pi?
Yes, 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.
📦 Free Setup Handoff Document Included
Every 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.
Ask Soldr above what you can build with this — it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items