Can anyone tell me where I might get prewired multipole switch voltage dividers? I’m starting to design a step sequencer using a Mega, analog multiplexors, and the mozzi library. I’m contemplating using multipole switches for selecting time intervals and also for selecting sound samples. I have a bunch of 11-pole switches which I can wire as voltage dividers. One design I’m thinking about would have 32 of these switches, and I don’t really want to solder 350 resistors! Are there off-the-shelf components that would help? Thanks!
Please attach a drawing of “multipole switch voltage dividers”.
Make a drawing of the major parts of the project. Your poetry does not make it very clear.
It's essentially this circuit: https://simvim.com/tech/rotary_resistors.png Since it's a very common way to use rotary switches, I thought they might come with resistors already in place. But I haven't been able to find one.
I don't know about such switches configured with resistors. Find something equivalent by searching for potentiometers with detents instead (Piher...).
Use a conventional potentiometer instead! Read the voltage and…
If ((analog_value >= 0 ) && (analog_value < 100)) step = 1;
If ((analog_value >= 100 ) && (analog_value < 200)) step = 2;
If ((analog_value >= 200 ) && (analog_value < 300)) step = 3;
etc.
Or just step = analog_value / 10;
I think you want MRY106
https://www.digikey.com/product-detail/en/nkk-switches/MRY106/360-4046-ND/1046345
You'll have to solder on your own resistors.
Elby:
It's essentially this circuit: https://simvim.com/tech/rotary_resistors.png Since it's a very common way to use rotary switches, I thought they might come with resistors already in place. But I haven't been able to find one.
The common way that you refer to would render them useless for other purposes.
Could you replace the switch/resistors with a Rotary encoder instead?
Use with a keypad to decide which variable you are loading a value into: select 0 to 31, dial the rotary encoder to the selected value, press enter.
Or just use the keypad for both: select 0-31, press *, select a value, press #.
Or use two encoders, a button, and a 4-digit seven segment display with MAX7219:
Dial in the variable on the left digits, dial in a value on the right digits, press the button to accept the value into your sketch.
Or one encoder, a toggle switch to dial up left hand digits or right hand digits, and a button to accept.
I'm really looking for the satisfying "click" when I select individual options. The potentiometer with detents looks like exactly what I need! Thanks very much, guys.
Be prepared for open circuits between switch positions.
Paul