Battery Management System Firmware

Modular firmware based on Zephyr RTOS for low-voltage Li-ion batteries.

build badge

GitHub repository: LibreSolar/bms-firmwareopen in new window

Features

  • Running on Zephyr RTOSopen in new window
  • STM32F0 and STM32L4 series MCUs (can be easily adapted to other manufacturers)
  • Different cell chemistries: Li-ion NMC/NCA, Li-iron-phosphate LFP/LiFePO4
  • Pack current and voltage measurement
  • Monitoring of single cell voltages
  • Control of balancing switches
  • State of Charge (SOC) calculation using Coloumb counting and calibration based on lookup tables
  • Safety features
    • Overcurrent protection
    • Short circuit protection
    • Overvoltage and undervoltage protection
    • Overtemperature and undertemperature protection
  • CAN bus and serial interface with ThingSet protocol

Supported boards

Supported ICs

The firmware allows to use different BMS monitoring ICs, which usually provide single-cell voltage monitoring, balancing, current monitoring and protection features.

The chips currently supported by the firmware are listed below.

ManufacturerChip# CellsStatusDatasheet
Texas Instrumentsbq769203s-5sfull supportlinkopen in new window
Texas Instrumentsbq769306s-10sfull supportlinkopen in new window
Texas Instrumentsbq769409s-15sfull supportlinkopen in new window
Texas InstrumentsBQ769523s-16sfull supportlinkopen in new window
Renesas / IntersilISL942023s-8sfull supportlinkopen in new window

API documentation

The documentation auto-generated by Doxygen can be found hereopen in new window.