Gear Motor angles and control

I am using a gear motor with hall sensor, I am reading the revolutions per position. After a certain amount of time, the gear motor somehow couldn't get back to the exact position where I have set it. I am trying to rotate the motor clockwise and anti-clockwise.

How can I fix this issue to get a more precise angle?

I have different positions and I have set the revolutions to 706 per position. 2 cycles are completed the motor is going to the exact positions, for the 3 times when it starts the rotation, It can't get to its exact angles and is slightly off.

I have attached the code I am using. I have to change the revolutions if it can help me to get the gear motor back to the position I have set it to.

dc_motor_test_0.2.ino (3.88 KB)

Isn't this the same question as in your other Threads here and here and weren't you warned not to post the same question multiple times?

...R

Your answer didn't solve my issue and i need to get more better answer how to do it, warning doesn't mean i should stop asking the same question

Creating multiple threads for the same problem wastes everyone's time and means you are less likely to
be helped.

warning doesn't mean i should stop asking the same question

The Moderator may have a different opinion.

If no one answers your question, it may be that you have not asked the question right or provided the information necessary to answer the question.

If you don't get an answer to a question within a day or two just bump your Thread by posting a new message in it. DON'T start a new Thread.

As you can see you are getting a lot of Replies about your behaviour and none about your problem. Think about why that is happening.

...R

groundFungus:
The Moderator may have a different opinion.

If no one answers your question, it may be that you have not asked the question right or provided the information necessary to answer the question.

Or there may be no one who can answer that question. You might have to wake a week or more
in case someone who can answer logs in...

Awais-1:
I am using a gear motor with hall sensor, I am reading the revolutions per position. After a certain amount of time, the gear motor somehow couldn't get back to the exact position where I have set it. I am trying to rotate the motor clockwise and anti-clockwise.

How can I fix this issue to get a more precise angle?

I have different positions and I have set the revolutions to 706 per position. 2 cycles are completed the motor is going to the exact positions, for the 3 times when it starts the rotation, It can't get to its exact angles and is slightly off.

I have attached the code I am using. I have to change the revolutions if it can help me to get the gear motor back to the position I have set it to.

The whole idea is preposterous, but since you insist. As your motor approaches the stopping point, stop the motor and then pulse the power to jog the motor into position.

Paul