Max KY-020 Tilt Switch Module for Arduino AVR PIC
Description:
KY-020 Tilt Switch Module for Arduino AVR PIC
Tilt switch module and digital 13 interface with built-in LED to build a simple circuit and make tilt indicator light.
Use the LED of the digital 13 interface to connect the tilt switch sensor to the digital 3 interface. When the tilt switch sensor senses a key signal, the LED is on, and vice versa.
Material: PCB
Size: 24 x 15 x 7mm
Specification:
Routines source code:
int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the tilt switch sensor interfaces
int val ;// define numeric variables val
void setup()
{
pinMode(Led, OUTPUT) ;// define LED as output interface
pinMode(buttonpin, INPUT) ;// define the output interface tilt switch sensor
}
void loop ()
{
val = digitalRead(buttonpin) ;// digital interface will be assigned a value of 3 to read val
if(val == HIGH) // When the tilt sensor detects a signal when the switch, LED flashes
{
digitalWrite(Led, HIGH);
}
else
{
digitalWrite(Led, LOW);
}
}
Package Includes:
1 Piece KY-020 Tilt Switch Module
Note:
Color maybe slightly different due to different monitor.
The above size is measured by hand, please allow slightly difference. Thanks !
Delivery Time: 12-15 Days. Products are directly imported and dispatched from our Hong Kong warehouse. All India Shipping.
Return: If you have received a faulty or damaged product, please contact our support team within 7 days of delivery. We will investigate the issue and provide you with instructions on how to return the product for a replacement or a full refund.
Please Note: This is going to be a closed delivery, so if you want open delivery then it will not be possible and you can cancel your order by writing us at: support@aladdinshoppers.com before dispatch of your order.
Tracking Information will be sent to you once your product is dispatched.