Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if the motor is fast he would need a good controller since while it would stop it would not be clean, most likely having a damped oscillation every time it stopped.You have to be able to stop the motor if It is a slow gear motor you could use a cam on the shaft and dpdt switch. If the motor is fast you would have to use You'd some type of encoder wheel like Noggin said with a h-bridge that can brake the motor.
What I showed you will work the motor is turning about 100 rpm or less it's not the best way but it is easy to do and the motor can keep going fwd after the stop.timing just doesn't work, it's far too inaccurate.
I wasn't being a show off I was just showing how it works sorry if any one thinks that way.Nobody likes a show off