How to Use a Joystick with Arduino: Wiring and Basic Controls

Поделиться
HTML-код
  • Опубликовано: 9 июл 2024
  • In this PART 1 of our Arduino Joystick series, learn how to connect an analog joystick to an Arduino Uno. I'll guide you through the wiring process and explain how the joystick's X and Y values determine its position. You'll also discover how to use these values to control other Arduino components effectively. From building robots you can directly maneuver to creating interactive games, this tutorial will help you get started with joysticks for your Arduino projects.
    🛠🎨 JOIN Engineering Artists: LIVE WORKSHOPS & COMMUNITY BUILDS ▶︎ racheldebarros.com/community
    🛒 BUILD YOUR OWN Arduino Joystick Project:
    Arduino Uno: amzn.to/4cJrYZu
    KY-023 Joystick Module: amzn.to/3W9pDSa
    Jumper Wires: amzn.to/3zw9bTg
    🎬 VIDEO CHAPTERS: How to Use a Joystick with Arduino Beginner's Guide
    0:00 Welcome
    0:38 How Analog Joysticks Work
    1:54 Joystick Pinout
    2:45 How to Wire a Joystick to Arduino
    3:34 Joystick ADC Values for X & Y Axes
    4:48 Arduino Code: Reading ADC Values from the Joystick
    10:50 Reading Joystick Values from Serial Monitor
    11:37 Matching Joystick Movements to ADC Values
    12: 57 Wrap Up: Controlling Components with a Joystick
    13:10 Join my Community for Live Events & Code!
    💬 Have any questions or want to share your own experiences, tips and advice about using joysticks with Arduino? Drop a comment below - I love hearing from you!
    🔔 If you find this video helpful, please hit that like button 👍 and consider subscribing to my channel for more Arduino/props/robot tutorials, tips, and tricks. Your support helps me create more content like this!
    Some links included here are to affiliate sites. If you purchase something through them, I may earn a small commission - which costs you nothing! I am very grateful for your support when you use my links to make a purchase.
    #arduino #arduinoproject #arduinotutorial #joystick #joystickmodule #arduinocode
  • НаукаНаука

Комментарии • 39

  • @Mr89Falcon
    @Mr89Falcon 4 дня назад +5

    You are such a natural and effective teacher! I am FINALLY understanding Arduino. Thank you SO much!

  • @AM-dn4lk
    @AM-dn4lk 5 дней назад +4

    You are such a great lecturer, tutor and mentor. I need to learn Arduino!

  • @martinaross4042
    @martinaross4042 2 дня назад

    I'm recent college grad, and I really like your channel! Now that I'm out of school, I need little projects to occupy my free time, and your channel has been so helpful for that 😊

  • @ZenHulk
    @ZenHulk 2 дня назад

    I have been using joysticks for 8 yrs and just released there's an x and y next to the vr, wow i feel dumb, so much for that Stanford Engineering degree from 1992. WOW, i always play your videos in my workshop in the background, since i'm very retired now, and i had to go back and see that.

  • @jamesmoon5632
    @jamesmoon5632 5 дней назад +3

    About time you did another arduino lesson! 😂😂

  • @meiowalot7570
    @meiowalot7570 5 дней назад +7

    Best day ever, new Arduino video from Rachel!

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  5 дней назад +4

      Woohoo! 🥳

    • @naseergames
      @naseergames 15 часов назад

      ESP32 HOW TO USE MOUSE AND KEYBOARD ON MOBILE ​@@RachelDeBarrosLive

  • @ByaibStudios
    @ByaibStudios 5 дней назад +2

    This is wonderful. Giving me so many possibilities ❤

  • @scotscheideman9800
    @scotscheideman9800 5 дней назад +2

    I am really enjoying your Arduino video's

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  5 дней назад

      Awesome - let me know if there's any topic you'd like me to cover!

  • @andrewmack4830
    @andrewmack4830 4 дня назад

    Very good. Lotsa detail that I need. Thank you

  • @sandwon
    @sandwon 3 дня назад

    Great job Rachel

  • @user-androandric
    @user-androandric 5 дней назад

    Works like a Swiss watch, thanks for the instructions. 👌

  • @sampamnl.8964
    @sampamnl.8964 5 дней назад

    ขอบคุณมากครับกับสาระดีๆ❤❤❤

  • @zahreddinezairi7363
    @zahreddinezairi7363 5 дней назад +1

    Nice explanation

  • @havardguttormsen104
    @havardguttormsen104 5 дней назад

    Why don't you use VREF to grt an accurate reference for the analogs? As you have it now you will get different analog values if you add some loads to VCC.

  • @brandonshanelittleford3544
    @brandonshanelittleford3544 3 дня назад

    hi there Rachel I want to ask is it possible to add the joystick to a arduino cnc shield to control x and y

  • @WagonLoads
    @WagonLoads 4 дня назад

    I have a RC transmitter with an analog joystick. It has 3 pots.. X, Y, and rotate

  • @DugEphresh
    @DugEphresh 5 дней назад +1

    She is so pretty, awesome tech advise!

  • @DBB-KE5DUO
    @DBB-KE5DUO 4 дня назад

    One of cool parts of the joyknob is that the code can be used on a better joystick, right?

  • @akr1865
    @akr1865 5 дней назад

    Oh joy!

  • @labalade_7791
    @labalade_7791 5 дней назад

    Please Rachel could you experiment with an arduino or raspberry objects recognition from a camera like in modern cars ?😊

  • @noiseguru3981
    @noiseguru3981 4 дня назад

    my project isnt working. Can you come over and take a look at it?

  • @mdrafiqul3358
    @mdrafiqul3358 5 дней назад +1

    😀😀😀😀

  • @africantech5
    @africantech5 3 дня назад

    you do pretty well darling

  • @imacmill
    @imacmill День назад

    What's the matter with your face in the thumbnail?