KY-002 Vibration Switch Module

☆☆☆☆☆ reviews

US$28.00
Price when purchased online
Free shipping Free 30-day returns

Sold and shipped by
We aim to show you accurate product information. Manufacturers, suppliers and others provide what you see here.
US$28.00
Price when purchased online
Free shipping Free 30-day returns

How do you want your item?
You get 30 days free! Choose a plan at checkout.
Shipping
Arrives Dec 4
Free
Pickup
Check nearby
Delivery
Not available

Sold and shipped by
Free 30-day returns Details

Product details

Management number 256027334 Release Date 2026/11/29 List Price US$28.00 Model Number 256027334
Category

Arduino Vibration Switch Module KY-002 Keyes allows detection of shock and vibration. The KY-002 Vibration Switch Module consists of a conductive vibration spring and a 10k resistor, it will react to shock and vibration by closing the circuit.

Specifications:

  • Operating Voltage: 5V
  • Dimensions 18.5mm x 15mm [0.728in x 0.591in]

Connection Diagram

Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 3 on the Arduino.

Example Code

The following Arduino sketch produces a shock flasher. Pin 13 (LED) on the Arduino will flash when KY-002 detects movement. Pin 3 is used as input from KY-002.

int Led = 13; // define the LED Pin
int shock = 3 // define the sensor Pin 
int val; // define a numeric variable val 

void setup () {
	pinMode (Led, OUTPUT); // LED pin as output  
	pinMode (shock, INPUT); // input from KY-002 sensor
} 

void loop () {
	val = digitalRead (shock); // read the value from KY-002
	if (val == HIGH ) {// when sensor detects shock, LED flashes  
		digitalWrite(Led, LOW);
	} else {
		digitalWrite (Led, HIGH);
	}
}

 


Correction of product information

If you notice any omissions or errors in the product information on this page, please use the correction request form below.

Correction Request Form

Customer ratings & reviews

0 out of 5
☆☆☆☆☆
0 ratings | 0 reviews
How item rating is calculated
View all reviews
5 stars
15% (0)
4 stars
30% (0)
3 stars
15% (0)
2 stars
8% (0)
1 star
32% (0)
Sort by

There are currently no written reviews for this product.