Tap Module

(31 customer reviews)

$4.85

20 in stock

Description

Tap Sensor Module Code


/* SETUP

Tap-Module     Arduino
S       -      D10
        -      5V
-       -      GND
*/
 
int knockPin = 10; // Use Pin 10 as our Input
int knockVal = HIGH; // This is where we record our shock measurement
boolean bAlarm = false;

unsigned long lastKnockTime; // Record the time that we measured a shock


int knockAlarmTime = 500; // Number of milli seconds to keep the knock alarm high


void setup ()
{
  Serial.begin(9600);  
  pinMode (knockPin, INPUT) ; // input from the KY-031
}
void loop ()
{
  knockVal = digitalRead (knockPin) ; // read KY-031 Value
  
  if (knockVal == LOW) // If we see a knock
  {
  
    lastKnockTime = millis(); // record the time of the shock
    // The following is so you don't scroll on the output screen
    if (!bAlarm){
      Serial.println("KNOCK, KNOCK");
      bAlarm = true;
    }
  }
  else
  {
    if( (millis()-lastKnockTime) > knockAlarmTime  &&  bAlarm){
      Serial.println("no knocks");
      bAlarm = false;
    }
  }
}

 

Additional information

Weight 0.002 kg
  1. Nsjmaq

    order generic lipitor 10mg lipitor online order buy lipitor 40mg

  2. Vktrga

    buy generic cipro – purchase keflex pill buy augmentin 625mg generic

  3. Pvqvrx

    ciprofloxacin online order – buy cipro 1000mg generic buy augmentin 625mg without prescription

  4. Njqmgt

    buy ciplox generic – erythromycin 500mg us erythromycin uk

  5. Fflqvr

    metronidazole 200mg us – buy cleocin pills oral zithromax 250mg

  6. Rllfjd

    ivermectin 6mg oral – sumycin 500mg price sumycin 500mg canada

  7. Jbngoh

    valacyclovir canada – zovirax 400mg brand oral zovirax 400mg

  8. Fyqcct

    buy ampicillin antibiotic buy amoxil cheap purchase amoxil

  9. Estrml

    purchase flagyl – cefaclor 500mg capsules zithromax 250mg us

  10. Bzyvaj

    buy furosemide 100mg without prescription – order prazosin 2mg generic capoten medication

  11. Qbgjfc

    buy glycomet pills for sale – order combivir pill lincomycin 500mg pill

  12. Pvfxkl

    zidovudine 300 mg ca – buy epivir 100mg pills purchase zyloprim pills

  13. Xerdru

    order clozaril 100mg pills – tritace uk famotidine 20mg oral

  14. Fdwjsv

    purchase seroquel pill – eskalith over the counter eskalith order

  15. Rrmrjc

    clomipramine 50mg drug – sinequan drug order doxepin online

  16. Uktenl

    buy atarax 10mg generic – order generic atarax 10mg buy endep 25mg pills

  17. Suyugx

    order augmentin pills – order cipro 1000mg generic buy cipro 1000mg sale

  18. Fgapqf

    brand amoxil – order keflex 125mg cipro drug

  19. Cedbon

    azithromycin 500mg cost – purchase tinidazole pills ciprofloxacin 500 mg pill

  20. Jnycuu

    cleocin 150mg without prescription – order cefpodoxime 200mg online order chloromycetin for sale

  21. Zzcsjg

    stromectol for sale – aczone order order cefaclor 500mg pills

  22. Uidnxn

    buy albuterol inhaler – buy albuterol 4mg generic order theo-24 Cr 400 mg generic

  23. Tpubta

    buy medrol pill – order fml-forte online cheap purchase azelastine sprayers

  24. Ahpris

    clarinex 5mg us – flixotide sale buy albuterol online cheap

  25. Fkqscv

    order glucophage 1000mg pills – cheap glycomet 500mg pill acarbose 50mg

  26. Wuodim

    glyburide canada – glipizide order order forxiga 10 mg generic

  27. Dtixrl

    repaglinide for sale – prandin 2mg usa empagliflozin cheap

  28. Casysa

    how to buy rybelsus – purchase glucovance generic DDAVP order online

  29. Onxuno

    buy generic lamisil – terbinafine pills purchase grifulvin v for sale

  30. Kkmmws

    order ketoconazole 200mg for sale – buy itraconazole without a prescription itraconazole 100mg pill

  31. Xkaghl

    buy famvir 250mg online – acyclovir 400mg brand buy valaciclovir

Add a review

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