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

  Рет қаралды 6,531

Rachel De Barros

Rachel De Barros

Күн бұрын

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.
🔗 Full Tutorial with Code Examples: racheldebarros.com/projects/a...
PART 1: How to Use a Joystick with Arduino - Reading ADC Values: Your're watching it!
PART 2: Control LEDs with a Joystick & Arduino ▶︎ • Control Different LEDs...
PART 3: Control 2 Servos with a Joystick and Arduino (COMING SOON)
PART 4: Control DC Motors with a Joystick and Arduino (COMING SOON)
🛠🎨 JOIN Engineering Artists: LIVE WORKSHOPS & COMMUNITY BUILDS ▶︎ racheldebarros.com/members
🛒 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

Пікірлер: 45
@Mr89Falcon
@Mr89Falcon 16 күн бұрын
You are such a natural and effective teacher! I am FINALLY understanding Arduino. Thank you SO much!
@meljai93
@meljai93 11 күн бұрын
Ma’am…. I have watched sooooo many tutorials on arduino and they’re either soo dry and boring, to fast too slow but this… THIS, is the first time I actually understand and can follow! Can’t wait till the next vid!
@AM-dn4lk
@AM-dn4lk 16 күн бұрын
You are such a great lecturer, tutor and mentor. I need to learn Arduino!
@meiowalot7570
@meiowalot7570 16 күн бұрын
Best day ever, new Arduino video from Rachel!
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
Woohoo! 🥳
@naseergames
@naseergames 12 күн бұрын
ESP32 HOW TO USE MOUSE AND KEYBOARD ON MOBILE ​@@RachelDeBarrosLive
@jeffnixon8338
@jeffnixon8338 2 күн бұрын
Rachel, you are a gem. You describe everything so well and still inject some warmth and humour. Well done. Jeff in Australia
@ZenHulk
@ZenHulk 13 күн бұрын
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 16 күн бұрын
About time you did another arduino lesson! 😂😂
@martinaross4042
@martinaross4042 14 күн бұрын
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 😊
@ByaibStudios
@ByaibStudios 16 күн бұрын
This is wonderful. Giving me so many possibilities ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
🥳 Awesome!
@scotscheideman9800
@scotscheideman9800 16 күн бұрын
I am really enjoying your Arduino video's
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
Awesome - let me know if there's any topic you'd like me to cover!
@sandwon
@sandwon 15 күн бұрын
Great job Rachel
@clifc6351
@clifc6351 41 минут бұрын
This Turorial is great and so interesting. Thanks again for another smart Arduino programing video.
@andrewmack4830
@andrewmack4830 15 күн бұрын
Very good. Lotsa detail that I need. Thank you
@user-androandric
@user-androandric 16 күн бұрын
Works like a Swiss watch, thanks for the instructions. 👌
@sampamnl.8964
@sampamnl.8964 16 күн бұрын
ขอบคุณมากครับกับสาระดีๆ❤❤❤
@zahreddinezairi7363
@zahreddinezairi7363 16 күн бұрын
Nice explanation
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
Thanks and welcome!
@labalade_7791
@labalade_7791 16 күн бұрын
Please Rachel could you experiment with an arduino or raspberry objects recognition from a camera like in modern cars ?😊
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
That sounds like a cool project!
@labalade_7791
@labalade_7791 15 күн бұрын
@@RachelDeBarrosLive ok then go ! 😁
@havardguttormsen104
@havardguttormsen104 16 күн бұрын
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.
@RegisMichelLeclerc
@RegisMichelLeclerc 10 күн бұрын
It is "cleaner" to perform a single "Serial.printf("X: %i | Y: %i | Button: %i ",xVal,yVal,buttonState);". It's not important in this case because you don't really care about timings (you even put a delay(100)!), but the story is slightly different when you're triggering interrupts (especially with the button). By the way, is your button debounced, or is it "raw"?
@DBB-KE5DUO
@DBB-KE5DUO 16 күн бұрын
One of cool parts of the joyknob is that the code can be used on a better joystick, right?
@RachelDeBarrosLive
@RachelDeBarrosLive 15 күн бұрын
Yep indeed! 👍
@brandonshanelittleford3544
@brandonshanelittleford3544 14 күн бұрын
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 16 күн бұрын
I have a RC transmitter with an analog joystick. It has 3 pots.. X, Y, and rotate
@DugEphresh
@DugEphresh 16 күн бұрын
She is so pretty, awesome tech advise!
@akr1865
@akr1865 16 күн бұрын
Oh joy!
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
🥳
@noiseguru3981
@noiseguru3981 16 күн бұрын
my project isnt working. Can you come over and take a look at it?
@africantech5
@africantech5 14 күн бұрын
you do pretty well darling
@mdrafiqul3358
@mdrafiqul3358 16 күн бұрын
😀😀😀😀
@RachelDeBarrosLive
@RachelDeBarrosLive 16 күн бұрын
🥳
@mdrafiqul3358
@mdrafiqul3358 6 күн бұрын
thank you
@whizzo94
@whizzo94 7 күн бұрын
Plural of axis is axes 🙂
@imacmill
@imacmill 13 күн бұрын
What's the matter with your face in the thumbnail?
@RachelDeBarrosLive
@RachelDeBarrosLive 13 күн бұрын
I stepped on a Lego 🤣
Control Different LEDs with a Joystick and Arduino
22:22
Rachel De Barros
Рет қаралды 4,2 М.
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 2,9 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 76 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 608 М.
Cheap and easy motor for props
6:02
Brian Benson
Рет қаралды 16 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
How to Wire Multiple LEDs: Series vs. Parallel LED Circuits
21:24
Rachel De Barros
Рет қаралды 49 М.
I built a rover using a Raspberry Pi & Arduino
16:56
Lukas Deem
Рет қаралды 170 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 8 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,1 МЛН
СТРАШНЫЙ ВИРУС НА МАКБУК
0:39
Кринжовый чел
Рет қаралды 1,4 МЛН
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 982 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,8 МЛН
EXEED VX 2024: Не өзгерді?
9:06
Oljas Oqas
Рет қаралды 45 М.