5PCS Standard Tilt Switch Module Board For Arduino AVR PIC
Description
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.
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 Include:
5 pcs KY-020 Tilt Switch Module for Arduino AVR PIC

We only accept payment through Paypal.
Items will go to post within 1-2 business days after payment confirmed.

If you can't receive the product within 2 months (60 days), please contact with us,we promise to payback 100% of your money.
We ensure our products work normally before post.If the products is broken before arrival to you,all you should do is taking a photo to show us our broken product.We promise to payback 100% of your money.

1. We ship to Worldwide.
2. We only ship to confirmed PAYPAL address; your PAYPAL address must match your Shipping address.
3. Any non-received items caused by invalid address registered on PayPal are not in our full refund or replacement policy. Shipping fee has including the local handing and packaging fee.
4. All the items will be shipping within 1-2 working days after receiving the payment, except some holidays.
5. We will not be responsible for any custom delay or tax, because transit time is highly depended and provided by postal Service.
6. If you have any problem, please contact us via message, we will reply message within 1-2 working days, please wait for patient.

DataCaciques