What is the proper way to use an encoder in any application? For example, I had a motor with a 12 tooth gear attached and I wanted to run the motor a certain distance....... say (2.5').
How fast will the gear be turning? What will you use to detect the gear teeth?
For the abilty to detect both speed and direction, you'll need two sensors, offset by half a gear tooth. For single direction operation you can get away with one sensor.
Finally, the Stamp has a limited ability to read high-speed quadrature signals. Its often possible to read the teeth on a slower running shaft rather than try to read the motor shaft itself.
More details of your project will get you better answers.
Comments
For the abilty to detect both speed and direction, you'll need two sensors, offset by half a gear tooth. For single direction operation you can get away with one sensor.
Finally, the Stamp has a limited ability to read high-speed quadrature signals. Its often possible to read the teeth on a slower running shaft rather than try to read the motor shaft itself.
More details of your project will get you better answers.
Cheers,
Well, OK: http://forums.parallax.com/showthread.php?121179-Reading-Quadrature-Encoders&p=899765&viewfull=1#post899765
And it could read even faster as a tach sensor (using just one sensor sensing RPM but not direction).