Это видео недоступно.
Сожалеем об этом.

Connect an On-Off or On-On Toggle Switch to a Flight Sim | MobiFlight Crash Course Episode 5

Поделиться
HTML-код
  • Опубликовано: 18 авг 2024
  • How do you connect a button or a switch to MobiFlight?
    🎥Full Course Playlist: • One-Stop MobiFlight Shop
    A complete foundation to the MobiFlight Software. From Zero to Hero!
    🎥All MobiFlight Videos: • All MobiFlight Videos
    📌Blog post with screenshots: captainbobsim....
    🎥More up to date version: • Make a Gear Handle wit...
    ⚠I lied! In reality, small switches connect contacts opposite from their position (if the switch is up, the bottom two contacts "connect") This is shown here: i.pinimg.com/6...
    ​👉Get a "Starter Kit" containing everything in the course: captainbobsim....
    ⌚Get ahead! Next week's video will be on 3 position toggle switches (momentary and locking). After that, It'll be on the noble "microswitch".
    📦3 Position Locking Toggle: ebay.us/GegEkl or ebay.us/RgdmcJ
    📦3 Position Momentary Toggle: ebay.us/X9w7TZ or ebay.us/4zYTzn
    📦Microswitch: ebay.us/MnYo5l or ebay.us/sxXOkc
    This Video Features:
    📦Arduino Mega: ebay.us/6OCrco or ebay.us/r3nN8n
    📦Arduino Uno: ebay.us/4FRucX or ebay.us/fYUyUP
    📦Jumper Wires: ebay.us/kH8k89 or ebay.us/lgIp3L
    📦24 AWG "Hookup" Wire: ebay.us/XCbsal or ebay.us/y3aWqg
    📦Small Toggle Sw (cheaper, for Dual Switch): ebay.us/q8f5QZ or ebay.us/W2XtP8 or ebay.us/AcI5JU or ebay.us/RlFg9g
    📦Large Toggle Switches: ebay.us/aGA3zB or ebay.us/d21KEN
    * As always, look for better deals*
    🔗Links:
    Install MobiFlight Video: • How to Install MobiFli...
    Learn to Solder: captainbobsim....
    Blog post with screenshots: captainbobsim....
    👨‍✈️Support the Channel:
    ▶ / captain_bob
    ▶ www.paypal.com...
    ▶ www.amazon.com...
    ✈Watch me build my Cessna 172: • Version 3 Cessna 172 P...
    LINKS
    -----------
    Patreon: ▶ / captain_bob
    Store: ▶captainbobsim.c...
    Podcast: ▶captainbobsim.c...
    Merch: captain-bob.cr...
    Thingiverse: ▶www.thingivers...
    Website: ▶captainbobsim.com
    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
    Thank you to everyone who has helped support this project.
    #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 Important Rows
    00:35 MobiFlight Modules
    01:38 Resources & Support
    01:55 Inputs vs Outputs
    02:15 Top Tabs
    02:37 Settings Page
    05:43 MobiFlight Configuration

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

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

    BENDING! Made some weird contraptions trying to connect dupont cables to those connectors. But the key is bending the tip... You've enlightened my day.

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

      Not a great long term solution, loads worse than soldering, but I haven't had one break yet!

  • @captsonko.9345
    @captsonko.9345 2 года назад

    hi capt thanks God bless u i finaly maneged to switch on my 737 land lights after along struggle.

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

    15:38 it's exactly what I needed to mimick the Airbus A320 overhead panel light switches ;) for example, the landing lights, the lower on is RETRACT, middle OFF is OFF, upper ON is ON :) and there's several others of similar type :)

  • @christophersoliz6013
    @christophersoliz6013 11 месяцев назад

    This is incredibly helpful. I JUST started learning how to use an arduino so I can build a 737 simulator. I do have a dumb question though: what coding do we have to do on the actual arduino, along with the steps from this video?

    • @CaptainBobSim
      @CaptainBobSim  11 месяцев назад +1

      Hello Christopher! With MobiFlight you shouldn't have to do any actual coding, just configuring buttons and switches and LEDs like I showed in the video.
      The arduino is just flashed with the config you make when you flash the arduino (as shown in the video)

  • @captsonko.9345
    @captsonko.9345 2 года назад

    thanks captain we appreciate ur effort GOD BLESS U.it was a tough lesson i managed to switch on ma land lights.

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

      Woohoo!! That is so awesome!! It's so satisfying to see it work for the first time!

  • @ceatolei12345
    @ceatolei12345 Месяц назад

    thanks cap bob

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

    I am interested in a switch for 3 outputs. Do i need a on-off-on switch or a on-on-on? The use will be for master arm-off-simulate and maybe one more for autopilot. Any recommendations or even better a video on the use of on-on-on switch would be great.

  • @uprzejmypiesio6875
    @uprzejmypiesio6875 10 месяцев назад

    Hi, im new to this and just asking: How many ON/OFF switches can i have on single arduino mega board? To which pins can i connect the switches? And can all of them go to single ground pin? I will be grateful for answer

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

      Hi! The limitations are on the MobiFlight Website. To my knowledge for switches it's as many as the arduino can handle
      All electronics can go to a single ground pin, just make all the GND wires are touching.

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

    You make great videos about MobiFlight! So may I ask you a difficult question?
    I am trying to match the starting procedure of a ZLin Savage Cub Carbon/Grravel (MSFS2020) with 2 separate switches and a separate key switch. This aircraft does not use a 5-position key switch but 2 separate on/off switches for the Magnetos. So I use 2 on/off switches (and a key switch with 3 positions - Off, Batt-On, Start) on my controller.
    However, I can't get it to work properly.
    Switch 1 (controller) on = Magneto left on (so that works well).
    Switch 2 (controller) on = Magneto Right on but .... Magneto left goes OUT again in the plane.
    So when Magneto Right is turned on, Magneto Left is turned OFF again!
    Also turn off the Magnetos left and right with the controller switches does not work properly.
    My input settings: MSFS2020 - Custom Input.
    My Select Preset: Magneto Switch Left (Right)
    Code: 2 (>K:MAGNETO1_SET) (A:GENERAL ENG STARTER:1, Bool) if{ 0 (>K:SET_STARTER1_HELD) }
    Do you have any idea what I'm doing wrong and how to fix it?
    Thank you very much.
    Fer

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

      Hello! I can maybe point you in the right direction, but if you want me to sit down and help I offer MobiFlight consulting here:
      captainbobsim.com/services/
      I recommend using preconditions (and perhaps even MobiFlight variables).
      You could set a precondition to the left and right row saying only run if the other one is false then set a precondition to the "both" row if both left and right are true (on). You might need two "both rows" one for each switch, with the precondition that the other one is also on.
      I'd recommend using the click and dropdown structure with default simconnect events instead of code to avoid potential RPN coding errors.

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

      Hi Captain Bob, Thanks for your response. I managed to get it working properly today. I tried out different codes from Magnetos from the Hubhop site and in the end the settings of the XCub worked perfectly.

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

      @@pure4wood501 Perfect!! Glad you could get it to work!

  • @GianfrancoRingo
    @GianfrancoRingo 9 месяцев назад

    Hi Cap. Can you explane ho to connect damn kd2-2 button switch with arduino and Mobiflight config? Thanks Mate!

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

      Hello! You might find this helpful: i.ibb.co/qkxtTxy/KD2-22-Pinout.jpg

  • @user-we7lb2hc6u
    @user-we7lb2hc6u 9 месяцев назад

    Wonderful Capt. Bob! I just solved an issue I was trouble shooting Well done. Just a quick question, in the INPUT tab where you insert the VALUE for the behavior of the switch, where can I get more information on all the conditions available exampl using the "if" and "$" command?

    • @CaptainBobSim
      @CaptainBobSim  9 месяцев назад +1

      Hello! It's called ncalc, there's a page on it here for all the crazy things you can do with it: docs.servicenow.com/bundle/tokyo-application-development/page/product/rpa-studio/reference/supported-expression-functions.html
      (Note, not the official documentation page for ncalc)

    • @josefzammit3059
      @josefzammit3059 9 месяцев назад

      Thanks! Is ncalc c#? Or this is something different?

    • @CaptainBobSim
      @CaptainBobSim  9 месяцев назад +1

      I believe it's a library in C# as MobiFlight is written in C#
      @@josefzammit3059

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

    Hi, huge thanks for this course, hugely appreciated ! Something I don't get : in this video you advise about jumper wire and at 1':52" you go "I'd highly recommend getting some hook up wire"... So what would you use the jumper wire for ??

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

      Hello!
      Jumper wire is great for prototyping, but after a while the connections become brittle and break off
      Soldering and crimping some hook up wire with dupont connectors is a better connection.

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

      @@CaptainBobSim So if I get it right, you solder hook up wires to buttons, then you crimp a connector on it, and plug it to the board ?

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

      Yep! Exactly

  • @gustaeeeapp4438
    @gustaeeeapp4438 19 дней назад

    🎉i don't speak inglish but i anderstend 😀 muchas thanks youuuu!!!

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

    Great job man. Planning on a career in engineering? You should!

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

      Thank you Ron! I am planning on a career in engineering - or at least until I can do this for a living 😜
      Thanks for watching!

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

      @@CaptainBobSim Hope you're looking at Purdue University, Captain Bob. World-class Engineering AND Aviation degrees!

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

    So you can’t use all of the slots that aurdiono mega provides you with?, for example, you said there are only 3 slots available for ground pins (output)

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

      No, You can connect grounds together
      Look at the images at the bottom of this post: captainbobsim.com/2020/12/16/mobiflight-arduino-compatibility/

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

    Hi Hi Captain ! :D
    Another question for you :
    Let's say I wanna make a parking brake with a rotary selector (like in the TBM 930). There are 2 events : Parking brake on / parking brake off. In that case, can I use a SPST (on - off) or do I necessarily need a SPDT (on - on) ?
    Now, about lights, if I wanna have a toggle switch to enable and disable landing litghts. Is a SPST enough or do I need again to go for a SPDT ?

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

      You can use a SPST or a SPDT, with the SPST you'd assign an "on press" to one action and an "on release" to your other action. With a SPDT you'd assign two different rows in your configuration.
      Keep in mind the physical SPST switch is the same as an SPDT just "ignoring" a pin.
      I like to order SPDT whenever I can and use them as a SPST

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

      @@CaptainBobSim Makes a lot of sens. Once again thank you so much for your help, very very appraciated !

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

    Hi, just a quick question: wouldn't this method send (when the switch is on) a continuos battery on battery on battery on like you keep pressing a button on a joypad or keyboard? Cause that feels "wrong". Or does the mobiflight module handle this and just put the pin down after the "first input" ?
    Thanks

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

      I think MobiFlight handles this - if you enable logging to a debug level it will say "PRESS" when it detects a press and "RELEASE" when it senses a release.

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

    Hello, can I solder the wires to the buttons?

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

      Yep! Google a wire to terminal soldering tutorial

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

      @@CaptainBobSim ok thank you and great tutorial😁

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

    What is the arduino called? So it is compatible? Im new to this

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

      The one I use is usually the Arduino MEGA 2560
      There's also the Arduino Mega Pro Mini, Arduino Pro Micro, Arduino Uno, Arduino Nano which are compatible (check the mobiflight website)

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

      @@CaptainBobSim Thanks

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

    If i dont know how to soulder, can i just use jump cables like for 5 switches.

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

      Yep! I recommend hot glue so it doesn't come undone

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

      @@CaptainBobSim Hot glue the end of the jumper cable to the switch?

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

      Sometimes I'll bend the end of a male jumper into the toggle's connector hole.
      When hot gluing make sure the metal touches metal - hot glue is an insulator.

  • @SamuSpotterMilan
    @SamuSpotterMilan 4 месяца назад

    Hi,
    sorry, I use fsx but I don have fsupc, is that a problem finding the crucial things like the lights? (Like u do for the battery on 6:45 ?)

    • @CaptainBobSim
      @CaptainBobSim  4 месяца назад +1

      You'll need an (at least unregistered) version of FSUIPC to work with FSX. I'd refer to my early videos on the channel.

    • @SamuSpotterMilan
      @SamuSpotterMilan 4 месяца назад

      @@CaptainBobSim thank you.
      anyway, can I refer to you if I have some issues?

    • @CaptainBobSim
      @CaptainBobSim  4 месяца назад +1

      I'll do my best, but realize I can't always fit it in

    • @SamuSpotterMilan
      @SamuSpotterMilan 4 месяца назад

      ​@@CaptainBobSimdo you have instagram?

  • @GustavoRodriguez-br5jf
    @GustavoRodriguez-br5jf 2 года назад

    Hi captain bob can you do the same for fly by wire mfs2020

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

      Yes- but your events might be different. (I think the generic ones sometimes work however)
      Use only the Flybywire events in the dropdown.

  • @Paradyski
    @Paradyski 21 день назад

    Connie in background ?

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

    No info about wiring a Korry switch ... Since these are so common in flight sim builds, it seems there would be more information on this type of switch. ..not

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

      Real or homemade? For real you’d reference the maintenance manual for homemade it’s a push switch and an LED

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

    Needles to say SimVim way more intuitive and superior to MobFlight

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

      😂 I've used both, and there are pros and cons to both: ruclips.net/video/scQtUiYEn2Y/видео.html SimVim is more intuitive :)

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

      Is simvim usable with fs2020?

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

    Input tag gone 9.2. Redo video.

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

      Yes - a lot has changed since I filmed months ago, but the general flow is roughly the same.
      I may update it sometime in the future, but cannot update every video to the latest version of MobiFlight, because MobiFlight develops quicker than my videos do :)
      The latest toggle version has the updated interface: ruclips.net/video/cAvwrEeiQGc/видео.html

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

      @@CaptainBobSim Haha I just found the Output/Input tabs

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

      @@Greazer Oops!! Totally different issue I was thinking about 😂
      Glad you found the tab!!