Encoder question

I need to attach an encoder to the shaft of a motor and was wondering about what kind to use.

I have this one but I'm wondering if this can take 4-5000 RPM.

Any sugestion?
Thanks

I'm wondering if this can take 4-5000 RPM.

Of course not. It is intended for a hand-twisted knob.

You will need a ball bearing, industrial quality shaft encoder, intended for operation at high RPMs. Here is one selection guide. eBay sometimes has good deals on used ones.

You will need to decide the angular resolution of the encoder (how many counts per shaft revolution), keeping in mind that the Arduino is not very fast.

They are probably too expensive and big for what I need. What would be the best option if I want to make my own. Infrarred, reflective, photoresistor?? I don't need anything super precise. Probably can laser cut a wheel and even use a reduction. If I can get a pulse every 4-5 turns of the DC motor is more than I need.

Thanks

jucasan:
They are probably too expensive and big for what I need. What would be the best option if I want to make my own. Infrarred, reflective, photoresistor?? I don't need anything super precise. Probably can laser cut a wheel and even use a reduction. If I can get a pulse every 4-5 turns of the DC motor is more than I need.

Thanks

Are you looking to read RPM or control RPM via a servo loop?

If so, why not just color 1/2 of the shaft black (like with a paint pen) then just use an IR led and IR photo detector to pick up one pulse pre rev?

If you build an encoder wheel then use a reduction, you end up cutting your resolution by the reduction factor!

Say you make an 8 segment wheel and gear it down by a factor of 8. That turns it into a one pulse per rev encoder!

If you can attach a slotted wheel on the shaft, it is easy to use an optointerrupter to count pulses. These have an LED and photodiode or phototransistor to detect the slot.

example

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

Drilling a hole in a hardened steel shaft isn't doable with normal tools - but you may be lucky and
your motor's shaft isn't hardened. Surely a non-destructive method is easier - paint the shaft white one
side and black the other?

I have access to heavy duty equipment so drilling the shaft is not a big deal. My concern is the electronic part that I'm not really good at. You mentioned paint the shaft, and probably is an option, but how can I pick the signal.

Do you think if I paint the shaft and put the emiter and receiver next to each other is going to work? But like a said. I'm more concern about how to connect the LED's to the arduino than the mechanical part.

Use a reflectance sensor to easily discriminate between the black and white portion of the shaft.

There are various other types that work over a range of distances, but they are much slower to respond than the one linked above.