Gear Motor with position and direction control

Hi

I am building a a circuit using a Micro Gear motor with a 12 CPR encoder. I am trying to control this motor using two buttons ( one for counter clockwise and one for clockwise). What I am trying to accomplish is a circuit that will allow me to control how far the motor rotates under one button press ( for example with one button press I get a 3 degree clockwise turn and pressing the other button would get me a 3 degree counter clockwise turn)

Any help is appreciated!!!!!

What is working? What is not working? Can you supply a drawing of your circuit?

Paul

Post your program code
And please use the code button </> so your code looks like this and is easy to copy to a text editor

...R