Button box and rotary switches

I have Arduino Micro board. I'm making a button box with some rotary switches. I have seen button boxes that use matrix to get more buttons. Problem: Rotary switches have one ground terminals and up to 12 input terminals. I have 2-pole, 6-throw rotary switches shown at uxcell 2P6T 2 Pole 6 Throw 1Deck Band Channel Rotary Switch Selector with Plastic Knob 4Pcs: Amazon.com: Industrial & Scientific. I'm using one pole. How can I wire them up through the matrix?

You can't. Matrix connecting needs 2m free ends.
Use 12 outputs as triggers and one input for detection.

Likely You can use, steal matrix pins during this reading. Just return them to the state they had earlier.

If you're wedded to the rotary switch you could use analog inputs and do something like this:

One from the starter kit book - check keyboard instrument:

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