Supported Targets | Arduino Mirco | Atmega32u4 |
---|
This project has the intention to build an A320 overhead panel, especially the lighting control panel area. Maybe in the future this project will be extended with other functions of the overhead panel.
This project uses the ArduinoJoystickLibrary by MHeironimus.
NOTE:
This project is configured so that it can be executed directly in Microsoft VS Code. Simply clone the project and open it in VS Code. If you do not have the PlatformIO extension installed, VS Code will ask you to install it.
NOTE:
I am not happy with the switch heads and the switch covers themselves. That is also the reason why these parts are not mounted. They definitely need improvement, but at the moment I have to step back from the project and start again later to design proper switch heads that are fixed in the axis of along the lever axis.
It is entirely up to you how you use this project.
You can use this project as an example, as inspiration or simply as it is.
Let get started and find out how you can use the project.
As always, we have a few prerequisites for using this project.
You can find out what these are below.
The project is only tested with an Arduino Micro derivative with the Atmega32u4 chip. I used this Arduino Mirco derivative.
To use the light control in your flight simulator, you should use third-party software to connect the buttons/switches directly to the simulator variables.
Why?
In MSFS 2020, for example, you cannot map all lights of the A320 to buttons.
For this reason, I have chosen the app SPAD.next.
To make it as easy as possible for you to get started, you will find a SPAD.next profile for the Fenix A320 family in the doc folder.
Before you build and install the project, make sure that the HID report ID matches your system.
To check this, take a look at the file main.h in line 19.
I only used 0x05
because I operate two other devices of this type.
If you have problems with the Arduino, you can activate debug mode and use the serial monitor to see the debug messages. Example output of the debug mode.
IMAGE
To be able to use the Arduino micro without additional ICs or similar, I decided to connect each switch to the analog inputs of the micro via a voltage divider. With this circuit, I could easily read out all switch states and reserve the inputs for later extensions. I chose this approach because I had everything at home to complete the circuit.
The complete circuit diagram can be found in the doc folder.
You can find all the files to build the light control panel yourself on Cults.
I have printed all the parts in PLA.
Pull requests are welcome. For major changes, please open an issue first to discuss what you want to change. Please make sure to update the tests accordingly as long as necessary.