Abstract

High electricity consumption in Sarawak’s cities is a concern, driven by residential, industrial, and commercial users. Greater demand for electrical energy requires more electrical resources, affecting grid stability. To prevent blackouts and enhance grid resilience, electric vehicles can serve as distributed energy storage in microgrids. The biggest problem facing energy storage is that not all batteries within energy storage are the same. Every battery cell in the battery pack has a different rate of self-discharge, capacity, internal resistance, and aging, even though they have the same chemical and physical characteristics. These variations lead to power imbalances in energy storage. Therefore, to address this issue, a unique voltage equalization method using a modular flyback converter is presented. Its core objective is to correct voltage imbalances among batteries. The proposed method is modelled using MATLAB, and the performance of the system has been evaluated. Furthermore, the developed model is implemented in a microgrid and tested for two different cases (with and without energy storage for electric cars). From the simulation outcomes, it has been verified that the developed cell balancing technique performs well in equalizing the voltage of cells than the conventional methods.

1. Introduction

High electricity usage and load demand in Sarawak cities are caused by consumers from various backgrounds, including residential, commercial, and industrial consumers. As a result, renewable energy sources are becoming increasingly popular because they can meet the demand for electrical energy while also resolving the problem of electrical energy deficit. The use of renewable energy sources consists of a variety of configurations in the electricity generation system. One of the most common configurations is the use of photovoltaic solar generation in the microgrid system [1]. Photovoltaic resources are more desirable for microgrid use because they do not have any moving components and there are no losses associated with motion. But its intermittent nature is the main drawback of solar power. Hence, energy storage systems [2] are generally recommended for intermittent sources. The increasing penetration of the PV system may also have significant effects on power distribution systems soon, especially because of the intermittent nature of its output caused by cloud cover. Coordinated use of the solar power system with electric vehicles will therefore be a possible solution that can help maintain the grid’s flat power profile [3]. Since electric vehicles are parked on average 22 hours a day at work or home, the microgrid can integrate electric vehicles as an energy storage unit. When parked and plugged into the electrical grid, electric vehicles can consume and store energy and will also be able to supply power back to the grid when needed [4]. Electric vehicles which are used as energy storage for microgrid consist of a larger battery pack and an electric motor. The battery pack is a combination of cells connected in series and parallel to obtain the desired operating voltage and current rating. The batteries of electric vehicles are developed by stacking many individual cells in a specific order. According to [5], the electric vehicle batteries are not similar to those used in electronic devices. Electric vehicle batteries needed to withstand high energy and power capacity within several limits in terms of space and weight. Lithium-ion cells are recommended storage technologies for EVs due to their high energy capacity, affordable price, longer lifespan, and also low self-discharge rate. However, due to the dynamic behaviour of charging and discharging of EVs, the capacity of the battery pack is not constant, leading to a power imbalance. Balancing plays a crucial role in preserving battery life [6] because, without it, cell voltages can gradually deviate over time. This divergence in voltage levels can lead to a rapid decline in the overall capacity of the battery pack during its use, ultimately jeopardizing the integrity of the entire battery system and diminishing its lifespan. This issue becomes particularly critical in high-voltage battery systems, such as those commonly used in hybrid electric vehicles (hybrid EVs) [7, 8] that rely on regenerative braking. Hence, it becomes imperative for the battery management system (BMS) to incorporate an efficient balancing mechanism.

