Featured
Plot Available In Faisal Town Ideal Lcoation

Plot Available In Faisal Town Ideal Lcoation

Call For Price/- Rawalpindi

Featured
E-currency Exchanger,

E-currency Exchanger,

Call For Price/- Lahore

Featured
Bitcoin Exchanger In Pakistan

Bitcoin Exchanger In Pakistan

Call For Price/- Lahore

Featured
Online Nsc Jobs

Online Nsc Jobs

Call For Price/- Bahawalpur

Featured
Bahria Town, Booking Open For Shops

Bahria Town, Booking Open For Shops

Call For Price/- Rawalpindi

Featured
Diploma Certification In Event Planning

Diploma Certification In Event Planning

PRs. 00/- Other

Featured
Belly Reducer Super Fat Burning Product

Belly Reducer Super Fat Burning Product

PRs. 3500/- 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 2 Years Ago

Viewed:1203

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
F 17 Tele Garden Plot Available I Islamabad

F 17 Tele Garden Plot Available I Islamabad

Call For Price/- Islamabad

Featured
Angry Birds Blue Tablet Pouch 7inch With Keyboard

Angry Birds Blue Tablet Pouch 7inch With Keyboard

PRs. 950/- Karachi

Featured
Huawei Y330

Huawei Y330

PRs. 7200/- Lahore

Featured
E 16/3 Plot Available Islamabad

E 16/3 Plot Available Islamabad

Call For Price/- Islamabad

Featured
Lava Led Watch In Pakistan

Lava Led Watch In Pakistan

PRs. 999/- Lahore

Featured
Nikon Coolpix S6500

Nikon Coolpix S6500

PRs. 15999/- Lahore

Featured
Gym Ball With Pump Price In Pakistan

Gym Ball With Pump Price In Pakistan

PRs. 1499/- Karachi

MERCURIAL VOLCANO CR7 TURF BLACK RED WHITE Digital Multimeter in Pakistan Web Hosting Solution (1734) Xbox 360 4gb slim jtec Laser Distance Meter Vaginal Tightening Gel party wear dress for all kind of good occasions China Scholarships nokia asha 301 Masage Home Srvce for Posh Area of Karachi Liquid Glitter Pouch For Samsung Phones Pen Camera in Peshawar - ShopPakistan.pk learn java script and jquery from professtionals acoustic guitar **Earning of free time** LUX METER TES-1330A In Pakistan perfect body shaper Quartz Heater Current Vimax In Quetta Call O3219661315 Merchant Navy society plot for sale Tooth WhiteLight in Faisalabad 03437511221 cjmcu 109 apm2 5 voltage current Quick Offer Hair Coloring Brush in Pakistan Brand new Iphone 3gs 32gb $250 Imaging IR Thermometer FLIR TG165 In Pakistan Perfect Shaper in Peshawar - ShopPakistan.pk Galaxy Note 3 Korean Clone Samsung Galaxy Duos GT-S7560 - Used 2 months only 3 in 1 Noir Z8 for Sale iPhone 4S 16GB J.V in Excellent Condition Yuga Mat Price in Pakistan 03003147666 YELLOW PALI M-08 A Fashion Clothing in Pakistan Fiberglass round slide Fat Cutter in Peshawar Call 03474641763 Pakistans top best almari cup board brand new Achieve Natural Health and Boost the Power Quick Offer Intex Inflatable Sofa and Stool Yoko Height Increaser