The Baron 58 panel simulator project was considered as platform for creating an effective control interface based on Arduino. Here you can see our early "pre-library" Arduino program code developments for Baron 58 cockpit before we switched to our later "library-plugin-based" interface.
Note: The input extension method described here was designed specifically for our Baron 58 project and shouldn't be considered as the only possible or recommended option for your own cockpit project!
You may use our newest ArdSim/ArdSimX interface: use several Arduino boards, or key-matrix connection method, without the need to make additional extension board and program Arduino.
Control interface for Baron-58 panel is based on one Arduino Mega-1280 and one Ethernet Shield. For input extension DIY extension board for additional 128 inputs was made (it uses 12 digital pins of Arduino). Together with another Arduino pins this interface represents all of Baron controls. For indication the output extension board was used. It controls the 24 LEDs of annunciators panel, gear and flap lamps and audio panel LEDs.