Overview - DCS-Skunkworks/dcs-bios-arduino-library GitHub Wiki

This library is to be included on microcontroller sketches, and used to communicate in both directions between a PC running DCS and DCS-BIOS and varios input/output devices connected to the microcontroller. Typically used to create home "Sim-Pits", common use cases are:

  • Connect physical switches, buttons rotaries and axis to GPIOs on the microcontroller, which send airframe specific commands to DCS when the inputs are activated.
  • Connect LED, LEG segments or LCDs to GPOs on the microcontroller, which respond to data read out of DCS.

Communication with the PC is typically done in one of two ways:

  • Serial over USB. In this mode (which is the simpler and more common), your microcontroller is configured to present a serial port to the PC, which is then connected to DCS-BIOS's export scripts via a command line. This is the simplest to set up and suitable for a handful of microcontrollers. It is recommended to start with this configuration.
  • RS485. For maximum performance and wiring simplicity, especially when dealing with many (5+) microcontrollers, another option is to connect one microcontroller to the PC via serial as above, and have that device act as an RS485 master on a 2 wire bus for additional microcontrollers. While simple on paper, RS485 networks can be sensitive to design parameters and this is recommended only for advanced users.