I'm thinking about drilling a small hole in the motor shaft and make an infra red encoder.
Found this
infrared LED
The question is. Can I connect the emiter straigh with a resistor to the 5v and the receiver straigh to the arduino input pin just like a photoresistor, or need some sort of circuit to make it work.
Thanks