• Sourcing Solutions
  • Services & Membership
  • Help & Community
5pcs/lot Smart Electronics 3pin KY-020 Standard Tilt Switch Sensor Module diy Starter Kit KY020

5pcs/lot Smart Electronics 3pin KY-020 Standard Tilt Switch Sensor Module diy Starter Kit KY020

Shared by: Melissa Weaver from amazon
Share
Over 10 suppliers can give you a quotation.
Get Quotations Now
You should get the quotation(s) in 6 hours .
Description
Type:Voltage Regulator Condition:New Application:Computer Supply Voltage:1 Dissipation Power:1 is_customized:Yes 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 Included: 5Pcs New Standard Tilt Switch Module For AVR PIC Good . Unit Type:lot (5 pieces/lot) Package Weight:0.01kg (0.02lb.) Package Size:5cm x 5cm x 5cm (1.97in x 1.97in x 1.97in)

Notice:The articles, pictures, news, opinions, videos, or information posted on this webpage (excluding all intellectual properties owned by Alibaba Group in this webpage) are uploaded by registered members of Alibaba. If you are suspect of any unauthorized use of your intellectual property rights on this webpage, please report it to us at the following:ali-guide@service.alibaba.com.

ensearchweb033003028255