A few months ago I gutted a beatmania control panel and justnow have gotten around to trying a few things to get it to work as a playstation controller. The buttons are simple enough, as they're just simple switches. The turntable however, is an optical spinner, and I need something that'll take the input from this optical spinner and turn it into "turn x switch on" or "turn Y switch on". in this case, the up and down switch on the digital part of a playstation control pad. Anyone know of any pre-built circuits that'll do it? or any other ideas?