I have a bunch of opto interrupter. For those of you who are interested, an opto interrupter has a IR LED and a phototransistor side-by-side. In between them, a plastic wheel with "slots" go through. A signal lead changes voltage from High (Vdd) to Low (~0) when a slot passes by.
So as previously discussed in my other threads, I will use opto interrupter (aka photomicrosensor, optic encoder, etc) for the positioning of my robot leg, which is controlled by a motor. I don't need to know the speed of rotation, but I do need to know the position.