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

  Рет қаралды 4,413

A Hornet's Nest

A Hornet's Nest

Күн бұрын

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

Пікірлер: 83
@v_seraphim_v
@v_seraphim_v 6 ай бұрын
those switches and panels are coming up beautifully. Great tutorial.
@aHornetsNest
@aHornetsNest 6 ай бұрын
Thanks mate!!!! 🙌🏻🙌🏻
@19PipoGarcia
@19PipoGarcia 6 ай бұрын
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 6 ай бұрын
Thank you so much! I’m glad you are enjoying them 😃😃 see you next episode
@garrukapex6693
@garrukapex6693 5 ай бұрын
as a fellow EE, this is remarkably detailed and thorough. nice work dude
@aHornetsNest
@aHornetsNest 5 ай бұрын
Thanks mate!!
@7j7c72
@7j7c72 6 ай бұрын
Your tutorial are the best of the best all over the internet, thank you for sharing 🤩
@aHornetsNest
@aHornetsNest 6 ай бұрын
🙌🏻🙌🏻 you are too kind! Thank you so much ☺️
@blave549
@blave549 6 ай бұрын
I'm an electrical engineer and this would've never occurred to me. Nice work.
@aHornetsNest
@aHornetsNest 6 ай бұрын
Thank you!! 🙌🏻🙌🏻 that means a lot 😃
@Serhy0
@Serhy0 5 ай бұрын
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 5 ай бұрын
Thank you so much! It’s been a pleasure making content for the community 😁
@Delta2Oscar
@Delta2Oscar 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@aHornetsNest My pleasure! It's only during the shorts in vertical orientation.
@aHornetsNest
@aHornetsNest 5 ай бұрын
@@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 😃
@temyraverdana6421
@temyraverdana6421 5 ай бұрын
Wow, great video and very useful explanation. See you next
@aHornetsNest
@aHornetsNest 5 ай бұрын
Thank you!!! See you next episode 😃
@Steph-uo9pn
@Steph-uo9pn 6 ай бұрын
As always, great tutorial!! I could watch your videos for hours!!! It couldn't be better!! Thanks for your great work!!
@aHornetsNest
@aHornetsNest 6 ай бұрын
Thank you very much! See you next episode!
@Marcin79W
@Marcin79W 2 ай бұрын
Such a PIN saver, thanks a lot!
@aHornetsNest
@aHornetsNest 2 ай бұрын
No worries 😊😊
@user-we1tn1tk3z
@user-we1tn1tk3z 4 ай бұрын
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 4 ай бұрын
Hey mate! So good to have you here 😃 all the best with the build - keep me updated 🫡
@Jakes_1-1
@Jakes_1-1 6 ай бұрын
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 6 ай бұрын
Thanks mate!!! Any questions let me know 😃
@Magpie...
@Magpie... 4 ай бұрын
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 4 ай бұрын
Oh no! Shoot me a message on Instagram and I’ll see if I can help 😃
@A.Prayde
@A.Prayde 5 ай бұрын
Awesome !!!!! Thanks a lot !
@aHornetsNest
@aHornetsNest 5 ай бұрын
Thank you! 😁
@tonyedge3414
@tonyedge3414 5 ай бұрын
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 5 ай бұрын
Glad you got something out of it 😃 I can’t definitely add it to the list 🙌🏻
@Nick-xe2hu
@Nick-xe2hu 6 ай бұрын
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 6 ай бұрын
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 🙌🏻
@Nick-xe2hu
@Nick-xe2hu 3 күн бұрын
@@samuraidriver4x4 Yeah no kidding. He didn't use LeoBodner. He used a normal rotary and made his own pcb for it. I affect recreating what LB already makes. I suggested he just skip that step and get LeoBodner rotaries that already have the pcb created and attached. I've use LB rotaries for years.
@samuraidriver4x4
@samuraidriver4x4 3 күн бұрын
@@Nick-xe2hu thought this was the more friendly youtube and not reddit🤔
@aHornetsNest
@aHornetsNest 3 күн бұрын
@nick-xe2hu Yeah look, there are multiple ways to do the same job… but since this is a tutorial series, it’s about teaching the why - and the electronic theory that goes along with it. We aren’t just going to be skipping over things just because we can buy them online - because the theory in this lesson can be use in a heap of other ways, not just for multi pos switches.
@baronvonrichthofen2021
@baronvonrichthofen2021 5 ай бұрын
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 5 ай бұрын
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 😃
@xyzsauce1
@xyzsauce1 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
Thanks a lot, any chance on a tutorial on shift registers or matrix?
@aHornetsNest
@aHornetsNest 5 ай бұрын
@@wardker hey I can definitely look into a tutorial like that 😄
@wardker
@wardker 5 ай бұрын
Exciting...You truly are the Obi-Wan Kenobi of simpit builders!! 👏👏👏@@aHornetsNest
@aHornetsNest
@aHornetsNest 5 ай бұрын
Thank you 🙏 😁
@QuasarCon
@QuasarCon 5 ай бұрын
Another brilliant tutorial. If I can ask, what is the gauge of wire that you use in the panels?
@aHornetsNest
@aHornetsNest 5 ай бұрын
Thanks mate!!! I’m using 26AWG wire with silicone coating so they’re nice and flexible
@QuasarCon
@QuasarCon 5 ай бұрын
Thanks
@aHornetsNest
@aHornetsNest 5 ай бұрын
😃
@barriedrew
@barriedrew 5 ай бұрын
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 5 ай бұрын
Hey :) yeah I can do a tutorial on how to connect Arduino as a HID controller with Axis control
@barriedrew
@barriedrew 5 ай бұрын
Thanks. That would be really usefull.
@aHornetsNest
@aHornetsNest 5 ай бұрын
@@barriedrew 😁
@The_ViperProject
@The_ViperProject 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@aHornetsNest awesome! Thanks a million!
@aHornetsNest
@aHornetsNest 5 ай бұрын
@@The_ViperProject 😃😃😃
@checksixivan4921
@checksixivan4921 6 ай бұрын
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 6 ай бұрын
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
@georgelza
@georgelza 6 ай бұрын
awesome. G
@aHornetsNest
@aHornetsNest 6 ай бұрын
Thank you!
@Magpie...
@Magpie... 4 ай бұрын
C&K A11203RNMCQ is this the right 12 position variant?
@aHornetsNest
@aHornetsNest 4 ай бұрын
Hey mate they are :)
@clarkyclackers2684
@clarkyclackers2684 25 күн бұрын
can someone help me im trying to find that switch on amazon and i cant seem to find it?
@aHornetsNest
@aHornetsNest 25 күн бұрын
Hey you may need to buy it from a company like Mouser or Digikey
@clarkyclackers2684
@clarkyclackers2684 13 күн бұрын
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 11 күн бұрын
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 11 күн бұрын
@aHornetsNest Perfect your an absolute star and a complete credit to the sim community thankyou!
@aHornetsNest
@aHornetsNest 11 күн бұрын
@clarkyclackers2684 thanks mate I appreciate it 🫡 looking forward to coming back and making more episodes soon
@jehlybean636
@jehlybean636 6 ай бұрын
Is there no way to launch/connect DCS BIOS serial without opening that program every single time and entering the same port?
@aHornetsNest
@aHornetsNest 6 ай бұрын
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 6 ай бұрын
​@@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 6 ай бұрын
@@jehlybean636 oh very nice!!
@Snugggg
@Snugggg 6 ай бұрын
is that a magnetically held switch in the middle there?
@JamesG19771
@JamesG19771 6 ай бұрын
spotted that too...
@aHornetsNest
@aHornetsNest 6 ай бұрын
🌿👀🌿
@vikingcat794
@vikingcat794 5 ай бұрын
I need my fix, when is the next video?
@aHornetsNest
@aHornetsNest 5 ай бұрын
😁😁 this Tuesday! I think is going to be a good one 🫡
Ep: 11 - How to Dim LED Backlighting for your Cockpit | DCS
26:08
A Hornet's Nest
Рет қаралды 2,7 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 30 МЛН
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 12 МЛН
Ep: 7 - The Only DCS Bios Setup Guide You Need!!
24:12
A Hornet's Nest
Рет қаралды 8 М.
A simple BIOS for my breadboard computer
21:53
Ben Eater
Рет қаралды 331 М.
Reverse Engraving Aircraft Placards
2:56
MR J’S
Рет қаралды 11 М.
Flight Sim Basics (Part 1): Connecting a Switch
11:27
The Warthog Project
Рет қаралды 74 М.
Ep: 3 - Print Your Own Flight Simulator Cockpit
23:33
A Hornet's Nest
Рет қаралды 10 М.
Microstepping a PCB Motor?
9:41
Carl Bugeja
Рет қаралды 149 М.
WinWing F16 ICP and DED - First Look Review
10:09
Esoda
Рет қаралды 14 М.
Making Analog Gauges - Home Flight Simulator
13:19
The Warthog Project
Рет қаралды 181 М.