A (other) "big" button box for DCS/FS in Joystick Library

I'm in a project for a "big" button box for DCS/FS
Using 3x Arduino pro micro atmega32u4 5v/16mhz, 5x Rotary Encoders/Push, 10x 1way push return buttons, 10x 2ways "blocking" switches, 10x 2ways "Return" switches, 10x 10k potentiometers

One is for:
(in joystick library and button matrix) for 5 rotary encoders with push button and 2 potentiometers set as 2 axis (Rx, Ry).
Push buttons of the rotary encoders are in a matrix 1x5,
Row, Columns, Encoders and potentiometers are connected this way:
row1 is connected to pin 15 (gnd of the 5 push buttons)
column 1 is connected to pin8 (Push1)
column 2 is connected to pin9 (Push2)
column 3 is connected to pin10 (Push3)
column 4 is connected to pin16 (Push4)
column 5 is connected to pin14 (Push5)
Encoder 1 Left is connected to pin 21 (A3)
Encoder 1 right is connected to pin 20 (A2)
Encoder 2 Left is connected to pin 3
Encoder 2 right is connected to pin 2
Encoder 3 Left is connected to pin 4
Encoder 3 right is connected to pin 5
Encoder 4 Left is connected to pin 1 (tx)
Encoder 4 right is connected to pin 0 (rx)
Encoder 5 Left is connected to pin 7
Encoder 5 right is connected to pin 6
Potentiometer1 (Axis1) is on pin A1
Potentiometer2 (Axis2) is on pin A0
Gnd of encoders are connected together to one pin GND
Potentiometers are also connected together ++ to pin Vcc and -- to another pin GND

The two others are for:
2x (in joystick library and button matrix) 25 buttons on a matrix 5x5 and 4 potentiometers set as 4 axis (Z, Rx, Ry, Rz).
Rows, Columns and potentiometers are connected this way:
row1 is connected to pin 7.
row2 is connected to pin 8.
row3 is connected to pin 9.
row4 is connected to pin 10.
row5 is connected to pin 16.
column 1 is connected to pin2
column 2 is connected to pin3,
column 3 is connected to pin4,
column 4 is connected to pin5,
column 5 is connected to pin6,
Potentiometer1 (Axis1) is on pin A0
Potentiometer2 (Axis2) is on pin A1
Potentiometer3 (Axis1) is on pin A2
Potentiometer4 (Axis1) is on pin A3
Potentiometers are connected together ++++ to pin Vcc and ---- to pin Gnd

I know each device need to have a different name "ButBox1-2-3" and joystick CodeID i used "musinou" technique it works few time but now it seems to don't change te name of the controller anymore. Do i need a proper reset of my cards? Bootloader?

I did some base script by myself using what i v read on this forum i had some results, encoders or buttons working but not the potentiometers (or eratic) or i can make axis works but not buttons. I tried the easy way by asking Chat Gpt for some help, it gave me some result but not good enought. Well, i think it's me i'm not good enought lol, because chat gpt add me lot of stuffs that i don't really understand in the code.
First of all, before sharing my scripts, Is there something wrong with the project idea and the wiring to pins? Have arduino pro micro enought power by usb (without external alimentation) to manage that wiring?

That's a way to common expression, "it doesn't work" but it tells nothing useful. The way things malfunction often carries a message.

There could be but impossible to pin point from this less than minimum documentation. The list of part to pin gives no overview. You can give it to Your mother and she will wire it up without knowing what she's doing. For engineers fault finding, it's not useful. You make the drawing, not helpers.

Having problems reading pots is not to be expected. If simple things like pots can't be read, nothing can be read for that circuit designer.
Please post schematics showing at least the troubling devices in their real environment.

If it's a "big button box" why not use a Mega having a forest of I/O pins.

1 Like

Yes, I understand my explanations are a bit messy and basic, I'm new to Arduino and I'm not used to asking for help on the forums. I will try to make a diagram on tinkercad, photos and share my scripts this evening to give you more information.

Because I had 3 arduino pro micro left and I think that in the joystick library the maximum number of buttons is 32?

Pen and paper often make good enouhh schematics. Fance CAD stuff is not required.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.