In an electric vehicle battery pack, individual cell voltages tend to diverge over time due to variations in state of charge (SOC), impedance, capacity, self-discharge rate, and temperature characteristics. Cell balancing serves the dual purpose of extending battery lifespan and enhancing safety. The passive balancing technique [9] is a simple and easily implementable method which makes the overcharged cell dissipate excess energy using a bypass technique. This approach provides a cost-effective solution for cell balancing and is commonly used in industrial applications. On the other hand, active balancing employs capacitive or inductive methods to efficiently transfer charge from overcharged to undercharged cells. A fixed-shunting resistor-based passive balancing method is introduced in [10]. The authors have implemented a method for balancing the cells of the lithium battery. The limitation of this method is heat dissipation, and it can be used for only less number of cells connected in series. The authors in [11] developed a switched shunting resistor-based passive balancing method. This method can be used only for low-voltage applications, and it affects the battery life. A cell bypass active balancing method is introduced in [12]. The method is very cheap and very easy to control. The switches used in the cell bypass method experience high current stress, which increases the losses in the system. The authors in [13] developed a cell-to-cell active balancing method for high-power applications. However, this method makes the system bulky and is very difficult to control. The cell-to-pack active balancing method is introduced in [14]. This topology suffers from higher voltage and current stress as well as being very expensive. The pack-to-cell active balancing method is introduced in [15]. In this topology, the maintenance can be more challenging due to the need to access and service individual cells within the pack. The cell to pack-to-cell topology is implemented in [16]. It allows for a more efficient use of cell space, potentially reducing the overall weight and size of the battery pack. It simplifies battery management as cells are grouped, but can still require robust balancing and monitoring.

Cybersecurity concerns in EV charging stations [17] arise from the extensive data exchange between the charging infrastructure, vehicles, and user accounts. This data includes personal information, billing details, and vehicle-related data, making it a prime target for cybercriminals. Malware and ransomware attacks can compromise the software running in EV charging stations. An attack can disrupt service, potentially leaving EV drivers stranded, and attackers may demand ransoms for restoring functionality.

From the literature, the key research gaps identified in the balancing systems are as follows:(i)Passive balancing wastes excess energy as heat during balancing, reducing overall efficiency(ii)Passive balancing process potentially requiring additional cooling measures(iii)Passive balancing process is a slower balancing process as it relies on the natural discharge of overcharged cells(iv)Active balancing is more energy-efficient as it transfers charge instead of dissipating it, but some energy loss still occurs(v)Active balancing requires additional components such as capacitors or inductors, increasing system complexity and cost(vi)Active balancing systems may have more points of potential failure due to additional components.

From the research gaps, the objectives of the proposed system are framed.(i)To choose a suitable approach for battery modelling in order to anticipate charge/discharge behaviours, state of charge, voltage, and various battery attributes(ii)To design a two-switch flyback converter by considering the drawbacks of a conventional flyback converter(iii)To implement a modified balancing method which overcomes the drawbacks of the existing methods(iv)To test the developed balancing method in a microgrid system with a battery aggregator(v)To compare the effectiveness of the suggested technique with the existing methods

The work mainly concentrates on two approaches. The first approach is to integrate electric cars as one energy storage aggregator and model the aggregator for the microgrid. The second approach is to implement the developed battery balancing method to balance the voltage of the total battery packs inside electric vehicles. This is because if there is a difference between the voltage and the capacity of the attached battery cells, the entire battery pack cannot function efficiently, which has led to an energy storage imbalance [18]. The energy storage capacity is reduced and cannot work efficiently when connected to the microgrid. The paper is organized as follows: Section 2 discusses the modelling of the battery. Section 3 discusses the proposed converter design. Section 4 discusses the developed balancing method. Section 5 presents the results of the entire system. Section 6 presents the conclusion of the developed system, pointing out the highlights of the proposed balancing method.

2. Battery Modelling

In order to create a battery-powered system that functions effectively, a precise battery model becomes imperative. Such a model possesses the capability to anticipate both the dynamic and steady-state behaviours of the battery. In practice, crafting a precise model for different battery chemistries poses a significant challenge, primarily because of the intricate electrochemical nature of batteries. Depending on the trade-off between system accuracy and implementation complexity, the extended Thevenin model [19] can effectively capture battery transients at various levels, ranging from and , up to the nth order model. Consequently, the implementation of RC models is adopted to enhance the performance of EVs battery management systems (BMS).

2.1. 3RC Battery Model

The framework for solving the optimal cell balancing problem is based on the Thevenin 3RC electrical equivalent circuit model (ECM). Electrochemical impedance spectroscopy (EIS) is a test used to derive model parameters. Figure 1 illustrates the ECM featuring three parallel RC pairs.where, are the voltages of the shunt RC pair, represents the output voltage of the 3RC model, equation (2) represents the transient voltage response of the system.where presents the transient voltages.

The first, second, and third parallel RC networks’ respective time constants are denoted by R1C1, R2C2, and R3C3. The discrete version of the equations created using ECM is represented as equation (3).where, τ1, τ2, and τ3, indicate the time constant of the 3RC network.

The battery terminal voltages Vt, Voc, and V1, V2, V3 represent the open circuit voltage (OCV) and voltage drop across the branch’s polarization resistance, respectively.

Equation (5) presents the formula to determine the battery’s SOC., capacity of the battery, , initial SOC of the battery, and η is Coulombic efficiency. The current integration (Coulomb counting) method is used to determine the battery . Since the self-discharge rate of Li-ion batteries is minimum, the coulomb efficiency value is close to

According to equation (6), η lowers when more battery charge and discharge cycles are performed. Battery testing under charge and discharge circumstances yields a link between battery voltage and SOC.

The charging current is presented in the following equation:–Cell current, IB–Balancing current.

The current and voltage of the pack is presented in equations:

Battery system output is shown in the following equation: is the output current, is the output current of the balancing circuit, and Po is the power output of battery pack.

During the balancing process, the power balance equation for each cell is displayed in the following equation: denotes the power loss across the balancing circuit.

The constraints of current in the battery balancing circuit are as follows: and are the maximum and minimum balancing current limits for the circuit.

During balancing, the following constraints are imposed in order to achieve voltage and temperature equilibrium:where is the highest typical cell-to-pack voltage disparitywhere is the maximum temperature disparity between the average of each cell and the pack.

The change in battery temperature is calculated using the first-order differential equation, as given in the following equation:

where represents the ambient temperature in degrees Celsius, TB signifies the battery temperature in degrees Celsius, stands for the battery’s initial temperature, which is set equal to the ambient temperature in degrees Celsius. CT denotes thermal capacitance in Joules per degree Celsius, while RT signifies thermal resistance in degrees Celsius per Watt. PL represents the power loss across the battery’s internal and polarization resistance. To calculate the power loss for the 3RC equivalent battery model, the following equation is used

The value of R1, R2, R3, and R0 are estimated at different SOC through EIS test.

3. Proposed System

In this work, a modular flyback converter is introduced for cell balancing. The primary aim of this approach is to address voltage imbalances within battery cells. This new architecture uses a transformer with numerous windings to separate the single input and multiple output terminals. Through a simple switch operation, the developed configuration ensures that the battery’s voltage is kept stable when being charged or discharged. The usage of the conventional flyback converter [20] leads to excessive stress on the switch and the formation of ringing due to the primary electric field effect, potentially resulting in damage to the switch. Consequently, the switch experiences increased voltage stress caused by the input voltage. To address this issue, an individual clamp circuit is necessary to suppress voltage spikes and enable the flow of current through the magnetizing inductor when the switch is turned off. However, the presence of such a clamping circuit can lead to power dissipation through the resistance element, ultimately limiting the long-term power efficiency of the converter. To address the drawbacks of the conventional flyback converter a modular two-switch converter is designed. The developed configuration contains two switches ( and ), alongside two diodes, and , interconnected in a bridge configuration. When adapting a typical flyback converter circuit for cell balancing purposes, it transforms into a design in which four battery cells within a single transformer distribute the similar magnetic flux. In contrast to the conventional flyback converters, where the circuit necessitates a number of transformers equivalent to the number of cells, our proposed design allows for a reduction to just one transformer. This innovation harnesses shared magnetic flux to facilitate rapid voltage synchronization and straightforward voltage detection. Moreover, the use of modular flyback converters minimizes the impact of voltage spikes caused by leakage when compared to traditional single-switch converters, thereby enhancing overall battery performance. Figure 2 presents the basic configuration of the developed two-switch modular flyback converter. Figure 3 presents the modes of operation of the proposed converter, considering a single battery cell in the circuit.

