Connect a Potentiometer to a Flight Sim | MobiFlight Crash Course Episode 9

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • How do you connect a potentiometer (variable resistor) to MobiFlight?
    In this video we'll show how to connect a potentiometer to a flight simulator, using Flight Simulator 2020 (FS2020).
    🎥Full Course Playlist: • One-Stop MobiFlight Shop
    This course is a complete foundation for the MobiFlight Software. From Zero to Hero!
    🎥All MobiFlight Videos: • All MobiFlight Videos
    ​👉Get a "Starter Kit" containing everything in the course: captainbobsim.com/product/sim...
    ⌚Get ahead! Next week's video will be on the microswitch. After that, It'll be on LEDs and RGB LEDs (don't worry - your future is bright).
    📦LED Assortment: ebay.us/Vp6SBp or ebay.us/afVU0V
    📦Resistor (68 ohms): ebay.us/qRYniR
    📦Resistor Assortment: ebay.us/ETjYco or ebay.us/zoeI1p
    📦Microswitch: ebay.us/MnYo5l or ebay.us/sxXOkc
    This Video Features:
    📦Potentiometer: ebay.us/5qRv2U or ebay.us/JwgD44
    📦Arduino Mega: ebay.us/6OCrco or ebay.us/r3nN8n
    📦Jumper Wires: ebay.us/kH8k89 or ebay.us/lgIp3L
    * As always, look for better deals*
    🔗Course Links:
    📌HubHop: hubhop.mobiflight.com/#/tools
    📌Full Course Playlist: • One-Stop MobiFlight Shop
    📌Rotary Encoder Video (Like a potentiometer): • How to connect a Rotar...
    📌Install MobiFlight Video: • How to Install MobiFli...
    📌Learn to Solder: captainbobsim.com/solder
    📌How a potentiometer works: wiraelectrical.com/potentiome...
    📌LeoBodnar: www.leobodnar.com/shop/index.p...
    👨‍✈️Support the Channel:
    ▶ / captain_bob
    ▶ www.paypal.com/donate?busines...
    ▶ www.amazon.com/hz/wishlist/ls...
    ✈Watch me build my Cessna 172: • Version 3 Cessna 172 P...
    LINKS
    -----------
    Patreon: ▶ / captain_bob
    Store: ▶captainbobsim.com/shop
    Podcast: ▶captainbobsim.com/podcast
    Merch: captain-bob.creator-spring.com/
    Thingiverse: ▶www.thingiverse.com/captainbo...
    Website: ▶captainbobsim.com
    Thank you to Altimeter Motives for being a huge supporter of the show. Check out their products at altimetermotives.com/shop
    CONNECT WITH ME
    ------------
    Subscribe: ▶ / @captainbobsim
    Instagram: ▶ / captainbobsim
    Discord: ▶ / discord
    Email: ▶ CaptainBobSim@gmail.com
    ------------
    💻PC Specs: AMD Ryzen 7 5800X 8 Core CPU, 32 GB RAM, 500GB SSD, 3 TB HDD, R9 290 GPU
    #Cessna172sdays #flightsim #simulator
    DISCLAIMER
    ------------
    As an eBay Associate, I earn a small commission from qualifying purchases. There is NO EXTRA COST to you.
    I am but a human being - You are too! As a mortal, you are responsible for your safety. To avoid injury or death, do not attempt to match the time-lapse speed shown in the video.
    Chapters:
    00:00 How a potentiometer works
    03:09 Pot. wiring
    04:10 MobiFlight Config Throttle
    12:02 The grand reveal!
    16:13 Config Pitch
    18:38 More infos!!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 72

  • @daviesheerin6736
    @daviesheerin6736 2 ปีที่แล้ว +6

    I was in the process of losing an entire weekend trying to connect my newly arduino-ed yolk to the sim. Thought I'd made a big mistake committing everything to through a 2560.
    Then you came along with this absolutely incredible tutorial. And you introduced me to HubHop - and JAMIE !
    I could NEVER have pieced all this together by myself.
    Thank you, Sir.

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว +1

      Hey Davie!! I'm so glad this helped! I've been there too - using an entire weekend to get something to work, I'm really glad this worked!
      Happy Landings! And best of luck on your sim!!

    • @hoekstes6830
      @hoekstes6830 5 หลายเดือนก่อน

      Me too!

  • @Hoekstes
    @Hoekstes 5 หลายเดือนก่อน

    Thank you so much! I was able to use this video to fix my old Saitek Rudder Pedals with an Arduino Nano and Mobiflight! Now I’ve got my rudder pedals and toe brakes back. Jumping with joy!

    • @CaptainBobSim
      @CaptainBobSim  5 หลายเดือนก่อน +1

      I'm so glad it helped! That's awesome you got it working!

  • @Whiteknuckle157
    @Whiteknuckle157 2 ปีที่แล้ว +1

    Thank you very much. Just what I need since I'm working on a TQ right now.

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      Glad I could help! Good luck on your throttle!

  • @sonit5455
    @sonit5455 2 ปีที่แล้ว

    just what i was looking for yesterday

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      Hope it helped!!

    • @sonit5455
      @sonit5455 2 ปีที่แล้ว +1

      @@CaptainBobSim it works just perfect! I was tinkering with pot meters before in mobiflight for throttle and instrument lighting but nothing worked until this video. Thanks man. Couldn't find this info anywhere else

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      @@sonit5455 That is wonderful news!! Congratulations!

  • @sundar999
    @sundar999 10 หลายเดือนก่อน

    This was well explained, but you should demonstrate for Prepar3D or FSX too.
    You've got great content Captain Bob 😊

    • @CaptainBobSim
      @CaptainBobSim  10 หลายเดือนก่อน

      It works for Prepar3D and FSX but I can't show every simulator for every configuration

  • @dannyvr1225
    @dannyvr1225 หลายเดือนก่อน

    Nice thanks, Do you know how to do this for the B737 speedbrake? I can't find a command for this....thanks in advance...

  • @steffgrunwald8881
    @steffgrunwald8881 ปีที่แล้ว

    Hi Thanks for these fantastic tutorials! I'm new to mobiflight and making things in general for flight sim. I have built the 737diy non - motorized throttle unit, can I use an uno to process the inputs of my potentiometers in MSFS2020 using the PMDG 737?I can't seem to find any presets for this and am open to do some learning to achieve my goal. But is it doable to start?

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว +1

      I'd first test the generic events under the flight sim 2020 tab. To make sure PMDG is compatible with them (you can follow the video but when making a variable set it to a number (511 is 50%) and see if manipulating the number does anything.
      I'd recommend watching my second "advanced" poteniometer video which shows how to map it to a variable.

  • @philmessenger4655
    @philmessenger4655 2 ปีที่แล้ว

    Greetings Cap'n Bob
    Love your videos. Please consider a video on interfacing Alvaro Alea's directional compass with the heading bug. I've built one but the two rotary switches have me stumped. I don't want to just make it another wiskey compass. You're far more savvy than I am. Hoping you do it. Thanks

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว +1

      Hello Phill!
      I'm designing my own instruments to have configurable with MobiFlight, and won't be making a tutorial for Alvaro Alea's compass unfortunately :( but I will do mine once they are designed.
      Use 07CC 2 Autopilot heading value, as degrees*65536/360 for the little indicator
      and
      0580 4 Heading, *360/(65536*65536) for degrees TRUE.[Can be set in slew or pause states]
      You can use the altimeter video and the compass video to help show the concepts with this.
      I can help you with this if you should get stuck

    • @philmessenger4655
      @philmessenger4655 2 ปีที่แล้ว

      @@CaptainBobSim Thanks Cappy. Good luck with your projects. I hate to see you struggle but you will learn much

  • @pure4wood501
    @pure4wood501 ปีที่แล้ว +1

    Hi CaptainBob,
    You make great videos! Calm voice and clear explanation. As a beginner I have a question. Once the board is programmed, it doesn't work independently for me. I always have to load MF Connector for it to work. Is that the intent or am I doing something wrong?
    I hope you will help me. Thank you very much for that.

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      That is the intent - MobiFlight is a software that has to be running for the connection from Arduino to flight simulator to be made.
      Use the "Autorun feature" then mobiflight should run automatically.

    • @pure4wood501
      @pure4wood501 ปีที่แล้ว

      Thanks for your quick reply. However, I am concerned that MobiFlight will try to overwrite my Arduino Leonardos (programmed as joystick in Arduino IDE sketch) which are in the same setup. Then the suffering is incalculable..... (So it has already happened once, but maybe I clicked the wrong button...)

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      @@pure4wood501 Yes, MobiFlight will overwrite it. If you flash a mobiflight board it can only be a mobiflight board

  • @rocky23_77
    @rocky23_77 2 ปีที่แล้ว +1

    Hey great video. I have some problems currently wiring multiple arduinos with a external 5V power supply and get it working in mobiflight. Do you or anyone else know where I can find more information to that?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      Hello! The arduino forum is super great with that, there's loads of solutions already: forum.arduino.cc/t/powering-multiple-arduinos-with-the-same-power-source/225752
      arduino.stackexchange.com/questions/21061/two-arduinos-one-power-source
      I googled "connect multiple Arduinos to one power supply"

  • @usetech2133
    @usetech2133 8 หลายเดือนก่อน

    hello bob thank for sharing, can you tell me how to add potentiometer to tiller im msfs 2020 a320nx thanks

    • @CaptainBobSim
      @CaptainBobSim  8 หลายเดือนก่อน

      Hi! I think you would find my advanced potentoimeter video useful

  • @rocky23_77
    @rocky23_77 2 ปีที่แล้ว

    Hey Bob, I first tried it on the stable version but it didnt work, is it possible that it only works in Beta version?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      No, this was a few releases ago and should work in the newest version, however it only works with FS2020.

  • @noneNone-mw1px
    @noneNone-mw1px 2 ปีที่แล้ว

    Capt what website did you download the fusion 360?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว +1

      www.autodesk.com/products/fusion-360/overview?mktvar002=4263540|SEM|1618310827|64140214467|kwd-330308867034&gclsrc=aw.ds&&ef_id=Cj0KCQiAxoiQBhCRARIsAPsvo-yfaWq32DgkNSbDgBOOYLsu-PGKLwQan3MbzZhX4FI5gj6hx279ExkaAkjDEALw_wcB:G:s&s_kwcid=AL!11172!3!569531517089!e!!g!!fusion%20360!1618310827!64140214467&mkwid=s6G86eZ0j|pcrid|569531517089|pkw|fusion%20360|pmt|e|pdv|c|slid||pgrid|64140214467|ptaid|kwd-330308867034|pid|&GGL_DM_Fusion-360_AMER_US_eComm_SEM_BR_NEW_EX_ADSK_3529781_&G86eZ0j|pcrid|569531517089|pkw|fusion%20360|pmt|e|pdv|c|slid||pgrid|64140214467|ptaid|kwd-330308867034|&gclid=Cj0KCQiAxoiQBhCRARIsAPsvo-yfaWq32DgkNSbDgBOOYLsu-PGKLwQan3MbzZhX4FI5gj6hx279ExkaAkjDEALw_wcB

  • @malmsteen1973
    @malmsteen1973 2 ปีที่แล้ว

    Hi, there! Captain Bob, any chance to make it work for FSX?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว +2

      Haven't figured it out yet - I'll need to do some more testing

  • @srp01983
    @srp01983 2 ปีที่แล้ว

    X-Plane 11 - Managed to get a parking brake indicator working using this tutorial as a basis, which is a big success for me as I have never used an arduino before, or a flight sim, or Mobiflight come to that! But I could not get my yoke potentiometers to work - everything ok in Mobiflight when I checked the debug logging, put the values into the Hubhop code generator, but sadly the yoke doesn’t move for either the pitch or the elevator.
    The arduino appears in Device Manager under Ports, on COM5. Checking the settings in X Plane shows no yoke connected so X Plane obviously defaults to using the mouse - maybe that’s the problem??? Or maybe the Hubhop code doesn’t work with XPUIPC??? Any ideas?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      The hubhop code is only for MSFS 2020, I'm sorry :(
      I believe there might be a way to do this with XPUIPC, but I haven't found it yet

    • @srp01983
      @srp01983 2 ปีที่แล้ว

      @@CaptainBobSim Thhanks for the response. I’d hoped that it would work because the offsets for elevators and ailerons are the same in FSUIPC and XPUIPC. Oh well, I think I may have to buy a copy of msfs2020 instead - it seems that not many of the TH-cam home-builders are using x-plane. But thanks for the instructional video - at least I know a bit more about Mobiflight now!

  • @kenichi5717
    @kenichi5717 6 หลายเดือนก่อน

    hi can i use xplane12 for this? i was thinking to set it for throttle

    • @CaptainBobSim
      @CaptainBobSim  5 หลายเดือนก่อน

      It should work! Refer to the Advanced Potentiometer video

  • @jimhinkle7245
    @jimhinkle7245 6 หลายเดือนก่อน

    Hi Trevor, I followed your tutorial here (thank you for your channel!!!) and I have an issue. When I use a pot for the C172 throttle, it will ALWAYS go back to zero? I can put the put at 100% power and it will go to 100% in MSFS 2020, but again, it will ALWAYS return to zero when the pot is still at 100% Do you now why this is happening? Thanks again!!!

    • @CaptainBobSim
      @CaptainBobSim  6 หลายเดือนก่อน +1

      Hi Jim! What are the values saying in your window when it goes back to zero after 100? Keep in mind this could potentially be a conflict with a joystick if you have one connected.
      You may also find my advanced potentiometer video helpful.

    • @jimhinkle7245
      @jimhinkle7245 6 หลายเดือนก่อน

      @@CaptainBobSim I think I got it Trevor!!!! I used the Hubhop and without adjusting anything, it's working smooth. I just need to adjust the values now. Thanks again!!!

    • @CaptainBobSim
      @CaptainBobSim  6 หลายเดือนก่อน

      Perfect!! I'm so glad to hear!

  • @clementleloch7664
    @clementleloch7664 ปีที่แล้ว

    i have a question for you. The question is can i use a arduino uno same as you are using your arduino mega ? if yes why don't you use an arduino uno instead of an arduino mega that is more expensive. have a great day captain bob🧑‍✈

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      Yes, but unos are not as reliable and have much less pins per dollar captainbobsim.com/2020/12/16/mobiflight-arduino-compatibility/

  • @marcus288998
    @marcus288998 ปีที่แล้ว +1

    How about slide potentiometer. Can you connect it to mobiflight?

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      Yep! These are both the same electronic, but they use a different motion to change resistance.
      Same process :)

    • @ericdozi
      @ericdozi ปีที่แล้ว

      Hello captain, inside debug of Mobiflight, the value is changing but the yoke doesn’t move inside the cockpit of c172 g1000 of asobo (msfs20), can you help? Thanks

  • @TumbleTrashOfficial
    @TumbleTrashOfficial ปีที่แล้ว

    does this work for more than MS2020?

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      No, if you want to use other simulators look for my "Advanced Potentiometer" Video

  • @xota1973
    @xota1973 11 หลายเดือนก่อน

    Does this work with auto pilot knobs?

    • @CaptainBobSim
      @CaptainBobSim  10 หลายเดือนก่อน

      I'd recommend a rotary encoder

  • @kamokekamoke9121
    @kamokekamoke9121 2 ปีที่แล้ว

    Did we configure with fsx as same ?

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว

      Refer to my advanced potentiometer video for how to do this

  • @Thomas-Designs
    @Thomas-Designs ปีที่แล้ว

    So, I plug the potentiometer to the 5v, ground and A0. Every time my pot. Spins all the way in one direction the leds get really dim and the ardiuno turns off.

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว +1

      Could you send a link to your pot? it's possible your pot's wiring is different than mine

    • @Thomas-Designs
      @Thomas-Designs ปีที่แล้ว

      @@CaptainBobSim thanks for mentioning the wiring, turns out I had the wiring switched around 🤦‍♂️

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      Glad you fixed it!

  • @andreslot6134
    @andreslot6134 4 หลายเดือนก่อน

    Am I the only one here who comes for the silly jokes?

  • @pavlejokanovic9133
    @pavlejokanovic9133 11 หลายเดือนก่อน

    Hey can you make tutorial how to connect it to flight sim with Arduino uno

    • @CaptainBobSim
      @CaptainBobSim  11 หลายเดือนก่อน +1

      Mobiflight is compatible with the uno just follow this tutorial but use uno pins instead of mega pins

    • @pavlejokanovic9133
      @pavlejokanovic9133 11 หลายเดือนก่อน

      @@CaptainBobSim but their website say it's compatible with just mega and mega mini something like that I have Arduino uno R3 can I do it with that

    • @pavlejokanovic9133
      @pavlejokanovic9133 11 หลายเดือนก่อน

      ​@@CaptainBobSimI did it and when its time to choose the action type I don't have msfs custom inp I have just msfs 2020 what should I do

    • @CaptainBobSim
      @CaptainBobSim  11 หลายเดือนก่อน

      @@pavlejokanovic9133 It's not recommended but you can do it

    • @CaptainBobSim
      @CaptainBobSim  11 หลายเดือนก่อน

      @@pavlejokanovic9133 Click msfs 2020 and check the custom input box after selecting a preset

  • @attyrorylodge
    @attyrorylodge ปีที่แล้ว

    HOW I KNOW MIDLE ONE SHOULD BE GROUND IS NOT

    • @CaptainBobSim
      @CaptainBobSim  ปีที่แล้ว

      RULE OF THUMB:
      If it's clicky it's a rotary encoder and the middle one is ground.
      If it's smooth it's a potentiometer and the middle is signal.
      When you purchase, it will tell you if it's a potentiometer or a rotary encoder.

  • @CrisMedia79
    @CrisMedia79 2 ปีที่แล้ว +1

    Muchas gracias desde España, funciona OK. Eres un genio! th-cam.com/video/-O8v1lA3RCY/w-d-xo.html

    • @CaptainBobSim
      @CaptainBobSim  2 ปีที่แล้ว +1

      ¡Gracias por sus amables palabras! ¡Me alegro de que funcione!

  • @glennledrew8347
    @glennledrew8347 3 หลายเดือนก่อน

    Knowing how to read the output of a measuring instrument is a skill which should be obtained by grade 9. At least that's when I was introduced to the slide rule, decades ago. A few minutes of preparatiom should have got you up to speed on reading an Ohmmeter's output.
    And your reading of the display which put the decimal in the wrong place was grotesque in the extreme. Only magnified further by demonstrating that you didn't know what the device is called.
    I cringed hard in sympathetic embarrassment while watching this.