Let's Make Robots!

not related directly to robots, but has to do with robotics i guess..

hi guys,

i've been following this website a lot, but im relatively new to this forum. im not into robots but im simply facinated by the functions so achieve.

as the title suggest i have a query to solve, which i am sure that someone here can help me out on. 

basically i need to setup an IR receiver and transmitter to control a DC motor. apart from this i need to set up the DC motor to be programmed to stop after completing X amount of revolutions. ie having limits to where to stop. with the possibilty also to make it stop at any point at command.