Designing a BMS (Battery Management System) for a Stationary Battery Storage Solution
Published: 2021-12-30 08:04:08

**Battery management systems (BMSs) can supervise batteries operating in a diversity of devices and applications. The design of a BMS gets sophisticated according to the complexity of the solution it is used in. Thus, in addition to the minimum structure and functionality, the system can acquire extra elements, modules, and levels. This post covers different types of BMS arrangements and configurations and goes into detail about the custom hardware design of a BMS intended for a stationary home energy storage solution. Here, you’ll learn what components to use and how to connect them to build a solid BMS architecture. Also, you’ll come to know the main challenges arising in the BMS design process. **

# The ABCs of BMS Design
Either simple or complex, any battery management system has a set of essential functions and specific components to implement them. Then, the more requirements you have, the more elements you need to add to your system. Now, let’s look at the core BMS functionality.  

### Principal BMS Functions
A BMS comprises several significant tasks necessary to manage a battery. It’s worth mentioning that each function can be supported by a number of functional blocks and electronic components.  

### Battery monitoring 
Using various sensors and measurement units, a BMS monitors the parameters of the cells that make up a battery. Depending on your system’s demands, a BMS can measure the battery’s current, voltage, and temperature. 

### Battery control
The primary goal of a BMS is to keep a battery within its safe operating area. It can balance cells, calculate the  [state-of-charge (SOC) and state-of-health (SOH)](https://www.integrasources.com/blog/battery-management-system-bms-state-charge-and-state-health/), and protect the battery from overrvoltage, overtemperature, and  [other out-of-limit conditions](https://www.integrasources.com/blog/saving-and-securing-battery-bms-hazard-protection-solutions/). A BMS controls charging and discharging and can disrupt these processes to save the battery from possible hazards. 

### Communication
This function lies in transmitting signals between the internal parts of a BMS as well as external devices and systems connected to it. For example, a BMS can display the battery data on a **dashboard** or **human-machine interface (HMI)**. A charger can be a part of a BMS or a separate device, and it’s crucial to establish a connection between them. BMS communications can be wired or wireless.

![631277f7-d4e9-432a-a3ef-433318c0d40c.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640849927378/ahkOtPPf4.png)
Core BMS functionality

## BMS Topology
The components of a battery management system can be arranged in several different ways. These arrangements, called topologies, can be centralized, distributed, and modular.

### Centralized BMS topology
In a centralized topology, there is a single BMS printed circuit board (PCB) with a control unit that manages all cells in a battery through multiple communication channels. This type of arrangement makes a BMS a bulky, inflexible yet cost-effective solution.

### Distributed BMS topology
Here, every battery cell has its own BMS PCB, and a control unit is connected to the entire battery through a single channel. The daisy chain is one of the distributed topology variations intended for systems that have a small need for fault tolerance. Distributed BMSs are easy to deploy but costly because of the abundance of electronics. 

### Modular BMS topology
A modular BMS is a combination of the above two topologies. This arrangement is also known as decentralized, star, or the master and slaves topology. There are several interconnected control units (slaves), and each of them oversees a group of cells in a battery. The slaves are connected to the main control unit or master, which handles the integrity and safety of the whole battery. A modular BMS topology can provide a balance between the price and design complexity.

![631277f7-d4e9-432a-a3ef-433318c0d40c.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850066140/MTBfUGeXi.png)
BMS topologies

Apart from various BMS topologies, there can be three different ways of organizing cells in a battery pack—you can connect them in **series**, in **parallel**, or make the connection **series-parallel**. The serial combination can raise the voltage of the battery; the parallel connection can increase its capacity; the series-parallel configuration can boost them both.

## BMS Сonfigurations
BMS types and configurations vary in the number of modules, levels, and subsystems. BMS functionality can be implemented with the help of simple circuitry or a set of PCBs with microcontrollers (MCUs) and firmware. On top of that, larger and more sophisticated battery management systems may use complex [BMS software and algorithms](https://www.integrasources.com/blog/battery-management-systems-software-development/).

A BMS can be a no-brainer solution attached to a battery of a simple electronic device. Here, it can only monitor the basic parameters and run the charging process. Normally, such battery management systems have a minimum set of components, including a control unit, a measurement device, a charger, and a battery itself.

Being part of a [battery energy storage system (BESS)](https://www.integrasources.com/blog/energy-management-and-energy-saving-bess/), a BMS can have many more things to do and may need a bigger size, higher power, and broader functionality. A BMS installed in a microgrid, black-start solution, **uninterruptible power supply (UPS)**, or another BESS, will have a multimodular and multilevel structure. 

Reliability and fault tolerance are the most important factors affecting the complexity of BMS design. If a battery-operated system performs a life-critical function, for example, serves as an emergency power system for a hospital, it definitely requires strong battery control. A battery storage device working in extreme environments will need increased protection and a range of  [BMS safety features (https://www.integrasources.com/blog/saving-and-securing-battery-bms-hazard-protection-solutions/).

![27f547bd-0f2d-40ff-a270-d2e9f6da664b.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850177275/mbiKYyIhY.png)
BMS configurations differ from simple devices for small consumer electronics to high-power solutions for large energy storage systems.

Within our  [power electronics design services](https://www.integrasources.com/services/power-electronics-design/), we created battery management solutions of varying difficulty, ranging from a simple BMS to a state-of-the-art device integrated into a larger energy storage system. 

In this article, we’ll consider a solution of medium complexity: our custom-made BMS geared towards a lithium-ion battery stationary home energy storage device. This will be a vivid example of BMS design fundamentals.

Here, we focus on hardware design and electronics. For BMS software development, you can check a [related post](https://www.integrasources.com/blog/battery-management-systems-software-development/) on our blog. 

# The Full Story of Our Custom BMS Design
In this project, we took care of the complete cycle of  [electronic design](https://www.integrasources.com/services/electronic-design-services/), including  [PCB design and layout](https://www.integrasources.com/services/pcb-design-and-layout/), and  [firmware development](https://www.integrasources.com/services/firmware-development/). As a result, we’ve got a full-fledged battery storage solution for low-voltage residential applications. 

Our BMS is a flexible and scalable product that allows for various configurations. The system’s maximum output characteristics are:

![27f547bd-0f2d-40ff-a270-d2e9f6da664b.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850298477/3fY23nbdw.png)

## BMS Architecture
As a part of a BESS, our BMS had to fulfill a good deal of functions, which defined the choice of building blocks and architecture of the system. To cover all the bases, we selected the following components and technologies:

![87a5344d-f3e2-4a1e-aa2d-05a2a950567a.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850367383/ynEm7DFTq.png)

For our system, we opted for a modular or decentralized topology with a few arrays of batteries supervised by control units or **power cells (PCs)**. Each PC is responsible for **8 batteries**, that is, it balances the cells and measures their voltage and temperature using the respective sensors.

In our customized BMS design, we used the series-parallel configuration of battery cells. First off, it allows the user to connect batteries in series from 1 to 8 cells, increasing the voltage from **24 V up to 200 V**. In their turn, the power cells can be joined in parallel from **1 up to 4 arrays**.  

The PCs of one array are connected to a **multiplexer (MUX)** that reads error signals from the control units and generates a single output signal. Also, the MUX device measures the current of the batteries in its array via a current sensor. We installed fuses in the circuit to protect the batteries from overcurrent.

Each battery array has a cutoff switch that can disconnect the array from the entire battery to save energy during charging. In addition, the cutoff switch can break the circuit in case of emergency, for example, if the battery is charged with the wrong voltage.       

Every PC has a positive and negative output (terminals of the battery), an **RS-485** interface to communicate with other control units and the multiplexer, and an **IRQ** to report errors. 

The MUX devices send RS-485 and IRQ signals to a **single-board computer (SBC)**, which is the brain of the BMS. The SBC interrogates the control units one by one, makes all the calculations, determines the SOC and SOH, controls charging, discharging, and other processes and states of the battery. The SBC has a real-time clock, memory, an RS-485 line to connect with the BESS, and an LED display that shows the current status of the system. **Ethernet** and **BLE** interfaces enable the user to communicate with the BMS remotely.

Within our  [firmware development services (https://www.integrasources.com/services/firmware-development/) for this project, we also built a  [custom embedded Linux image](https://www.integrasources.com/services/embedded-linux-development/) for the SBC, implemented an **RTOS** in each power cell and MUX, encrypted Ethernet and BLE communications to secure the system and its users from unauthorized access and data misuse. 

This diagram shows how we arranged the above components and what BMS architecture we shaped:

![75637cc4-04f8-436b-8d02-278c97206689.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850492699/_3oYhGbZR.png)
The block diagram of our custom BMS solution

## BMS Functionality
Each of the components stands behind an important activity or activities aimed at monitoring, controlling, and safeguarding the battery. The following is the list of functions that our bespoke battery management system performs: 

**Battery protection**: Our BMS offers all must-have tools to defend the battery against potential threats. For starters, the system measures the battery parameters and compares them with the setpoints. Then, the BMS can disconnect the circuit and save the battery from overcurrent, under and overvoltage, under and overtemperature. In addition, the system protects the confidentiality and integrity of the data transmitted.    

**Charge/discharge control**: Improper charging can seriously damage or completely disable the battery. The BMS help observe the battery’s charging/discharging level and conditions. These conditions comprise voltage, current, and temperature limits. The BMS alerts the user in case the battery reaches its critical level or the parameters go out of range. 

**SOC and SOH calculation**:  [Estimating the battery’s state-of-charge and state-of-health](https://www.integrasources.com/blog/battery-management-system-bms-state-charge-and-state-health/) is vital for the efficient and long-lasting operation of the battery. Our BMS can accurately calculate the SOC and SOH thus giving a clear picture of the current battery status, including the depth of discharge (DoD), capacity, wear level, and other characteristics. The SOC and SOH estimations assist the user in maintaining the battery and predicting its future behavior.    

**Cell balancing**: The battery installed in our custom BESS contains plenty of cells, which cannot discharge equally and have the same level of voltage or current. The BMS adjusts the charging level and parameters of the cells, making them even. This minimizes the wear level of the battery and enhances its performance.

![54d911e0-6615-4a92-8129-d5fbdc02df48.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850560848/I0KPBNQmP.png)
The functionality of our custom BMS solution

## BMS Challenges
For an expert, the design of a battery management system is a common engineering task, lacking apparent problems. That’s why the skill level of a development team is instrumental in BMS design.

Making a robust solution demands high qualifications in a variety of technologies and engineering fields, such as batteries,  [power electronics](https://www.integrasources.com/services/power-electronics-design/),  [embedded hardware](https://www.integrasources.com/services/embedded-hardware-design-and-development/), and  [embedded software development](https://www.integrasources.com/services/embedded-software-development/).  To get the desired result, you need to make sure your project is handled by true experts.

We at Integra Sources have extensive experience with different rechargeable batteries and wide voltage and power ranges. Our engineers have created simple and complex BMS designs for a host of applications—from small consumer devices to large-scale energy storage solutions. 

In this particular project, we didn’t face daunting challenges, but there were some things that we had to busy ourselves with. The main issues concerned firmware for the SBC and communication interfaces. For example, we struggled a little to achieve a satisfactory data processing speed without exceeding the initial project budget. 

Balancing battery cells can be quite a challenge for a BMS designer, but most difficulties here relate to software rather than the hardware development process. We’ll elaborate on cell balancing and its implementation in one of our next posts.      

It’s critical to design a BMS with the relevant regulations in mind. Your product will never come out unless it meets all the necessary standards.

Depending on the industry and area of application, battery management systems may have different certification requirements. A BMS designer must consider them at every development stage—from component selection to QA testing and preparation for manufacturing. 

As for our system, it was certified together with the BESS under a range of standards and certifications concerning safety and environmental protection. Among them are:

![5ae124e7-d589-4216-99ce-294f80b12059.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1640850616353/gEEgTkd5t.png)

# Conclusion
The core functions of a battery management system encompass monitoring the parameters of a battery, controlling its condition, and communicating the results to the user and related devices. Extending the functionality means adding more components, functional blocks, and levels to the system. 

BMSs can have diverse topologies (centralized, distributed, and modular) and configurations that depend on the system’s requirements and application. Thus, a battery management system that needs higher reliability and fault tolerance will have a more complex structure and elaborate design. 

In this post, we gave an insight into the hardware design of a BMS that manages the battery of a low-voltage stationary system used for residential energy storage. If you’re interested in creating a BMS for a more powerful application or, conversely, a simpler device, you can learn everything there is to know by [speaking with us directly.](https://www.integrasources.com/contact-us/)

Originally published at: https://www.integrasources.com/blog/bms-battery-management-system-battery-storage-solution/