Flight Sim Basics (Part 1): Connecting a Switch

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

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

  • @thewarthogproject
    @thewarthogproject  ปีที่แล้ว +125

    Don't listen to the haters. Despite what anyone says, it is absolutley six inches, which is the normal average size.

    • @DM-qm5sc
      @DM-qm5sc ปีที่แล้ว +7

      Normal?!?!?!? THATS HUGE!

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

      5.5 is normal actually

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

      Girth is important…

    • @Zolbat
      @Zolbat 26 วันที่ผ่านมา

      ​@@tbmm2centimetres, right? RIGHT?

    • @tbmm2
      @tbmm2 26 วันที่ผ่านมา

      @@Zolbat tehe :3

  • @nickst2797
    @nickst2797 ปีที่แล้ว +4

    THANK YOU! Finally! I have been asking for DCS-BIOS tutorial in forums for a year now! Such a poorly documented project. You see people with insane builds but with no directions on how you can replicate this. Please, go on with this series!

  • @Joejoe-vd2do
    @Joejoe-vd2do ปีที่แล้ว +17

    This is brilliant! I've made joysticks, throttles, pedals and collectives and just when I thought I've researched it all, you make an introductory video and I learn something new:) Thanks mate!

    • @Joejoe-vd2do
      @Joejoe-vd2do ปีที่แล้ว

      @repentandbelieveinJesusChrist8 Thanks? I'm Jewish

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

    I didn't know any of this and I've been messing with arduino and DCS for several years. Opened up a whole new world for customization, thanks much mate.

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

      There goes all your free time 😁😁

  • @Jager-er4vc
    @Jager-er4vc ปีที่แล้ว +5

    I hope this will be a full series of basics videos.

  • @SVTL4799
    @SVTL4799 ปีที่แล้ว +13

    Thank you for this!!!! Awesome video! I didn’t realize how cheap it is… it’s worth doing just for fun, but I can already tell this is gonna lead to a much bigger project!

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

    Thanks for this. I have always thought about building a simpit and now I have a reason to do it with quick tutorials like this one.

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

    Super cool! One of those things I've thought about countless times yet never really sat down to dig in. Thanks for sharing!

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

    You are a GOAT in the sim world! I've been following your project for years.

  • @hereisanaccount
    @hereisanaccount ปีที่แล้ว +9

    A better solution you can do in your code is to have it send that signal on a signal *rise* and a signal *fall* (this requires as far as I'm aware setting it up as an interrupt). Then when you move it to the on position, it sends the press, and when you move it to to the off position, same. Only downside is when you fire up he game you'd need to have already "reset" your switch positions. The reason I call it a better solution is it doesn't rely on a plugin that may flake out or be broken by an update. Love the content.

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

      The idea to just send a short "button pressed" signal on a rising edge and another signal on a falling edge is a possible solution. But you don't need to set the pins in interrupt mode. You can also scan the pin periodically comparing the pin state with its state of the previous scan. If you see different values, you detected an edge and can send a "button pressed" signal for the corresponding button. To overcome the downside, you can re-send the corresponding signal periodically.
      But if the main goal of your solution is to not configure the sim to react to both button-states, there is a simpler solution: Just map each physical state of a switch to a direct-x button. The following code demonstrates this.
      #include
      Joystick_ Joystick;
      int pins[4] = {9, 10, 11, 12};
      void setup()
      {
      for(int pin_no = 0; pin_no < 4; pin_no++)
      {
      pinMode(pins[pin_no], INPUT_PULLUP);
      }
      Joystick.begin();
      }
      void loop()
      {
      for(int pin_no = 0; pin_no < 4; pin_no++)
      {
      int currentState = digitalRead(pins[pin_no]);
      Joystick.setButton(pin_no * 2 + currentState, 1);
      Joystick.setButton(pin_no * 2 + (currentState^1), 0);
      }
      }

  • @rogerramjet8395
    @rogerramjet8395 ปีที่แล้ว +4

    Thanks for doing this, and the one you're proposing on DCS BIOS. I've been thinking about adding a few things to my setup and this is going to make it much easier. Thanks!

  • @simonegiubilato1672
    @simonegiubilato1672 ปีที่แล้ว +3

    Best video ever! Please keep this kind of stuff coming! 🙏

  • @Erdnussflipshow
    @Erdnussflipshow ปีที่แล้ว +12

    The problem with the TGP switch is even easier to fix than you've shown, when you add a button to an action, it says the button number in the pop-up menu, just click on the number and select the button_x_off action instead of button_x, if you map both the on and off event to the toggle, it'll work as an on-off switch.

    • @thewarthogproject
      @thewarthogproject  ปีที่แล้ว +5

      This was added in a recent update (without being mentioned in any release notes?), and i didnt even know it existed lol. Ill check it out and revisit this later.

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

      @@thewarthogproject Seems like it, I saw a TH-cam short telling people about the feature, but I'm not sure for how long it's been in the game.

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

    Thumbs up before I have watched. Informative, straight to the point and easily found title.
    Great video, easily followed and if not on then off. Cheers.

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

    After this video i definitely decided to get into a project and start made my button box for DCS. Thanks for all your video. 🙏

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

    A pro-micro running a script to do 100 mouse clicks per second if a toggle switch was triggered, really helped me spawn into airplanes in Battlefield 5 :) Just don't forget to toggle it again to not go through your ammo right away upon spawning.

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

    Great video and would love to see more videos like this!

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

    Just a heads up, I don't know exactly when DCS World added it but now you can assign a button's off position as another button press. Basically, you assign the button again but then click on "Key / Button" with your mouse and manually choose the same button but it will have "off" followed after it. Then you will see two button assignments for the same switch on the main controller screen. The switches work as they should after doing that. So, no mods or circuit setups that send a pulse to get an on/off switch to work in DCS anymore.

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

      I found a video that explains it if what I was saying was confusing. th-cam.com/video/c_sLvZptnIk/w-d-xo.htmlsi=y6M5RUiJu0I1R7kv

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

    @thewarthogproject There is another way without using a mod.... pulldown Key/Button, and you will find an entry for "JOY_BTN2_off". Just bind that to the off position. This is after coding the Leonardo for joystick and bound within DCS...
    If it is a 3-way switch (center is off or open), bind up to one function, down to the other, and the middle to 2 "off" positions. Example the F-16 Arming is 3 position. Up - Arm, Middle - Off, Down - Simulate. If it is 2 way on/off switch, just do half of this. One position is the "button" the other is the "_off" input. It must be selected manually from the pulldown.
    Bind within DCS ; Arm - "JOY_BTN1" - up. Simulate - "JOY_BTN2" - down. The middle position will be bound as above using the "Key/Button" pulldown. Off - "JOY_BTN1_off, JOY_BTN2_off". Boom! Done!

  • @Mersher
    @Mersher ปีที่แล้ว +19

    I didn't know about Quaggles, very cool. I'm using mmjoy for my pro micro boards to make them appear as a generic joystick. I have made a custom circuit board I plug the pro micro into, supporting 64 buttons and 8 analog pins from a single pro micro and it's awesome. I'm almost done with a new version that bumps up to 128 buttons plus the 8 analog on a single pro micro🤘

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

      You need to share that board :)

    • @Mersher
      @Mersher ปีที่แล้ว +8

      ​@@DonaldMcMuffin I plan to after I get the new version proven out 👍

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

      Yea, where is your content video? I want to see how to do many buttons :)

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

    The Pro Micro is a great little micro. With multiplexer chips you can even have dozens of switches and buttons

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

    The AH-64 controls have me wishing I knew how to 3D print my own custom assemblies and throw them together. The cyclic/collective I can make work with my Winwing/Warthog setup, but the CPG seat gets brutal with an X-Box controller and trying to fit 1,000 buttons and switches on the damn thing.
    Nice video, as always!

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

      If you need help I got. I fix the apache for my job. So if you need any help I gotcha if it's within what I'm allowed

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

    por fin encuentro lo que necesita , Gracias por compartir tus conocimientos

  • @fabmeloman
    @fabmeloman ปีที่แล้ว +4

    Very instructive thanks for sharing your knowledge, also planning to start on f18 at some point.

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

    I did something similar. I connected 10x8 pins in the grid( including tx an tx pin,no ground) and used joystick and keypad library to program it. I have 80 buttons that work( they are all self-centering switches). Now I am figuring out a design/ layout of the switches.

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

    Hi mate. Wonderful videoI I am now researching how to build my own cockpit and how to do it economically. I find your videos are the best out there.
    It turns out a lot of the libraries in Finland has a lot of the tools needed. It cost me 0.70€ to fill up the Ultimaker 3 pro plate with buttons. The laser cutters cost 1€ a go, so I am finally getting something out of the ridiculous taxes we pay over here.

  • @TNT-tf9jd
    @TNT-tf9jd ปีที่แล้ว +1

    Thanks, great timing for this info.

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

    Damn you for rekindling the fire to get back to doing this. 😂. Super helpful. Thanks

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

    I have a bunch of Honeywell switches for my F-16 pit setup on my card and they work great. Including my Ejection seat handle keyboard emulated on the card to read when I eject.

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

    thanks for getting back to basics! love it!

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

    You can also program switches connected to one pin to act like two buttons. For example when switch is on-joystick button 1 is on for 200ms and when switch changes state to off- joystick button 2 is on for 200ms. This way you can have 36 joystick buttons connected to 18 buttons(18 pins+ground) which this board have. All switches can work at the same time , if you connected 10x8 pins with no ground you can have 80 buttons but a lot of them don't work at the same time. Basically you can do whatever you want.

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

    1:05 The Leonardo is the same form factor as an Uno, but has the 32u4 processor with native USB. The Pro Micro may report as a Leonardo to the Arduino IDE, but it's not the same thing.
    1:54 "...six inches long..."?
    6:32 Whenever I first connect such a device, DCS tries to guess which binds to use, so it's a good idea to check and clear out if necessary the axis and non-axis binds of new devices.
    7:02 Looks like you put the button on the Master Caution circuit breaker bind.
    8:20 WRT on/off bindings. You can program the arduino to send another pulse of the same signal, or a different button press, when you turn the switch off. You can also use this to make "virtual buttons" for on-off-on switches to give 3 separate outputs.
    There's also a way to increase the maximum number of buttons to 128 if you need more virtual buttons.
    Does Quaggles cause problems with purity checks?

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

    On an on-off switch in Arduino you can just watch button state in loop, after the state change save it to variable and send a pulse/message to a PC. The only issue is when you close the game you should reset the buttons position manually.

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

    Awesome video! Thanks for sharing your experience.

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

    LOVE this video, so helpful, thank you!

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

    I have no use for this currently but it was very useful thanks 👍

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

    Absolutely amazing the work you’ve done.

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

    Though it is sometimes hard to understand you, mate, it is great to have a pro showing the basics under the lid. What I would like to know is, how the maker of DCSbios access the API methods of the aircraft.

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

    @6:10 🤣😂 the pain is real

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

    Thank you for uploading this. My f-18 simpit has almost a fully completed front panel. I have been wanting to know how to add my own switches for a while now. I use dcs bios with some premade switch boards built by tek creations but have a few buttons on my front cockpit that have 2 wires coming out of them but arent programmed or attached to anything so I need to learn how to do it myself. I know how to solder so that won't be a issue.

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

    @The_Warthog_Project , these are very instructional. I'm wondering if you have or use Rotary Encoders and what library do use for them? Thanks.

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

    Hey warthog, long time no hear. Coincidentally I messaged you not so long ago on Instagram about this topic, great to hear from you again

  • @glend.7652
    @glend.7652 ปีที่แล้ว +2

    Wonderfully explained as always. One question lasts, if you use more than one Leonardo, is there a way to re-name the different Leonardos?
    I just remember my struggle with easy usb-game controllers, that where not recognized as different boards (in comparison with the Leo Bodnars where you could give them certain numbers).

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

      Yes, you can change the name of the device, and its ID in the boards configuration file in Arduino

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

    Would love to see a video like this on your backlighting. I’m currently at that point with my Tomcat pit. I can make it work but the wiring never looks as nice as yours.

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

    Cool video, thanks! 👍🏻🙋🏼‍♂️🍻🍻

  • @200rabbits
    @200rabbits ปีที่แล้ว

    Can't wait for that other vid on how to handle commands that the community project is missing

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

    Thanks for sharing Quaggles, that's so useful. I gave up ages ago editing the game's lua files after every update.
    Do you know of any good tutorials on how to use and customise the joystick library?

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

      How to build a button box, by wim

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

    "Hello, I'd like to ask you some questions about what just happened". lol

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

    Thank you very much for this video ! 👏🏻

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

    I love listening to Aussies curse. Friggin hilarious.

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

    Freakin cool! I'm not really interested in doing this but it sure is fascinating

  • @ChrisPBacon-my7yt
    @ChrisPBacon-my7yt ปีที่แล้ว

    The metal gear music ❤

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

    Hi. Will be making your 180 screen. What was the radius you used. Enjoying the content. Thanks

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

    Bloody legend

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

    Thank you! This is awesome.

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

    Just excellent !!!

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

    Thanks a lot man, youre a life saver. Just one question: can you actually connect any switch to this card (specifically rotary switches)?

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

    Thanks for this, gives me the push I need to get my cockpit going it’s easier than I thought. Quick question, how would we do a 3 position switch? If we solder both poles to inputs that’s well and good but DCS only allows one switch input for that 3 position switch and I’m assuming that would show up as two independent switches.

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

    Great video lots of helpful information? Could you please do another video on modifying Lua specifically for the Hud and the modifications you made with it and the Is a o a indicator

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

    I'd expected slap at the end xD

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

    How can i connect more than 32 buttons at once?

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

    You don't need that two position switch mod, you can alter the Arduino loop to make it send the on signal for the button on a state change instead of when it's on or off.

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

      how?

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

      @@braitebrina5148 The program he's referring to lets you set up when a button is on or off independent of the input it gets, so you need only set it up to stop sending the signal after a few seconds.
      I'll give you some example code in a separate post.

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

      @@braitebrina5148
      #include
      Joystick_ Joystick;
      void setup() {
      // Initialize Button Pins
      pinMode(9, INPUT_PULLUP);
      pinMode(10, INPUT_PULLUP);
      pinMode(11, INPUT_PULLUP);
      pinMode(12, INPUT_PULLUP);
      // Initialize Joystick Library
      Joystick.begin();
      }
      // Constant that maps the phyical pin to the joystick Switch.
      const int pinToSwitchMap = 9;
      // Last state of the Switch.
      uint8_t lastSwitchState[4] = {0,0,0,0};
      // Time of last change.
      unsigned long lastStateChange[4] = {0,0,0,0};
      void loop() {
      // Read pin values
      for (int index = 0; index < 4; index++)
      {
      int currentSwitchState = !digitalRead(index + pinToSwitchMap);
      if (currentSwitchState != lastSwitchState[index])
      {
      Joystick.pressButton(index);
      lastSwitchState[index] = currentSwitchState;
      lastStateChange[index] = millis();
      }
      if (millis() > (lastStateChange[index] + 100))
      {
      Joystick.releaseButton(index);
      lastStateChange[index] = millis() + 1000;
      }
      }
      delay(50);
      }

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

    Great video, how do you add more pin modes to that? It’s only allowing 4 pins to be connected..

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

    7:15 Problem is ED too lazy to program a Release to all the switches. Make it like MSFS 2020 where you can select activate or release for the same button. I use RS Mapper to get around it, but Quaggles looks a lot easier, since you don't have to use a separate program. Is there a profile for Quaggles you can save?

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

      Lots have people have since told me DCS can do this natively since a recent update, although i havent tried it out yet because i had no idea it was possible. Ill revist it later on!

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

    Great content. Now for the complicated question. If I have 75 switches to wire up, what is the preferred solution? Multiple Arduino boards plugged into a USB hub?

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

      You could use a button matrix though you might run into issues with toggle switches using that, you can also have multiple Arduino's using one usb, one is the master that you plug into your computer and the others (slaves) are wired into the the master.

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

      I's suggest looking into a large button matrix if you are only using pushbuttons (a matrix only really works well with momentary push button switches), or you could cascade a bunch of shift registers like the 74HC165's possibly.

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

    Can you please link a version of that Arduino code that does not have a limit to how much buttons is programmed? Please and thank you.

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

      Did you get that? I’m looking for help with that

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

    I am attempting to build a couple of basic button boxes and I wasnt aware such a mod existed, however, after downloading all input commnds from munkwolf I have discovered that all the files are blank!!

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

    keyboards definitely do send separate signals for keyup and keydown

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

    A quick way to open up the game controller interface is to type 'joy' into the start menu.

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

    7:18 Wouldn't the "Switch OFF" option in the DCS controller editor work for this?

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

    The typical workaround (I use) with switches in DCS is to assign TGP ON = JOY_BTN2 (on), and TGP OFF = JOY_BTN2 (on release). This is native to DCS and seems to work fine without the need for any third party apps.

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

      i use this too but what i dont like is if your switches are out of sync at the start they stay out of sync. this is extra annoying if you are playing in something like a huey where the ai co pilot will sometimes flip switches randomly.

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

      ​@@patty_cakes5596 That's why I made all my switches momentary, so there will never be a mismatch between the hardware and the game.

  • @Magpie...
    @Magpie... ปีที่แล้ว

    Thanks for making this
    I bought a one of the controllers and 3 non momentary switches just to learn this.
    It will be nice to use to make a wall cooling panel for the p51 and 47.
    How do I know where to solder the wires?

  • @stevesteven-gw4zy
    @stevesteven-gw4zy ปีที่แล้ว

    Great vedio plz make more like this for falcon bms as well good job

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

    LMAO the ending!!

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

    You should be able to just change the code so that it sends a signal whenever the state of the switch changes. You just save the last state in a boolean variable and send the signal when it isn't the same.

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

    @thewarthogproject how do you tie multiple grounds together on the micro?

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

    Are you sure you cannot solve the toggle switch problem with software in the Arduino.
    You can tell it to give a single pulse every time it changes level from 0 0.

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

    Would you need the community files/mods for the switch with the recent update to DCS binding system (ie. the ability to map a release to a function?)

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

      I had no idea this update even existed. May have to have a look and revist this one later.

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

    Noob question.
    Toggle switch when it is ON is like to push and hold button on a keyboard, right?
    AFAIK, Windows and games (WarThunder to be specific) do not support the state when 3 buttons are held simultaneously.
    It means that if you hold 3 buttons, the system will not recognize if you push the 4th button.
    So, is there a problem, when you have 3 toggles swithes ON?
    I hope I explained my question.

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

    I’m having a real hard time trying to add more buttons. With that basic code pins 11 and 12 don’t exist. I’ve tried changing the pin numbers to other digital outputs but I can only get pins 9 and 10 working.
    Any advice???
    Thanks,
    Nick in Sydney building an F5e simpit.

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

    How would you set this up with a 4x4 matrix keypad?

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

    Is this what you did with your CRS and HDG knob by chance?

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

    I'm using toggles in DCS with a simple panel I made. You can get around the issue of having to throw the switch twice by using a simple if statement. should look something like this for the Joystick library.
    if (digitalRead(button1) == LOW) {
    Joystick.setButton(0, 1);
    }
    else {
    Joystick.setButton(0, 0);
    }

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

    dcs dont have toggles commands
    like some fps allow aim,chrought, sprint and other functions 2b toggle so you press it once start,press twice it release instead of having to hold that button on a state

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

    Short question. How many switches can i use per adueino?

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

    thank you

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

    i had this issue with a toggle on my virpl throttle then found out i can change how it works in the software itself to work just like u showed

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

    can u help me here. the library wont load into ide. it says internal library install movin etractred file to destinatiuon dir
    is there another library like this one u have here

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

    This on-off problem is one of my biggest complaints with the Thrustmaster Warthog Throttle. I’m checking out that mod now. Holy crap that will be a lifesaver, literally.

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

    What is the set-up of your visual cylindrical, like type of projector type of program to combine the 3 projectors image, computer capacity like all this stuffs

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

      Have a look thrugh the youtube channel or go to www.thewarthogproject.com

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

    Will this work for Su-25t and can I put multyple switches to a single arduino. Also can I use only the switches with the same schematic t

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

    do you prefer this method over using the DCS Bios and std arduino like you used in your build?

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

      Ive mixed and match both. I use this method for the panels that only have switches, and DCS-BIOS for the panels that need an LED or display.

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

      @@thewarthogproject Brilliant thanks for the info. Your videos are ace. i mustve watched nearly all of them.

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

    Does the quaglea mod affect integrity check for multiplayer servers?

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

    what wires are you using? do just any wires work for this?

  • @fon-tijn
    @fon-tijn ปีที่แล้ว

    hey i get around the issue with the toggle switch by using a simple if statement in the arduino code i am using a similar libary for an raspberry pi pico i am intrested if u know a way to get lights working on the pico?

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

    Does this method work with 3 way switches too?

  • @Dcscockpit
    @Dcscockpit 10 หลายเดือนก่อน +1

    I’d like to note that your wrong with adding more pins, adding those lines with the additional pins is NOT the only thing you need to do to use all the inputs of the board, there are actually 3/4 more lines that need to be edited in the code, I’m really not sure why the example doesn’t do all the pins, if you don’t use them all then they just don’t get used lol

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

      Do you know how to add more? I’m a noob, but have this set up could do with adding more to maximise the board…

  • @Nick-Taylor
    @Nick-Taylor ปีที่แล้ว

    I think I am better to pay the extra 50c and get the type C connector version. its a fraction longer, but that doesn't bother me. Thanks!

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

    i have finally made myself a ufc thanks this series. Well almost an UFC it still needs some Displays, so are you going to make a tutorial on it cause I can figure it out by myself:(

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

    How does "Arduino Joystick Library" compare to MMJoy?