KY-002 Vibration Switch Module

KY-002 Vibration Switch Module image

View on Amazon

Overview

The KY-002 is a vibration switch module that detects shocks and vibrations through a conductive spring mechanism. Upon movement, it sends a digital signal, making it suitable for motion detection applications in various electronic projects.

About KY-002 Vibration Switch Module

The KY-002 is a vibration switch module designed to detect shocks and movement. Using a conductive spring mechanism, it closes the circuit momentarily upon detecting vibrations, sending a digital signal to microcontrollers like ESP32 and Arduino. This makes it ideal for motion detection in security systems, interactive devices, and monitoring equipment.

Key Features

  • Shock & Vibration Detection – Activates when movement or impact is detected.
  • Simple Digital Output – Easily interfaces with ESP32, Arduino, and other MCUs.
  • Compact & Low Power – Suitable for battery-powered projects.
  • Versatile Applications – Used in security alarms, motion-sensitive devices, and monitoring systems.

With its reliable motion detection capabilities, the KY-002 is an excellent choice for interactive and security-based applications. 🚀

Where to Buy

Get Your KY-002

KY-002 Vibration Switch Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

KY-002 Specifications

Complete technical specification details for KY-002 Vibration Switch Module

📊 Technical Parameters

Operating Voltage 3.3V to 5V
Dimensions 18.5mm x 15mm
Detection Mechanism Conductive spring
Output Type Digital signal
Pin Configuration

KY-002 Pinout

The **KY-002** is a 3-pin vibration/shock detection module:

Visual Pinout Diagram

Pinout Diagram Primary
KY-002 Vibration Switch Module pinout
3
Total Pins

Pin Types

Power
2
Communication
1

Quick Tips

🔌

**Interface**: Digital output (active high on vibration),🔨 **Detection**: Conductive spring mechanism closes on impact

💡

**Operation**: Momentary signal when shock/vibration occurs,⚡ **Power**: 3.3V or 5V operation

🔋

**Low Power**: Minimal current consumption when idle,🚨 **Applications**: Security alarms, motion detection, interactive devices

Pin Descriptions

Pin NameTypeDescriptionNotes
1 Pin (-)
Power

Ground connection

2 Pin (middle)
Power

Power supply

3.3V or 5V

3 Pin (S)
Communication

Digital signal output

Goes HIGH when vibration detected

Connection Guide

Wiring KY-002 to ESP32

To interface the **KY-002** with an **ESP32** for vibration detection:

Visual Wiring Diagram

Wiring Diagram Recommended
KY-002 Vibration Switch Module wiring with ESP32
3
Connections

Connection Status

Required
3

Protocol

Digital

Pin Connections

KY-002 PinConnectionESP32 PinDescription
1 Pin (-) Required
GND

Ground

2 Pin (middle) Required
3.3V or 5V

Power supply

3 Pin (S) Required
GPIO4

Digital input (any GPIO)

💡

**GPIO Selection**: Any digital GPIO pin works, GPIO4 is just an example

**Voltage**: Use 3.3V for ESP32 compatibility

🔔

**Debouncing**: May require software debouncing for clean signal

🎯

**Sensitivity**: Fixed sensitivity, no adjustment possible

Help & Support

KY-002 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-002 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-002

The ESP32 KY-002 Vibration Switch Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-002 into your ESP32 project and bring your ideas to life!