Making Amstudio's 5 Axis Controller Without a Breadboard! | Captain Bob

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • 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.

Комментарии • 125

  • @friedchicken1
    @friedchicken1 3 года назад +4

    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 :)

    • @friedchicken1
      @friedchicken1 3 года назад +1

      juat to clarify, what you do works anyway because you're essentially commenting out empty lines ;) hope it helps

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +5

      Woah! I didn't realize I did this :) Now I'm cringing so hard 😂 I pinned your comment for people to see :)

    • @friedchicken1
      @friedchicken1 3 года назад

      @@CaptainBobSim Oh thanks!!! Don't cringe. You should be extremely proud of yourself, you are very smart!!! ;)

  • @kiancabarle123
    @kiancabarle123 5 лет назад +3

    Great video as always!

  • @braianledesma1441
    @braianledesma1441 3 года назад

    Dudeee, this just what i was looking for, nice!

  • @jonhatanramirezleon9584
    @jonhatanramirezleon9584 5 лет назад +2

    Bro excellent content, i just found your channel, and im starting a cesna simulator from cero, you have a new subscriber 🤗🤗🤗

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад +1

      Awesome! Thanks. Have an awesome time building your Cessna! What model is it?

    • @jonhatanramirezleon9584
      @jonhatanramirezleon9584 5 лет назад

      A cessna 152, your videos are going to be very usefull bro

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад +1

      @@jonhatanramirezleon9584
      Awesome choice :) The 150/152's are the best.

  • @Jake-yv3kf
    @Jake-yv3kf 5 лет назад +1

    Thanks for making this video it helped a lot :)

  • @CaptainBobSim
    @CaptainBobSim  4 года назад +3

    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.

  • @chilidrumcovers6315
    @chilidrumcovers6315 4 года назад

    Holy shit this is exactly what i looked for... thank you very much!

  • @zz-mt5zf
    @zz-mt5zf 5 лет назад +1

    Really great video👍😀😁

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад

      Thank you!
      How is your sim going?

    • @zz-mt5zf
      @zz-mt5zf 5 лет назад

      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.😩🤣

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад

      @@zz-mt5zf Oh no! Working outside is nice, but it is always dependent on the rain!

  • @botlarry4437
    @botlarry4437 3 года назад

    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.

  • @pista2164
    @pista2164 4 года назад

    Good work!!!

  • @botlarry4437
    @botlarry4437 3 года назад

    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.

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      That's so awesome! I'll really have to check these out!

  • @XFlight69
    @XFlight69 5 лет назад

    Wow Im ur biggest fan!

  • @pista2164
    @pista2164 4 года назад

    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????.

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      DM Me on Instagram or Discord. I have all of my contact information in the description. 😁

  • @JovendinamicololSP
    @JovendinamicololSP 3 года назад

    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

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      It looks like you don't have it configured correctly in the game. There should be a configuration wizard inside the game.

  • @dundundun763
    @dundundun763 4 года назад +1

    Can you please make a tutorial on how to make a flight sim yoke using this method?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      I made the 737 yoke with this method, I'm also making my 172 yoke with this (I believe)

  • @aceventura6512
    @aceventura6512 8 месяцев назад

    Could I possibly code for 6 potentiometers with a Pro micro board?

    • @CaptainBobSim
      @CaptainBobSim  8 месяцев назад

      You should be able to! There's enough pins at least.

  • @hxhvishnuvarshan
    @hxhvishnuvarshan 4 года назад

    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

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      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!

    • @hxhvishnuvarshan
      @hxhvishnuvarshan 4 года назад

      Or else can u make a video of connecting multiple rotary switch to adriuno without breadboard

  • @andreaandrianary3522
    @andreaandrianary3522 2 года назад

    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

    • @CaptainBobSim
      @CaptainBobSim  2 года назад +1

      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

  • @MRBIG-lg9zl
    @MRBIG-lg9zl 3 года назад

    I thought the Leonardo board was already recognized by windows without any software downloading or programing??

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      It is recognized, but not as a joystick. The LeoBodnar card is recognized however.

    • @MRBIG-lg9zl
      @MRBIG-lg9zl 3 года назад

      @@CaptainBobSim Ah, keep getting those two names confused. Thanks!!

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      Honestly me too 😂

  • @thekassaiba6694
    @thekassaiba6694 3 года назад

    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?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +1

      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.

    • @thekassaiba6694
      @thekassaiba6694 3 года назад

      @@CaptainBobSim Thanks, but i installed finally. I have only 1 question. How to add up and down shift button, and wich pins i need?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +1

      @@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

    • @thekassaiba6694
      @thekassaiba6694 3 года назад

      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..

  • @user-pg7oq6lo8l
    @user-pg7oq6lo8l 3 года назад

    Hi! I tried it but the potentiometer gauge goes up and down how can I fix it?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      Have you calibrated this? If so, make sure you haven't switched the wiring

    • @user-pg7oq6lo8l
      @user-pg7oq6lo8l 3 года назад

      @@CaptainBobSim ofcourse I did.It actually works but the gauge goes up and down

  • @netflex5143
    @netflex5143 4 года назад +1

    Must I configure it in MobiFlight?
    When yes could you shoe how?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад +1

      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.

    • @netflex5143
      @netflex5143 4 года назад

      ah okay, but thanks

  • @carlo.henrico
    @carlo.henrico 3 года назад

    Is it possible to use 6 axis? or is the Arduino Leonardo limited to 5 axis?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      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!

  • @maskystudio9193
    @maskystudio9193 4 года назад

    Hi capt bob.
    I got problem axis rudder and thortle mix range. How to fix

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      What is your problem?

    • @maskystudio9193
      @maskystudio9193 4 года назад

      @@CaptainBobSim hi
      I already solved the problem.on off Potentiolmeter got broke. I change new one

  • @natalajarzab2120
    @natalajarzab2120 3 года назад

    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 ?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      Yes, Just comment out the rows you don't need, or don't use them when configuring to FS2020.

    • @natalajarzab2120
      @natalajarzab2120 3 года назад

      @@CaptainBobSim Thanks. I will try this.

  • @ronbaker6510
    @ronbaker6510 4 года назад

    Hey do you know how I would go about wiring up 2 LED rocker switches? Thx Captain!

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      This might help: www.oznium.com/blog/wp-content/uploads/2019/07/round-rocker-switch-connection-wiring-how-to-option-1.jpg

  • @muhammadakbarramadhani3338
    @muhammadakbarramadhani3338 3 года назад

    Nicr bro, can we add more axis (6 until 7 axis)?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      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.

  • @ronbaker6510
    @ronbaker6510 4 года назад +1

    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!

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      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.

    • @ronbaker6510
      @ronbaker6510 4 года назад

      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 !

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      @@ronbaker6510 Thank you!

  • @MrTouffu
    @MrTouffu 3 года назад

    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

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +1

      Did you add the Joystick Library?

    • @MrTouffu
      @MrTouffu 3 года назад

      No i doesn't ! I solved my problem on my own but thanks you !

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +1

      @@MrTouffu Great!

    • @MrTouffu
      @MrTouffu 3 года назад

      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 ?

    • @CaptainBobSim
      @CaptainBobSim  3 года назад +1

      @@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.

  • @noneNone-mw1px
    @noneNone-mw1px 4 года назад

    What is the specification of your potentiometer xaptain???

  • @antoniorausa9695
    @antoniorausa9695 2 года назад

    If i want to add buttons and switch, How should I do?

    • @CaptainBobSim
      @CaptainBobSim  2 года назад

      You'd have to code them yourself - You can use some of Amstudio's projects for inspiration

    • @antoniorausa9695
      @antoniorausa9695 2 года назад

      @@CaptainBobSim thanks a lot, your Flight Instrumentation tutorial are awestome!

  • @chooboflex8154
    @chooboflex8154 4 года назад

    this working

  • @renatowernhart4524
    @renatowernhart4524 4 года назад

    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?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад +1

      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.

    • @CaptainBobSim
      @CaptainBobSim  4 года назад +2

      Just came across this: www.instructables.com/id/Arduino-LeonardoMicro-as-Game-ControllerJoystick/
      I think it would be a huge help.

  • @reagan2563
    @reagan2563 3 года назад

    my library is not the same as yours

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      Have you downloaded this one? github.com/MHeironimus/ArduinoJoystickLibrary

  • @JoZf_Gibson
    @JoZf_Gibson Год назад

    Merci

  • @rashmikadeshan6705
    @rashmikadeshan6705 3 года назад

    Hello....can i use Arduino Uno?

  • @anonymous0wn3r5
    @anonymous0wn3r5 4 года назад

    Hi capt!
    What axis should I use for DIY yoke?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      It doesn't matter which axis, you can assign them in the flight simulator.

    • @anonymous0wn3r5
      @anonymous0wn3r5 4 года назад

      @@CaptainBobSim thanks capt! ✈

  • @Warbirdguy1
    @Warbirdguy1 4 года назад

    Any idea why when I move one axis all 5 move?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      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.

    • @Warbirdguy1
      @Warbirdguy1 4 года назад

      @@CaptainBobSim It was the single pot. Once I had a total of 3 the problem went away. Thanks!

  • @mihogaryyo2534
    @mihogaryyo2534 3 года назад

    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!

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      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

  • @JamesPaquetteArt
    @JamesPaquetteArt 4 года назад

    can a pro micro be used?

    • @CaptainBobSim
      @CaptainBobSim  4 года назад

      I believe so, Refer to Amstudio's 5 axis controller video to be sure.

  • @salvatoremilitello8490
    @salvatoremilitello8490 3 года назад

    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

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      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).

    • @salvatoremilitello8490
      @salvatoremilitello8490 3 года назад

      @@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

    • @salvatoremilitello8490
      @salvatoremilitello8490 3 года назад

      @@CaptainBobSim the first issue that comes up says (expected unqualified-id before "." Token)

    • @salvatoremilitello8490
      @salvatoremilitello8490 3 года назад

      The next error says( 'setzaxis' was not declared in this scope)

    • @CaptainBobSim
      @CaptainBobSim  3 года назад

      @@salvatoremilitello8490 Are you using an arduino leonardo?

  • @brent_1101
    @brent_1101 5 лет назад +1

    Yeahh

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад

      This took so long to edit :) But it was worth it 😃Enjoy!

    • @brent_1101
      @brent_1101 5 лет назад

      Captain Bob what do program do you use to edit

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад

      @@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 :)

    • @brent_1101
      @brent_1101 5 лет назад

      Captain Bob I personally use hitfilm express it’s free you should look it up on RUclips it’s great

    • @CaptainBobSim
      @CaptainBobSim  5 лет назад +1

      I will have to try it :)