Ep: 10 - DCS Bios | Analog Multi Position Switches | Code Your Flight Simulator

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Stop wasting pin space on your Arduino with Multi-position switches!!! Let me show you how to pass up to 16 inputs through 2 wires 😀 All with a bit of theory we learnt in Ep. 9
    This is an absolute game changer, and can be used with DCS BIOS!
    Links to download the PCBs are below
    💡 PCBWay - Your One Stop Shop for PCBs and Manufacturing
    pcbway.com
    💵 Support Me and Get $5 off your PCBWay Order
    pcbway.com/g/6CU8SX
    The PCB from PCBWay
    www.pcbway.com/project/sharep...
    0:00 - Intro
    0:45 - The Switch
    2:00 - Create the Resistive Band
    4:25 - PCB in Fusion
    8:07 - Soldering the PCB
    10:42 - Connecting to Arduino
    13:16 - Voltage Dividing / Debugging
    16:45 - DCS BIOS Coding
    23:57 - Game Play
    Download the latest design files for our previous tutorials here!
    cults3d.com/en/users/aHornets...
    ✏️ Fusion 360: www.autodesk.com/products/fus...
    - Download Free Trial / Personal Use
    🕹 Digital Combat Simulator: www.digitalcombatsimulator.com
    - Free Trails on most aircraft!
    🎶 Music: www.epidemicsound.com
    Instagram: / ahornetsnest
    Facebook: / ahornetsnest
  • Hry

