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

Document reverse acting control using simple_pid #58

Closed
kjkoster opened this issue Apr 30, 2022 · 3 comments
Closed

Document reverse acting control using simple_pid #58

kjkoster opened this issue Apr 30, 2022 · 3 comments

Comments

@kjkoster
Copy link

kjkoster commented Apr 30, 2022

Dear All,

Really more of a support question, but can the documentation be enhanced to show how to use simple_pid for reverse acting control?

To add colour: I have a temperature control (aiming for 70°C) for which I control the motor speed (PWM). Lower flow means higher temperatures, higher flow means lower temperatures.

Kees Jan

@juan11iguel
Copy link

juan11iguel commented Sep 13, 2022

You need to use negatives gains for all the control actions that you use (proportional, integral, derivative)

I agree that maybe in the README there could be a bit more documentation about the structure of the controller and so on but since it's a classical control strategy you can find a lot of information on Google

Wikipedia, related question in stackoverflow

@juan11iguel
Copy link

Checking the README it actually appears to be documented:

To use the PID in reverse mode, meaning that an increase in the input leads to a decrease in the output (like when cooling for example), you can set the tunings to negative values:
pid.tunings = (-1.0, -0.1, 0)
Note that all the tunings should have the same sign.

@kjkoster
Copy link
Author

Oh, it is! You are right. Sorry to cause you work.

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