Rotary Encoder Module

(102 customer reviews)

$6.95

9 in stock

Description

Rotary Encoder Module Code


/* SETUP

Rotary-Encoder  Arduino
GND      -      D2
+        -      5V
SW       -     
DT       -      D4
CL.K     -      D3
*/
 
int val;
int encoder0PinA = 3;
int encoder0PinB = 4;
int encoder0Pos = 0;
int encoder0PinALast = LOW;
int n = LOW;

void setup() {
  pinMode (encoder0PinA, INPUT);
  pinMode (encoder0PinB, INPUT);
  Serial.begin (9600);
}

void loop() {
  n = digitalRead(encoder0PinA);
  if ((encoder0PinALast == LOW) && (n == HIGH)) {
    if (digitalRead(encoder0PinB) == LOW) {
      encoder0Pos--;
    } else {
      encoder0Pos++;
    }
    Serial.print (encoder0Pos);
    Serial.print ("/");
  }
  encoder0PinALast = n;
}

 

Additional information

Weight 0.009 kg
  1. Hvjwyh

    atorvastatin order online atorvastatin usa buy atorvastatin 20mg

  2. Bbiexx

    buy cheap baycip – buy cheap cephalexin buy augmentin for sale

  3. Dodixs

    purchase ciprofloxacin – ethambutol medication augmentin 1000mg over the counter

  4. Kmxlil

    flagyl price – buy generic amoxil zithromax 500mg without prescription

  5. Yazbvj

    ciplox online buy – buy generic doxycycline erythromycin buy online

  6. Ajyvqo

    order valacyclovir online cheap – order nateglinide 120 mg sale purchase acyclovir

  7. Gtnlii

    ivermectin 3 mg over the counter – cost co-amoxiclav order sumycin generic

  8. Odijsd

    flagyl medication – purchase metronidazole azithromycin 500mg canada

  9. Ddqdqn

    oral ampicillin penicillin for sale cheap amoxil online

  10. Liriaz

    lasix ca – lasix 100mg cost purchase capoten sale

  11. Zczyhd

    cost zidovudine 300mg – irbesartan 150mg price zyloprim cheap

  12. Eftjoq

    glycomet over the counter – generic lincocin 500mg lincomycin 500 mg price

  13. Psykpv

    clozapine medication – quinapril where to buy order pepcid 20mg generic

  14. Rufaze

    seroquel 100mg without prescription – purchase seroquel pills order eskalith generic

  15. Gyiwiz

    buy hydroxyzine pill – order escitalopram for sale amitriptyline order online

  16. Bcouwz

    buy clomipramine online cheap – order duloxetine 40mg pills buy sinequan pills

  17. Ungoeu

    buy amoxil cheap – order cefuroxime 250mg generic buy ciprofloxacin 1000mg generic

  18. Lcstyd

    buy clavulanate generic – augmentin 1000mg price order cipro pills

  19. Nalbhn

    generic clindamycin – oxytetracycline ca how to get chloramphenicol without a prescription

  20. Egajku

    purchase azithromycin pills – buy tetracycline generic order generic ciprofloxacin

  21. Sleiut

    buy ventolin generic – buy theophylline cheap theo-24 Cr 400mg canada

  22. Ukzjbg

    ivermectin 6 mg tablets – levofloxacin order buy cefaclor for sale

  23. Daepkm

    buy generic desloratadine – flixotide brand order generic ventolin

  24. Pglwyi

    buy medrol 8 mg online – buy astelin 10 ml sprayers azelastine cheap

  25. Wvkbjb

    buy generic glyburide – order generic pioglitazone 15mg order forxiga sale

  26. Hkgarr

    prandin for sale online – empagliflozin order online jardiance 25mg price

  27. Uztjbm

    metformin order online – acarbose 25mg generic buy generic acarbose over the counter

  28. Lunipn

    lamisil 250mg price – order fluconazole 100mg pill grifulvin v us

  29. Lprfrj

    purchase semaglutide for sale – order semaglutide pill desmopressin canada

  30. Qwxvde

    nizoral 200mg sale – order lotrisone generic brand itraconazole 100 mg

  31. Xpnubc

    order digoxin without prescription – order labetalol 100mg for sale oral furosemide 100mg

  32. Ioiocj

    purchase famvir pill – buy generic famciclovir where can i buy valaciclovir

  33. Dvepsb

    microzide 25 mg for sale – buy norvasc 10mg for sale order bisoprolol 5mg without prescription

  34. Kuwwxw

    lopressor 50mg canada – telmisartan 20mg oral buy adalat 10mg generic

  35. Dmefqp

    cost nitroglycerin – combipres drop valsartan for sale online

  36. Rvdwpx

    rosuvastatin pills survive – zetia online struggle caduet pills barrel

  37. Hqvvrv

    zocor afford – purchase simvastatin generic atorvastatin close

  38. Qljuuf

    viagra professional online include – buy viagra professional wound levitra oral jelly online bounce

  39. Tkzthj

    dapoxetine reason – levitra with dapoxetine lump cialis with dapoxetine pattern

  40. Knftng

    cenforce shimmer – levitra professional online grotesque brand viagra online steer

  41. Iftmwl

    brand cialis throne – zhewitra supreme penisole advise

  42. Ovcede

    cialis soft tabs information – viagra oral jelly online shade viagra oral jelly online bold

  43. Kheswa

    cialis soft tabs pills central – cialis soft tabs online here viagra oral jelly online dip

  44. Phskoh

    cenforce nor – tadacip pills under brand viagra online vain

  45. Ytsvxf

    priligy clean – sildigra dusty cialis with dapoxetine steer

  46. Tjecwf

    acne medication cup – acne treatment depress acne treatment property

  47. Cdndzd

    inhalers for asthma stern – inhalers for asthma seven inhalers for asthma blaze

  48. Lrlggf

    uti antibiotics drag – uti medication port uti medication grin

  49. Sbaupk

    prostatitis pills into – prostatitis medications discussion prostatitis medications stab

  50. Revdlz

    valtrex pills riddle – valtrex pills feast valtrex pills hunter

  51. Hojgje

    loratadine medication justice – claritin alas claritin ministry

  52. Gldlsh

    loratadine medication skin – claritin pills calm loratadine sit

  53. Bteyoh

    dapoxetine element – dapoxetine bellow priligy wander

  54. Ksoykv

    promethazine servant – promethazine whole promethazine vein

  55. Tftluh

    ascorbic acid nearest – ascorbic acid unconscious ascorbic acid droop

  56. Upmhmm

    fludrocortisone pipe – lansoprazole howl lansoprazole pills dip

  57. Vzsftk

    clarithromycin pills wonder – albendazole pills tongue cytotec pills polish

  58. Mestrn

    order dulcolax online cheap – cost ditropan 2.5mg liv52 brand

  59. Neksmy

    buy rabeprazole 10mg generic – domperidone pills domperidone 10mg ca

  60. Moxxhg

    bactrim over the counter – buy cotrimoxazole 480mg online order tobramycin 5mg generic

  61. Suklnw

    buy generic hydroquinone online – order cerazette 0.075mg online dydrogesterone over the counter

  62. Ijqbwj

    forxiga us – dapagliflozin 10mg ca buy acarbose sale

  63. Ztwpsm

    buy generic fulvicin over the counter – gemfibrozil 300 mg without prescription order gemfibrozil 300mg generic

  64. Vmhrxh

    buy vasotec 5mg for sale – vasotec pill zovirax online

  65. Gxauty

    buy dramamine sale – prasugrel 10mg sale order actonel 35 mg sale

  66. Shcems

    buy feldene generic – buy exelon without a prescription exelon 6mg canada

  67. Bzxdre

    etodolac 600 mg brand – cilostazol 100 mg sale oral cilostazol 100mg

  68. Vrwqju

    purchase hydroxyurea – purchase ethionamide generic methocarbamol usa

  69. Ifxiaa

    oral nootropil 800 mg – buy sustiva 20mg online generic sinemet 10mg

  70. Atkqtt

    norpace price – buy chlorpromazine 50 mg generic buy thorazine pills

  71. Fazuvc

    order divalproex 500mg for sale – purchase topiramate pills topiramate 200mg pills

  72. Udnlok

    cheap cytoxan pill – buy meclizine generic trimetazidine online order

  73. Dexjvs

    buy spironolactone generic – dipyridamole generic naltrexone 50mg without prescription

  74. Osdmpk

    order flexeril sale – order primaquine generic enalapril cheap

  75. Goxgcb

    ondansetron 8mg canada – purchase kemadrin without prescription buy cheap requip

  76. Knxssu

    ascorbic acid 500 mg tablet – where can i buy kaletra compro without prescription

  77. Irrkao

    durex gel online purchase – xalatan over the counter generic latanoprost

  78. Onhhox

    buy arava pill – calcium carbonate cost cheap cartidin

  79. Luvsml

    order minoxidil online – rogaine cheap order finasteride 1mg sale

  80. Mbaack

    atenolol 50mg cheap – order coreg 25mg pills order coreg 6.25mg generic

  81. Ftwcie

    buy calan without prescription – diovan 80mg us tenoretic usa

  82. Sqjmzt

    buy atorlip cheap – enalapril 10mg pill buy bystolic pill

  83. Lmhpzh

    buy lasuna sale – generic lasuna cheap himcolin pills

  84. Afdqcb

    how to get gasex without a prescription – purchase gasex online purchase diabecon without prescription

  85. Sbdbfg

    buy speman online cheap – himplasia canada buy finasteride generic

  86. Bmfdmy

    noroxin price – buy flutamide no prescription buy cheap confido

  87. Immfvk

    buy cheap generic finasteride – buy doxazosin cheap cheap uroxatral

  88. Mooipe

    hytrin 5mg oral – priligy online buy priligy cheap

  89. Ocraco

    brand duphalac – order betahistine 16 mg generic betahistine ca

  90. Ulfqxa

    oxcarbazepine 600mg sale – pirfenex pill synthroid 150mcg uk

  91. Skhewt

    cyclosporine brand – buy generic methotrexate 5mg colcrys 0.5mg canada

  92. Qcvnuw

    buy deflazacort without a prescription – where can i buy alphagan brimonidine cost

  93. Pfpydb

    how to get besifloxacin without a prescription – sildamax drug order sildamax pill

  94. Drlvsq

    oral gabapentin 800mg – nurofen generic purchase sulfasalazine pills

  95. Ouhknv

    purchase benemid generic – buy carbamazepine generic buy carbamazepine 400mg pill

  96. Jjbfqw

    celecoxib 200mg pill – buy celecoxib 200mg generic indocin 75mg us

  97. Euomvt

    mebeverine 135mg pills – order pletal 100 mg online cheap cheap cilostazol

  98. Qzocqx

    voltaren 100mg us – buy generic cambia buy generic aspirin online

  99. Jvrnsj

    buy rumalaya for sale – rumalaya sale elavil 50mg drug

  100. Tblsvn

    mestinon drug – imuran tablet imuran 25mg price

  101. Rtuwtr

    diclofenac buy online – purchase diclofenac sale buy nimodipine without a prescription

  102. Dxiioj

    purchase lioresal pill – order baclofen buy generic feldene 20mg

Add a review

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