It's hard to tell from the photo if there are any solder bridges. Using six wires of the same color makes it hard for you to connect correctly at the Arduino.
Based on post #37 the encoder output is not normal.
You purchased a used motor with no guarantee that the encoder would work.
My opinion from many miles away is that the encoder is broken.
Hi!
I'm making a robot finger.
I want to rotate the output shaft at 1000 rpm.
Tested the engine at this speed
But unfortunately I couldn't get the encoder to work
So you want the encoder to give you the position of the finger?
How many turns of the MOTOR shaft will that take?
I assume the encoder is connected to the motor shaft not the gearbox output?
Can you please post a basic diagram of the motor and finger mechanism?
Are you using a gear and rack, screw thread to move the finger?
Just FYI: a worm gear drive reduction ratio is quite simple:
for a single start worm, it is the number of teeth in the worm wheel.
So, if your wheel has 20 teeth, the reduction ratio is 20:1
In other words, a full rotation of the worm will advance the wheel by 1 tooth only.
If it is a two start worm, then the ratio is 2:20. As far as I can see from the picture, you have a single start worm.
Your motor will need to turn at 20 000 rpm if your worm gear reduction ratio is 20:1
Thank you for the information!
I found 1000 prm motor encoder with difficulty. I'm unlikely to find 20,000 revolutions Because I need a very compact motor