Hectic
Executive Member
I recently started with Arduino, specifically to build a Button Box for gaming (PS4) purposes.
I made use of the Micro Pro / Leonardo which has a 32U4 chip. As it is recognized as an HID device it was perfect for my needs.
I mostly used momentary Push Buttons, but added 5 x Momentary SPDT On Off ON toggle switches.
I thought this would give me 10 button presses and it does, but not working as I expected.
I'm using a matrix system of 5 x 8, which should provide me with 40 buttons at this stage.
I haven't bought all the buttons yet, purely due to the pricing.
I expected the toggle to provide me with an "A" and a "B", depending on which direction I flipped the switch.
Instead I'm only getting one character per switch. So if an "A & B" was assigned, I would only get "A" in return, no matter which way I flip the switch.
Looking at my setup, I have soldered one pin to the centre (Off) position of the 5 switches. (1 column) and 1 pin for the 2 outer contacts x 5 rows(Hope that makes sense).
Initially this sense for me as it would register as button presses, but now I'm not sure that I can achieve my goal of 10 characters with a single pin as "ground" and 2 contacts per pin as part of a matrix.
Can this be done?
I wish now that I either bought 10 push buttons or I assume that 5 x DPDT toggles could have done it, but I have bought these toggles at basically R50 each, so would like to use it as I intended.
I made use of the Micro Pro / Leonardo which has a 32U4 chip. As it is recognized as an HID device it was perfect for my needs.
I mostly used momentary Push Buttons, but added 5 x Momentary SPDT On Off ON toggle switches.
I thought this would give me 10 button presses and it does, but not working as I expected.
I'm using a matrix system of 5 x 8, which should provide me with 40 buttons at this stage.
I haven't bought all the buttons yet, purely due to the pricing.
I expected the toggle to provide me with an "A" and a "B", depending on which direction I flipped the switch.
Instead I'm only getting one character per switch. So if an "A & B" was assigned, I would only get "A" in return, no matter which way I flip the switch.
Looking at my setup, I have soldered one pin to the centre (Off) position of the 5 switches. (1 column) and 1 pin for the 2 outer contacts x 5 rows(Hope that makes sense).
Initially this sense for me as it would register as button presses, but now I'm not sure that I can achieve my goal of 10 characters with a single pin as "ground" and 2 contacts per pin as part of a matrix.
Can this be done?
I wish now that I either bought 10 push buttons or I assume that 5 x DPDT toggles could have done it, but I have bought these toggles at basically R50 each, so would like to use it as I intended.
Last edited: