2023C_NPEC_An_Arduino_Based_Modular_Battery_Management_System_for_Protection_and_Real_Time_Monitoring_of_Lithium-Ion_Cell
2023C_NPEC_An_Arduino_Based_Modular_Battery_Management_System_for_Protection_and_Real_Time_Monitoring_of_Lithium-Ion_Cell
net/publication/377372628
An Arduino Based Modular Battery Management System for Protection and Real
Time Monitoring of Lithium-Ion Cell
CITATIONS READS
0 1,003
3 authors, including:
All content following this page was uploaded by Somnath Meikap on 06 February 2024.
Abstract—Battery management systems (BMS) are widely used power battery packs for motorsport applications. In [5], a BMS
for proper protection and utilization of battery systems. In this with a modular structure is proposed for a hybrid balancing
paper, a modular BMS circuit is proposed for the design of strategy that combines passive and active balancing. In [6], a
modular battery stacks that can be reconfigured depending upon
utilization. The real-time evaluation is carried out using four cascading modular battery system was demonstrated. In order
local modules and one central module. An Arduino nano with an to improve overall system performance and minimise system
analog-digital converter (ADC) multiplexer and voltage divider complexity, a modular active charge balancing and control
circuit is used as central module in the BMS system. The BMS scheme architecture was suggested in [7].
voltage measurement accuracy is evaluated with the measured The percentage of capacity left in a battery to its maximum
value. The state of charge (SOC) measurement technique is
developed to calculate the SOC of each cell. A protection circuit usable capacity is known as the state of charge (SOC). Accu-
is designed for under-voltage, over-voltage, and short-circuit in rate battery SOC calculation ensures a dependable and secure
battery cells. The circuit also provides passive cell balancing. vehicle operation. Additionally it helps to deliver information
The hardware results verify the operation of the circuit as well about the battery’s real-time remaining capacity and energy
as the cell balancing in the battery cells during the charging and [8]. Moreover, SOC data is required for charging of batteries
discharging cycle.
in vehicle and other applications [9]–[11]. However, Battery
Index Terms—BMS, modular battery, Arduino, state of charge.
SOC cannot be directly detected due to its non-linear, time-
I. I NTRODUCTION varying properties and electro-chemical processes [12]. There
Batteries are used for different applications like energy are mainly four types of SOC estimation techniques, they are
storage systems (ESS), electric vehicles (EVs), uninterruptible (1) look-up table based methods, (2) ampere-hour integral
power supply (UPS), etc. due to its ability of providing method, (3) model-based estimation methods, and (4) data-
constant voltage supply with very low maintenance. Among driven estimation methods [8]. In [13], SOC estimation is
batteries, lithium-ion battery packs have recently acquired carried out by using open-circuit-voltage (OCV) method, i.e.,
popularity, particularly for EV applications. Battery packs for converting OCV estimate to SOC estimate based on SOC-
hybrid and EVs are made up of series and parallel layouts OCV relationship. It is a type of look-up table based method,
of lithium-ion cells [1]. Even if manufactured in the same where the OCV curve is developed depending upon the SOC
batch, battery cells have parameter variances of 1% or more. v/s OCV table sent by the manufacturer. In [14], an improved
As per [2], resistance varies by 0.3% and capacity varies by adaptive extended Kalman filter approach is used for curve
1.3%. Therefore, an efficient battery management system can fitting of SOC v/s OCV curve.
protect individual cell and maintains cell balancing. In this paper, an Arduino based BMS system and real time
A battery management system (BMS) monitors, controls, monitoring system is developed for modular battery systems
and protects battery cells in order to address inconsistencies that can be easily configured into series parallel system.
that causes performance instability such as early aging effects An SOC estimation technique combining Coulomb counting
and degradation of the cell [3]. There are three types of BMS method and OCV based SOC estimation method is used for
topologies: (1) centralised, (2) distributed, and (3) modular better SOC estimation with faster response. A SIMULINK
[4]. Out of which, modular topology has been found to be the based BMS and cell monitoring platform is developed that
most effective [4]. In [4], a modular BMS is proposed for high can work with the Arduino setups and store data for future
use.
This work was supported by IIT Guwahati Technology Innovation and The paper is organized as follows. Section II discusses
Development Foundation (TIDF) under project grant TIH/TD/0407 and in
part by the Science and Engineering Research Board (SERB), Department of hardware design of BMS. Section III explains SOC estimation.
Science and Technology, India, under the Research Grant CRG/2022/001685. Section IV discusses the results and the paper is concluded in
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.
Section V.
II. H ARDWARE D ESIGN OF BATTERY M ANAGEMENT Battery 18650 Battery 18650 Battery
S YSTEM charger Li ion Protection Li ion Protection
cells System cells System
The hardware setup of the BMS consists of several compo-
nents. The block diagram of hardware setup is shown in Fig.
1. Some of the key components of the BMS are:
1) Cell protection module.
2) Analog-digital converter (ADC) multiplexer. Voltage divider circuit
3) Arduino nano.
{
1) Over-voltage protection. ADC
2) Short-circuit protection.
3) Under-voltage protection.
4) Passive cell balancing.
Arduino
The battery protection module hardware components are
given in Table I. Fig. 2 shows the battery protection module
hardware setup. It mainly consists of three parts:
1) Cell balancing circuit. Arduino code via simulink platform
2) Over-voltage, under-voltage and short-circuit protection
circuit. Fig. 1. Block diagram of an Arduino based BMS setup.
3) Parallel MOSFET’s .
1) Cell Balancing Circuit: HY2212 BB3A is a single cell TABLE I
balancing IC that is used for cell balancing circuit [15]. Fig. BATTERY P ROTECTION M ODULE C OMPONENT D ETAILS .
3 shows a single 18650 cell balancing circuit. It acts as a Component Name Specifications
resistive based passive charge balancing circuit. The IC has a DW01-A Battery protection IC
voltage divider circuit connected to the input VSS and VDD, Single cell Li-Ion battery charge
BB3A
where VSS is connected to the negative end of battery and VDD balance IC
is connected to the output of voltage divider circuit. VSS and N-Channel enhancement mode
D472
VDD are connected to the overcharge detection comparator, field effect Transistor
G1 (MMBT5551) High voltage transistor (NPN)
which gives pulses to the Q22 MOSFET. When the cell N-Channel enhancement mode
voltage exceeds the maximum charge voltage level, HY2212 A2SHB
field effect Transistor
sends a HIGH signal to the MOSFET gate terminals, turning 2L (PMST5401) PNP high-voltage transistor
it on. The resistor R37 is then connected to the cell. The SS34 Schottky rectifier
cell starts discharging because of the current flowing through
the resistor. As soon as the voltage level gets reduced the
signal from balancing IC (IC5) becomes LOW and the resistor state. The comparators compare the voltage between the CS
is disconnected. Therefore, the voltage level of each cell is pin and VCC to find short circuits and over currents in the cell.
balanced by one cell balancing IC. The series resistor with The values of the over-voltage protection (OV), under-voltage
MOSFET is selected depending on the rate of discharge of protection (UV) and short-circuit (SC) protection point are
the battery cell. The rate of discharge can be found by Ohm’s given in Table II [16].
law The battery pack’s protection circuit is displayed in Fig.
4. The positive and negative terminals of the cell are shown
Vcell in this context by the symbols Batt+ and Batt-, respectively.
IDrain = (1)
R37 Based on the electrical characteristics mentioned in Table II,
where R37 is the series resistor connected to MOSFET in Fig. the IC controls the over-discharge (OD) and overcharge (OC)
3. pins, thus regulating the transistors M1 and M2 shown in the
2) Over-Voltage, Under-Voltage and Short-Circuit Protec- Fig. 4. The IC measures the voltage of the cell using an internal
tion Circuit: A protection IC for single cell Li-Ion battery voltage divider circuit between the VCC and ground pins. As
called DW01-A is in-charge of the BMS’s entire protective seen in Fig. 4, the VCC pin is connected to the cell’s positive
system. One DW01-A is attached to each individual cell, terminal by a resistor R1, and a capacitor C1 connects VCC
which keeps track of the cell’s health. Its internal voltage and GND. To reduce the ripples from charger, the capacitor
divider circuit is in-charge of determining the cell’s voltage C1 and resistor R1 are crucial components.
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.
TABLE II
DW01-A IC E LECTRICAL C HARACTERISTICS D ETAILS .
B+
Test Condi-
Parameter Symbol Value Unit
B1 tions
Cell Balancing Supply current VCC=3.9V ICC 3.0 A
circuit Power-down
VCC=2.0V IPD A
current
B2 Overcharge protec-
DW01 Plus VOCP 4.30 V
tion voltage
Overcharge release
VOCR 4.10 V
B3 voltage
Overdischarge pro-
VODP 2.40 V
tection voltage
Overdischarge re-
B4 VODR 3.00 V
lease voltage
B- Protection MOSFET’s Overcurrent protec-
VOIP 150 mV
circuit tion voltage
Short circuit
current protection VCC=3.6V VSIP 1.35 V
Fig. 2. Battery protection module for 4S 18650 Li-Ion cell. Voltage
Overcharge delay
TOC 80 ms
time
Overdischarge de- VCC=3.6V
R37 TOD 20 ms
R
lay time to 2.0V
Overcurrent delay
IC5 BATTERY + VCC=3.6V TOI1 10 ms
time (1)
B1 R30 CELL
HY2213-BB3A Overcurrent delay
R 1 NC_1 Q22 VCC=3.6V TOI2 5 s
OUT 6 time (2)
2 NC_3 5 BSF030NE2LQ
VDD
3 4
B2 C5 VSS NC_2
R1
Fig. 3. 18650 Li-Ion Cell balancing circuit. 100
VCC
Batt+
C1
In normal period, the CS pin continuously checks its voltage 0.1μF DW01 Plus
in order to monitor the discharge current. The over current
protection circuit activates and shuts off the OC MOSFET, GND
Batt- CS
disconnecting the circuit, when there is an increase in current
TD
demand from the cell. When the load current reduces or the
OC
OD
battery’s impedance rises to more than 500 kΩ, then the over
R2 500kΩ
current protection turns off.
1k
3) Parallel MOSFETS: There are two sets of five MOS- M1 M2
FETs each connecting in anti-parallel. The OC protection is
handled by the first set, while OD protection is handled by the
second set. Since different cells’ health deteriorates at different
rates, it is necessary for all cells in the circuits to be able to
activate the OC or OD protection. In order to trigger them Fig. 4. 18650 Li-Ion Cell protection circuit.
simultaneously, the source pins and gates of all the parallel
MOSFETs are connected together.
The 74HC4067 is a 16-channel analog multiplexer. It is
B. ADC Multiplexer commonly used in projects utilising microcontrollers because
An Arduino Nano or other microcontroller possess more it can be controlled via digital signals.The device cnsists
analog input or output channels by using the analog multi- of four control pins S0-S3 and 16 analog input/output pins
plexer/demultiplexer IC (Integrated Circuit) like 74HC4067 also known as channels. One of the ADC channels can be
[17]. With the aid of this IC, it is possible to choose one connected to the common input/output pin by configuring the
input channel from a variety of accessible channels and route four control pins. The 74HC4067 can handle both analog and
it to output pin, or opposite. It’s a flexible component that can digital signals and operates across a wide voltage range.
be used in a variety of electronic projects where managing The steps below should be followed in order to use the
numerous analog signals efficiently is necessary. 74HC4067 multiplexer with an Arduino Nano. The connection
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.
of the pins of the 74HC4067 to the Arduino Nano is as follows: Battery cell voltage divider
1) VCC: Connect to +5V on Arduino Nano.
2) GND: Connect to GND on Arduino Nano.
3) S0-S3: Connect to digital pins on Arduino Nano (choose
any available digital pins). 74HC4067
4) COM: Connect to the analog pin (input/output) to be
used on the Arduino Nano.
5) SIG(0-15): Connect to the analog signals to be multi-
plexed.
5V
Then S0-S3 should be given a pulse in clockwise manner via
digital pins so that the COM analog pin gives the data of
one channel of ADC for some fixed time. A demultiplexer is
designed via code or graphical interface to take all the ADC 10k
values and save them in cyclic manner. The multiplexer input
is connected to the battery cell points via a voltage divider
circuit to get the voltage of individual cell. Fig. 5 shows the
74HC4067 multiplexer connection with Arduino and battery
cell via voltage divider circuit.
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.
4.2
4
OCV (V)
3.8
(d) (c)
(e)
3.6
3.4
0 0.2 0.4 0.6 0.8 1
SOC
Fig. 7. SOC v/s OCV curve as per the curve fitting equation.
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.
4.1 the cells during charging and discharging shows that the cell
Cell 1 voltage
4 Cell 2 voltage voltage is balanced during the whole operation.
Cell 3 voltage
3.9 Cell 4 voltage R EFERENCES
Voltage (V)
90 Cell 1 SOC
wiley.com/doi/abs/10.1049/el.2019.3944
Cell 2 SOC [4] H. M. O. Canilang, A. C. Caliwag, and W. Lim, “Design of modular
70 Cell 3 SOC bms and real-time practical implementation for electric motorcycle
Cell 4 SOC application,” IEEE Trans. Circuits Syst. II Express Briefs, vol. 69, no. 2,
pp. 519–523, 2022.
50 [5] F. Zhang, M. M. U. Rehman, R. Zane, and D. Maksimović, “Hybrid
balancing in a modular battery management system for electric-drive
30 vehicles,” in 2017 IEEE Energy Convers. Congr. Expo., (ECCE), 2017,
(b) pp. 578–583.
5
[6] A. M. Fares, C. Klumpner, and M. Sumner, “Optimising the structure
0 of a cascaded modular battery system for enhancing the performance of
Current (A)
battery packs,” J. Eng., vol. 2019, no. 17, pp. 3862–3866, 2019.
-5 [7] S. Narayanaswamy, M. Kauer, S. Steinhorst, M. Lukasiewycz, and
S. Chakraborty, “Modular active charge balancing for scalable battery
-10 packs,” IEEE Trans Very Large Scale Integr VLSI Syst, vol. 25, no. 3,
pp. 974–987, 2017.
-15 [8] R. Xiong, J. Cao, Q. Yu, H. He, and F. Sun, “Critical review on the
(c) battery state of charge estimation methods for electric vehicles,” IEEE
16.5 Access, vol. 6, pp. 1832–1843, 2018.
Voltage (V)
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI. Downloaded on January 19,2024 at 12:26:38 UTC from IEEE Xplore. Restrictions apply.