Komentáře • 80

  • @v_seraphim_v
    @v_seraphim_v Před 5 měsíci +5

    those switches and panels are coming up beautifully. Great tutorial.

  • @19PipoGarcia
    @19PipoGarcia Před 5 měsíci +4

    Thanks again, Scott. The tutorial was interesting, and I'm very grateful for the time you dedicate to all of this for the DCS community. Each tutorial you give us clears up many doubts. With each new tutorial, it becomes more interesting. Looking forward to the next one.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thank you so much! I’m glad you are enjoying them 😃😃 see you next episode

  • @garrukapex6693
    @garrukapex6693 Před 5 měsíci +2

    as a fellow EE, this is remarkably detailed and thorough. nice work dude

  • @blave549
    @blave549 Před 5 měsíci +2

    I'm an electrical engineer and this would've never occurred to me. Nice work.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thank you!! 🙌🏻🙌🏻 that means a lot 😃

  • @7j7c72
    @7j7c72 Před 5 měsíci +3

    Your tutorial are the best of the best all over the internet, thank you for sharing 🤩

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      🙌🏻🙌🏻 you are too kind! Thank you so much ☺️

  • @temyraverdana6421
    @temyraverdana6421 Před 5 měsíci +1

    Wow, great video and very useful explanation. See you next

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thank you!!! See you next episode 😃

  • @Marcin79W
    @Marcin79W Před měsícem +1

    Such a PIN saver, thanks a lot!

  • @Serhy0
    @Serhy0 Před 5 měsíci +2

    Amazing as always! Thank you for the time you spend to make these videos. I hope your channel will grow big one day, because this is high quality content. 👍

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Thank you so much! It’s been a pleasure making content for the community 😁

  • @Delta2Oscar
    @Delta2Oscar Před 5 měsíci +1

    I absolutely love your channel. It has given me so many more ideas with my F-18 build.
    I am not sure if anyone else has this issue. On a Galaxy phone, your instructions/captions are covered by the video's information. Unfortunately, I can't make out everything.
    Thanks again for your channel and everything you've been doing!!!

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Thanks so much mate! I really appreciate it
      Is that for the long form videos - or the short 1 min videos?
      Thanks for following along with the channel 😃

    • @Delta2Oscar
      @Delta2Oscar Před 5 měsíci +1

      @aHornetsNest My pleasure! It's only during the shorts in vertical orientation.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      @@Delta2Oscar ah okay cool :) I’ll have a look around
      Theyre directly uploaded from the InstagramTV format from season 1
      I’ll have a play around with the next set so they are a bit more readable 😃

  • @Jakes_1-1
    @Jakes_1-1 Před 5 měsíci +1

    How to make a daunting task look easy? Just watch this channel! Awesome work!
    Busy working out what switches I want and need then I will be revisiting this series as I build my own panel.
    Thanks for your hard work and for sharing all of this!

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thanks mate!!! Any questions let me know 😃

  • @user-we1tn1tk3z
    @user-we1tn1tk3z Před 4 měsíci +1

    How amazing! Greetings from the UK! Thank you, Scott. It is not often you come across beneficial tutorials, delivered in a professional, clear and simple-to-understand way. Even for me, who does not understand electronics, this was relatively easy to understand. Just so you know - I have subscribed and will follow. I aim to build some panels for A10C, to make my flying tactile. I'll look forward to future videos.

    • @aHornetsNest
      @aHornetsNest  Před 4 měsíci

      Hey mate! So good to have you here 😃 all the best with the build - keep me updated 🫡

  • @Steph-uo9pn
    @Steph-uo9pn Před 5 měsíci +1

    As always, great tutorial!! I could watch your videos for hours!!! It couldn't be better!!
    Thanks for your great work!!

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thank you very much! See you next episode!

  • @Magpie...
    @Magpie... Před 4 měsíci +1

    Got this working, thanks. Then I tried to use the pot to make a rudder trim button for the mozzie and failed pretty quick!

    • @aHornetsNest
      @aHornetsNest  Před 4 měsíci

      Oh no! Shoot me a message on Instagram and I’ll see if I can help 😃

  • @Nick-xe2hu
    @Nick-xe2hu Před 5 měsíci +2

    Great video. Great solution. Just a heads up there are detent rotaries available that are 3 wire. Leo Bodnar SLI-12. I'd really like to see a video regarding the magnetic reset on the LTD/R

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thanks mate! Oh nice I haven’t really delved too deep into the Bodnar world.
      I just had a look at them, looks like a nice solution for 12 positions - at least now with the theory you can take any rotary of your choosing and make it 3 wire connection 😃
      I’ll do a mag video at some point as the cockpit progresses 🙌🏻

  • @A.Prayde
    @A.Prayde Před 5 měsíci +1

    Awesome !!!!! Thanks a lot !

  • @baronvonrichthofen2021
    @baronvonrichthofen2021 Před 5 měsíci +1

    Love these tutorials. You’re making it look easy! I was curious air something though. You seem to basically turn a rotary switch into a stepper potentiometer. Can you explain why you do it this way? Why don’t you wire each pin to the Arduino directly? Is this to save pins on the Arduino, or is there a different reason behind this?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Hey thanks so much! Yeah that’s exactly it
      It’s purely to save pins on arduino
      It’s not the “best” or “only” way to do it, but it’s the best pin saving way without using multiplexers 😃

  • @tonyedge3414
    @tonyedge3414 Před 5 měsíci +1

    Great video and really helps me with the UFC keypad I am building. Any chance you can do a video using the matrix option for switches

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Glad you got something out of it 😃 I can’t definitely add it to the list 🙌🏻

  • @xyzsauce1
    @xyzsauce1 Před 5 měsíci +2

    Thanks so much for the great info in your tutorials. Im looking at building my own F18 sim pit very soon and the electical side of things was totally foreign to me. One question with the rotary switch and the position of the markings on the panels, how do you know that the switch and panel markins will line up when you turn the knob?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Hey mate! Glad to hear another F18 sim is coming into the world
      So the rotary switch has a registration stub on it to 1) stop the switch backing rotating when you try turn the knob and 2) but it shows you where position 0 is for the switch
      I will design my panels to have a registration hole in them to align the switch and you can find on DCS Bios where POS 0 is so I know it will align each time
      On the Hornet SENSOR panel - the POS 0 is in the 9 o’clock position for both switches
      Hope this helps :)

    • @xyzsauce1
      @xyzsauce1 Před 5 měsíci +1

      @@aHornetsNest at the moment its still a little hazy. i think once i build a panel and play with the switch position it'll be more clear to me.... am i right in thinking you can adjust the throw/step on the switch to match the markings on the physical panel?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Yeah once you start working with it it should make more sense
      Yeah you can buy different throw angles for the switch
      As well as different pin counts
      Most common throw angles are 30, 45 and 90

  • @wardker
    @wardker Před 5 měsíci +1

    Another fantastic video. The educational value is priceless... This is better than Netflix!!! Can't wait till next week, ... exciting... Would you happen to know if it's possible to use DCS Bios code together with plain arduino code on the same board? Like for combining a shift register or a matrix with DCS Bios. Or does DCS Bios support shift registers or matrix? Thank you very much for all your efforts enormously appreciated!👍👍👍👏👏👏

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thanks mate!! Yeah you definitely can
      I run my caution panel using output data from BIOS and then normal code for a shift bit register for the caution lights
      You just can’t mix BIOS with HID
      Hope that helps 😃 see you next episode

    • @wardker
      @wardker Před 5 měsíci +1

      Thanks a lot, any chance on a tutorial on shift registers or matrix?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      @@wardker hey I can definitely look into a tutorial like that 😄

    • @wardker
      @wardker Před 5 měsíci +1

      Exciting...You truly are the Obi-Wan Kenobi of simpit builders!! 👏👏👏@@aHornetsNest

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Thank you 🙏 😁

  • @clarkyclackers2684
    @clarkyclackers2684 Před 14 dny +1

    can someone help me im trying to find that switch on amazon and i cant seem to find it?

    • @aHornetsNest
      @aHornetsNest  Před 13 dny

      Hey you may need to buy it from a company like Mouser or Digikey

  • @georgelza
    @georgelza Před 5 měsíci +1

    awesome.
    G

  • @checksixivan4921
    @checksixivan4921 Před 5 měsíci +1

    Nice - save those pins! Question: you copied and pasted the AnalogMultiPos line of code and it caused the error because Resolution/step was no longer needed. How would we ever know this? You literally used the code it provided, but it was incorrect…why is what was provided wrong in the first place? You also said mentioned something about if we looked at the back end coding we would see that. I don’t really know what that means. Where do we see this back end coding? Thanks!

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Hey! Great comment 😃 BoRT and DCS Bios at times can have a tendency to be out of sync as I believe they were initially made by two seperate entities. As well as this technique is so rarely used by people I think updating it would have been over looked. But I’m not exactly sure on the reason why
      Back end code is the library files, you can navigate your way through the arduino dcs library and find the switch type you are using - and inside that file you can read the public and private class code and work out how the code works - if you have a understanding of arduino concepts it should be fairly easy to decipher
      I hope this helps 😃 I’ll be testing all snippets and creating more fixes if I find any

  • @quasarcon9402
    @quasarcon9402 Před 5 měsíci +1

    Another brilliant tutorial. If I can ask, what is the gauge of wire that you use in the panels?

  • @The_ViperProject
    @The_ViperProject Před 5 měsíci +1

    Nice video mate! I’m encountering an issue with polling the state of the cockpit switches: if the switches aren’t aligned with the sim I have to move first the switch for it to be “registered” and then it works. This happens with toggle switches that for example are “off” by default in the sim (e.g. cold & dark) however left in the “on” position on the physical panel. Any way around that other than having the physical switch aligned before the handshake with DCS bios?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Hey mate! There is a work around :) I’ll just need to go digging a bit to see the lines of code I added to the bios library to make it auto poll 😃 but I 100% know that frustration of needing to manually reset switches when you just wish it would update immediately on start up
      I’ll keep you updated 😃

    • @The_ViperProject
      @The_ViperProject Před 5 měsíci +1

      @@aHornetsNest awesome! Thanks a million!

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      @@The_ViperProject 😃😃😃

  • @Magpie...
    @Magpie... Před 4 měsíci +1

    C&K A11203RNMCQ is this the right 12 position variant?

  • @barriedrew
    @barriedrew Před 5 měsíci +1

    Hi. Great work and very usefull. Can you show how to connect several axis to an arduino to connect to a joystick and throttle. Ive built my own and would like to use arduinos on each module.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      Hey :) yeah I can do a tutorial on how to connect Arduino as a HID controller with Axis control

    • @barriedrew
      @barriedrew Před 5 měsíci +1

      Thanks. That would be really usefull.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      @@barriedrew 😁

  • @jehlybean636
    @jehlybean636 Před 5 měsíci +1

    Is there no way to launch/connect DCS BIOS serial without opening that program every single time and entering the same port?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Hey there there if you have a fixed set up, and you know it’ll be COM X every time, you can go an edit the multi com serial file and open that one instead
      But for the purpose of the tutorials, and the potential all of new viewers I use single serial port
      But once the cockpit is up and running I’ll transition to the multi serial

    • @jehlybean636
      @jehlybean636 Před 5 měsíci +1

      ​@@aHornetsNest Gotcha! Thanks so much for this. I'm working on my A10 cockpit myself. I just need to figure out where DCS BIOS hid the "Hide Labels" and NVG code.

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      @@jehlybean636 oh very nice!!

  • @vikingcat794
    @vikingcat794 Před 5 měsíci +1

    I need my fix, when is the next video?

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci

      😁😁 this Tuesday! I think is going to be a good one 🫡

  • @Snugggg
    @Snugggg Před 5 měsíci +1

    is that a magnetically held switch in the middle there?

  • @clarkyclackers2684
    @clarkyclackers2684 Před dnem +1

    Hi me Again, is this the exact same theory for connecting a 12 position switch? and only utilising only 4 of the pins? as im gathering you code it out in arduino? as i will be using the built in stopper for the switches?

    • @aHornetsNest
      @aHornetsNest  Před 7 hodinami

      Hey :) yeah exact same theory, I’d still use resistors and connect all the pins - just incase one day you do need the extra capability, and it’ll also keep the coding a bit more intuitive
      But at the same time - if you just wanted to connect the required pins that is also okay - just adjust the code as required … but the voltage dividing theory is the same

    • @clarkyclackers2684
      @clarkyclackers2684 Před 7 hodinami +1

      @aHornetsNest Perfect your an absolute star and a complete credit to the sim community thankyou!

    • @aHornetsNest
      @aHornetsNest  Před 7 hodinami +1

      @clarkyclackers2684 thanks mate I appreciate it 🫡 looking forward to coming back and making more episodes soon