This link has code that I use for detecting the speed of a small DC motor using an optical detector that produces one pulse per rev.
...R
This link has code that I use for detecting the speed of a small DC motor using an optical detector that produces one pulse per rev.
...R