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

Overshoot compensation #140

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

kev300
Copy link
Contributor

@kev300 kev300 commented Jun 15, 2023

Like #122 but less complicated and works better with ramping consumption changes. :)

Fixes: #73 (for me)

Also there is no pid setting anymore, only max_power_sensor_latency_ms.
It is necessary because the inverter does not exactly hit it's power target (demand +500W actually ends up producing something like +480W) and when multiple loads are changing within the compensation period.

Works for me with an update intervall of 250ms at the moment. Without this PR the demand only jumps between min demand and max demand constantly. 😬

@kev300 kev300 force-pushed the overshoot_compensation branch 3 times, most recently from e2e63b9 to cb10f0e Compare June 30, 2023 11:18
@kev300
Copy link
Contributor Author

kev300 commented Dec 20, 2023

This happens, if the latency value is too high.
Screenshot_20231220-125959

So I made it adjustable.

(cargingAmps = charging Amps ;-) )

Currently, when the battery is cold, it cannot be charged. So I need to set the Inverter to output the incoming solar power as fast as possible.
My Setup is: PV MPPT --> Battery --> Soyosource and power clamps in between.
So to get nearly 0W at the battery I'm measuring and adjusting each 250ms. Therefore the sensor_latency value must be lowered, when battery protection is on (too cold).

BTW: This is another case for a very fast update intervall without overshooting. 👅

@syssi
Copy link
Owner

syssi commented Dec 20, 2023

There is a typo in chargingAmps. ;-)

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

Successfully merging this pull request may close these issues.

Determining the "Power calculation method"
2 participants