Increasing response speed in position mode
Increasing response speed in position mode
Hi, trying to tune a scooter motor for steering control, so running in position mode with a potentiometer for feedback.
I get a good initial response, then it rolls off - is that a sign of too much D?
Also, what effect should QPPS have? 375 was calculated by an autotune that didn't finish, but it seemed like going higher sped things up?
I have the accelerations and velocities at maximum.
I get a good initial response, then it rolls off - is that a sign of too much D?
Also, what effect should QPPS have? 375 was calculated by an autotune that didn't finish, but it seemed like going higher sped things up?
I have the accelerations and velocities at maximum.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Increasing response speed in position mode
The autotuner does a best estimate of maximum speed of the motor without actually running the motor at maximum speed. It also attempts to error on the high side. You can manually measure your motors maximum speed using the PWM settings screen. Run the motor at max power and check the actual maximum speed. Adjust the QPPS. Note I recommend adding at least 10% to QPPS over your measurement. It is better to err on the high side than low side due to how FeedForward calculations work.
As for your motors quickness you can see the maximum capability using the PWM settings screen. Move you motor back and forth in there at max power and that is as good as it gets. When controlling a motors speed you will NEVER get CONTROLLED speed equal to maximum power. Controlled speed needs margins so it has extra power to work with. That is why you can if you break the PID controller get a bit more speed out of it but you wont have speed control in that case.
As for your motors quickness you can see the maximum capability using the PWM settings screen. Move you motor back and forth in there at max power and that is as good as it gets. When controlling a motors speed you will NEVER get CONTROLLED speed equal to maximum power. Controlled speed needs margins so it has extra power to work with. That is why you can if you break the PID controller get a bit more speed out of it but you wont have speed control in that case.