Wish List 0

Ky 020 Tilt Switch Sensor Module For Arduino

Rs. 14.00 Rs. 17.00

  • Product Code: SEN-VIB
  • SKU -
  • Availability: In Stock
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
-The Tilt Switch Sensor Module is a ball tilt switch with a metal ball inside.
-It is used to detect inclinations of a small angle.
-Tilt switch module and a digital interface, built-in 13 LED build a simple circuit to produce tilt warning lamp 13 comes with digital interfaces of the LED, the tilt switch sensor interface to access digital 3, when the tilt open Off sensor senses a key signal, LED lights, otherwise off.
-This Tilt Switch Sensor Module For Arduino simple yet effective tilt switch sensor module houses a metal ball which sits in a tube with electric contacts, as your robot or autonomous vehicle tilts, the ball rolls onto the contacts, a circuit is completed and a signal is sent back to your compatible Arduino control system.

-Pinout
 tilt

Features:
-This module is Small and Simple to use.
-Digital switch output (0 & 1)
-High sensitivity
-Completes the circuit when the module is tilted
-LED lights up when tilt switch is activated
SPECIFICATIONS:
Material                FR4
Operating Voltage(VDC)  5
Shipment Weight         0.095 kg
Shipment Dimensions     5 × 3 × 2 cm

OVERVIEW:

-Operating Voltage: 5v DC.

-This module is Small and Simple to use.

-Digital switch output (0 & 1)

-High sensitivity

-Completes the circuit when the module is tilted

-LED lights up when tilt switch is activated

-₹ 60.00 (inc GST)

-₹ 50.85 (+18% GST extra)

PACKAGE INCLUDES:

1 PCS x Ky 020 Tilt Switch Sensor Module For Arduino


//SOURCE CODE TAKEN FROM BELOW LINK

//https://arduinomodules.info/ky-020-tilt-switch-module/

int tiltPin = 2;      // pin number for tilt switch signal 

int ledPin =  13;     // pin number of LED 

int tiltState = 0;    // variable for reading the tilt switch status


void setup() {  

  pinMode(ledPin, OUTPUT);  // set the LED pin as output      

  pinMode(tiltPin, INPUT);  // set the tilt switch pin as input

}


void loop(){

  // get the tilt switch state

  tiltState = digitalRead(tiltPin);


  // check if tilt switch is tilted.

  if (tiltState == HIGH) {     

    digitalWrite(ledPin, HIGH);  

  } 

  else {

    digitalWrite(ledPin, LOW); 

  }

}


15 days

Write a review

Please login or register to review