In Figure 3(a), when both switches and , each with a duty cycle ratio of , are concurrently activated a connection is made between the input terminal and the transformer’s primary winding. As a result, the diode in the secondary winding of the transformer receives a reverse voltage across its terminals. Consequently, during this period, the current within the secondary winding is obstructed, directing it to pass through the freewheeling diode, where it is transformed into reactive power. This results in a reduction in both power loss and system noise. The inductor current is given aswhere is the input voltage, and Lm is the magnetizing inductance.

Figure 3(b) illustrates the coordinated deactivation of switches and . The current flowing through the magnetising inductor must continue in the same direction even after the switch is turned on and off; therefore, it is returned to the input terminal and reversed by the two freewheeling diodes. This leads to a linear decrease in the inductor current, denoted as . Figure 4 portrays the equivalent circuit when both and are deactivated, assuming that the primary side current remains above zero

Equation (20) displays the secondary winding current from the transformer.

Here, represents the secondary side transformer’s leakage inductance, while Vout signifies the output voltage. The energy stemming from leakage is channeled back through the diode, transforming it into reactive power. This process results in a reduction in power loss and system noise. The determination of the operational mode at this stage relies on whether the step-down converter meets the conditions outlined in equation (21), thereby initiating the operation mode when the specified condition is met.

Thus, when equation (21) is satisfied, the diodes play a role in enabling current flow through voltage inversion, thereby transferring energy from the primary side to the secondary side. In addition, the voltage equation governing the current on the secondary side remains in accordance with the following equation:

The primary side current () is given as follows:

The operation of the circuit during this phase concludes when the primary current in the transformer reaches zero. Subsequently, as depicted in Figure 3(c), the inductor voltage also drops to zero. The amount of energy transferred within the magnetising inductor rapidly reduces when the current on the primary side of the transformer drops to zero. Ultimately, all currents within the modular flyback converter reach zero, as illustrated in Figure 3(d). Following this, switches and proceed to repeat the turn-on operation mode simultaneously.

4. Proposed Cell Balancing Method

Figures 5(a) and 5(b) depicts the operational mode of the proposed battery balancing method. As soon as Q1 and Q2 of the converter are turned off, energy is transferred through the transformer to the secondary cell stage, where it can be regulated to achieve a stable voltage. Thus, the power retained by the transformer is transferred to the cell stage via the transformer in conjunction with the electrical current passing via the diode during switch-on operation. Consequently, in situations where there exists a voltage imbalance among cells, the transformer’s energy is equalized among them through their shared magnetic flux. Hence, as illustrated in Figure 6(a), the cell voltage undergoes a differential charging and distribution process, with the charging being differentially allocated based on the variance among the cell voltages. Conversely, if a specific cell voltage surpasses a predetermined threshold, it becomes imperative to halt the charging process automatically, thereby averting the risk of overcharging the battery cells. Consequently, as depicted in Figure 6(b), any excess energy exceeding the maximum charge voltage is transformed into reactive power and redirected back to the power supply source. This action effectively interrupts the distribution of voltage among the cells.

The transformer coil receives power from the primary side when the switch is turned on. This applied voltage’s polarity is established by the direction of the current, while its amplitude is set by the duty cycle of the switch. In practise, cell balancing takes place when the converter switch is in its off position, as shown in Figure 7. Assuming a circuit is made up of two cells, m and l, at a given time, with different charging voltages, energy flows from the cell with the higher charging voltage to the cell with the lower charging voltage when the switch is off. Even as the number of cells increases, the charging principle can be used to calculate the magnitude and direction of energy transfer. Then, if cell’ m′ has a higher charging voltage than cell 1 cell’ m′ will charge faster.where represents the leakage inductance, which serves as an impedance that restricts the flow of electricity. Figure 8 presents the three-winding transformer charging circuit of the proposed model. During this period, the cell’s output voltage follows the equations (25)–(27) based on the specific magnetizing inductance conditions depicted in Figure 8.

This very principle remains applicable when the number of cells is expanded to by augmenting the number of windings on the secondary side. Figure 9 presents the control of the proposed technique.

4.1. Comparison of the Proposed Method with Existing Methods

