Featured
Huma Fashion

Huma Fashion

Call For Price/- Islamabad

Featured
Bormioli Rocco Dea Set

Bormioli Rocco Dea Set

PRs. 1100/- Karachi

Featured
Financials Modeling Course

Financials Modeling Course

Call For Price/- Karachi

Featured
Handmade Earings Sale

Handmade Earings Sale

Call For Price/- All Cities

Featured
Infant Clothing

Infant Clothing

PRs. 550/- Lahore

Featured
Hs Spark 200 English Willow Bat

Hs Spark 200 English Willow Bat

Call For Price/- Karachi

Featured
Linkers House Moving Shifting Services Karachi

Linkers House Moving Shifting Services Karachi

Call For Price/- Lahore

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 2 Years Ago

Viewed:1293

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
Kanal Plot Good For Investment In Dha Phase 7

Kanal Plot Good For Investment In Dha Phase 7

PRs. 14000000/- Lahore

Featured
A2z Events Management Company

A2z Events Management Company

PRs. 00/- Lahore

Featured
Vimax In Gujranwala Punjab

Vimax In Gujranwala Punjab

PRs. 3050/- All Cities

Featured
Face Massager 5 In 1 In Pakistan

Face Massager 5 In 1 In Pakistan

PRs. 999/- Lahore

Featured
We At A2z Events

We At A2z Events

PRs. 00/- Lahore

Featured
 Plot For Sale In B17 Multi Garden

Plot For Sale In B17 Multi Garden

Call For Price/- Islamabad

Featured
Forex Training In Urdu

Forex Training In Urdu

Call For Price/- Lahore

DreamWorld family resort and golf club membership LED Bulb 12watt E27 kala jadu expert man pasand shadi 3 din ka amal Digital Marketing Diploma In Omni Academy Buy ans sell perfectmoney. CELLULESS VACUUM in Pakistan Active Pimple Relief Roll-on in Pakistan Sony xperia z1s mint B 17 Shop Available Nail Art Stamping Machine samsung LCD TV 20 E Block , B 17 Islamabad Plot Beatsaudio Mini Bluetooth Speaker Wazifa For All Problems in holly quran BUY JWH-018 / JWH-250 STOCK OF IT Samsung EVO Card UHS-I 8GB Network Cable Tester Pack of 6 Maybelline lipsticks JADE GEM women suite Sony Handycam DCRHC40E Camcorder Mini DV Sofa set with deewan King Exhibition Budgies Adult Pairs For Sale Lumia 640 XL Available! Essilor Hard Coated Prescription Lens Microsoft Office 2007 Wedding Photography in Lahore Pakistan 650nm aser diode ransmitter keyes Cashout Skrill Money in Pakistan guinea pig No Wait to Get Paid ONLINE TUTOR QUALITY SERVICES Buy Super Warm Thermal Inner Suit For Winter iPhone 5 16GB Factory Unlocked iOS 7.0.4 Mehran 89-90 Model Edifice Casio WR100M Leather Strap Watch for Men Quick Offer Total Core in Pakistan CCNP Professional 2bed d/d in defence view karachi asif estate