Joystick Module

(54 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. Vmvmvs

    order dostinex 0.25mg – buy generic cabgolin online order alesse sale

  2. Grobend

    Similarly, neurons in the lateral nucleus i priligy amazon uk

  3. Wlfmpy

    正規品プレドニン錠の正しい処方 – г‚ўгѓўг‚­г‚·гѓ« жµ·е¤–йЂљиІ© アジスロマイシン жµ·е¤–йЂљиІ©

  4. Fdypch

    正規品シルデナフィル錠の正しい処方 – г‚їгѓЂгѓ©гѓ•г‚Јгѓ«гЃ®йЈІгЃїж–№гЃЁеЉ№жћњ г‚їгѓЂгѓ©гѓ•г‚Јгѓ« е‰ЇдЅњз”Ё

  5. Ytdape

    гѓ—гѓ¬гѓ‰гѓ‹гѓійЊ  5 mg еј·гЃ• – アキュテイン通販 正規品アキュテイン錠の正しい処方

  6. cytotec online

    html losartana potssica 100mg hidroclorotiazida 25mg Without the silly bike rack strapped to the back, the new 4 Series looks very good indeed how to buy cytotec without prescription

  7. order generic cytotec pill

    For anyone that has had trouble getting pregnant I never did until we were trying this time, GET THIS TEA cytotec 200 Many researchers have emphasized that the duration of antibiotic therapy should be based on the patient s individual condition and the extent of the lesions 4, 5, 15

  8. Stxkvp

    eriacta snap – sildigra everybody forzest frank

  9. Uanvip

    valif pills scowl – oral sinemet 10mg cheap sinemet

  10. Klsaqp

    valif bounce – secnidazole uk buy sinemet no prescription

  11. Svqkkx

    crixivan over the counter – finasteride cheap order cheap emulgel

  12. Eijuch

    phenergan pills – promethazine sale buy lincocin for sale

  13. Nwrkcs

    order modafinil pills – order cefadroxil 250mg combivir order online

  14. Eayoem

    stromectol tablets buy online – order tegretol 200mg online cheap carbamazepine price

  15. Wzjqws

    buy deltasone 40mg generic – nateglinide drug order capoten 25 mg pills

  16. Hfnpdz

    buy cheap prednisone – nateglinide usa buy captopril 25mg generic

  17. Rjvysn

    cost isotretinoin 40mg – how to get zyvox without a prescription buy linezolid 600mg online cheap

  18. Stlvye

    buy amoxil tablets – combivent 100 mcg uk combivent pills

  19. Vvjamf

    purchase zithromax sale – where can i buy azithromycin nebivolol 5mg for sale

  20. Williemae

    Greaat info. Lucky mme I camke across our blog bby chance (stumbleupon).
    I have bookmarked itt forr later!

    Check out mmy wweb page – javsafari.com

  21. Katherina

    Article writing is also a fun, iff you bbe acquainted with thuen you ccan write otherwise it is difficult to write.

    Here is myy site … xxxkernel.com

  22. Zjuqex

    order prednisolone 10mg generic – buy progesterone no prescription buy progesterone online cheap

  23. Cbyvzh

    buy neurontin 600mg pills – neurontin 800mg canada itraconazole 100mg cost

  24. Fzmlbz

    generic lasix 40mg – nootropil sale order betamethasone 20 gm creams

  25. Cycqej

    clavulanate for sale – buy nizoral 200 mg generic buy cymbalta

  26. Vzbxka

    doxycycline usa – ventolin inhalator medication glipizide drug

  27. Hcwhcs

    buy augmentin 375mg pill – how to get augmentin without a prescription cymbalta for sale

  28. Binarl

    semaglutide us – semaglutide 14mg price periactin 4mg price

  29. Xwspvk

    tizanidine online – order microzide 25 mg sale brand microzide 25 mg

  30. Gkauyy

    generic tadalafil – tadalafil 40mg generic oral viagra 100mg

  31. Rkeegu

    viagra 50mg ca – purchase viagra generic tadalafil 40mg canada

  32. Pgjrju

    buy lipitor 80mg – order zestril 5mg lisinopril 2.5mg pills

  33. Rlgwat

    buy generic cenforce over the counter – generic aralen 250mg glucophage 1000mg generic

  34. Nyzvqv

    order prilosec generic – metoprolol order online order tenormin without prescription

  35. Npsikq

    depo-medrol pill – lyrica 150mg without prescription order aristocort 4mg online cheap

  36. Jtwdvl

    cost desloratadine 5mg – buy priligy 60mg pill priligy 90mg tablet

  37. Zhjpox

    generic misoprostol – diltiazem 180mg ca diltiazem ca

  38. Tmvoap

    cheap zovirax – buy crestor 10mg online cheap rosuvastatin uk

  39. Isbfia

    purchase domperidone without prescription – tetracycline us cyclobenzaprine brand

  40. Hnpeyb

    buy motilium 10mg for sale – purchase tetracycline flexeril medication

  41. Nrwsgp

    buy warfarin 2mg online cheap – reglan 20mg pill losartan 50mg us

  42. Ytrinu

    oral levaquin – oral zantac buy generic zantac 150mg

  43. Frzrpt

    order nexium 20mg – order sumatriptan 50mg without prescription sumatriptan order

  44. Cdvcfe

    cost meloxicam 15mg – celecoxib order order tamsulosin 0.4mg without prescription

  45. Basil

    I’m gone to tell my little brother, that he should also visit this
    weblog on regular basis to take updated from hottest gossip.

    Look into my website … nordvpn coupons inspiresensation

  46. Emelia

    I think the admin of this web site is really working hard
    for his web site, as here every material is quality based information.

    Have a look at my blog – nordvpn coupons inspiresensation

  47. Geoffrey

    Hi there, just became aware of your blog through Google,
    and found that it is really informative. I am going to watch out
    for brussels. I’ll be grateful if you continue this in future.
    Numerous people will be benefited from your writing.
    Cheers!

    Look at my web blog: nordvpn coupons Inspiresensation (shorter.me)

  48. Pat

    350fairfax nordvpn cashback
    Highly energetic blog, I liked that bit. Will there be
    a part 2?

  49. 98bf8

    provigil 200mg oral modafinil where to buy order provigil 200mg sale buy generic provigil over the counter provigil for sale order modafinil 200mg sale modafinil 100mg drug

  50. cialis tablet

    This is the big-hearted of criticism I in fact appreciate.

  51. buy generic flagyl over the counter

    More posts like this would persuade the online elbow-room more useful.

  52. xa7hx

    order zithromax 500mg online – flagyl 200mg pill order metronidazole 200mg pill

  53. ncesx

    buy generic domperidone – tetracycline 250mg usa brand flexeril 15mg

  54. rz68w

    cost propranolol – buy plavix paypal order methotrexate 5mg generic

Add a review

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