i guess this is more of an electro mechanical thing than electronics, but i thought i'd try here first.....
i want to make a controller for my computer to play a couple of underground train simulators, they are played using the keyboard, pressing one key advances the power/brake lever one notch, press it again it goes up another notch, press another button and it decreases it a notch and so on,
i want a way to do that button press from the movement of a lever, i will make it with the mechanical notches to hold it in the right places, and need some way to have the lever activate multiple switches as the lever passes them and give out a single key press (they can't be held down or the lever on screen advances repeatedly till the end stop)
simple enough, switches that are bumped by the lever as it passes between notches, but the problem is how to get it to press a different set of switches on the way back down to give the reduce notch key presses?
obviousely if the lever hits the advance switches going down, it will signal an up press,
at the moment i'm using the scroll wheel of a gamers keypad, roll it forwards one notch and it gives out one keypress, which is mapped to increase one notch of the power lever, roll it backwards, gives out the pull back keypress, so i guess something like that with a lever mounted to the scroll wheel.....
not sure how the notched scroll wheels in mice work, are they optical encoders, i'm sure i was inside a wheel mouse and it wasnt, it was some arangement of 2 switches on a cam system.