Hello everyone!
I have a project and im building a Self Driving Vehicle. I am using 2 dc motors with encoders, but i ran into a bit of a problem. How can i sync the 2 motors to match the speed? I understand that i need a PID loop but i dont understand how and what is doing that loop.
Can someone shed some light here?
I can post the code that im using too, if it helps...
wilsache420:
Hello everyone!
I have a project and im building a Self Driving Vehicle. I am using 2 dc motors with encoders, but i ran into a bit of a problem. How can i sync the 2 motors to match the speed? I understand that i need a PID loop but i dont understand how and what is doing that loop.
Can someone shed some light here?
I can post the code that im using too, if it helps...
You don't!
You control the speed of one motor and SYNC the second to that motor.
Of course. using two motors at the same speed will only allow a single direction of movement.
Paul
Tell us more about your robot.
How do you measure the motor speed?
How do you control the motor speed now?
Post the code, using code tags.
i dont understand how and what is doing that loop.
We can't see "that loop".
There are several ways, but the first question is do you want the positions synced, or just the
speeds (ie a small drift in relative angle is allowed)?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.