Making Amstudio's 5 Axis Controller Without a Breadboard! | Captain Bob
HTML-код
- Опубликовано: 6 фев 2025
- Today I will make Amstudio's 5 Axis controller, but get rid of the breadboard. Hopefully this is a little bit more descriptive about the process :)
I wish you the best of luck! Don't hesitate to comment below if you have any questions.
📌Amstudio's Video, go subscribe: • 5 AXIS ANALOG JOYSTICK...
📌List of compatible boards: github.com/MHe...
📌Joystick Library: github.com/MHe...
📌Amstudio's code: github.com/AM-...
📌 Arduino Library guide (How to install a library): www.arduino.cc...
📦Arduino Leonardo: www.banggood.c...
📦10K pots: www.banggood.c...
📦Jumper cables: ebay.us/kH8k89 or ebay.us/xVu5KF or www.banggood.c...
▶ Join our Discord! / discord
▶ Consider making a donation to improve video quality and fund my Flight Training: www.paypal.com...
▶ I have Instagram! Follow @CaptainBobSim for a little bit of behind the scenes.
▶ Become a Patreon! www.patreon.co...
* * * *
Disclaimer: I'm a human that makes mistakes. Fortunately, we can learn from them. You are responsible for your safety. As an eBay Associate I earn from qualifying purchases. Sale price is not affected. I use time lapses to shorten the video. To avoid injury and/or death please do not try to match the speed shown in the video.
7:27 (I'm a programmer) I don't think you need to remove the line and add //. you can add those before the line like: // int RyAxis_ = 0; or alternatively just delete the line without the need of the // if you won't need the lines back later :)
juat to clarify, what you do works anyway because you're essentially commenting out empty lines ;) hope it helps
Woah! I didn't realize I did this :) Now I'm cringing so hard 😂 I pinned your comment for people to see :)
@@CaptainBobSim Oh thanks!!! Don't cringe. You should be extremely proud of yourself, you are very smart!!! ;)
Bro excellent content, i just found your channel, and im starting a cesna simulator from cero, you have a new subscriber 🤗🤗🤗
Awesome! Thanks. Have an awesome time building your Cessna! What model is it?
A cessna 152, your videos are going to be very usefull bro
@@jhny98
Awesome choice :) The 150/152's are the best.
Great video as always!
Thank you so much!
Hello Everyone! Just an update:
You can connect two Arduino Leonardos and have 10 axes if you'd like to. Make a copy of the Arduino Sketch and flash both Arduino boards separately!
NOTE: This only works with the Arduino Leonardo and Pro Micro. An Arduino Uno or Arduino Mega will not work though I usually use them for other things on the channel.
Captain Bob I have a problem. Should I connect the rotary switch directly to adriuno or using a wire and Connect the rotary switch to adriuno from a0 to a4. This problem with me is in the second type that is without breadboard. Can u help me please captian bob
Let's make sure you are using the right electronic component:
This is made for potentiometers (analog, variable resistors). This won't work with rotary switches (multi-position switches), or rotary encoders (digital potentiometers). These are 10K ohm pots.
Using a wire would be good practice, but it should work without wires.
Here's the no breadboard wiring diagram, it should work.
www.tinkercad.com/things/d3SVBMS645X
Let me know if you have any further questions!
Or else can u make a video of connecting multiple rotary switch to adriuno without breadboard
Dudeee, this just what i was looking for, nice!
Glad I could help!
Captain bob I have a project. I making a yoke, a ruder pedals, and one throttle quadrant with 2 arduinos but I have some problems with them. I need your help. Please bro. How may I get in touch with you????.
DM Me on Instagram or Discord. I have all of my contact information in the description. 😁
I have the arduino leonardo and a follow everything you said but my POT only work in game contrller settings, when i try in a game do not work could you give me some help pleassseeeee
It looks like you don't have it configured correctly in the game. There should be a configuration wizard inside the game.
Thanks for making this video it helped a lot :)
Oh good! Have fun building!
@@CaptainBobSim thx
Really great video👍😀😁
Thank you!
How is your sim going?
Captain Bob Welcome, well everything is going great with my sim, but I've been busy cuz its been raining for days now here in Sweden, and I'm working outside.😩🤣
@@zz-mt5zf Oh no! Working outside is nice, but it is always dependent on the rain!
Also check out linear magnetic hall effect sensors. They are much better for joysticks than potentiometers as they can measure much smaller movement at a higher resolution.
That's so awesome! I'll really have to check these out!
Can you please make a tutorial on how to make a flight sim yoke using this method?
I made the 737 yoke with this method, I'm also making my 172 yoke with this (I believe)
Nicr bro, can we add more axis (6 until 7 axis)?
Hmm. I'm not sure! There are 6 axis on the Arduino Leonardo, so I imagine you could add up to 6. Any more than 5 and I'd recommend a Leo Bodnar card with something like 32 axis or so.
hello Captain! Is there any update for the code ? I want to use the Digital pins for boutons but I'm a noob with arduino
I'd checkout AMStudio's videos. He makes a lot of button boxes and I believe he uses an arduino leonardo/pro micro for a few of them
Hi capt bob.
I got problem axis rudder and thortle mix range. How to fix
What is your problem?
@@CaptainBobSim hi
I already solved the problem.on off Potentiolmeter got broke. I change new one
Could I possibly code for 6 potentiometers with a Pro micro board?
You should be able to! There's enough pins at least.
Hello i have a problem. Not have Joystick librari 2 i have erorrs to veryfy or upload the 5 axis stuff to my leonardo. Any tipp? Vhat version you use the arduino joystick?
Hello, You need the Joystick library for the code to work properly. The most current version should work. Download it from the site as a Zip file and unzip it.
@@CaptainBobSim Thanks, but i installed finally. I have only 1 question. How to add up and down shift button, and wich pins i need?
@@thekassaiba6694 Excellent! I must be honest, I haven't done this before, but a good starting point would be to go to Amstudio's button box video and see if you can insert some of the button's code: ruclips.net/video/Z7Sc4MJ8RPM/видео.html&ab_channel=amstudio
Thanks i go and warct. I re think the setup and i put an encoder but in Hungary cost this piece 30eur.. Little bit to much money..
Is it possible to use 6 axis? or is the Arduino Leonardo limited to 5 axis?
You should be able to use 6 axis on the arduino leonardo. The code is only made for 5, but as long as the joystick library has capabilities for 6 you should be good to go!
I thought the Leonardo board was already recognized by windows without any software downloading or programing??
It is recognized, but not as a joystick. The LeoBodnar card is recognized however.
@@CaptainBobSim Ah, keep getting those two names confused. Thanks!!
Honestly me too 😂
Hi! I tried it but the potentiometer gauge goes up and down how can I fix it?
Have you calibrated this? If so, make sure you haven't switched the wiring
@@CaptainBobSim ofcourse I did.It actually works but the gauge goes up and down
Holy shit this is exactly what i looked for... thank you very much!
I'm so glad it's helpful!
Can you use 3 potentiometers and set them up in Arduino as Z,X,Y axis and then configure it in Flight Simulator 2020 so they will controll throttle, mixture and carb heat ?
Yes, Just comment out the rows you don't need, or don't use them when configuring to FS2020.
@@CaptainBobSim Thanks. I will try this.
Great video. Just a little tip. In your code when you want to comment something out you shouldn't replace it with // you just need to add // before the line and then it will turn grey and won't execute.
Thanks for the info!
hi, my program is from the amstudio link but when i verify it's saying "fatal error: Joystick.h: No such file or directory
#include
I really need help please
Did you add the Joystick Library?
No i doesn't ! I solved my problem on my own but thanks you !
@@MrTouffu Great!
Yes ! But now i have an another issue, the pedals are inverted.. Like when i don't touch them they are fully on and when i press them they are fully off.. How can i do ?
@@MrTouffu You can swap the outer two wires- this will reverse the polarity of the circuit and should flip it. Alternatively you can click the Swap button in your controller settings if there is one.
Hey do you know how I would go about wiring up 2 LED rocker switches? Thx Captain!
This might help: www.oznium.com/blog/wp-content/uploads/2019/07/round-rocker-switch-connection-wiring-how-to-option-1.jpg
If i want to add buttons and switch, How should I do?
You'd have to code them yourself - You can use some of Amstudio's projects for inspiration
@@CaptainBobSim thanks a lot, your Flight Instrumentation tutorial are awestome!
Must I configure it in MobiFlight?
When yes could you shoe how?
You can not configure this in MobiFlight, as MobiFlight only handles digital inputs and outputs. Since potentiometers are analog, you would have to use the Arduino IDE code and configure this as a Joystick.
ah okay, but thanks
hello captian! Excellent job! But I have a question, how can I use the another 32 buttons, axis X and Y? Will I have to use a multiplex board?
It looks like you will have to code them in. I think there are only ~15 input pins on the Leonardo. I haven't done this yet, but I've been thinking about it a little bit. Refer to amstudio's button box videos (he's the one that made the sketch), and take some parts of the code.
Just came across this: www.instructables.com/id/Arduino-LeonardoMicro-as-Game-ControllerJoystick/
I think it would be a huge help.
Good work!!!
Thank you!
Hi capt!
What axis should I use for DIY yoke?
It doesn't matter which axis, you can assign them in the flight simulator.
@@CaptainBobSim thanks capt! ✈
can a pro micro be used?
I believe so, Refer to Amstudio's 5 axis controller video to be sure.
What is the specification of your potentiometer xaptain???
B10K
Any idea why when I move one axis all 5 move?
It's possible your wiring is wrong, or there is a short. It's also possible you only have one potentiometer connected, for some reason all 5 will move unless you adjust the code and // comment out all of the inapplicable parts.
@@CaptainBobSim It was the single pot. Once I had a total of 3 the problem went away. Thanks!
Hello....can i use Arduino Uno?
Sorry, no
Wow Im ur biggest fan!
Thanks! ✈
Hola. gracias por tus videos me ayudan mucho. Puedo trabajar con Arduino Uno este proyecto? Donde encuentro Game Setting controller? Gracias por tus respuestas. Saludos de Peru!
Hola, No puedes usar Arduino Uno para este proyecto.
Puede encontrar la configuración del controlador de juego en Panel de control -> Ver dispositivos e impresoras, luego haga clic con el botón derecho en su controlador de juego
Hello, You can not use the Arduino Uno for this project.
You can find game controller settings under Control Panel -> View devices and printers then right click your game controller
Dude you are awesome! I’m trying to wire up a button box for my flight sim right now and I’m still a little shaky with how to wire it up exactly, I got the Leonardo and I have 6 2 way switches 2 potentiometers and 2 large led red flipper switches I believe they’re called yep, help!
The wiring would be as follows:
2 way switches: one of the pins (typically middle if 3 prongs) goes to ground, another goes to pin 2-7. Rocker switches are wired exactly the same, using pins 8 & 9. I showed you how to use 5 potentiometers, so you can blot out ( // ) or delete the other 3.
I'm not entirely sure on the coding, but I think you could use some of it from Amstudio's button boxes.
Captain Bob - Flight Simulation Made Simple hey thanks for the prompt response! I’ll give it a try this evening and report back, I appreciate the help greatly! Also subbed and watching some of your other content, it’s really great stuff !
@@ronbaker6510 Thank you!
Merci
vous êtes les bienvenus!
my library is not the same as yours
Have you downloaded this one? github.com/MHeironimus/ArduinoJoystickLibrary
I don't know if arduino ide changed something but your instructions don't work this sketch will not verify i am getting up to 8 issues I believe
Some other users have reported issues. I haven't been able to replicate them. Make sure you have the Joystick Library installed. Refer to AmSudio's video for even more information (Link in the description).
@@CaptainBobSim i did and even paused the video to insure that the sketch said the same thing as the makers video I have the library installed and it shows up but it will not verify or compile i have tried changing the error spots with several combinations and it would never verify even when deleting and re copying and pasting the sketch just like both videos show no luck
@@CaptainBobSim the first issue that comes up says (expected unqualified-id before "." Token)
The next error says( 'setzaxis' was not declared in this scope)
@@salvatoremilitello8490 Are you using an arduino leonardo?
Yeahh
This took so long to edit :) But it was worth it 😃Enjoy!
Captain Bob what do program do you use to edit
@@brent_1101 I use WeVideo. It is limited in ability, so soon I will upgrade to Filmora Wondershare. I only really use WeVideo because my school pays for it :)
Captain Bob I personally use hitfilm express it’s free you should look it up on RUclips it’s great
I will have to try it :)
this working
That is so good to hear!