Table 1 provides a comparison of different balancing techniques with the proposed method, considering factors such as reliability, control strategy, balancing speed, and other relevant criteria. The choice of a cell balancing method is primarily guided by the control strategy and design principles that aim to minimize the use of hardware components. The control schemes, which encompass aspects like charge and discharge regulation, play a vital role in determining which method to employ. Despite the utilization of capacitor-based balancing systems during both charging and discharging phases, they exhibit an inherent efficiency of only . Moreover, they are unsuitable for Li-ion battery chemistry, which demands a minimal degree of voltage imbalance. In contrast, the transformer-based balancing system is more efficient than the inductor-based system and is characterized by greater complexity.

5. Results and Discussion

The simulation work is carried out for a 48V Li-ion battery pack with sixteen cells connected in series. The two switch flyback converter-based balancing architecture is implemented in Matlab/Simscape, specifically configured for charging conditions, to assess the performance of the framework. Parameter values for the model are stored in the lookup table. During the simulation, cells are charged in the CC-CV mode and the variation in voltage across the cells is determined by modifying the initial state of charge (SoC) of the battery pack. Each cell has a capacity of 3.3Ah, and an inductor value of 10μH has been selected. The simulation involves computing the open circuit voltage (OCV), terminal voltage, temperature, and SoC for each cell. At the outset, the voltage difference between cell1 and cell2 is intentionally maintained at a level exceeding 30mV. Once the cell voltages reach the designated charge threshold of 3.9V during a charging rate of 0.5C, the process of cell balancing is triggered. The first phase, Stage 1, commences by activating switch Q1 and Q2 as soon as cell 1's voltage surpasses that of cell 2. Subsequently, switch S1 is kept in the ON state, leading to the charging of inductor 1, and it remains ON until the voltage differential between the cells falls below 30mV. Energy stored in inductor 1 is then transferred to cell 2 after approximately 5,800 seconds via the body diode of switch Q2. The graph in Figure 10 displays minimal fluctuations in cell voltage due to the low balancing threshold voltage applied. Figure 11 presents the SoC of the cell1 and 2. As illustrated in Figure 11, the entire charging process consumes approximately two hours to reach completion, with cell balancing requiring approximately 50 minutes. Charging takes place in an environment maintained at 20°C. During the charging process, cell temperatures gradually rise, peaking at 24.75°C as depicted in Figure 12. Despite voltage fluctuations during charging, the current remains constant. As each cell reaches its maximum voltage, it switches to the constant voltage mode, as illustrated in Figure 13. In this mode, voltage is held steady while current gradually decreases to the lowest permissible level based on power rating.

Passive and the proposed balancing system simulation results reveal that passive balancing takes longer time due to greater voltage discrepancies among cells, as evidenced in Figures 14 and 15. The proposed balancing method, as shown in Figures 16 and 17, effectively addresses the limitations of passive balancing. The rise in temperature near the battery pack is attributed to heat generated by the balancing system, which accelerates battery aging mechanisms and reduces overall battery life. To analyse the temperature characteristics of the balancing system, two key parameters, maximum temperature (Tmax) and temperature distribution (ΔT), among the cells are assessed. The active system exhibits a lower maximum temperature (24 °C) compared to the passive system (27 °C), and ΔT does not exceed 4°C during the charging process, as depicted in Figures 18 and 19. The simulation results provide a wealth of important metrics, such as power dissipation, equilibrium duration, energy dissipation, energy effectiveness, and the overall expense of the equilibrium system. Tables 2 and 3 exhibit the results of simulations for both passive and active scenarios in a standard 48 V electric bicycle (E-bike) system. When passive balancing is employed, it becomes apparent that a substantial energy loss occurs only when there is a high degree of imbalance. In contrast, the proposed topology consistently demonstrates low energy loss, regardless of the extent of imbalance or the quantity of imbalanced cells within the battery pack. In low-power E-bikes, where the voltage requirements are relatively modest, the occurrence of cell imbalances is notably reduced. In the case of a fourteen-cell series-connected battery pack, the passive balancer required 48 minutes to bring the cell voltages below the balancing threshold (30 mV), as illustrated in Figure 14. Passive balancing exhibits minimal power dissipation, as indicated in Table 2, making it the practical choice for these scenarios.

