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

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

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
@meljai93
@meljai93 16 күн бұрын
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!
@Mr89Falcon
@Mr89Falcon 21 күн бұрын
You are such a natural and effective teacher! I am FINALLY understanding Arduino. Thank you SO much!
@jeffnixon8338
@jeffnixon8338 8 күн бұрын
Rachel, you are a gem. You describe everything so well and still inject some warmth and humour. Well done. Jeff in Australia
@AM-dn4lk
@AM-dn4lk 21 күн бұрын
You are such a great lecturer, tutor and mentor. I need to learn Arduino!
@meiowalot7570
@meiowalot7570 22 күн бұрын
Best day ever, new Arduino video from Rachel!
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
Woohoo! 🥳
@naseergames
@naseergames 17 күн бұрын
ESP32 HOW TO USE MOUSE AND KEYBOARD ON MOBILE ​@@RachelDeBarrosLive
@jamesmoon5632
@jamesmoon5632 21 күн бұрын
About time you did another arduino lesson! 😂😂
@martinaross4042
@martinaross4042 19 күн бұрын
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 18 күн бұрын
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.
@clifc6351
@clifc6351 5 күн бұрын
This Turorial is great and so interesting. Thanks again for another smart Arduino programing video.
@scotscheideman9800
@scotscheideman9800 22 күн бұрын
I am really enjoying your Arduino video's
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
Awesome - let me know if there's any topic you'd like me to cover!
@ByaibStudios
@ByaibStudios 21 күн бұрын
This is wonderful. Giving me so many possibilities ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
🥳 Awesome!
@sandwon
@sandwon 20 күн бұрын
Great job Rachel
@zahreddinezairi7363
@zahreddinezairi7363 22 күн бұрын
Nice explanation
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
Thanks and welcome!
@user-androandric
@user-androandric 21 күн бұрын
Works like a Swiss watch, thanks for the instructions. 👌
@andrewmack4830
@andrewmack4830 21 күн бұрын
Very good. Lotsa detail that I need. Thank you
@sampamnl.8964
@sampamnl.8964 22 күн бұрын
ขอบคุณมากครับกับสาระดีๆ❤❤❤
@DugEphresh
@DugEphresh 21 күн бұрын
She is so pretty, awesome tech advise!
@labalade_7791
@labalade_7791 21 күн бұрын
Please Rachel could you experiment with an arduino or raspberry objects recognition from a camera like in modern cars ?😊
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
That sounds like a cool project!
@labalade_7791
@labalade_7791 20 күн бұрын
@@RachelDeBarrosLive ok then go ! 😁
@RegisMichelLeclerc
@RegisMichelLeclerc 16 күн бұрын
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"?
@brandonshanelittleford3544
@brandonshanelittleford3544 20 күн бұрын
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 21 күн бұрын
I have a RC transmitter with an analog joystick. It has 3 pots.. X, Y, and rotate
@DBB-KE5DUO
@DBB-KE5DUO 21 күн бұрын
One of cool parts of the joyknob is that the code can be used on a better joystick, right?
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
Yep indeed! 👍
@havardguttormsen104
@havardguttormsen104 21 күн бұрын
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.
@akr1865
@akr1865 21 күн бұрын
Oh joy!
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
🥳
@noiseguru3981
@noiseguru3981 21 күн бұрын
my project isnt working. Can you come over and take a look at it?
@africantech5
@africantech5 19 күн бұрын
you do pretty well darling
@mdrafiqul3358
@mdrafiqul3358 22 күн бұрын
😀😀😀😀
@RachelDeBarrosLive
@RachelDeBarrosLive 21 күн бұрын
🥳
@mdrafiqul3358
@mdrafiqul3358 11 күн бұрын
thank you
@whizzo94
@whizzo94 13 күн бұрын
Plural of axis is axes 🙂
@imacmill
@imacmill 18 күн бұрын
What's the matter with your face in the thumbnail?
@RachelDeBarrosLive
@RachelDeBarrosLive 18 күн бұрын
I stepped on a Lego 🤣
Control Different LEDs with a Joystick and Arduino
22:22
Rachel De Barros
Рет қаралды 4,5 М.
How to Wire Multiple LEDs: Series vs. Parallel LED Circuits
21:24
Rachel De Barros
Рет қаралды 50 М.
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 455 М.
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 15 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 69 МЛН
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 658 М.
Cheap and easy motor for props
6:02
Brian Benson
Рет қаралды 16 М.
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Рет қаралды 79 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
My New Linear Actuators are SO MUCH BETTER! | PDJ #21
21:03
Harrison Low
Рет қаралды 233 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 6 МЛН
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 1,6 МЛН