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

Feature request: Save harvested energy on power loss #20

Open
jaybee79 opened this issue Mar 22, 2022 · 2 comments
Open

Feature request: Save harvested energy on power loss #20

jaybee79 opened this issue Mar 22, 2022 · 2 comments

Comments

@jaybee79
Copy link

Hi, how about saving the harvested energy to the EEPROM when the power is lost?
Normally the MPPT charger will stay powered by the battery, but if there is any event where the battery is disconnected (for example because a BMS disconnects it for any reason) the most important data is lost.
The question is: Is the software loop fast enough to detect when the battery is disconnected and writing the value to the EEPROM in that case? For example store this value when the battery voltage drops below the the value stored in the EEPROM as minimum battery voltage.
Another idea (not for automatic storage): Store the harvested energy using the settings menu, that would be usefull in case of a software update on the MPPT charger.

@fl4p
Copy link

fl4p commented Jul 13, 2023

You can just store the value when solar input voltage or battery voltage fall below 10V. It is very unlikely that both solar and bat are disconnected at the same time. And if one is disconnected, the energy counter won't change, so there's nothing to store

@jaybee79
Copy link
Author

I've tried a slightly other method: (Input <14V && Output <12V && Output >4V). The 12V lead acid battery I use won't normally go below 12V, so <12V means it's disconnected. If the solar voltage is off there is just enough energy in the capacitors to give me 1 or 2 write cycles until the voltage gets to <4V where the DC/DC converter stops producing the 3,3V.

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