Usually robot's wheels are rotated by a motor via some gear - a set of gear wheels decreasing rotation speed of motor in many times. The gear wheel rotating robot's wheel has already several times more rotation speed the wheel. The next gear wheel rotating this gear wheel has even more speed and so on. If drill holes in one of these gear wheels and situate optical sensors there - it's possible to register rotation angle changes with fine precision.
LED and optical receiver are taken from an old mouse with a ball inside instead of optical sensor. Actually optical receiver is a photo-transistor or a photo-diode which has resistance about hundreds Ohms and noticeable less when LED lights on it.
Remove these ads by
Signing UpStep 1Drill holes in the gear wheel
| « Previous Step | Download PDFView All Steps | Next Step » |












































If you are only interested in RELATIVE position of the wheel you can use a 'Sine - Cosine Detector' that tells you how many turns the wheel has made AND in which direction it has turned. This requires TWO photo cells.
The way described in the instruction is a simple solution for many ordinary cases. It's often enough to get a relative position of an object (robot, car, manipulator's joint) counting encoder's "ticks". It gives a total angle of wheel's rotation relative to the last known position. It also can give rotation speed. I used this to turn a robot on a required angle, to control its motion speed and to provide feedback for a PID regulation program.