Skip to content
 
 

Repository files navigation

mains battery charger

Branch Description

This is the zero branch where the initial development of the mains battery charger happens

Future Work

This program may read command line data for setting the loglevel before the configuration file is read.

Description

This program automatically turns the mains battery charger on in case the solar battery becomes discharged beyond a certain limit.

This is essentially a bang-bang controller where the AC charger is turned on if the battery is lower than the low-threshold and turned off if the battery is higher than the high threshold.

Thresholds and Time of Use (ToU)

Time Low Threshold (on) High Threshold (off)
Base 10% 20%
16:00 to 21:00 5% 10%

Dependencies

Installation

(optional) Move files where appropriate:

  • MAGLabPyLib may be installed using pip install
  • batt_charger.py may be installed in /usr/local/bin/
  • batt_charger.json may be installed in /etc/
  • batt_charger.env may be installed in the same location as the former

Modify the included batt_charger.service to your installation:

  • where the python script is
  • where the .env file is
  • which user is running this script

Copy the batt_charger.service to /usr/lib/systemd/system/ or where your distribution stores systemd scripts

Help

Please do not hesitate to leave a Github issue or email the MAG Laboratory contact email: contact [at] maglaboratory [dot] org. Our social media locations are on the website.

Authors

  • @blu006

Version History

todo

License

The Unlicense

About

battery charging for the space

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages