This website uses cookies. For further information on how we use cookies you can read our Privacy and Cookie notice
1 units left
Promotions
Delivery & Returns
Shipped from abroad
Choose your location
Pickup Station
Door Delivery
Return Policy
Free return within the legal return period from 14 to 30 days, and if they meet the terms & conditions, with the need to report any apparent defect within 48 hours. For more details about return policy.Details
Seller Information
JG-gazechimp
66%Seller Score
10 Followers
Seller Performance
Order Fulfillment Rate: Excellent
Quality Score: Excellent
Customer Rating: Very Poor
Product details
Dear customers, welcome to my store. We are an online store where you can purchase all your electronics, home appliances, kiddies items, fashion items for men, women, and children; cool gadgets, groceries, automobile parts, and more on the go. Our store is a star store dedicated to creating high-quality and practical products, allowing you to enjoy a better lifestyle. Your support is our greatest driving force. All the goods in our store are sold at the lowest price, and the quality is guaranteed. If you need it, please rest assured to buy, we will provide you with a comfortable shopping experience every time. As well we are launching new products every day, please follow our store and pay more attention, you will get the information of our latest products as soon as possible. Clicking on the seller information to enter our store to buy what you needs, after placing an order, we will deliver the goods for you at the frist time. Thank you and have a nice day!
Description:
KY-020 Tilt Switch Module for AVR PIC
Tilt switch module and digital 13 interface with built-in LED to build a simple 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:
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(3 Pack)
Note:
Color maybe slightly different due to different monitor.
The above size is measured by hand, please allow slightly difference. Thanks !
Tilt Switch Module; Tilt Switch Module;Tilt Switch Sensor Module;KY-020 Tilt Switch Module;Standard Tilt Switch Module
Specifications
Key Features
- 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);
- }
- }
What’s in the box
1 Piece KY-020 Tilt Switch Module(3 Pack)
Specifications
- SKU: GE810BM0YK63YNAFAMZ
- Model: N/A
- Production Country: China
- Size (L x W x H cm): 10 x 10 x 10
- Color: Black
- Main Material: N/A
Verified Customer Feedback
This product has no ratings yet.