I believe I need this: 5K ohm potentiometer 270 degrees and with long life cycle (and it needs to fit through 1/4 wood). I've seen pots for arcade games from Namco, Sega etc. If they were the correct parameters above, would they work?
Yes they will work
and you have some additional wiggle room.
If the pot is in a 3-wire (potentiometer) configuration, it acts as a voltage divider and the encoder is measuring the voltage on the center tab. (wiper)
- The pot resistance does not have to match the original 5k as long as the resistance value keeps the current draw within an acceptable range for the encoder. Arduino encoders are confirmed to work with anything from arcade pots to PC joystick pots. Ohm's law ==> Voltage (Volts) = Current (Amps) * Resistance (Ohms)
-- Arcade pots are usually 5k. 5v = 1mA * 5k Ohms
-- PC joystick pots are usually 100k. 5v = 0.05mA * 100k Ohms
Pretty sure one of these from Jameco will work in your 1/4" panel.
https://www.jameco.com/z/RV4NAYSD502A-Clarostat-Honeywell-22mm-Linear-Taper-Potentiometer-5K-Ohm-2-Watt-10-_13995.htmlhttps://www.jameco.com/z/RV4NAYSD103A-Clarostat-Honeywell-22mm-Linear-Taper-Potentiometer-10k-Ohm-2-Watt-10-_13952.htmlIf the vendor doesn't provide a link to the datasheet(s) like Jameco does, you can usually find them using search keywords "datasheet", manufacturer's name, and part number. (or series)
If I can't find them, I'll buy 4 GRS USB Button Hole spinners which I know works, as I've got one working in MAME currently. But man, $340 for 4 of the ---daisies---... ouch!
If you want to go the four spinner route for
considerably less cost, check out Marsupial's
Build your own HID-mouse compatible spinner thread that discusses using this type of rotary encoder as a spinner.
- If Mars' Arduino code is a bit daunting, StefanBurger has an already compiled 2-axis
Illuminated Spinner firmware that works great. (Firmware .hex file
here on Thingiverse)
- Four rotary encoders on two Arduino Pro Micro boards, enable multi-mouse in MAME, and you're good-to-go.
Hardest part is mounting them . . . unless you have a 3d printer.
If you don't want to use a 2"/50mm holesaw on your cab, I can make an under-panel rotary encoder mount that works with the existing hole and uses a shaft extender.
Scott