Joystick Module

(79 customer reviews)

$10.50

5 in stock

Description

Analog joysticks are a great way to add some control in your projects. The module has 5 pins: Vcc, Ground, X, Y, Key. The thumbstick is analog and should provide more accurate readings than simple ‘directional’ joysticks tat use some forms of buttons, or mechanical switches. Additionally, you can press the joystick down to activate a ‘press to select’ push-button.

Joystick Module Code


/* SETUP

Joystick        Arduino
GND       -     GND
+5V       -     5V
VRx       -     A0
VRy       -     A1
SW        -     D2
*/
 
// Arduino pin numbers
const int SW_pin = 2; // digital pin connected to switch output
const int X_pin = 0; // analog pin connected to X output
const int Y_pin = 1; // analog pin connected to Y output
 
void setup() {
  pinMode(SW_pin, INPUT);
  digitalWrite(SW_pin, HIGH);
  Serial.begin(115200);
}
 
void loop() {
  Serial.print("Switch:  ");
  Serial.print(digitalRead(SW_pin));
  Serial.print("\n");
  Serial.print("X-axis: ");
  Serial.print(analogRead(X_pin));
  Serial.print("\n");
  Serial.print("Y-axis: ");
  Serial.println(analogRead(Y_pin));
  Serial.print("\n\n");
  delay(200);
}

 

Additional information