Proposed balancing, on the other hand, is not a viable option due to its circuit complexity and high cost. Therefore, passive balancing finds its applicability in low-power E-bikes. In situations where a significant voltage deviation exists (e.g., due to aged cells) and a greater number of imbalanced cells (resulting from multiple charge-discharge cycles), the passive balancer took 215 minutes to achieve balance but incurred a power loss of 4.55W, as detailed in Table 3. Given the substantial losses observed (as indicated in Table 3), opting for the proposed balancer becomes a more compelling choice. The proposed balancer, as shown in Table 3, managed to balance the cells within a range of 30 mV–200 mV in a significantly shorter time frame, taking between 15 and 42 minutes. A comparative analysis of cell balancing system characteristics among various electric vehicle (EV) variants is presented in Table 4. It is evident that although passive balancing reduces power loss, it does not yield significant cost savings from energy loss mitigation. Moreover, the passive balancing system's propensity for generating hot spots within the battery pack can have adverse effects on the battery's remaining useful life (RUL) and state of health (SOH) due to the high-energy losses it incurs. Figure 20 presents the comparison of the passive and proposed method with various balancing characteristics.

5.1. Integration of Electric Cars into Microgrid Using a 24-Hour Simulation of the Vehicle-to-Grid System

The integration of electric cars as energy storage systems into the microgrid is carried out using MATLAB. The design of a vehicle-to-grid (V2G) system is presented in Figure 21. This work mainly focuses on the impact of energy storage during off-grid and on-grid operations by analysing the active power graph. Electric vehicles that connect to the grid have only local information, and the voltage profiles of other nodes are unknown. The total number of electric cars in this simulation design is 100, and all of the electric cars combine to form one energy storage aggregator with a power output of 4 MW, as shown in the model specification of the energy storage aggregator in Table 5.

Two different scenarios are simulated using a vehicle-to-grid system, including one case in which the energy storage aggregator that combines all-electric vehicles is connected to the microgrid, known as on-grid, and another one case in which the energy storage aggregator is disconnected from the microgrid, known as off-grid. The impact of electric vehicles connected to the power grid is studied in the first phase simulation, and the results of the active power in first phase is shown in Figure 22. The second phase of simulation investigates the impact of electric vehicles disconnected from the network, and the results of the active power graph is shown in Figure 23. From the Figures 22 and 23 the following observations have been done: vehicle-to-grid (V2G) technology allows power to flow from electric vehicles to the grid, transforming them into not only a distributed load but also a distributed storage and generation system. This is shown by the active power graph as energy storage transitions from off-grid to on-grid operation. The transition of energy storage from off-grid to on-grid demonstrates that connected electric vehicles add to the pre-existing peak active power of off-grid operation and provide an even higher peak active power during on-grid operations. This proves that energy storage plays an important role in increasing total energy generation during on-grid operation. Electric vehicle energy storage integration can be used as spare energy storage for grid support during peak load periods and can reduce the use of battery packs connected to a PV system during periods of high electrical demand, which can benefit the microgrid.

6. Conclusion

This paper introduces a two-switch flyback converter for balancing the cells of a lithium-ion battery. The developed battery balancing method has been implemented, and its performance has been compared with the passive balancing method. The modular design of the converter allows faster cell balancing. It can handle multiple cells simultaneously, which speeds up the balancing process, especially in large battery packs. The two-switch topology can help reduce stress on the switches, potentially extending their lifespan. An advanced control algorithm is implemented for precise and adaptive cell balancing, optimizing the battery’s overall performance. Furthermore, the developed method is used in EVs which are combined as one energy storage aggregator and integrated into microgrids. The impact of connecting and disconnecting the energy storage from the microgrid shows that the overall active power of the microgrid increased in pre-existing peak value from off-grid operation into on-grid operation. This emphasizes the fact that energy storage by using electric vehicles causes power flows in two directions, which not only distributes load but also distributed storage and generation to the microgrid.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The research was funded by Centre for Research of Innovation & Sustainable Development (CRISD) of University of Technology Sarawak, Malaysia, University Research Grant, Grant/Award Number: UTS/3/2022/06.