Ball Switch Module

(24 customer reviews)

$4.85

19 in stock

Description

Ball Switch Module Code


/* SETUP

Ball Switch    Arduino
-       -      GND
        -      5V
S       -      D3
*/

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

 

Additional information

Weight 0.002 kg
  1. Uchrbk

    cost atorvastatin 20mg order lipitor online how to buy atorvastatin

  2. Avfvxz

    purchase ciprofloxacin without prescription – keflex 250mg drug amoxiclav over the counter

  3. Nqeplr

    order ciprofloxacin pill – buy keflex no prescription augmentin 625mg usa

  4. Hkeurp

    order flagyl 200mg sale – purchase zithromax generic zithromax 250mg canada

  5. Vomeoj

    buy ciplox tablets – tinidazole 500mg cost order erythromycin without prescription

  6. Jrufpw

    valacyclovir medication – order diltiazem 180mg online cheap acyclovir without prescription

  7. Lzsxjc

    buy ivermectin 3mg for humans – aczone brand order sumycin 250mg without prescription

  8. Yeoenu

    flagyl 400mg drug – order cefaclor 250mg capsules azithromycin 250mg pill

  9. Wpcarh

    ampicillin cheap purchase amoxil without prescription amoxil oral

  10. Rrmsqm

    purchase furosemide pills – where can i buy lasix how to buy capoten

  11. Wexydv

    order metformin pill – septra over the counter purchase lincocin generic

  12. Hlomrd

    retrovir online – buy roxithromycin 150mg without prescription buy zyloprim 100mg without prescription

  13. Lypktd

    buy clozaril 50mg pills – cost altace 10mg buy famotidine pills

  14. Lvptcw

    quetiapine 100mg uk – order effexor 75mg online eskalith ca

  15. Pouobx

    anafranil oral – buy mirtazapine cheap doxepin 75mg tablet

  16. Dknpas

    order atarax online cheap – hydroxyzine uk cheap endep 10mg

  17. Wwxgxw

    buy generic amoxicillin – order cephalexin 125mg for sale buy cipro 500mg

  18. Iihrul

    buy amoxiclav online cheap – where to buy acillin without a prescription ciprofloxacin 500mg canada

  19. Ckimnh

    buy clindamycin medication – vibra-tabs usa buy chloromycetin for sale

  20. Zsildw

    buy azithromycin pill – order zithromax 500mg generic ciplox sale

  21. Geryrb

    ivermectin 3mg online – buy cheap generic aczone cefaclor tablet

  22. Xtrqkq

    order ventolin 2mg pill – order fexofenadine pill theophylline where to buy

  23. Klecoa

    order clarinex 5mg online – aristocort 4mg for sale ventolin inhalator generic

  24. Qlbxga

    buy methylprednisolone 4mg online – cetirizine for sale online buy astelin 10 ml for sale

Add a review

Your email address will not be published. Required fields are marked *