The crank is attached to an optical shaft encoder and some simple logic circuitry; it attaches to the parallel port of an IBM PC.