I’ll be soon in need of a switch that doesn’t only do 1-0. Instead, it should allow me to choose between 4 or 5 options and, whenever it gets moved, it comes back to the initial position in the centre.
What am I looking for?
I can recall seeing it on the Korg Minilogue XD octave shift control if that can help. The XD is actually a good example because it also has “fader-type” switches that allow choosing between three options. Those would work for me as well.
The application would be selecting one of the 5 options of a routing system made in Max/Msp. Probably I could write in the code that whenever Max receives a signal from the switch, it moves one step forward in the list. Right?
If you want a switch like the octave of a Minilogue XD, you want the switch @telec16 mentioned. The Korg uses software to control the “state” of the octave. Think of it like the off is “do nothing”, and one side increments the octave number, and one side decrements the octave number.
This of course can be done for things other than octaves. The software would just detect the rising or falling edge to update a variable. As @twinturbo has said, you can also go the direction of a rotary encoder. The added benefit there is you can also have a button press to signify another control, and scroll through the values your variable can be.
Though i get it, if you want a specific feel, go with what feels good.
Arduino can easily handle either case. Feel free to take a gander at my thread about DIY controllers, though i haven’t updated it in a while.
Thank you all for the replies!
I’m already using these rotary encoders to control other functions; I find them great because when I push one down I get access over another control as @Caustic suggested. However, I want something that doesn’t spin infinite times but rather a fixed amount of times. I saw on ebay these potentiometers that would probably do the job right?
The problem is that I want them to stop exactly at the two edges of the menu.
Otherwise I could use the rotary encoders that I have. In this scenario, the count goes back to the first position in the menu as soon as I overcome the last position. I think that makes sense!
If I understand you correctly, you can use a rotary switch, if you need a max of 12 positions.
They look like these:
They can be mechanically limited from 2 to 12 positions (with the washer with the tab in the picture).
Mount a string of Rs from leg to leg, one end to GND, the other to +V, the center lug to an analog in.
I don’t know of any with a switch when you press it down, but I’m (almost…) sure they exists…