Mercury Tilt Switch Module with Light

(29 customer reviews)

$5.95

40 in stock

Description

Light Cup Code


/* SETUP

Light Cup       Arduino
-         -     GND
+         -     5V
S         -     D10
L         -     D13
*/
 
int Led = 13;   // Declaration of the LED-output pin
int Sensor = 10;    // Declaration of the sensor input pin
int val;    // Temporary variable
  
void setup () {
  pinMode (Led, OUTPUT) ; // Initialization output pin
  pinMode (Sensor, INPUT) ; // Initialization sensor pin
  digitalWrite(Sensor, HIGH); // Activating of the internal pull-up resistor
}
  
void loop () {
  val = digitalRead (Sensor);   // The current signal from the sensor will be read
  
  if (val == HIGH)    // If a signal will be detected, the LED will light up.
  {
    digitalWrite (Led, LOW);
  }
  else
  {
    digitalWrite (Led, HIGH);
  }
}

 

Additional information

Weight 0.002 kg
  1. Rwqont

    lipitor over the counter buy atorvastatin for sale buy lipitor 40mg online

  2. Gsxacj

    order ciprofloxacin pills – order generic ethambutol 600mg clavulanate cheap

  3. Ldtxxk

    order cipro 500mg online cheap – buy keflex generic order augmentin online cheap

  4. Zeieks

    buy metronidazole 400mg – oral amoxicillin azithromycin order

  5. Cfgctp

    ciplox 500mg sale – erythromycin 250mg oral cheap erythromycin 250mg

  6. Yozvrx

    valacyclovir 1000mg usa – order zovirax 800mg generic zovirax buy online

  7. Ihoghy

    buy flagyl 200mg without prescription – buy clindamycin pills for sale azithromycin 500mg brand

  8. Vunfkm

    buy acillin no prescription monodox without prescription amoxicillin tablets

  9. Withhw

    oral furosemide 40mg – order generic prograf 5mg captopril 25 mg generic

  10. Bvrnox

    glycomet 1000mg generic – purchase cipro sale purchase lincocin

  11. Ssefri

    zidovudine pill – lamivudine 100 mg pills purchase allopurinol online

  12. Lvsjcq

    buy clozaril 100mg online – order clozaril generic buy pepcid

  13. Stsotp

    how to buy seroquel – purchase bupropion generic buy eskalith tablets

  14. Eszqbb

    buy hydroxyzine 10mg pills – buy prozac 40mg generic order generic endep

  15. Oqcdcz

    buy generic anafranil – brand aripiprazole purchase doxepin online cheap

  16. Wrcddc

    amoxicillin cheap – buy amoxil medication buy cipro 1000mg online

  17. Foxalr

    order augmentin 1000mg generic – cost myambutol 600mg order ciprofloxacin 500mg online cheap

  18. Vjjzru

    buy cleocin 150mg online – order cefixime 100mg generic buy chloromycetin

  19. Zvqqxk

    order zithromax pill – order flagyl 400mg pills order ciplox

  20. Mvfhps

    order albuterol 2mg generic – fluticasone online order theophylline pill

  21. Jfsncv

    ivermectin 3mg oral – buy aczone online cheap purchase cefaclor generic

  22. Lqqhlu

    buy clarinex generic – purchase clarinex sale order ventolin generic

  23. Qfxpfy

    buy generic methylprednisolone – loratadine drug astelin brand

  24. Eoxzvh

    glyburide cost – order forxiga 10mg online cheap dapagliflozin 10 mg uk

  25. Drjiec

    buy prandin 1mg generic – generic repaglinide empagliflozin pill

  26. Yuozwk

    glycomet buy online – order precose online order precose 25mg without prescription

  27. Jgovun

    order lamisil sale – griseofulvin 250 mg cheap buy grifulvin v generic

  28. Jovsft

    buy semaglutide online – buy glucovance pills for sale DDAVP order

  29. Cnjbsk

    brand nizoral 200mg – buy generic mentax itraconazole 100mg over the counter

Add a review

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