e4a20fba85abc8e1098bd9965a7dc58e020ecc98
MPPT Charger Software
Software based on ARM mbed framework for the LibreSolar MPPT solar charge controllers
Remark: See also development branch for more recent updates.
Supported devices
The software is configurable to support different charge controller PCBs with either STM32F072 (including CAN support) or low-power STM32L072/3 MCUs.
- Libre Solar MPPT 20A (v0.10)
- Libre Solar MPPT 12A (v0.5)
- Libre Solar / CloudSolar MPPT 10A (v0.2 and v0.4)
Toolchain and flashing instructions
See the Libre Solar website for a detailed instruction how to develop software and flash new firmware.
Remark: The 10A charge controller with STM32L0 often needs several attempts until the software is flashed with OpenOCD (integrated in PlatformIO). The ST-Link tools seem to be better for this MCU. For Windows there is a GUI tool. Under Linux use following command:
st-flash write .pioenvs/cloudsolar_0_4/firmware.bin 0x08000000
Initial software setup (IMPORTANT!)
- Select the correct board in
platformio.iniby removing the comment before the board name under [platformio] - Copy
config.h_templatetoconfig.hand adjust basic settings (config.his ignored by git, so your changes are kept after software updates usinggit pull) - (optional) To perform more advanced battery settings, copy
config.cpp_templatetoconfig.cppand change according to your needs. (alsoconfig.cppis excluded from git versioning)
Additional firmware documentation (docs folder)
Description
Firmware for Libre Solar MPPT/PWM charge controllers
https://libre.solar/charge-controller-firmware/
5.7 MiB
Languages
C++
77.6%
C
18.1%
CMake
1.6%
Python
1.4%
Shell
0.7%
Other
0.6%