-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: PID autotuning #14
Comments
I do agree. But when I tried with the PID autotune library I have got no useful calibration (it uses Ziegler-Nichols algo https://en.wikipedia.org/wiki/Ziegler%E2%80%93Nichols_method ) http://playground.arduino.cc/Code/PIDAutotuneLibrary But I am open to use any other algorithm that might work ok in this environment. |
The Ziegler-Nichols algo would provide a slow tracking. It would be good to find critical KP. a tuning which works well for me for a 3d printer setup / step tracking finding the critical KP by setting the KI and KD to zero then increase kp until critical unstability is found. for motors it would be back and forth with a certain amplitude but not increasing or decaying. Then set KP to be KP critical /2 then use a very large ki for quick tracking. in the control zone (abs(output/kp)<255) ki is large else, ki=0 this prevents integrator windup so in my system I have a |
oh in my system my kp critical was 15 so it was increased after kd was added. |
It would be great to add to the program algorithm for the automatic calibration of PID.
Similar to the way it is implemented in Marlin.
The text was updated successfully, but these errors were encountered: