I am trying to build a circuit to operate a small motor setup, in a similar fashion to that of a CD drive tray. By this I mean that the motor should run via a single button press in one direction a given amount, then stop; and on a second press of the button run in the other direction a given amount and stop. Any help with this is greatly appreciated.