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

Can't get PID to work #16

Open
VdR1960 opened this issue May 5, 2022 · 4 comments
Open

Can't get PID to work #16

VdR1960 opened this issue May 5, 2022 · 4 comments

Comments

@VdR1960
Copy link

VdR1960 commented May 5, 2022

Trying the PID in open loop. The output always just tracks the 'minimum'. Nothing else has any influence.

Installed using HACS. Essentially copied the config file. Exposed the input_numbers, input_boolean, and the output to a dashboard (see attached).

Want to use to control my EV charger to use excess solar, by controlling the charger current (PID output) to control the grid current (PID input) and a zero set point.

I'm a controls engineer, I understand the basics of a discrete PID controller. I must be doing something obvious wrong. Any suggestions?

Screenshot 2022-05-05 172924
.

@soloam
Copy link
Owner

soloam commented May 5, 2022

From what i can tell, you are setting the set point to zero and your reading at the moment is -26... That should be the behavior of the inverted PID. Can you set the set point to 26 and select the invert?

@VdR1960
Copy link
Author

VdR1960 commented May 5, 2022

I have tried all of that. Positive error, negative error, invert, not invert, K values at zero, K values at max. For several hours now. I also display the P,I and D attributes now, and for life of me cannot make them show anything else than 0.

@VdR1960
Copy link
Author

VdR1960 commented May 6, 2022

More trail end error:

When the set point is <=0, the open loop PID output sticks to the min-output whatever you do with the other values. Why?

With the setpoint at 1, the open loop proportional response is fine. But the integral part of the response does not work. There is an initial reaction to the reading step change, but it does not integrate.

@soloam
Copy link
Owner

soloam commented Oct 14, 2022

Sorry for the delay in response, some personal problems made me be off for some time.

I'll take a look at it.

Tks

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