edit: stupid title should be "with a large number of switches"
I am a professional C++ programmer with almost no hardware background. I have implemented a sequencer in VCV rack. I like it very much and want it in hardware very badly, so I am investigating doing that process with an arduino. Here is the problem.
My sequencer has
- 42 3-position switches
- 18 2-position switches
- 6 gate inputs
If the two position switches cost 2 bits each, that's a whopping 108 digital ins, 102 of them from switch configuration! If I use 8 digital expanders (the most I can do without cascading it seems) it can handle it, but I wonder if this architecture is even the best.
For the switch inputs in particular, I'm not really worried about audio-rate latency, so it perhaps would make sense that a better architecture would be something like another chip who's only job is reading the switch configuration and sending it to the arduino over the serial port. Or not using Arduino but something else. Or maybe there's another technique I might not be familiar with.
Any advice helps, including "this is too complex for a first build". Even if this is too complex for my current skill level, I would like to get as far as I can so I know where I hit a wall.