KY-002 Vibration switch module and Raspberry pi

In this example we take a look at the KY-002 Vibration switch module and connect this to a Raspberry Pi.

When the switch detects movement, the output of the module is sent low.

The module is based around the Gaoxin SW-18010P vibration switch, lets look at that switch

Features:

1.SW‐18010P series are spring type, no directional vibration sensor trigger switch, any angle can trigger
2.Switch is open circuit OFF state , when it is static, when external force to touch and corresponding vibration, or movement speed achieve adequate (partial) centrifugal force, conductive pick feet will produce instant conductivity is instant ON state, when external force disappear, switch back to open circuit OFF‐state.
3.Switch have the identification P at the bottom, for completely airtight;
4.In the normal, switch life can reach 20,0000 cycles lifespan
5.This series Switches have trigger high sensitivity
6.Apply to security devicestoys electronic scales products

Electrical characteristics:

‐ Voltage: <12V
‐ Current: <20mA
‐ Conductive time: 2ms
‐ Closed resistance: <30 ohm
‐ Open resistance: >10M ohm

Parts List

Name link
Raspberry Pi3 Raspberry Pi 3 Model B With WiFi & Bluetooth
37 sensor kit 37 IN 1 SENSOR KITS FOR ARDUINO HIGH-QUALITY FREE SHIPPING (Works with Official for Arduino Boards)
connecting wire Free shipping Dupont line 120pcs 20cm male to male + male to female and female to female jumper wire

 

Layout

We use Pin 13 (GPIO27) for the sensor, one of the examples also has an LED connected to Pin 11 (GPIO17). We have not shown this in the schematic and layout below

 

Code Examples

SHARE
Previous articleKY-009 3-color LED SMD module Raspberry Pi example
Next articleKY-017 Mercury Tilt Switch Module and Raspberry Pi