3pin KY-020 3.3-5V Standard Tilt Switch Sensor Module for Arduino
$48.05
$79.76
Description KY-020 Tilt Switch Sensor Module for Arduino The KY-020 Tilt Switch Sensor Module is a simple and effective device for detecting tilt, vibration, and orientation changes. With a 3-pin interface and operating voltage of 3.3V to 5V, it is fully compatible with Arduino, Raspberry Pi, and most microcontroller platforms. This module contains a small ball inside the switch that makes or breaks contact when the sensor is tilted, producing a digital signal output. It is widely used in robotics, security systems, and DIY electronics. Key Specifications Model: KY-020 Operating Voltage: 3.3V – 5V Pins: 3-pin interface (VCC, GND, DO) Output Type: Digital (HIGH/LOW signal) Sensor Type: Mercury-free tilt switch Size: Compact and breadboard-friendly Features and Benefits Plug-and-play with Arduino and other controllers Detects motion, vibration, and angle change easily Digital output for simple HIGH/LOW readings Low power consumption and reliable performance Great for DIY starter kits and robotics projects Applications The KY-020 tilt switch module is ideal for: Motion and tilt detection Security alarms and anti-theft systems Robotics balance and orientation monitoring Gaming and interactive devices DIY Arduino starter kits How to Use the KY-020 Tilt Switch Sensor Module Wiring: VCC → 3.3V or 5V GND → Ground DO → Digital input pin (e.g., D2 on Arduino) Arduino Code Example: int tiltPin = 2; int tiltState = 0; void setup() { pinMode(tiltPin, INPUT); Serial.begin(9600); } void loop() { tiltState = digitalRead(tiltPin); if (tiltState == HIGH) { Serial.println("Tilt detected!"); } else { Serial.println("No tilt"); } delay(200); } When tilted, the sensor outputs a HIGH signal. When stable, it outputs LOW. Package Includes 1 x KY-020 Tilt Switch Sensor Module
Sensors