Jump to content

No1sonuk

Members
  • Posts

    790
  • Joined

  • Last visited

1 Follower

About No1sonuk

  • Birthday 12/31/1971

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. It depends on the coil current and how many you're going to have running at once. Arduino regulators don't have massive amounts of current capacity. Plus remember that inductive loads like relays need "flyback diodes" to prevent damaging the driver electronics with a back-EMF pulse when they turn off.
  2. I tried ths a while ago when you asked, but your email host rejected 3 attempts, and you didn't respond when I tried to tell you.
  3. Found this in my "ideas" folder. I can't remember where I got it. The pin is a button that activates when the cover is opened.
  4. These might help: https://www.737diysim.com/wiring-a-switch-to-arduino https://www.gaugemasterretail.com/magento/rightlines-article/to-switch-or-not-to-switch.html
  5. Considering you can fine tune those, you really don't need the extra code. I found also that some of the controls font need it. e.g. the UHF frequency controls do, but the VHF ones don't.
  6. For that money, you could probably build your own CNC machine good enough for that job.
  7. I tried it again, and it worked in both Flightpanels AND Hub. The only thing I can think of is that it doesn't work with "INC" and "DEC" on controls that take numbers like "-2400". I put the numbers in and it worked fine. /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ //#define DCSBIOS_IRQ_SERIAL #define DCSBIOS_DEFAULT_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ typedef DcsBios::RotaryEncoderT<POLL_EVERY_TIME, DcsBios::FOUR_STEPS_PER_DETENT> FourStepRotaryEncoder; // A custom rotary encoder with four quadrature steps per physical detent. //FourStepRotaryEncoder uhf1mhzSel("UHF_1MHZ_SEL", "DEC", "INC", 3, 2); FourStepRotaryEncoder intAimVol("INT_AIM_VOL", "-2400", "+2400", 3, 2); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  8. IIRC, it worked for me. I'll try again later.
  9. You can do that with the DCS-BIOS and arduino library parts of the Flightpanels fork.
  10. Rotary encoders: It was in Discord I was pointed to the DCSFP Wiki here: https://github.com/DCSFlightpanels/dcs-bios-arduino-library/wiki/RotaryEncoder Example 2: typedef DcsBios::RotaryEncoderT<POLL_EVERY_TIME, DcsBios::FOUR_STEPS_PER_DETENT> FourStepRotaryEncoder; // A custom rotary encoder with four quadrature steps per physical detent. FourStepRotaryEncoder tacan1("TACAN_1", "DEC", "INC", 0, 1); Once you've done the typedef line, the "FourStepRotaryEncoder" can be called in any line in place of "DcsBios::RotaryEncoder".
  11. Switch sync: I don't think DCS-BIOS sends all switch positions when it starts - only when you change them. In some ways that's a good thing. It means you won't need to go round setting everything if you run a hot start. Encoders: They are probably 2 or 4 pulse per detent. Someone posted how to stop that by defining a new encoder type. I'll search for that later.
  12. I think the ratio might be the number of pulses per detent. If you have it set wrong, the number of steps the board outputs may not match the number of clicks.
  13. Nothing, and no response to emails sent weeks ago either.
  14. No. What you're describing had a physical switch which was activated by the cover, and the physical switch under it. The SwitchWithCover2Pos function works on one physical switch. When you flip the switch, it opens the cover in DCS, then flips the switch. If you want physical switch cover stuff, have a look here:
  15. The 36-way ones have a 4-way hat plus 32 buttons. If you don't need many more, I'd suggest an Arduino Pro Micro or Leonardo - those two can behave as HIDs with no special coding mods as they have the 32u4 processor which has built-in USB. Just use the joystick library. Size-wise, the Pro Micro is a little bit shorter than a Nano, and the Leonardo is the same basic form factor as the Uno.
×
×
  • Create New...