Featured
Nitro Tech 4lb

Nitro Tech 4lb

PRs. 7800/- Lahore

Featured
Big Discount Offer Insta Bulb Led Light

Big Discount Offer Insta Bulb Led Light

PRs. 1899/- Lahore

Featured
Home Base Jobs

Home Base Jobs

Call For Price/- Lahore

Featured
Samsung Galaxy Tab 3 7inches

Samsung Galaxy Tab 3 7inches

PRs. 17500/- Lahore

Featured
 Stereo Headset I-koson For Mobile, Mp3, Mp4, Cd

Stereo Headset I-koson For Mobile, Mp3, Mp4, Cd

PRs. 450/- Lahore

Featured
Quick Offer Yoko Height Increaser In Pakistan

Quick Offer Yoko Height Increaser In Pakistan

PRs. 1499/- Karachi

Featured
Mobile Spy Software

Mobile Spy Software

PRs. 25000/- Islamabad

Tilt Switch Sensor Ky-020 Module

Featured
Tilt Switch Sensor Ky-020  Module

I am a Seller

PRs. 280

City: Peshawar

Contact

Posted:09-05-2015 3 Years Ago

Viewed:1377

0% 0% Up! Down!

" 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);

  }"

Comments

New Comments

A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.

This question is for testing whether you are a human visitor and to prevent automated spam submissions. Please enter the letters or digits that appear in the image.

Featured
Faisal Residencia Plot Available In Islamabad

Faisal Residencia Plot Available In Islamabad

Call For Price/- Islamabad

Featured
Big Discount Offer Ankle Wrap Sports Safety

Big Discount Offer Ankle Wrap Sports Safety

PRs. 1299/- Lahore

Featured
Aluma Wallet

Aluma Wallet

PRs. 1199/- Karachi

Featured
Quick Offer Yoko Height Increaser In Pakistan

Quick Offer Yoko Height Increaser In Pakistan

PRs. 1499/- Karachi

Featured
Guinea Pig

Guinea Pig

PRs. 3500/- Rawalpindi

Featured
Pipe Vise 3

Pipe Vise 3

PRs. 1000/- Khanewal

Featured
Juicer 4 In 1 Free Delivery 03213001264

Juicer 4 In 1 Free Delivery 03213001264

PRs. 5999/- Lahore

Supreme Quality Sublimation Mug Available! Online Jobs Online Data Entry Jobs In Lahore (20160620-d815) chaitanya Transport Company,pvt.ltd. House for Sale in Media Town GET A BABY BOY OF AZOOSPERMIA WITH IU I Head wear (patha matti() hakim dilshad lahore pkistan Kashif Dossani Wedding Photographer in Karachi A Bridal Affair Australian birds for sale 150 watt 36 cell Omega Power Solar Panel Looking girl for marriage we are hiring raheel 85 Page Peel Pro Forever Fiber is available in lahore We need experienced Call Centre Agents for Customer Support Services Wordpress Training Classes Digital Blood Pressure Monitor MICROLINK 10/100 PoE INJECTORS Stainless Steel Cookware Jobs Available in Saudi Arabia school bags Psychological Treatment Residential Plot Available In B-17 Islamabad Skin Whitening Treatment in Lahore, Pakista Desktop Computer PC Ultra Slim HP Compaq DC7900 Go Malaysia And Make Your Future Bright lapttop Samsung Galaxy Note3 Metal Bumper/Back Faisal Town Al Harmain Centre Office Available B-17 Block B - Plot For Sale On Good Location Simba Filipino & Local Nanny Day Care At Your Home Huawei tablet modal (701u )16gb rohani ilaj gah love marriage specialaist Nokia 225 Dual Sim PinPack Original African Grey Parrot Babies fumigation service " bed bugs control Residential Plots for SALE on monthly instalment Online Jobs In Karachi At home