Тёмный

5 AXIS ANALOG JOYSTICK GAME CONTROLLER 

amstudio
Подписаться 221 тыс.
Просмотров 154 тыс.
50% 1

How to setup DIY analog 5 Axis Arduino joystick controller for simulator games. Can be used for pedals, hand controls, handbrake or flight sim applications. Using a breadboard is a great way to prototype projects without soldering.
PARTS
Arduino bit.ly/2qZBv9P
Wires bit.ly/3Jukf4b
Pots ebay.us/n2pUEB
Board bit.ly/3zrlTin
This site contains affiliate links for which I may be compensated
Library bit.ly/2Hsl9BC
Sketch bit.ly/2vR9Bm6
Thank you for watching, all questions are welcome.
Want a tutorial or project built, leave suggestions in the comments.
Share the video with a friend who would like this!
AMSTUDIO channel for other DIY projects.
/ @amstudioprojects
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 254   
@tranceonline
@tranceonline Год назад
Thank you very much for your simple yet perfect tutorial. I was building 3D-Printed Pedals and couldn't get them to work. I took your sketch and cut it for 3 Axis, now they work perfectly! Thank you very much!
@JSRCU13
@JSRCU13 Год назад
i love you bro thank you soo much you dont know how long i have been trying to make a steering wheel on a budget and how many videos i have been through really really thank you i am subbing
@privelevenbestaatniet6739
@privelevenbestaatniet6739 5 лет назад
This is perfect for fine tuning and strafe landing big ships in star citizen . Thanks . I gonne make a stick of it
@redmerbootsma9375
@redmerbootsma9375 4 года назад
Made this with 3 load cell amps for my DIY sim race pedals. Calibrated the axis to the pedals with the code, works a treat, thanks !
@CarlosRCastro
@CarlosRCastro 4 года назад
and it can be done with two potentiometers and a load cell?
@redmerbootsma9375
@redmerbootsma9375 4 года назад
@@CarlosRCastro yes no problem
@banditfishing1558
@banditfishing1558 2 года назад
Can this sketch work with just 1 potentiometer? I’m making my own set of pedals and only need 1 potentiometer for throttle
@Arthur00OO892
@Arthur00OO892 Год назад
@@banditfishing1558 yes you can just find some tutorials on the internet
@emzar-hy8pk
@emzar-hy8pk 4 месяца назад
when I run joystick program to turn arduino to joystick itt fails everytime and i can't make it, why?
@eduardorochin7601
@eduardorochin7601 6 лет назад
It would be amazing if you some how came up with a DIY racing wheel, that would be the best, love your content
@JP-dj2ro
@JP-dj2ro 4 года назад
Awesome. Thank you. I am going to try and build a train simulator controller
@Rodrigo-rd1
@Rodrigo-rd1 6 лет назад
Nice vid man. VIDEO SUGGESTION could you make a throttle for flight sim, or a very big button box with leds to show when things are on and a small screen. Ps: you dont need to do it only if you want to
@PaddyPatrone
@PaddyPatrone 9 месяцев назад
Awesome, this helped a lot. Thank you!
@yordieggelen4007
@yordieggelen4007 6 лет назад
Love all of your "How To" videos!
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks Yordi!
@delta22471
@delta22471 3 года назад
It's still the best tutorial I can find in 2021!
@burnoutcycle
@burnoutcycle 6 лет назад
Thanks for the help !!!! Fantastic video !!! Excellent communication
@mariohernandez5147
@mariohernandez5147 6 лет назад
Low cost direct drive wheel as feel vr
@TheJonnyTauntonShow
@TheJonnyTauntonShow 6 лет назад
I'd love to see a cheap DIY direct drive build
@hamzterix
@hamzterix 6 лет назад
Yes!!!!
@teemupiiroinen9555
@teemupiiroinen9555 6 лет назад
That would be nice but it probaply wouldn't be that simple =(
@DxBang3D
@DxBang3D Год назад
I would love to see you fly with this controller...
@WolfenIII
@WolfenIII 4 года назад
thanks man! Nice tutorial, easy to understand and straight to the point! btw, how can be done to have the axis X and Y instead of the rotation using 2 potencimeters? :o is there any difference from this besides the number of parts and placement?
@walkie4166
@walkie4166 6 лет назад
The master of DIY. Can you make a video on how to make an F1 style clutch paddle?
@lazar2175
@lazar2175 5 лет назад
F1 uses sequential shifters eliminating the use of clutch while driving,but Mercedes has added a clutch paddle on their 2017 F1 car. I don't see many games having support for it,so it is best to leave it alone.
@lykabraine2766
@lykabraine2766 5 лет назад
Very nice video.You very help me thanks.You best youtuber who specializes in the gaming wheel
@terryteed1903
@terryteed1903 5 лет назад
I wish I was cleverer. I'd be building spaceship Sims, planes, cars, boats. Thanks for the video.
@teemupiiroinen9555
@teemupiiroinen9555 6 лет назад
I integrated potentiometers like this to a button box about 4 months ago, but this would have saved me couple of nights trying to make a code for them...
@inkmania
@inkmania 6 лет назад
que tutorial show ! faz um desse com esses 5 axis, 1 potenciometro rotare, chave acionamento liga e desliga , eixo esquerda e direita pra fazer um volante de avião, ... gostaria de montar um cockpit de avião usando esses comandos com arduino.
@hamzterix
@hamzterix 6 лет назад
My boy always on point with the right project. THANK YOU.
@archand2928
@archand2928 Год назад
Thanks for the project
@bigchew1513
@bigchew1513 6 лет назад
Another cool video...thanks..
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks mate!
@bigchew1513
@bigchew1513 6 лет назад
i may try n make this one to..lol. i am prety sure i alredy have ever thng i need any way..lol. i thnk i have built jst about all of ure projects..Almost..id love to get into the 3d printer stuff but ,but my budget says nope its not goin to hapn..lol. hell i still use the tach, dual 1638bordswith dual 2708 (i thnk) bords..ive had a lot o fun building tht stuff..o n thnks again..
@NickB2513
@NickB2513 5 лет назад
Fantastic!! This is exactly what I was looking for!! Great video! Thank you
@linosambu
@linosambu 4 года назад
il video manca di qualche spiegazione accurata tipo di come caricare la libreria e di come configurare il gamepad ma sicuramente funziona ed è uno dei sistemi più semplici e affidabili che ho trovato in rete
@barti9872
@barti9872 3 года назад
I have a problem because all axes fly like knocked down without using a potentiometer how to fix it
@michelevitarelli
@michelevitarelli 3 года назад
Thank you for creating these great videos.
@simtcr
@simtcr 2 года назад
Could you please also show how to wire two position toggle switches and 6 position toggle switches? I want to build a custom switch panel to use with Microsoft flight simulator?
@InFAMOUSPS4_19
@InFAMOUSPS4_19 2 года назад
not sure if I missed it but what music did you use? Edit: nevermind, I just rememmbered it was Closer by Au5
@StefanoV__
@StefanoV__ 6 лет назад
can you make a box with rotary potentiometer with switch? tnks man you are the number one!
@jackliddy4540
@jackliddy4540 6 лет назад
Clicked on this straight away interesting project keep it up
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks Jack!
@andreaandrianary3522
@andreaandrianary3522 2 года назад
Is there any update for the code ? I want to use the digitals for boutons ? any help is welcome :)
@digilabsmedia
@digilabsmedia 6 месяцев назад
awesome tutorial! Is it possibel to use Hall sensors instead of Potentiometers? Does it need to change anything in coding?
@Theb1gjay
@Theb1gjay 5 лет назад
do you have a video on how to wire and test buttons with the pots? and should wen use the same library?
@jo_link_1003
@jo_link_1003 Год назад
Hey, nice Video. Can you please make a tutorial to add some Buttons mayby for a button box ore something like that?
@JarwienNL
@JarwienNL 6 лет назад
Niaceeeeee love it starting soon on the project gear indicator :D
@eusicumineeusicumine3518
@eusicumineeusicumine3518 6 лет назад
Hi,i wach all your videos,and they are really awsome,but i don't get it right, how can i add 10 buttons,additionally to your axis,for exemple? Thanks a lot
@lars.a1298
@lars.a1298 5 лет назад
Hi, im wondering about the same, did you ever find out how to add additional buttons or switches
@Judasneon
@Judasneon 6 лет назад
Awesome stuff. Been waiting for something like this to help me. I have an Arduino mega which I want to run 10 push button rotary encoders. Would it be the same to wire 10.
@amstudioprojects
@amstudioprojects 6 лет назад
Different wiring and sketch needed. Check the buttonbox vid to see wiring for encoders
@NickB2513
@NickB2513 4 года назад
Awesome Video!! Exactly what I was looking for!!! THANK YOU!!!
@joker_g7337
@joker_g7337 3 года назад
I find it sad that you didn't use the 6th analogic pin (A5).
@roccocafa7872
@roccocafa7872 3 года назад
hi, this procedure also applies to hall effect sensors
@cristiancaride8964
@cristiancaride8964 6 лет назад
You are the best men
@zougarou
@zougarou 3 года назад
good tutorial 1 question please: how to do if you want more than 6 analog inputs. Because the arduino mega does not work with the joystick library thanks
@sixpackpilot
@sixpackpilot 5 лет назад
This looks like a good starting point for my own first-time project: Throttle, Propellor, Mixture (TPM) controller for X-plane 11 (Windows OS). I require 3 sliding push/pull rods like in a Cessna 172. That means 3 simple linear axes, right? These can be rotary potmeters, can't they? What kind of potmeters would be best? How would you connect the rods/sliders to the potentio meters? If these are a little too many questions, do you have a link to more info to get me in the right direction.
@amstudioprojects
@amstudioprojects 5 лет назад
I plan on making this exact project soon.
@mattivirta
@mattivirta 3 года назад
not matter what potentiometer uses slider or rotating., all working
@lorenzoducciproductions8800
@lorenzoducciproductions8800 6 лет назад
DIY cheap direct drive wheel pliz
@CentrlMax
@CentrlMax 6 лет назад
Damn i have been waiting for this video, thanks :)
@MareSmaX
@MareSmaX Год назад
Hello, congratulations to the beautiful detailed video, can you make a video with the same procedure but instead of 5 axes do you make a 6 axis one? or if you know where i can find an oppropiate sckeck working with arduino leonardo, thanks in advance
@user-tz6iz9yq6v
@user-tz6iz9yq6v 5 лет назад
Very nice DIY project.I woyld use it to make my flight stick.Can i connect wires from to board to pots?I do not like to use Mini board.
@Alex-fv7vm
@Alex-fv7vm 2 года назад
Nice Video, will it run under iMac (27", 2020) with Monterey? plzzz help me .
@XxBoxerman74xX
@XxBoxerman74xX 4 года назад
Do all the axis and buttons in test menu work in this sketch? This is exactly what I am looking for!
@gronith
@gronith 6 лет назад
I wonder if one could use 2 potentiometers to make a 2 axis analog flight stick? My dream controller would be a kind of be dual flight sticks with 2 finger triggers on each with the standard joy pad on top of the left stick and the standard 4 button on the right. Maybe one day I can make one.
@josecamacho5522
@josecamacho5522 3 года назад
What can I do if I only have an arduino uno?
@lucaberlato9230
@lucaberlato9230 5 лет назад
Hi, there is a way to make this controller whit arduino uno or arduino nano?
@darkcypher111
@darkcypher111 5 лет назад
Love all your projects have really allowed me to see what can be achieved in a bit of DYi. Having problem with this, thought would be simple enough. Using a pro micro, wired output to A0 and A1 positive to VCC and neg to GND . Commented out non relevant lines on sketch. In calibrate input looks erratic, test looks fine though but in iracing trouble detecting axis. When detected both pots report the same axis. Even loaded your handbrake sketch and tested each pot independent but same result. Any help will be appriciated.
@darkcypher111
@darkcypher111 5 лет назад
Will continue to tinker / test till i get it working and will report findings.
@darkcypher111
@darkcypher111 5 лет назад
Hmmm raw data is showing the axis reporting as -15000 to -31000 whwn i look at the handbrake now using the same sketch it reports 0 to 255. That might be the problem. Will switch polls on pot to see the effect.
@darkcypher111
@darkcypher111 5 лет назад
Ok looks like i have LOG pots not Linear ones and your linked pots specifically state Linear so maybe thbats my problem will try with correct pots
@darkcypher111
@darkcypher111 5 лет назад
Pots made no difference, iracing just wont reconise it as an axis. No matter i used ujr to map it to a virtual control and then iracing reconised it.
@AllenRJoseph
@AllenRJoseph 3 года назад
@amstudio hey great idea but how can i add switches , i mean the code and physical connection to make a H shifter?
@joaoluc
@joaoluc 4 года назад
Thx a lot!
@shawnpraveen
@shawnpraveen 6 лет назад
Love it!
@zetzet136
@zetzet136 6 месяцев назад
Can I change the controller using ESP32 for wired connection?
@aceventura6512
@aceventura6512 4 года назад
Soon to setup your button box. I also made a 6 potentiometer box. Could I name #6 pot "elevation" or some such and just copy related code to account for it?
@JD-it7pc
@JD-it7pc Год назад
Hello, is it possible to make 6 axis with the leo? I wante to make a gamepad with 2 Joysticks. Each with x, y and z axis.
@tuskaton
@tuskaton 3 года назад
Thanks for the video, you can use the same board for additional buttons? (Plus the five axis)
@Scoobydcs
@Scoobydcs Год назад
is there a list of what boards support what inputs? ie how many axis and buttons?
@manitoulinmakers849
@manitoulinmakers849 Год назад
IS THE LEONARDO BOARD RECOGNIZED BY THE SERIES S WHEN USING THIS SETUP?
@memerexd1800
@memerexd1800 6 лет назад
Love the video
@nez3009
@nez3009 5 лет назад
Can 2 separate analogue axis potentiometers or hall sensors be setup to appear in windows as an x,y axis joystick without using a joystick module?
@wolfy4734
@wolfy4734 4 года назад
my question too... will the "x axis / y axis" window with the + in middle move around like a joystick when two hall sensors are plugged as X and Y axis...
@flavianojose8423
@flavianojose8423 2 года назад
Hey there, how do I connect a rotary encoder to manipulate trim wheel? This looks like working only for potentiometers.
@mattivirta
@mattivirta 3 года назад
how can make need more 9 analog input my flight sim normal fsx need 9 minimum. yoke2,trottle,mix,propeller3,trim wheels2, rudder2, flap pot or encoder i not sure what have better or switch,cessna style need be authentic controllers,
@claudioberio9461
@claudioberio9461 3 года назад
Hi, is this reliable also for the "USB LOGITECH PEDAL ADAPTER" mod? I can't find your old sketch for that mod... thanks is advance, and great job!
@user-tz6iz9yq6v
@user-tz6iz9yq6v 4 года назад
Can you make the same video for rotary encoders?
@wimwamjoey
@wimwamjoey 4 года назад
I tried this but when I go to calibrate, the bar is just constantly flickering. Any ideas?
@artmario
@artmario 4 года назад
spray contact cleaner solution AKA alchool isopropílico
@artmario
@artmario 4 года назад
and then turn them while still wet
@mikeyconnell8661
@mikeyconnell8661 4 года назад
Would you be able to do this with load cell or pressure sensors instead of potentiometers?
@carloszacu
@carloszacu 4 года назад
how can I add buttons to this setup? to add like a small matrix of buttons to make a basic yoke and controls for flight simulator
@dirtbuilder4615
@dirtbuilder4615 5 лет назад
Can you also assign buttons or selector wheels
@mattnev8625
@mattnev8625 6 лет назад
Sweeeeeeet legend
@amstudioprojects
@amstudioprojects 6 лет назад
Now you can build your pedals!
@mattnev8625
@mattnev8625 6 лет назад
amstudio 👌🏿👌🏿 yep
@kkona7643
@kkona7643 3 года назад
How about 2-axis? I am trying to build pedals for farming simulator for doing forestry? Because a real log trucks crane has pedals and also forwarder if I am correct
@facealexitohdnp
@facealexitohdnp 5 лет назад
is "Uno R3 Smd Atmega328p Development Board For Arduino Diy"the same board? that's what they sell in my country
@artiszemgrids9446
@artiszemgrids9446 6 лет назад
Can you make a sterigweall pls ?
@fetB
@fetB 6 лет назад
a what?
@noneNone-mw1px
@noneNone-mw1px 4 года назад
I have a question. What type of on and off rotary pot I need to use for carbo heat in flight sim?
@ahmetselim1166
@ahmetselim1166 4 года назад
where is 5 axis game controller file
@fluffypinkpandas
@fluffypinkpandas 4 года назад
I have a question. How do you add things like Rumbler feedback?
@Weesy
@Weesy 5 лет назад
It works, but how can i use that in a game?
@DualDesertEagle
@DualDesertEagle 3 года назад
Will this work with 7 axes aswell? Stick X Stick Y Pedals collective twist throttle on collective lever throttle left throttle right Coz the 2 joystick boards running my simulator rig just aren't doing the trick.
@mattivirta
@mattivirta 3 года назад
normal plane have only 9 analog input or more. youke2,trottle,propeller,mixture3,rudder/brake2,flap1,trimm wheels2, thats have minimum control flight, 9-10 potentiometer need normal. and switch/buttond all what panel have start,power battery,lights,radio,speaker,heat,etc,etc,many, encoder need some gauge controll,navicator,radio,autopilot,speaker,maybe trimm wheels new model,,this have normal little size aircraft only ,big planes 747 etc all need lot lot lot lot lot more encoders,buttons,switch,leds, gauges,contyrollers.
@Pablo-io2js
@Pablo-io2js 2 года назад
I have arduino mega. How do I get Windows to recognize it as a game controller? Thank you.
@mieruko8307
@mieruko8307 2 года назад
Hey I got everything wired up and same exact code but my potentiometer values are erratic. I bought all my components today and it’s not helpin at all please helpp
@jorgedanilo7660
@jorgedanilo7660 2 года назад
Very good, Does it work with arduino uno ? thanks.
@jnkmal9519
@jnkmal9519 4 года назад
Can someone tell me why I was able to use the 2015 version of joystick.h without any issues and could happily upload sketches all day long. But the 2017 version doesn't even accept the same sketches and even the sample sketches that come with 2017 joystick.h continually brick my arduino to the point that I have to re-flash the bootloader.
@mthompson965
@mthompson965 4 года назад
where is the 2015 version? because i keep getting "error compiling for Arduino Leonardo"
@hc5271
@hc5271 5 лет назад
How can i add buttons to control things like H shifter, any help is appreciated Thank you
@Gp3D_Sim
@Gp3D_Sim 5 лет назад
Very good tutorial. Could someone tell me what the code would be like to add digital buttons?
@Morzsika007
@Morzsika007 5 лет назад
Guillermo Pedrero Hello. Can you code for some button. I use g25 3 pedals and I want to make H shifter and to this need 7 button comtrolling. Thanks for help
@mohammedhamshary8223
@mohammedhamshary8223 4 месяца назад
I have a question why I can't use arduino nano
@TwsInformatica
@TwsInformatica 4 года назад
Hi there... The " LOGITECH_USB_PEDAL_ADAPTAER " Ti is jus how you named it or do I have to download an specific labary ?
@noneNone-mw1px
@noneNone-mw1px 4 года назад
What is the characteristics of pit? Are they analog or audio type sir? Thanks
@amstudioprojects
@amstudioprojects 4 года назад
Linear Pots 10KB
@mikebenton3462
@mikebenton3462 3 года назад
Can I do a 6 lever throttle quadrant with this?
@briansmith1098
@briansmith1098 4 года назад
Hi, can I do the same with a Arduino pro micro? and 3 pots? Many thanks for your videos
@vhs7411
@vhs7411 3 года назад
its basically the same, pro micro has the same chip as leonardo and yoou can use the same sketch just leaving 2 without connect
@vhs7411
@vhs7411 3 года назад
im making it for logitech g25 pedals
@mattivirta
@mattivirta 3 года назад
yes, you can use all analog input what board have.
@gamingdaycz
@gamingdaycz 6 лет назад
Will this work with Arduino UNO, which runs on AtMega 328p ? Thank you kindly :)
@jakesanders1884
@jakesanders1884 6 лет назад
Tried for myself, doesn't work. Needs a Leonardo or ProMicro according to documentation
@johnmasters2099
@johnmasters2099 3 года назад
Would this sketch work on a mega
@MisterManFunny
@MisterManFunny 6 лет назад
Will it work if I use only one potentiometer? I have an idea for a simple handbrake.
@amstudioprojects
@amstudioprojects 6 лет назад
Yes you will need to turn off the other axis in the sketch. Or use this one from the handbrake ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kv0FTpRLFMY.html
@MisterManFunny
@MisterManFunny 6 лет назад
amstudio Thank you :)
@44ro.n
@44ro.n 6 лет назад
how do you turn off the other axis, using this for a 3 pedal setup. cheers
@darkcypher111
@darkcypher111 5 лет назад
@@44ro.n just comment out unwanted lines with //
@TheMattia27c
@TheMattia27c Год назад
Could it be implemented 10 axes?
@flightsimulatorvietnam8593
@flightsimulatorvietnam8593 10 месяцев назад
I am using an Arduino Uno R3 chip, can I use this code?
@user-yt2tg5hm3n
@user-yt2tg5hm3n Месяц назад
The botton are available?
@wernichcronje3397
@wernichcronje3397 3 года назад
can you use it for a steering wheel
@HanZie82
@HanZie82 4 года назад
Any way to add buttons as well?
Далее
DIY Flight Simulator Joystick
9:10
Просмотров 1,1 млн
Я ж идеальный?😂
00:32
Просмотров 143 тыс.
Мама знает где все документы
00:21
Новый хит Люси Чеботиной 😍
00:33
Fully 3D Printed Arduino Joystick
5:42
Просмотров 41 тыс.
DIY ARDUINO RPM REV TACHO SIM HUB DASH
10:11
Просмотров 847 тыс.
I took Taser Chess to Open Sauce
12:40
Просмотров 369 тыс.
Arduino Joystick 2.0  Library  - Beginners Guide
25:22
Просмотров 84 тыс.
Electromagnetic Aircraft Launcher
15:09
Просмотров 1 млн
DIY Arduino Helicopter Collective Joystick Control
22:44
Я ж идеальный?😂
00:32
Просмотров 143 тыс.