Jump to content

No1sonuk

Members
  • Posts

    1594
  • Joined

  • Last visited

Everything posted by No1sonuk

  1. OK. I didn't comprehend that you were talking about two different switches. Which DCS-BIOS version are you using? The other thread you commented on shows the "Hub" version control reference. Hub isn't "actively maintained" at the moment, and that bug may not have attracted the attention of the "FlightPanels Fork" guys that do some bug fixing with Hub. If you're using Hub, it's possible DCS has been updated and now uses different addresses, etc.
  2. I don't know the F-18, but it looks like you have a two position switch in the code for a switch your OP implies has 3 positions.
  3. Please post your code for the switch.
  4. I'd like to see the results of that. I'd have thought the 3D print would stick to the film too much.
  5. You have to manually run one of two files to start the connection for Arduinos. There's no web page interface.
  6. Just to clarify: The Flightpanels fork is a combination of an actively maintained version of DCS-BIOS and an application that uses DCS-BIOS to interface the Flightpanels hardware (and Stream decks) with DCS. I use the Flightpanels DCS-BIOS, but with Arduinos, just like the Hub version. Starting a connection is lower level than Hub, but Flightpanels is actively maintained as well as updated for new modules.
  7. I think those "0x0008" should all be different. Those lines are just all looking at the same LED. IF the LEDs can share outputs, the code should look like this: //F-18 AoA DcsBios::LED aoaIndexerHigh(0x7408, 0x0008, 6); DcsBios::LED aoaIndexerNormal(0x7408, 0x0010, 4); DcsBios::LED aoaIndexerLow(0x7408, 0x0020, 2); // T-45 AoA (From Flightpanels control ref) DcsBios::LED aoaFastL(0x9008, 0x8000, 6); DcsBios::LED aoaOptL(0x9008, 0x4000, 4); DcsBios::LED aoaSlowL(0x9008, 0x2000, 2); HOWEVER, while switch and pot input pins can be shared like this, I don't know if outputs can. How did you make the F-18 AND F-14 work on the same code?
  8. The 24V power is easy - create a couple of bus bars and tap off for each module that requires it. You can buy, or make, terminal block bus bars quite easily. Correct. 1 wire per light signal and common ground - you're sending a logic signal. It needs a ground reference. Some relay boards have a completely separate relay power input. How it works depends on what you can get where you are. Your relay contact connection is "wrong". It will work, but might be confusing down the line. When the relay is off, COM is connected to NC (Normally Closed). When the relay is on, COM is connected to NO (Normally Open). Connect the light panel signal line to the NO on the relay and the common GND (or +ve for 2,3 and 10) to the COM connection. Putting the signal "output" on NO or NC means it's a bit easier to keep track of if you have to move it to invert the action.
  9. When you look at the diagram on the back, most of the switch symbols have the ground symbol on the left. The ones for 2,3, and 10 have "+" next to them. I assume that means those particular ones need to be switched to positive power rather than gnd. That's what makes MOSFET switching a bit harder. MOSFETs only go one way, so you need them to be the right way round. e.g. For an N-channel MOSFET, the + of the load needs to be at the +supply, and the -ve side of the load needs to be at the "Drain" pin of the MOSFET. Then the "Source" pin of the MOSFET goes to supply gnd. A positive V on the "Gate" pin will turn on the MOSFET and hence the load. This is "low side switching", and is the most commonly used for "one-way" loads. "High side switching" is done with P-channel MOSFETs connected on the supply side of the load. A good explanation is here: https://www.baldengineer.com/low-side-vs-high-side-transistor-switch.html Relay contacts are mechanical switches, so polarity doesn't matter, and frankly is what I'd use for that application. It's far simpler (and cheaper) than messing about with MOSFETs, and is likely how the real one works to some degree. Also, because the relay switches are double-throw, if the light response is the wrong way round, you can change the physical wiring easily, rather than messing about in the code. The opto-isolated relay boards are driven like LEDs, because that's exactly what's in the isolator. They may already have the load resistors so all you need to do is feed it a digital signal straight from the Arduino. And remembering that the Arduino analogue pins can usually be used as digital outputs, you'd have enough outputs to drive the 20 relays for that display from a single Nano or Uno, etc.
  10. How about 3 of these? https://www.switchelectronics.co.uk/24v-8-channel-relay-board-module Relays might be better because it looks like some of those inputs need to go to + (2,3, and 10). Plus, you can invert them by changing NO to NC.
  11. There is a method you could use, but it takes some planning. You basically print a second model without removing the first. It's easier to do face-down as an inlay, and I've done a test piece where text was backlightable by making the text into through holes in the main part. This is the method I used: https://youtu.be/0Sla-vIsvh4
  12. Switches don't take up much time, but analogue devices take a while to read and convert the result, so it might help to separate gauge drivers from input devices. It might also help to split the gauges over a few devices, particularly if they're stepper driven. Servo-driven gauges can be run from PWM outputs and/or dedicated drivers that can cut the Arduino processor overhead dramatically compared to stepper driving.
  13. I just ran a quick test, and an Uno DOES work as a slave device. I was using it as a radio display (driving an LCD). The output was a bit flaky sometimes, but that's more than likely the VERY rough rats' nest breadboard setup I was using.
  14. He wrote "Maybe three Uno boards would be better but I am not sure whether they can be used as slaves." To my mind, that's asking if Unos can be used as slaves. Particularly as the original examples in this thread are Nanos.
  15. The Megas are used as masters as they have more than one hardware UART, so the main one is used for the USB interface, and a second one is used for the RS485 network. Unos, Nanos, etc. have only one hardware UART, and can be used as slaves on an RS485 network. Unos and Nanos are electronically very similar, and the only programming differences relate to the different IO pin numbers and types available, so yes, Unos CAN be used as RS 485 slave devices.
  16. It might be needing some kind of "thin walls" setting to be turned on.
  17. For "self-build" control inputs, have you considered a Leo Bodnar board? They have 12-bit ADCs, so better resolution than the standard Arduino 10-bit. There's no coding to deal with - just plug it in and the computer sees it as a game controller. They can also be configured to operate with rotary encoders. http://www.leobodnar.com/shop/index.php?main_page=index&cPath=94&zenid=266e90cd3c9323cbc52e5bb4a111beb8 Oh, BTW, total-lossing an A-10 while trying not to takes talent!
  18. The mating half is possibly 26-20S. 20 indicators puzzles me. Only 4 circuits are shown, and they're all different.
  19. Looks like some of the writing is a part number. What are the lights indicating?
  20. Yes, Electronics engineer. I only had a quick look, as I'm away from home until Wednesday, and the diagram has a weird layout. e.g. it looks like the bulbs are in parallel (as they should be for redundancy), but theyre drawn in an odd way. That may so so the diagram would fit the shape tgey have to work with. There are transistors in there, and it would need a proper look (and probably redraw of the diagram) to figure out what's going on. It's also a bit out of focus. Those transistors mean it may not be as simple as changing the bulbs. They also mean a MOSFET might be advisable rather than required. I just cant tell on my phone. Most of the motor drive MOSFET modules are rigged to ground the "output" when they are turned on. It's "simply" a matter of using the "LED" code lines of DCS-BIOS to turn on the appropriate output that connects to the MOSFET input.
  21. Looks like connecting any of the top three wires to ground will turn on the corresponding light when 28V is applied as shown at the bottom. Any "N-channel" MOSFET meant for motors, etc. would do that, and you'd need an Arduino to drive the appropriate MOSFET As for the connector: Unless you can find one, you'll need to source some pins and 3D print a housing, or disassemble it and rebuild the inside.
  22. If you can supply 24V, that should also work. Do you know how it's wired? If it's individual lamps, some sort of MOSFET driver would work.
  23. Spacedesk presents your other device to Windows as though it's another monitor. Helios can then use it as though it's a monitor connected to the host machine.
  24. This might be at least partly what you're after: https://www.spacedesk.net/
  25. Do you see the rectangular plate at the front of the seat platform? Some of the seats have that plate removed and a shaped cushion like the A-10. No idea why, though. None have a central stick.
×
×
  • Create New...