Ky 002 Vibration Switch Module
Rs. 57.00 Rs. 69.00
- Product Code: SEN-VIB
- SKU -
- Availability: In Stock
- Price in reward points: 1
- For Bulk Order
9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Component Type | SW-18015P |
Maximum Voltage(V) | 12 |
Rated Heating Current(mA) | 20 |
PCB Size (mm) | 20×15 |
Shipment Weight | 0.085 kg |
Shipment Dimensions | 3 × 3 × 3 cm |
OVERVIEW:
-No direction, any angle can trigger the work.
-Sensitivity switches can be selected for the trigger sensitivity according to circuit requirements.
-This switch is suitable for the trigger of the small current circuit.
-Component Type: SW-18015P
-Maximum voltage: 12V
-Rated Heating Current: 20mA
PACKAGE INCLUDES:
1 PCS x Ky 002 Vibration Switch Module
//SOURCE CODE TAKEN FROM BELOW LINK
//https://create.arduino.cc/projecthub/WellTronic/ky-002-shock-sensor-module-48be92
//**********************************************************************************************************//
// Author:
// WellTronic
//
// Description:
// This code is part of a video series covering all Arduino sensors from the Arduino sensor kit.
// One of the sensors in this video series is the SW18010P shock sensor.
//
// In this video I will explain step by step how to use the SW18010P shock sensor
// https://www.youtube.com/watch?v=hDqkDn6dVJ4&t=177s
//
// You're also welcome to take a look at the YouTube channel for more details about hardware and software.
// https://www.youtube.com/channel/UC0UCNqE8i4unG8nfuakd0vw
//
// Enjoy working with this sensor and see you soon :) !
//
//**********************************************************************************************************//
int shockSensorPin = 2;
int greenLedPin = 3;
int redLedPin = 4;
bool shockSensorSate = 0;
void setup() {
pinMode(shockSensorPin,INPUT);
pinMode(greenLedPin,OUTPUT);
pinMode(redLedPin,OUTPUT);
shockSensorSate = digitalRead(shockSensorPin);
}
void loop() {
if (shockSensorSate == 1){
digitalWrite(greenLedPin,LOW);
for ( int i=0; i < 10;i++){
digitalWrite(redLedPin,HIGH);
delay(150);
digitalWrite(redLedPin,LOW);
delay(150);
if ( i == 9){
shockSensorSate = 0;
}
}
}
else {
shockSensorSate = digitalRead(shockSensorPin);
digitalWrite(greenLedPin,HIGH);
}
}
15 days