ickyline Posted April 8, 2022 Posted April 8, 2022 (edited) Hi all, Im about to create my own cockpit with an Arduino Mega. I plan to make every panel one by one. But I have a problem, I see on internet some discutions about rotary encoder and potentiometer. Some people say it's not possible to use encoder for controling external lights knobs and radio volume. So I came here to find out how and what I have to do and buy? By the way, here a picture of my first panel f360 files Edited April 8, 2022 by ickyline
No1sonuk Posted April 8, 2022 Posted April 8, 2022 If you look in the controls page of DCS, you can see if there are, for example, "volume up" and "volume down" binds. If there are, you can use a rotary encoder on a Leo Bodnar board, or an Arduino that can simulate joystick buttons (e.g. Leonardo and Pro Micro). I'm not sure if the Mega can do that. Other than that. you'll need 10k linear potentiometers feeding an A-D converter in the Arduino, or again, an analogue channel on a Leo Bodnar board. DCS-BIOS will also allow some of that - I HIGHLY recommend the "Flight Panels Fork" over the "Hub" version. Hub hasn't been updated for a while, but Flightpanels is up to date and actively maintained. WRT the Mega - do you need all that I/O? More inputs means more code complexity and greater chance of messing it up. I'd use multiple Nanos and Unos to split up the panels and code to limit any failures that occur. It makes the USB or RS485 connection more complex, but I think that's worth the hassle-saving.
Recommended Posts