Quote:
Originally Posted by OWilliamson
It worked by switching back and forth from high to low every time the wheel would spin a magnet over the sensor. In our code we treated it just like a counter, and from that data we were able to get the rotational speed of our shooter wheels.
|
That's pretty much an encoder, so that's a pretty good solution if you couldn't use a standard encoder or just wanted to get deeper into the details of how an encoder works.
Hall effect sensors or reed switches can be great though, a little creativity can make them a lot more useful than a limit switch.