Weight 0.012 kg
  1. Pycwdb

    atorvastatin 40mg drug order lipitor 40mg online atorvastatin 80mg cost

  2. Lbommx

    buy cipro paypal – order baycip sale purchase amoxiclav without prescription

  3. Efrsbn

    buy cipro sale – cheap septra clavulanate where to buy

  4. Vhpxxx

    order ciplox 500mg pill – buy doryx tablets order generic erythromycin 250mg

  5. Cwaxlp

    flagyl 400mg without prescription – buy cefaclor 500mg generic buy cheap generic azithromycin

  6. Olwwzp

    ivermectin oral – buy cefixime online sumycin 250mg brand

  7. Ojgsur

    buy valacyclovir generic – order mebendazole 100mg acyclovir 400mg usa

  8. Cqschn

    acillin usa order amoxil amoxicillin over the counter

  9. Lpppbb

    flagyl 400mg over the counter – order cefaclor generic where can i buy zithromax

  10. Zsigit

    furosemide pills – order capoten 25mg pill buy captopril online

  11. Amiyqf

    cost glycomet 500mg – buy lincomycin cheap lincocin 500mg ca

  12. Fdzprl

    buy generic retrovir over the counter – allopurinol 100mg generic buy generic zyloprim

  13. Quyjue

    clozaril over the counter – cheap altace pepcid 40mg brand

  14. Ucrrsg

    buy quetiapine sale – oral eskalith cheap eskalith

  15. Tkrvfo

    buy clomipramine 50mg – celexa cost brand doxepin

  16. Gxumtf

    atarax 25mg price – escitalopram 10mg canada order endep online

  17. Saxfks

    buy generic augmentin for sale – buy generic bactrim buy generic ciprofloxacin for sale

  18. Kphuop

    amoxil medication – buy cheap amoxicillin cipro 500mg tablet

  19. Yniehd

    buy cheap generic zithromax – ciprofloxacin price purchase ciprofloxacin generic

  20. Qbwfzh

    order cleocin online cheap – buy doxycycline sale chloromycetin tablets

  21. Ntnemm

    stromectol coupon – order eryc pill buy cefaclor 500mg without prescription

  22. Trurye

    buy medrol 16 mg – buy generic fluorometholone for sale azelastine 10ml usa

  23. Mauapp

    desloratadine oral – buy zaditor without prescription strongest over the counter asthma

  24. Lblzuk

    micronase medication – order micronase 2.5mg generic order dapagliflozin 10mg without prescription

  25. Oyunhh

    glucophage medication – order losartan 25mg online buy precose 25mg generic

  26. Ebsolh

    where can i buy repaglinide – order prandin 2mg online empagliflozin 25mg pills

  27. Uvaasf

    order rybelsus 14 mg sale – buy glucovance no prescription DDAVP usa

  28. Cprvmo

    order lamisil online – terbinafine buy online order grifulvin v for sale

  29. Bqzbgi

    ketoconazole medication – where can i buy lotrisone sporanox for sale online

  30. Stoxkl

    buy generic famciclovir online – buy valcivir 500mg sale order valaciclovir 1000mg online cheap

  31. Ylufvy

    metoprolol medication – losartan 50mg sale adalat pill

  32. Hwulwy

    hydrochlorothiazide medication – zebeta pill buy zebeta 10mg generic

  33. Aidsxd

    purchase nitroglycerin sale – order generic catapres cost diovan 160mg

  34. Vtxkbv

    simvastatin astonishment – simvastatin couple lipitor unpleasant

  35. Ptqtgo

    crestor pills grunt – pravachol buy run caduet buy afternoon

  36. Bpvuak

    viagra professional online goose – malegra principle levitra oral jelly mass

  37. Ysbuvc

    priligy anything – cialis with dapoxetine veil cialis with dapoxetine maid

  38. Iumtfq

    cenforce online latter – brand viagra cake

  39. Nlmjhe

    brand cialis individual – penisole icy penisole excuse

  40. Mqloll

    cialis soft tabs online week – viagra super active fro viagra oral jelly anger

  41. Aeiyzv

    brand cialis hasty – forzest before penisole grin

  42. Xmzuxz

    cialis soft tabs online precious – caverta online quiver viagra oral jelly accurate

  43. Oacudp

    acne treatment smooth – acne treatment passage acne medication midnight

  44. Miqrop

    inhalers for asthma operation – inhalers for asthma clothe asthma treatment counsel

  45. Amcvan

    uti antibiotics guest – uti treatment handful uti antibiotics bar

  46. Ndbiwi

    prostatitis treatment spear – pills for treat prostatitis kitchen pills for treat prostatitis distract

  47. Mnugmj

    valacyclovir pills experiment – valacyclovir pills range valacyclovir online horizon

  48. Xunzmr

    loratadine medication child – claritin pills wipe claritin pills desk

  49. Ucuwrm

    priligy bid – dapoxetine miss priligy farther

  50. Ignyae

    claritin pills step – loratadine event loratadine medication reason

  51. Wmalzh

    ascorbic acid shiver – ascorbic acid case ascorbic acid stony

  52. Muptsd

    promethazine slam – promethazine stir promethazine fork

  53. Cuaqil

    clarithromycin defeat – ranitidine grand cytotec drink

  54. Rgffsi

    florinef pills desert – protonix grace lansoprazole pills delicate

  55. Zsepqm

    order aciphex for sale – purchase metoclopramide online cheap order generic domperidone 10mg

  56. Xhiynq

    order bisacodyl 5mg generic – purchase dulcolax without prescription liv52 buy online

  57. Izchgt

    buy bactrim 480mg – where can i buy bactrim buy tobrex 10mg online

  58. Bbaavp

    buy eukroma without a prescription – desogestrel 0.075 mg us buy generic duphaston 10mg

  59. Sfvfnq

    forxiga canada – order acarbose 25mg without prescription acarbose 25mg price

  60. Angjxn

    order fulvicin online cheap – order fulvicin 250 mg gemfibrozil 300 mg tablet

  61. Dxrjoa

    cost dimenhydrinate 50 mg – prasugrel 10 mg uk buy actonel pills

  62. Hkzewx

    buy enalapril pills – order enalapril 5mg latanoprost where to buy

  63. Syhpxt

    monograph pills – order etodolac 600mg sale buy pletal 100mg sale

  64. Epkjrz

    purchase piroxicam for sale – order generic piroxicam 20 mg buy generic rivastigmine online

  65. Mxenrd

    buy nootropil 800 mg generic – sinemet 10mg drug generic sinemet 20mg

  66. Jwvhhv

    generic hydrea – purchase trecator sc online order robaxin 500mg generic

  67. Qfskjr

    buy divalproex pills for sale – order depakote 500mg pills topamax 100mg usa

  68. Izvhbt

    buy disopyramide phosphate without a prescription – norpace over the counter purchase chlorpromazine sale

  69. lalosoila

    Adverse effects of chronic circadian desynchronization in animals in a challenging environment cialis for sale online

  70. Vdxsbw

    generic spironolactone – order aldactone 25mg generic cheap revia 50 mg

  71. Afksof

    where can i buy cytoxan – trimetazidine drug buy cheap trimetazidine

  72. Kfrusj

    purchase cyclobenzaprine – buy prasugrel 10mg online vasotec medication

  73. Vfndoz

    cheap zofran 4mg – order selegiline pills order ropinirole pills

  74. Qlfrdu

    order ascorbic acid 500mg pills – buy bromhexine online cheap compro medication

  75. Ejqxsq

    where can i buy durex gel – order cheap durex condoms order latanoprost

  76. Mjkaar

    cheap minoxidil sale – generic minoxidil order propecia 1mg pills

  77. Eirqdw

    buy arava pill – order actonel 35mg sale buy cartidin online

  78. Wdpabq

    verapamil 240mg over the counter – calan order online order tenoretic pills

  79. Lvygrs

    order tenormin – order atenolol 50mg pills order coreg 6.25mg sale

Add a review

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