Wiring up a bank of switches is theoretically easy, but if you get it wrong the first time, you won't be alone.
Since I got this wrong the first time, I wanted to document it for myself, and also share it. A few objectives here include as little space used as possible, the fewest soldering connection possible, and as neat as possible.
I've no doubt that there are other methods, and I would appreciate feedback; this method worked for me.
Array of 5 switches in a line. The strips underneath match the line of those switches.
The resistors are angled purely to save space.
In the centre strip underneath, the strip is cut between each switch.
The switch is logic LOW normally, and logic HIGH when the switch is pressed.
As far as I am aware, the value of the resistor is not massively important; for example, both 10K and 220K should work.
|And a close-up picture of that first switch. All the switches have the same wiring as this.|
|And underneath, we can see : Cut the central strip, between each switch. I use an electric drill bit, hand held and gently twisted.|