Arduino Tutorial 32: Understanding and Using Joysticks in a Project
HTML-код
- Опубликовано: 30 июл 2024
- You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this lesson we learn how to incorporate a Joystick into your arduino project. We show how to connect the joystick and how to program it. A joystick can be thought of as two potentiometers which can work together to control a variety of devices. The joystick also has a simple on off switch.
You can get the kit I am using for this series at the following link:
amzn.to/2I7N4Ek
Also, you can get nicer servos than the ones in the Elegoo kit here. These are the good ones I use in most of my projects, and will .
amzn.to/2Ix8ATa
Follow along on our WEB site:
toptechboy.com/arduino-tutori...
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
#Arduino Наука
"Indigo" i will watch your all arduino lessons as long as you make
AMEN! They are amazing!
indigo please protect this good man, he is producing some of the best future engineers in the world
Serial.println ("INDIGO");
Serial.println ("Thank you sir! I love your lessons");
We are using your tutorials for our Computing lessons (High school ENGLAND) and are really enjoying them so far. We have watched up to lesson 32. BTW INDIGO!!! Thank you Paul McWhorter! From Emmy. Year 8 England.
EXCELLENT! Keep going, and then when you are done with these lessons think about taking the Raspberry Pi Pico W classes. Keep learning, and you will go far! Well done. Tell your classmates hello for me.
@@paulmcwhorter"indigo"
I didn't take that subtle hint from the last video to invest in more servos as seriously as it is now clear that I should have! I've got a couple more on the way. What I did do was hook up a red and yellow LED (never green, that's for special occasions!) and brighten and dim them along the X and Y axes. Then I got the idea to hook up an RGB LED to play with blending red and green similarly. I thought about connecting the blue line up to the switch but haven't spent the mental capital to figure out how to handle the pull up resistor function yet.
"Indigo" - Engineer here. I got my dad hooked on Arduino, and he turned me on to your videos. Great stuff!
Indigo !!! Thanks Paul for a great series. I’m a 76 year old retired UK citizen who used to be in IT in yesteryear. I have to confess that the toggle switch logic tested my brain to exhaustion but I think I got there in the end. As a keen aero modeller I’m looking forward to the next servo challenge. Thanks for series Paul.
Steve Allsop
indigo is the bestest boy! So I'm a little late to the party but I've been following along so far. Have to say you are a really good teacher. From getting concepts across to informing on why and what is the cause and effect of each aspect of the different components. Thank you for all these videos on so many different systems. And still putting out new content. I have a friend who got your kit and showed it to me. I had mine ordered the next paycheck, lol. So we've been taking this class together. Been a long time since I've actually put some effort into learning something new. So again thank you, so, so much!! keep up the great work in all you're into! Cheers!
Indigo is your faithful guard. Always appreciate your guidance.❤
Thank you so much for these tutorials! I recently got a job programming PLC's and visualizing circuitry and watching you explain how to solve problems has been massively helpful. Hope and Indigo are doing well!
Glad I could help!
Hello Paul! Your lessons are great! Not only I watch them till the end(secret word:Indigo) but I also do the assignments.
Thank you for the lessons. You explain them in a way anyone can understand. Thanks to you I was able to clarify many of the doubts that tormented me for months.
Indigo! Always watch to the end. New to your tutorials. Only been watching for a couple of weeks. Trying to go in order. You are a good teacher and make most of the material interesting. The math is tough for me so I struggle through that. Last time I did any math more complicated than balancing the check book was high school algebra 55 years ago. But I plan on sticking with it and then move on to build the robot car in your next series. Thanks for teaching. God bless.
This was a good opportunity to build my first wiring harness. I cut the indigo wire a little shorter than the others but it all worked out.
For some odd reason I keep using the Indigo wire to connect to the servo motor - great tutorial. I'm a software developer who wants to learn about the micro controllers, and I'm loving this series. Keep up the great work!
Indigo! Hi Paul, I'm working through your videos and watch them all right to the end. Fantastic work, thank you Sir
Another great tutorial.
As I always say as I’m pushing the wires into the breadboard “In de go” (sorry about that)
Watching these videos to the end just as loyal as Indigo!
Indigo. I have watched the first 32 from start to finish and followed along with everything. I had no Arduino experience prior, but I am learning. I have a hard time knowing how to complete the assignments on my own. I will be picking up the reminder of this series in a couple weeks. Thank you for everything so far and Merry Christmas to you and your family.
I loved the lesson, always wanted to know how joysticks work. Understood everything really well, and Indigo is a real cute dog. Thank you for this great series!
If you use the Serial Plotter instead of the Serial Monitor and your x and y values are getting graphed in blue and red you can rapidly mix them to make a very light indigo.
"Indigo" - Great lesson again, Paul. Thanks a lot.
Indigo! Thanks for taking the time to make these lessons. I've been following them in order as well as attempting all homework assignments.
You can do it!
Paul, LOVE the videos. Retired EE after 40 years, working for DoD. My Rat Terriers Cooper and Blue watch the videos with me and barked at Indigo. GREAT series, and as other have said, I wish my college professors had been as down to earth as you are! I do the homework on my own, brings back memories of the old IBM 029 Punch machines and System 360/370 from college. Great to have instant feedback now on the compilation results instead of waiting two hours only to find a typo. This is without a doubt, the best $35.00 I have EVER spent! Thank You!! ---Ace
I could rave about this lesson until I was “blue in the face” (or should I say “Indigo in the face”?)
Thanks Paul!
Indigo... new viewer, I very much enjoy your lessons 👍👍
I couldn't think of a joke.
Indigo.
Hi Paul, I have to congratulate you. Your "new and improved series of tutorials" is the best introduction to programing I found around!!
Even though you prepared this material some years ago, I hope you still reading your student comments.
I believe you teaching of math and coding is the perfect mix, you make sense of those formulas nobody takes the time to explain.
Great job!!
Great to hear!
Indigo. I'm watching and love your material. I've learned a lot and plan on going through the whole series. Thank you for these.
"My name is "Indigo" Montoya, you killed my father, prepare to die!" - (Inigo Montoya is a fictional character in William Goldman's 1973 novel The Princess Bride)
INDIGO. Great lectures and enjoying every lesson. Thank you
while(lesson=awesome)
Serial.print("Indigo")
....
"Indigo"
*lesson==awesome* and you forgot those important semi colons
😂
I watch all of your videos to the end then review them. I have all of my lessons printed out to refer to.
Thank you
Indigo!! BOOM!! Thanks Mr Paul for the clear, practical and educative tutorials.
Secret word: Indigo. Paul, your Arduino tutorials are the best. I recently discovered these tutorials and am going through all of them. I do the homework assignments and have a lot of fun writing Python code to utilize what I have learned. I'm somewhat proficient in Python and C so the programming is simple to me. I'm very excited about learning to build circuits.
I really love your "under the hood" explanations. I wanted to do mechatronics engineering when I was in school, but ended up doing software development instead. I like the software world, but electronics fascinates me a bit more. Thank you for the most excellent master classes here on RUclips. Also, indigo.
INDIGO! This was another cool tutorial. You have joined the pantheon of my favorite tutors along with Bucky Roberts.
Indigo! I've watched every one of your videos from 1 to 32 so far all the way through. I started on Saturday, never touched an Arduino before and I'm having a blast making all of these projects. It looks like I'm almost half way through your video series, I'll let you know when I get to video 68.
Hello Paul,
Thank you for this tremendous lesson; I had a lot of fun watching it. Indigo is one of my favourite colours too.
INDIGO!!!!
Thank you Paul, I am absolutely in love with your lessons.
My pleasure!
Hi Paul, I watch every episode to the end and watch again if I don't understand anything. Good boy Indigo. Your tutorials are a great way to learn. Thank you Paul and Happy New Year
Indigo! always watch to the end!
I did jump ahead to lesson 34 prior to 32. Completely understand how your using the internal pullup resistor in projects.
I watch your video over and over again. Thank you.
I watch all your videos to the eNd! you are an inspiration to me anD I can not thank you enouGh for all that you dO for us here on youtube! Thank you Paul and God bless!
Indigo, got my kit and built it along with the video. Great videos thanks Paul.
Indigo!
Another day, another Paul's Tutorial :)). At the moment watching your tutorials has become a part of my daily evening routine. I have also begone to start my days with black coffee. With Ice only, no milk, no sugar, no sweetner packgages and no vodka ;) added haha. Keep up the great work! I am looking forward to your next videos!
Paul MchWorter , you're really wonderful I love your lessons and your way of teaching is extremely interesting I got lots of benefits , thank u very much I really really appreciated
I have watched other videos on this topic, but you by far are the best, thank you!!
Wow, thanks!
Indigo. Re-watching the series while I wait for the wifi stuff to come out in the new R4 wifi series. Great stuff. Looking forward to more. Thanks again.
Indigo!
I have always been curious about the joysticks. Especially, when the one on PS controller goes bad. Now I know the exact working tech behind it, so no more banging the gamepad. Thank you so much :)
Paul thank you for all the great tutorials. The lessons from you are an enjoyment. All good to you, stay save and Indigooooooo!
Glad you like them!
Thanks Paul, I’ve learned a lot watching your arduino video series so far, you really are a most wonderful teacher. I hope indigo is still doing great!
Many thanks!
"indigo". This was the first video I watched from you. I loved it.
Yes I saw Indigo. Thank you Paul for taking the time to do these videos!
My pleasure!
Thanks for the 'most wonderful' tutorials!!! You are an amazing teacher, and I wish other RUclipsrs would post such great videos. Really glad there are 36 more vids, and I always watch to the end. These videos are a great opportunity for me to learn Arduino before i learn C#. But i wish the recommended servos came in a GLORIOUS indigo color like the Elegoo ones...
(PS I am NOT carole this is my mom's account)
Paul, thank you so much for your most excellent lessons. I am following along and even doing/attempting the homework on my own. I have been doing 2 or 3 lessons each night, and can't wait until after dinner to get to computer and do them. Oh yea, Indigo.
Wonderful!
Secret word for today was Indigo. I watch all you videos till the end, I like them so much!
Glad you like them!
Indigo! It is super fun to try out these tutorials. A big thank you to Paul. 😃
Have fun!
Thanks for the lesson. Joysticks made easy! Indigo is the colour of your energy.
Working my way through these videos and finding them so useful. The theory is proving so much more understandable than it ever did in class many moons ago. Have to say though Indigo seems an unusual name for a dog.
Indigo!! I always watch to the end. Thank you Paul. You are an excellent teacher. Happy New Year.
Happy new year!
Indigo! Loving every minute of each lesson!
I watch all of your videos all the way through. Sometimes twice. INDIGO!
Indigo. Thanks Paul for all your lessons. Keep your lessons coming.
Yes , watched video to the end and still enjoy your videos thank you very much.
Love the creativity of using joystick in project! Amazing!
I love the videos. I do watch and do the lessons as home work. I'm learning so much. INDIGO!!
Wonderful!
Indigo, here you go!
Really love your videos Mr. McWhorter :-)
God bless
"Indigo" is the secret word. I really love your lectures. You are the best teacher.
Indigo. Paul is the greatest teacher/ trainer I have come across.
Indigo - another great tutorial Paul - good fun (when it goes well). Learning heaps and the more practice I get the better I get at it - strange that!!!!
I dont think there is a single one of us that dont watch your videos to the end Paul! Great stuff consistantly ! indigo all the way!
Another great video! And yes I watched to the end ("indigo"). Thank you for creating this helpful course!
Watched all the way to the end INDIGO!
I added the spaces for the formatting right from the go.
I always watch until the end of the videos. Loving the arduino Series. Secret word : Indigo
Indigo! Loving your lessons. I'm a teacher and you sir are one of the best!
Of course we watch all of your videos to the end Mr Paul and we really appreciate your hard work and your amazing tutorials. I cannot understand why there are always some dislikes in your videos. You really dont deserve them! I am not gonna say Indigo to prove that i watched the whole video, but I just did😉😁.Love you!!!
Awesome! Thank you!
Indigo. I always watch to the end. I'm really enjoying following along with my Elegoo kit, but need all the help I can get !
indigo!! thank you for educated us with these wonderful easy to understand videos.
really happy to learn with teacher like you , easy to understand and no question mark left at the end of each tutorial
"in the go " or indigo hade a nice owner he will never let you down 😂
bi thanks from Africa too.
I'm "indigo" to all your tutorials (till the end) in order to learn Arduino. Thank You, Paul
Excellent!
I really enjoy this series. Thanks Paul!
Glad to hear it!
I used to play my playstation using a controller and now I'm learning how its little joystick works, and i have a great teacher who teaches stuff without complicating the topic and is easy to understand and learn.
Dear Paul, Thanks for the tutorial. I have gone through the tutorial till the end. The word indigo was a great selection.
I watch everything to the indigo!
ordered new servos
Hi Paul! I wired up te joystick before the lesson started. Wrote the program tested it and it worked. then watch you do it. and changed the switch to HIGH not LOW. then i hooked up the servo and wrote te program to move the servo in X. switched X to Y and did the same thing( copy paste) to move Y. downloaded the program and BOOOOOM!!!. then watched the video till the end, the homework was already done. Great stuff! (Indigo,gogogogo !)
"INDIGO", another great one Paul, Thank you for these wonderful lessons!!
I always watch to the end; we'd be crazy not to. Love your lawn, and Indigo!
As a guy who grew up playing a lot of video games I really enjoyed learning how the joysticks actually work. The analogy to a potentiometer is perfect! Love this series and am very excited to start controlling physical outputs with the joystick. Can't wait for the next time I sit down and learn to control the servo with the joystick
The secret word is indigo
Very cool!
indigo - I watched 28-32 beginning to end. Enjoying your videos, sense of humor. I have to have some sweetner in my coffee. I don't like iced coffee, but room temp cofeefee.
Hey Paul Amazing Lessons. Watching them from begining to end and building all the projects. Currently just finished the INDIGO lesson. The lessons are spot on. The right length and clearly explained. Thank you. I will be going right to the end. (and further).
Fantastic!
Indigo. Thank you Paul. It is my second day but I have watched up to 32 videos. Great content.
Great job!
Indigo!! Thanks Paul, you are a great teacher. These are wonderful tutorials, I am learning a lot.
Happy to hear that!
Enjoyed the Indigo Joystick lesson! Thanks.
Indigo!!! Thank you so much for all the work you put into this. God bless you!!
And my God abundantly bless you as well.
Indigo. Till today working of joystick was a mystery for me, now solved. thanks a lot.
Indigo Paul. A brilliant set of lectures. Thanks so much.
Glad you like them!
INDIGO, what an amazing dog. Thanks for these tutorials, you're empowering the next generation of engineers .
Glad you like them!
Excellent lessons, thanks Paul and Indigo!
Glad you like them!
Indigo, I really enjoy watching these videos. I am learning a lot thank you very much for making them.
Happy to hear that!
omg I love Indigo so much, what a cutie!! Thank you for these lessons 🙂
Hahahahaha!!!
Indigo doesn't seem to be stressed!
That's fantastic!!!
I hope it helps you in your precious work in Africa, Paul!
I love your tutorials !! very clear and detailed. A real reference. Humm, I prefer black tea. A kiss to "Indigo". Currently, i'm trying to pair two steppers with one joystick. It's not very stable, but with your tutorials, I'll get there.