Skip to content
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

How can I compute new pid coeff from old ones based on #147

Open
JulienDevillers opened this issue Nov 10, 2024 · 2 comments
Open

How can I compute new pid coeff from old ones based on #147

JulienDevillers opened this issue Nov 10, 2024 · 2 comments

Comments

@JulienDevillers
Copy link

Hello

I'm driving the pwm of an electric motor with a pid controler.
It works pretty well.

After some testings, I realized that the fact that the motor is powered by a battery
makes the system behave differently depending on the battery voltage.

I will change the system in order to make the pid system control the voltage provided to the motor instead of the pwm ; another
system will do the conversion V -> PWM based on the battery voltage.
Therefore, I expect the same behaviour whatever the battery voltage (if of course, the pid does not ask for a voltage
more than battery voltage)

Concretely, PID will not control values from 0 to 20k (pwm period) but 0 to 8400 (mV).

My question is:
Is there a mathematical way to compute the new PID coefficients from the old ones to get the same behaviour with the
new actuator without having to go again to a new pid tuning session?

Thanks.

@br3ttb
Copy link
Owner

br3ttb commented Nov 17, 2024 via email

@JulienDevillers
Copy link
Author

JulienDevillers commented Nov 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants