Create a gradiant in photoshop from black to white. Print it onto overhead transparency film. Arrange to run in the slot of a transmissive optoswitch. something like a Vactec 13D7-20 would work good If your mechanical linkage can be arranged to keep the film clear of the slot edges, and you have a stable way to orient it, you should have 0 friction. Annie