A cam is a simple mechanism that converts rotary motion (movement that goes round in a circle) into linear motion (movement in a straight line). These mechanisms can be found in car engines ...
This custom linear Hall effect sensor is a perfect example ... There’s clearly a long way to go to tighten things up, but the basic mechanism looks like a clear win to us. Hats off to [Nixieguy ...