113
Clemson University TigerPrints All eses eses 5-2017 A New Approach to Baery Management System Control Design for Increasing Baery Longevity Ryan Alexander Bell Clemson University, [email protected] Follow this and additional works at: hps://tigerprints.clemson.edu/all_theses is esis is brought to you for free and open access by the eses at TigerPrints. It has been accepted for inclusion in All eses by an authorized administrator of TigerPrints. For more information, please contact [email protected]. Recommended Citation Bell, Ryan Alexander, "A New Approach to Baery Management System Control Design for Increasing Baery Longevity" (2017). All eses. 2602. hps://tigerprints.clemson.edu/all_theses/2602

A New Approach to Battery Management System Control Design

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A New Approach to Battery Management System Control Design

Clemson UniversityTigerPrints

All Theses Theses

5-2017

A New Approach to Battery Management SystemControl Design for Increasing Battery LongevityRyan Alexander BellClemson University, [email protected]

Follow this and additional works at: https://tigerprints.clemson.edu/all_theses

This Thesis is brought to you for free and open access by the Theses at TigerPrints. It has been accepted for inclusion in All Theses by an authorizedadministrator of TigerPrints. For more information, please contact [email protected].

Recommended CitationBell, Ryan Alexander, "A New Approach to Battery Management System Control Design for Increasing Battery Longevity" (2017). AllTheses. 2602.https://tigerprints.clemson.edu/all_theses/2602

Page 2: A New Approach to Battery Management System Control Design

A NEW APPROACH TO BATTERY MANAGEMENT SYSTEM CONTROL DESIGN FOR INCREASING BATTERY LONGEVITY

A Thesis Presented to

the Graduate School of Clemson University

In Partial Fulfillment of the Requirements for the Degree

Master of Science Electrical Engineering

by Ryan Alexander Bell

May 2017

Accepted by: Dr. Rajendra Singh, Committee Chair

Dr. Simona Onori Dr. William R. Harrell

Page 3: A New Approach to Battery Management System Control Design

ii

Abstract

This thesis presents a new approach to battery management system control.

Previous control methods did not include state of health in the decision-making process.

With accurate state of health estimators available, more information should be provided

to the battery management system so that a more informed decision in regards to

increasing battery longevity may be made. This thesis details the development of a

Simscape model for a proven state of health estimator. The Simscape model was then

used to provide state of health estimations to a proposed battery management control

system that prioritizes battery longevity over traditional voltage equalization battery

management techniques. A physical battery management system is developed to show the

difference between battery management systems that do and do not take into account

state of health estimations. Areas for future work and improvements are considered.

Page 4: A New Approach to Battery Management System Control Design

iii

Dedication

This thesis is dedicated to my family. Without their support, this thesis would not

have been possible.

Page 5: A New Approach to Battery Management System Control Design

iv

Acknowledgements

I would like to acknowledge Dr. Onori for her assistance and diligence for the

many revisions of this thesis.

I would also like to thank Dr. Harrell for his patience and support as I have asked

him many a question over the past two years.

Last but not least, I would like to express sincere gratitude towards Dr. Singh for

his guidance and ever-willingness to help me succeed throughout graduate school.

Page 6: A New Approach to Battery Management System Control Design

v

Table of Contents

Page

Title Page .......................................................................................................................... i

Abstract ............................................................................................................................ ii

Dedication ....................................................................................................................... iii

Acknowledgments........................................................................................................... iv

List of Tables ................................................................................................................. vii

List of Figures ............................................................................................................... viii

CHAPTER

I. Introduction .................................................................................................... 1

Types of Electric Vehicles ...................................................................... 1 Thesis Overview ...................................................................................... 3

II. Background .................................................................................................... 6

Battery Cells............................................................................................. 6 Types of Lithium Ion Batteries ........................................................... 7 Electrical Models ................................................................................ 8 Battery Aging Models ....................................................................... 12 Governing Equations ........................................................................ 17 Battery Management Systems................................................................ 26 Purpose of Battery Management Systems ........................................ 27 Battery Management System Topologies ......................................... 29 Battery Management System Hardware ........................................... 31 Battery Management System Software ............................................. 36

III. Simulation Platform: Simscape.................................................................... 39

Components ........................................................................................... 39 Standard Components ....................................................................... 41 Custom Components ......................................................................... 42 Validation of the Simscape Model ......................................................... 46

Page 7: A New Approach to Battery Management System Control Design

vi

Table of Contents (Continued) Page

Setup and Validation of the Electrical Model ................................... 46 Setup and Validation of the Capacity Degradation Model ............... 51

IV. Battery Management System Simulations ................................................... 54

Voltage Equalization BMS Control Logic ............................................. 54 SOH Equalization BMS Control Logic ................................................. 58 Comparison of BMS Control Logics ..................................................... 62 BMS Simulation Setup .......................................................................... 66 BMS Control System Simulation Results .............................................. 71

V. Experimental Setup ...................................................................................... 81 Design Decisions and Limitations ......................................................... 81 The Physical BMS ................................................................................. 82

VI. Conclusion ................................................................................................... 84 Summary of Contributions ..................................................................... 84 Future Work ........................................................................................... 85

Appendices……. ............................................................................................................ 88

A: Glossary of Terminology ............................................................................. 89 B: Source Code ................................................................................................. 91

Voltage_table_v11 ................................................................................. 91 r0_table .................................................................................................. 93 Calc_num_cycles ................................................................................... 95

References…… .............................................................................................................. 97

Page 8: A New Approach to Battery Management System Control Design

vii

List of Tables

Table Page

2.1 Battery Module Governing Equations ......................................................... 26 2.2 MOSFETs for BMS Applications ................................................................ 33 3.1 Simscape Components ............................................................................ 40-41 3.2 Simscape Member Classes ........................................................................... 43 3.3 RMS Error for Simscape Model .................................................................. 53

Page 9: A New Approach to Battery Management System Control Design

viii

List of Figures

Figure Page

1.1 Comparison of Electric Vehicles ................................................................... 2 1.2 Advantages and Disadvantages of Current SOH Estimators ......................... 4 1.3 An Example of Single Switched Capacitor BMS Topology ......................... 5 2.1 Density Distributions ..................................................................................... 7 2.2 NMC and LiFePO4 Lithium Ion Batteries ..................................................... 8 2.3 Randles’ Battery Cell Electrical Models ........................................................ 9 2.4 Amount of RMS Error for RC Branches ..................................................... 10 2.5 OCV versus SOC for Variable Relaxation Times ....................................... 11 2.6 Visual Representation of Hysteresis Phenomenon ...................................... 12 2.7 Calendar Aging of NMC and LFP Lithium Ion Batteries............................ 13 2.8 Typical PHEV Battery SOC Operation Profile ........................................... 14 2.9 Current Profile for 0-10% SOC ................................................................... 15

2.10 Degradation of A123 LiFePO4 Battery Cells............................................... 15 2.11 Degradation of A123 LiFePO4 Battery Cells in

Amp-Hours ............................................................................................ 16 2.12 Aging Severity Factor Map for A123 LiFePO4

Battery Cells........................................................................................... 17 2.13 Circuit Diagram for Derivation of Battery Cell

Governing Equations ............................................................................. 18 2.14 Linear Models for OCV vs SOC Data ......................................................... 19 2.15 Capacity Degradation Experimental Data provided

by A123 Systems ................................................................................... 22 2.16 Battery Orientation inside the Module ......................................................... 24 2.17 The Battery Module Dynamics with Respect to

Individual Cell Dynamics ...................................................................... 25 2.18 Safe Operating Window for Lithium Ion Batteries...................................... 28 2.19 Balancing Techniques .................................................................................. 29 2.20 Comparison of Balancing Techniques ......................................................... 29 2.21 Passive vs Active Balancing Techniques ..................................................... 30 2.22 Comparison of Battery Management Chips ................................................. 31 2.23 Connecting MOSFETs as a Bidirectional Switch ........................................ 32 2.24 The ID vs VGS Characteristic Curve for the IRF510 MOSFET .................... 33 2.25 An Opto-Isolator Circuit .............................................................................. 34 2.26 High-Side and Low-Side Current Sensing Comparison .............................. 35 2.27 Circuit Diagram for Parallel-Connected Energy Management .................... 37 3.1 Basic Simscape File Format......................................................................... 42 3.2 Simscape Language Branch Code ............................................................... 44 3.3 Simscape Battery Model .............................................................................. 47

Page 10: A New Approach to Battery Management System Control Design

ix

List of Figures (Continued)

3.4 Simplified Simscape Model ......................................................................... 48 3.5 Current Profile for US06 Drive Cycle ......................................................... 49 3.6 Battery Cell Voltage Simulated Results from

US06 Current Profile Input .................................................................... 50 3.7 Simscape Simulation vs Experimental Capacity

Degradation for a CRATE of 2 ................................................................. 52 3.8 Simscape Simulation vs Experimental Capacity

Degradation for a CRATE of 4 ................................................................. 52 3.9 Simscape Simulation vs Experimental Capacity

Degradation for a CRATE of 8 ................................................................. 53 4.1 Voltage Equalization BMS Logic Flow Diagram ........................................ 55 4.2 Voltage Equalization Stateflow Control Diagram ....................................... 57 4.3 Logic Flow Diagram for Proposed BMS Logic ........................................... 59 4.4 State of Health BMS Stateflow Logic Overview ......................................... 61 4.5 Comparison of BMS Control Logic Stateflow Models ............................... 62 4.6 Provided SOC Inputs for Stateflow Comparison ......................................... 63 4.7 Provided SOH Inputs for Stateflow Comparison......................................... 64 4.8 Switch Position Outputs for Stateflow Comparison .................................... 64 4.9 Simplified Battery Module Setup ................................................................ 66

4.10 Simulation Battery Module “Skeleton” Setup ............................................. 67 4.11 Voltage Equalization BMS Stateflow within

the BMS Simulation ............................................................................... 69 4.12 SOH Equalization BMS Stateflow within the

BMS Simulation..................................................................................... 70 4.13 Voltage Equalization BMS SOC Output 1st Simulation .............................. 72 4.14 Voltage Equalization BMS Total Amp-hour

Output 1st Simulation ............................................................................. 72 4.15 SOH Equalization BMS SOC Output 1st Simulation ................................... 73 4.16 SOH Equalization BMS Total Amp-hour Output 1st

Simulation .............................................................................................. 73 4.17 Voltage Equalization BMS SOC Output 2nd Simulation ............................ 74 4.18 Voltage Equalization BMS Total Amp-hour

Output 2nd Simulation ............................................................................ 75 4.19 SOH Equalization BMS Total SOC Output 2nd Simulation ........................ 75 4.20 SOH Equalization BMS Total Amp-hour

Output 2nd Simulation ............................................................................ 76 4.21 Voltage Equalization BMS SOC Output 3rd Simulation ............................. 77 4.22 Voltage Equalization BMS Total Amp-hour

Output 3rd Simulation ............................................................................. 77 4.23 SOH Equalization BMS Total SOC Output 3rd Simulation ........................ 78

Page

Page 11: A New Approach to Battery Management System Control Design

x

List of Figures (Continued) 4.24 SOH Equalization BMS Total Amp-hour

Output 3rd Simulation............................................................................ 78 5.1 The Experimental BMS ............................................................................... 83

Page

Page 12: A New Approach to Battery Management System Control Design

1

Chapter 1

Introduction

The average person spent 17,600 minutes or 290 hours in a car in 2016,

contributing to the use of 391.73 million gallons of finished motor gasoline used that year

[1] [2]. Electric vehicles alone can reduce this consumption of gasoline consumption up

to 75% [3]. With 542,000 electric vehicles sold to date in December of 2016 in the

United States [4], the market for electric vehicles continues to grow at a rapid rate as

from 2015 to 2016 there was an increased market growth of 36% [5].

Types of Electric Vehicles

The types of electric vehicles are: hybrid electric vehicles (HEVs), plug-in hybrid

electric vehicles (PHEV), and electric vehicles (EVs). Each type of electrical vehicle

operates in a different battery pack state of charge (SOC) range. HEVs typically operate

at a higher SOC and oscillate between charging and discharging continuously. PHEVs

operate similar to EVs initially, but once a battery pack reaches the designated lower

SOC limit, PHEVs act like an HEV vehicle, continuously charging and discharging. EVs

during operation simply discharge until plugged back in for a charging cycle. A

summarization of the differences between the three types of electric vehicles may be

found in Figure 1.1 [6].

Page 13: A New Approach to Battery Management System Control Design

2

Figure 1.1: Comparison of Electric Vehicles [6]

Hybrid electric vehicles utilize an internal combustion engine in combination with

a smaller battery pack for regenerative breaking and to reduce idling emissions. Battery

pack capacities range from 1 to 2 kWh [7]. Examples of a HEV include the Honda

Accord Hybrid (1.3 kWh), the Chevy Malibu Hybrid (1.5 kWh), the Toyota Pruis and

Toyota Camry Hybrid (1.3 kWh and 1.6 kWh), and the Ford Fusion Hybrid (1.4 kWh).

Plug-in hybrid electric vehicles use a smaller internal combustion engine with a

medium-sized battery pack, with the ability to recharge the battery with the internal

combustion engine. Battery pack capacities range from 8kWh to 20 kWh. Examples of

PHEVs are the Chevy Volt (18.4 kWh) and Toyota Prius Prime (8.8 kWh). Of all electric

vehicles, one of the highest market shares is plug-in hybrid electric vehicles (PHEVs),

which commanded a 46% market share in 2016 [5]. PHEV batteries operate at a state of

charge (SOC) between 10% and 30%

Pure electric vehicles have only a battery pack – there is not an internal

combustion engine. Typical capacities of the battery pack are from 24 kWh to 100 kWh.

Page 14: A New Approach to Battery Management System Control Design

3

Current EVs include the Nissan Leaf (24 kWh to 30 kWh), the 2017 Tesla Model S

(60kWh to 100 kWh versions) and the Chevy Bolt EV (60 kWh).

With the end of life (EOL) for EV batteries at only 80% capacity remaining of the

batteries initial capacity according to the USABC [8] [9] and as the total market for the

lithium-ion vehicle batteries is forecasting to grow to exceed $30 billion annually by the

year 2020, effective use of vehicle batteries is all the more essential [9].

Thesis Overview

Battery cell electrical modeling has been heavily studied [10] [11] [12] [13] [14].

However, information on battery pack modeling is limited, although an expanding field

with many new models proposed [15] [16] [17] [18], including those with state of health

(SOH) estimators [19] [20] [21] [22].

The proposed SOH estimators each model the degradation of a battery to estimate

the SOH in a different way. More specifically, [19] discusses an electrical and thermal

model to estimate SOH while [22] utilizes an open circuit voltage method for SOH

estimation. [20] gives an overview of current approaches to SOH estimation, including

spectroscopy and electrochemical techniques, methods based models, semi-empirical

models for capacity loss, equivalent circuit based models, and analytical model and

statistical methods. [21] continues inspecting the current approaches to SOH estimation,

including the advantages and disadvantages of each method. A table of the advantages

and disadvantages of each specific method may be found below in Figure 1.2 [21]; the

citations for Figure 2 from the original paper have been removed as they do not correlate

Page 15: A New Approach to Battery Management System Control Design

4

to the citations for this thesis. For the purposes of this thesis, a simple method will suffice

and therefore the open circuit voltage method was chosen since the experimental data is

available.

Figure 1.2: Advantages and Disadvantages of Current SOH Estimators [21]

Control algorithms for battery management systems (BMS) seem to all follow the

same premise – balance the battery cells via voltage equalization without reprioritizing

the equalization dependent on the SOH of each battery cell. However, the SOH must be

estimated; the estimation for SOH comes from aging degradation models. Including the

SOH of each battery cell in the BMS decision-making may increase the longevity of the

battery module as a whole.

The focus of this thesis is to inspect if including the estimated SOH from an aging

degradation model into a priority for the BMS will increase the longevity of the battery

module. Utilizing the different control systems on different BMS topologies will not

provide any conclusive evidence, so the control systems must be compared via the same

BMS circuitry. As long as the BMS topology remains the same, the difference between

Page 16: A New Approach to Battery Management System Control Design

5

the two control systems will be evident. Therefore, the type of BMS used to simulate this

process can be as simple as a single switched capacitor as shown in Figure 1.3, adapted

from [23]. The emphasis will be on the control of the BMS, as well as the battery

degradation model used as an estimator for SOH.

Figure 1.3: An Example of Single Switched Capacitor BMS Topology

Page 17: A New Approach to Battery Management System Control Design

6

Chapter 2

Background

This chapter describes all of the necessary background to understand the primary

goal of implementing a BMS that takes SOH into account starting with the individual

battery cells and moving towards BMS configurations and control logic.

2.1 Battery Cells

Battery cells, specifically lithium ion battery cells, are popular cells used in

Hybrids and EVs due to their energy density and power densities. Typical energy

densities for lithium ion batteries are in the 10-60 µWh cm-2 µm-1, while power densities

fall within the range of 1-100 µWh cm-2 µm-1 [24]. As shown in Figure 2.1 below, we can

see that lithium ion cells fall in the top right hand side of the Ragone plot, having both

high energy density and high power density; the dots labeled from A-H are micro battery

cells currently under development that can provide high power densities [24]. The lithium

ion battery cell known as an A123 was used for capacity degradation experimentation

discussed later in this thesis, specifically A123 ANR26650 cylindrical li-ion cells.

Page 18: A New Approach to Battery Management System Control Design

7

Figure 2.1: Density Distributions [24]

2.1.1 Types of Lithium Ion Batteries

There are several different types of lithium ion batteries available today, although

there are a few that stand out due to their long life, specific power, and overall level of

safety, specifically when it comes to EVs [25]. The three most relevant to EVs are:

Lithium Manganese Oxide (LiMn2O4), Lithium Iron Phosphate (LiFePO4), and Lithium

Nickel Manganese Cobalt Oxide (LiNiMnCoO2); the abbreviations for these types of

lithium ion batteries are LMO, LFP, and NMC respectively. This thesis will focus mainly

on NMC and LFP – more specifically the Sony VTC4 18650 (NMC) and the A123

Systems A123 ANR26650 Cylindrical Li-ion Cells (LiFePO4). Photographs of the Sony

VTC4 18650 and A123 Systems A123 ANR26650 are in Figure 2.2 on the left and right

respectively.

Page 19: A New Approach to Battery Management System Control Design

8

Figure 2.2: NMC and LiFePO4 Lithium Ion Batteries

It should be noted that the type of battery used for characterization discussed later

in this thesis is the Sony VTC4 18650 and the type of battery used for validating the

aging degradation is the A123 Systems A123 ANR26650 Cylindrical Li-ion Cells. The

reasoning for the use of separate battery chemistries and types will be expanded upon

later in this section.

2.1.2 Electrical Models

In order to simulate lithium battery cells, you need a mode to emulate the lithium

battery cells’ performance. This thesis will focus on an electrical equivalent circuit model

for its simplicity and speed for computation; there are many ways to implement a battery

model, but this thesis will focus on specifically electrical models. The specific model that

will be used for electrical modeling is a Randles’ model, 1st order [26]. RC branches can

be added to the 1st order model to achieve a 2nd order model. More RC branches can be

added to increase the accuracy of the overall electrical model – for example, a Randles’

Page 20: A New Approach to Battery Management System Control Design

9

1st, 2nd, and 3rd order models with the omission of Warburg impedance may be found

below in Figure 2.3 [26] [27].

Figure 2.3: Randles’ Battery Cell Electrical Models [26] [27]

The accuracy different between orders of models can be qualitatively observed in

Figure 2.4, where we can see that the accuracy of the model does indeed increase with the

number of RC branches or the order of the model; the A123 battery used is the same

battery used for capacity degradation tests [28].

Page 21: A New Approach to Battery Management System Control Design

10

Figure 2.4: Amount of RMS Error for RC Branches [28]

The Warburg impedance element ZW will be omitted from this thesis as we are not

interested in the high frequency operation for our application [29] [30] [31].

The purpose of components R0, R1, and C1 shown in the 1st order model of

Figure 2.3 are a part of the equivalent circuit model of a battery to mathematically

describe the phenomenon in battery modeling known as relaxation. Relaxation occurs

when the battery cells are allowed to sit in between being utilized; the longer a battery

sits, the more stable the voltage measurement and therefore the more accurate the

measurement. It has been shown for LiFePO4 lithium ion batteries – the same batteries

used for the capacity degradation tests – that for a relaxation time of 3 hours and 8 hours,

the open circuit voltage (OCV) changed less than 1 mV and therefore considered stable

[32]. Variable relaxation times produce variable OCV versus State of Charge (SOC)

curves that shift up or down depending on a charge or discharge cycle. A variable OCV

Page 22: A New Approach to Battery Management System Control Design

11

versus SOC curve makes SOC estimation and therefore State of Health (SOC) estimation

difficult. The amount of variation for different relaxation times from 1 minute to 3 hours

may be observed below in Figure 2.5 [32].

Figure 2.5: OCV versus SOC for Variable Relaxation Times [32]

The gap in between the charge and discharge curves is known as hysteresis. More

specifically, battery hysteresis occurs as a result from “thermodynamical entropic effects,

mechanical stress, and microscopic distortions within the active electrode materials

which perform a two phase transition during lithium insertion/extraction” [33]. The

ability to quantize the phenomenon known as hysteresis is essential to achieving an

accurate estimation of the SOC of the battery cell. A visual representation of the process

hysteresis for a generic lithium ion battery that was charged from 0-100% SOC followed

by a discharge of 100-0% SOC may be found below in Figure 2.6 [34].

Page 23: A New Approach to Battery Management System Control Design

12

Figure 2.6: Visual Representation of Hysteresis Phenomenon [34]

In order to achieve the correct characterization parameters for the Randles’ model,

different tests have to be performed to extract different parameters. In order to

characterize the parameters for Randle’s model, a Pulse Charge and Discharge Test – also

called a Hybrid Power Pulse Characterization (HPPC) test – must be performed [35] [36].

Pulses of 1% of capacity and 5% capacity are combined to result in experimental values

that can then be evaluated to generate the values for R0 and the desired number of RC

pairs.

2.1.3 Battery Aging Models

In this thesis, the effects of calendar aging will be neglected as we are assuming a

constant temperature and compared to cyclical aging for the given time span, calendar

aging will be negligible, as supported by Figure 2.7 where the effects of 10 months of

storage are shown [37]. For a more precise model, calendar aging would be included in

future work.

Page 24: A New Approach to Battery Management System Control Design

13

Figure 2.7: Calendar Aging of NMC and LFP Lithium Ion Batteries [37]

The experimentally validated capacity degradation model to be used in this thesis

was generated by performing multiple cycles using pre-defined current profiles; the

current profiles generated were to charge the batteries from 0 to 10%, 0 to 30%, and in a

subsequent study, 0 to 20% SOC respectively [38] [39]. As stated in the Introduction, the

state of charge level of 10-30% is where batteries typically operate for PHEVs; an

example profile of PHEV operation can be seen in Figure 2.8 [40].

Page 25: A New Approach to Battery Management System Control Design

14

Figure 2.8: Typical PHEV Battery SOC Operation Profile [40]

In order to perform degradation to the A123 LiFePO4 battery cells, the desired

current profile was run for thousands of cycles to achieve capacity degradation of the

battery cell. An example of one of the current profiles, specifically the 0-10% SOC

current profile may be found in Figure 2.9 [38]. The results of running the experiment for

thousands of cycles for all cases – 0 to 10% SOC, 0 to 20% SOC, and 0 to 30% SOC –

are in Figure 2.10 [38].

Page 26: A New Approach to Battery Management System Control Design

15

Figure 2.9: Current Profile for 0-10% SOC [38]

Figure 2.10: Degradation of A123 LiFePO4 Battery Cells [38]

The number of cycles performed also relates to the total amp-hours and therefore

capacity degradation can also be plotted against total amp-hours in lieu of number of

cycles if so desired. The conversion from cycles to amp-hours results in Figure 2.11 [38].

Page 27: A New Approach to Battery Management System Control Design

16

Figure 2.11: Degradation of A123 LiFePO4 Battery Cells in Amp-Hours [38]

The curves found in Figure 2.11 can then be fitted using the equation 𝑎𝑎𝑖𝑖 ∗ 𝑛𝑛𝑏𝑏𝑖𝑖. It

then becomes apparent that for these experimental tests, b can simply be represented with

1.36 which is the average of the six exponentials – one from each curve – and still

provide a low RMS for each experimental scenario [38]. The value of 1.36 for b will

change for different batteries, i.e. the other SONY VTC4 18650 lithium ion battery used

in this thesis. Other experimental tests would have to be run to properly fit the

exponential term b.

The term ai must then be fitted properly, where ai is dependent upon multiple

factors, including ΔSOC and the CRATE. The model proposed in [38] uses ai as a severity

factor defined by:

𝑎𝑎(𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆,𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅) = (𝛼𝛼 + 𝛽𝛽 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 + 𝛾𝛾 ∗ 𝑒𝑒𝐶𝐶𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅) (2.1)

0 1000 2000 3000 4000 5000 6000 700080

85

90

95

100

Ampere hours

Capacity [

%]

respect

to t

he initia

l valu

e Capacity degradation [%] fitted with an exponential with a free exponent

0-10% @ 2C0-10% @ 4C0-10% @ 8C0-20% @ 2C0-20% @ 4C0-20% @ 8C0-30% @ 2C0-30% @ 4C0-30% @ 8C

Page 28: A New Approach to Battery Management System Control Design

17

When fitting the severity factor above for α, β, and γ an RMS error value of

1.46 ∗ 10−5 is obtained for the values [38] defined as:

𝛼𝛼 = −5.31 ∗ 10−5, 𝛽𝛽 = 8.36 ∗ 10−6, 𝛾𝛾 = 2.69 ∗ 10−8

Using the technique described in [38] and shown above, one could repeat this

process to characterize the capacity degradation of other lithium ion batteries. An aging

factor map for that battery can then be generated, similar to the aging factor map

generated in [38] shown in Figure 2.12.

Figure 2.12: Aging Severity Factor Map for A123 LiFePO4 Battery Cells [38]

2.1.4 Governing Equations

The governing equations for the electrical model – a Randles’ 1st order model –

and the aging model used in this thesis are below [19]. A diagram of the circuit for the

Page 29: A New Approach to Battery Management System Control Design

18

governing equations is provided in Figure 2.13 to show the polarity for the derivation of

the equations [19]. The equations below are similar to those in [39].

Figure 2.13: Circuit Diagram for Derivation of Battery Cell Governing Equations [19]

To begin, let us consider the voltage of each cell. Note that the use of j will help

later when considering the dynamics of entire battery module, but for now j can be

considered “1” for the first cell in the module.

𝑣𝑣𝑗𝑗(𝑡𝑡) = 𝑆𝑆𝑆𝑆𝑂𝑂𝑗𝑗 �𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡)� + 𝑅𝑅𝑗𝑗 �𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡)� ∗ 𝐼𝐼𝑗𝑗(𝑡𝑡) + 𝑂𝑂𝐶𝐶,𝑗𝑗(𝑡𝑡) (2.2)

The dependency on SOC in (2.1) can be modeled as an approximately linear

relationship for most battery operations; an example of a typical OCV vs SOC

relationship plotted with their respective linear models may be found in Figure 2.14 [41],

with the respective model in (2.2). The value of 𝑅𝑅𝑗𝑗 – also denoted as R0 in literature –

Page 30: A New Approach to Battery Management System Control Design

19

varies with SOC and T, however we are assuming a constant T. The parameter 𝐼𝐼𝑗𝑗(𝑡𝑡) is the

current flowing through cell j at a given time t. Since we are using a Randles’ 1st order

model, we must not forget the voltage across our RC branch, denoted as 𝑂𝑂𝐶𝐶,𝑗𝑗(𝑡𝑡).

Figure 2.14: Linear Models for OCV vs SOC Data [41]

𝑆𝑆𝑆𝑆𝑂𝑂𝑗𝑗(𝑡𝑡) = 𝑎𝑎𝑗𝑗 + 𝑏𝑏𝑗𝑗 ∗ 𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) (2.3)

Since there is a dependency on SOC, we must model the derivative of SOC with

respect to time in order to further inspect the dynamics of the system.

𝑆𝑆𝑆𝑆𝑆𝑆̇ 𝑗𝑗(𝑡𝑡) =−𝐼𝐼𝑗𝑗(𝑡𝑡)

𝑄𝑄𝑗𝑗(𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 ,𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆,𝑇𝑇) (2.4)

The model for 𝑆𝑆𝑆𝑆𝑆𝑆̇ is the current going through the battery cell over the capacity

of the battery cell, 𝑄𝑄𝑗𝑗. Again, since we are assuming a constant temperature, T, we can

simplify (4.3) to (4.4). The 𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 can be explicitly stated as a combination of the current

flowing through battery cell j and the initial capacity, as shown in (4.5) where 𝑄𝑄0,𝑗𝑗is the

initial capacity for each cell j. 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 is the change in SOC for cell j over time, more

Page 31: A New Approach to Battery Management System Control Design

20

specifically the maximum SOC minus the minimum SOC. For example, the 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 in

Figure 12 is 10%.

𝑄𝑄𝑗𝑗 = 𝑄𝑄𝑗𝑗(𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 ,𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆) (2.5)

𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅,𝑗𝑗(𝑡𝑡) =

𝑖𝑖𝑗𝑗(𝑡𝑡)𝑄𝑄0,𝑗𝑗

(2.6)

With the basic electrical equivalent model in place and all of its variables besides

𝑄𝑄𝑗𝑗 derived – which is to be derived according to the capacity degradation model, we must

state the constraints of the electrical model. The constraints are applied are: the current

through cell j must be between the lower and upper limits, 𝐼𝐼 and 𝐼𝐼, the state of charge

must lie within the lower and upper bounds 𝑆𝑆𝑆𝑆𝑆𝑆 and 𝑆𝑆𝑆𝑆𝑆𝑆, and the voltage must remain

bounded by the lower and upper bounds of 𝑣𝑣 and 𝑣𝑣. These constraints are explicitly

stated in (4.6), where . indicates a lower bound and . indicates an upper bound.

𝐼𝐼 ≤ 𝐼𝐼𝑗𝑗(𝑡𝑡) ≤ 𝐼𝐼𝑆𝑆𝑆𝑆𝑆𝑆 ≤ 𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) ≤ 𝑆𝑆𝑆𝑆𝑆𝑆

𝑣𝑣 ≤ 𝑣𝑣𝑗𝑗(𝑡𝑡) ≤ 𝑣𝑣 (2.7)

The governing equations for the capacity degradation model are derived from

work presented in [19] [38] [39]. More explicitly, the work performed in [19] provided

the theoretical groundwork for the initial capacity degradation experimental results in

[39] using the A123 Systems LiPO4 batteries. Paper [38] continued the experimental

work performed in [39] and proposed the capacity degradation model adapted for the

work performed in this thesis.

Page 32: A New Approach to Battery Management System Control Design

21

The basis of the capacity degradation model in [39] utilizes the Palmgren-Miner

rule to effectively create a cumulative damage model. The Palmgren-Miner rule is a

fatigue based rule sums the fatigue damages over different fractional damages. As

explained in [42] that if an object can tolerate a cumulative damage, D, and the object

goes through Di degrading cycles where 𝑖𝑖 ∈ {1, … ,𝑁𝑁} and N is the total number of

cycles, then there would be a failure when the sum of Di cycles is D. More explicitly:

�𝐷𝐷𝑖𝑖 = 𝐷𝐷𝑁𝑁

𝑖𝑖=1

(2.8)

There are differentiating fractional damages accumulated by a battery cell, which

satisfies the necessary and sufficient condition for additivity defined in [43]. The

resulting capacity degradation being dependent on the severity of the cycle and the age

factor, denoted as 𝜑𝜑1(𝑝𝑝) and 𝜑𝜑2(𝑛𝑛) respectively. We can therefore divide our capacity

of each cell 𝑄𝑄𝑗𝑗 into 𝜑𝜑1(𝑝𝑝) and 𝜑𝜑2(𝑛𝑛), as in (2.9).

𝑄𝑄𝑗𝑗(𝑝𝑝,𝑛𝑛) = 𝜑𝜑1(𝑝𝑝) ∗ 𝜑𝜑2(𝑛𝑛) (2.9)

Still recall that 𝑄𝑄𝑗𝑗 is a function of 𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 and 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 as shown in (2.2) – the

dependency on these variables will remain intact after this derivation. To define 𝜑𝜑1(𝑝𝑝)

and 𝜑𝜑2(𝑛𝑛) one must inspect experimental data that shows the capacity degradation over

time. From the experimental data provided from the work performed in [38], shown in

Figure 2.15 an exponential trend is seen. Thus, 𝜑𝜑2(𝑛𝑛) must have an exponential term.

Page 33: A New Approach to Battery Management System Control Design

22

Figure 2.15: Capacity Degradation Experimental Data provided by A123 Systems [38]

The capacity of cell j may then be re-written in (2.9) where 𝜑𝜑1(𝑝𝑝) = 𝑎𝑎1(𝑝𝑝) and

𝜑𝜑2(𝑛𝑛) = 𝑛𝑛𝑅𝑅2 [38].

𝑄𝑄𝑗𝑗(𝑝𝑝,𝑛𝑛) = 𝑎𝑎1(𝑝𝑝) ∗ 𝑛𝑛𝑅𝑅2. (2.10)

To define the severity factor, a severity factor map must be constructed, as

demonstrated in [38] and shown in Figure 2.12. The severity factor map provides the

severity of which degradation occurred by using 𝑄𝑄𝑗𝑗’s dependency on 𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 and 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆

where each dependency is weighted differently. The weight of each dependency is

collected from fitting the experimental data. The severity factor from (2.10) and Figure

2.12 [38] can be expanded below:

𝑎𝑎1(𝑝𝑝) = 𝛼𝛼 + 𝛽𝛽 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 + 𝛾𝛾 ∗ 𝑒𝑒𝐶𝐶𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 (2.11)

In order to express the aging factor from (2.9), we must be able to quantify the

number of different cycles in order to continue to allow the Palmgren-Miner rule to hold.

However, the total lifetime of a battery is typically measured in amp-hours. A conversion

Page 34: A New Approach to Battery Management System Control Design

23

between amp-hours and a cycle is needed to continue. In [38], a cycle is defined as in

(2.12).

𝑛𝑛 = 𝐴𝐴ℎ

2 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆 ∗ 𝑄𝑄𝑗𝑗(𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 ,𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆) (2.12)

The term 𝑎𝑎2 must also be defined; this exponential term is derived from the

exponential fit on the experimental data as shown in Figure 2.10. This does mean that 𝑎𝑎2

would vary according to the severity factor, 𝑎𝑎1. However, an RMS value of 0.24% was

found when simply averaging the values of 𝑎𝑎2 for the different severity scenarios [38].

Thus, 𝑎𝑎2 can simply be the mean of the exponential for the experimental data.

In order for the differential of (2.9) with respect to time to be derived for

implementation in this thesis, we must re-write 𝑄𝑄𝑗𝑗 in terms of time; to do this, we must

relate amp-hours, 𝐴𝐴ℎ, to time. Recall that amp-hours is the total amount of current that

flows through the battery cell j over the initial capacity of battery cell j. We can then

write (2.13).

𝐴𝐴ℎ = ∫ �𝑖𝑖𝑗𝑗(𝑡𝑡)�𝑅𝑅0𝑄𝑄0,𝑗𝑗

(2.13)

After re-writing all of 𝑄𝑄𝑗𝑗’s dependencies in terms of time, we are now able to take

the derivative and model the capacity degradation of cell j over time. Thus, combining

(2.9) – (2.13), we can write 𝑄𝑄𝚥𝚥̇ as (2.14).

𝑑𝑑 𝑄𝑄𝑗𝑗(𝑡𝑡)𝑑𝑑𝑡𝑡

= �𝛼𝛼 + 𝛽𝛽 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) + 𝛾𝛾 ∗ 𝑒𝑒𝑖𝑖𝑗𝑗(𝑅𝑅)𝑄𝑄0,𝑗𝑗 � ∗ 𝑎𝑎2 ∗

⎜⎛

∫ �𝑖𝑖𝑗𝑗(𝑡𝑡)�𝑅𝑅0𝑄𝑄0,𝑗𝑗

2 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) ∗ 𝑄𝑄𝑗𝑗(𝑡𝑡)

⎟⎞

𝑅𝑅2−1

(2.14)

Page 35: A New Approach to Battery Management System Control Design

24

With the equations in place for a single battery cell, we can now derive the

governing equations for the battery module as a whole.

The electrical equivalent circuit model combines the electrical model for each

battery cell to obtain the electrical model for the entire module. The battery cells are

labeled according to their position from the top, i.e. the top battery cell is cell 1, as shown

in Figure 2.16. We can then simply our discussion to j number of cells, where j

represents the index of each of the battery cells.

Figure 2.16: Battery Orientation inside the Module

Each of the individual battery cells has its own electrical equivalent model – a

Randles’ 1st order model – as shown in Figure 2.13 [19].

In order to explain the dynamics of each battery in relation to the overall

dynamics of the battery module, we must define the relationships between the two

dynamics. A visual representation of the quantification of these relationships is found in

Figure 2.17.

Page 36: A New Approach to Battery Management System Control Design

25

Figure 2.17: The Battery Module Dynamics with Respect to Individual Cell Dynamics

Similar to an energy storage model proposed in [44] except we are neglecting the

current flowing through the balancing circuit and therefore there is not any power loss in

the balancing circuit. The current through the entire module should be the same as each

respective battery cell due to their series orientation. This relationship is shown in (2.15).

𝑖𝑖𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡) = 𝑖𝑖𝑗𝑗(𝑡𝑡) (2.15)

Then we can express the voltage of the module, 𝑣𝑣𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡), as the summation of the

voltages of each battery cell j in (4.15).

𝑣𝑣𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡) = �𝑣𝑣𝑗𝑗(𝑡𝑡)𝑁𝑁

𝑗𝑗=1

(2.16)

Page 37: A New Approach to Battery Management System Control Design

26

Thus, the total power of the module, 𝑝𝑝𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡), may be derived from 𝑖𝑖𝑜𝑜𝑜𝑜𝑅𝑅 and 𝑣𝑣𝑜𝑜𝑜𝑜𝑅𝑅.

We can then derive the power of each battery cell – the order of calculation for 𝑝𝑝𝑜𝑜𝑜𝑜𝑅𝑅 and

𝑝𝑝𝑗𝑗 is inconsequential.

𝑝𝑝𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡) = 𝑣𝑣𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡) ∗ 𝑖𝑖𝑜𝑜𝑜𝑜𝑅𝑅(𝑡𝑡) = �𝑝𝑝𝑗𝑗(𝑡𝑡)𝑁𝑁

𝑗𝑗=1

(2.17)

𝑝𝑝𝑗𝑗(𝑡𝑡) = 𝑣𝑣𝑗𝑗(𝑡𝑡) ∗ 𝑖𝑖𝑗𝑗(𝑡𝑡) (2.18)

All of the governing equations for a battery module are summarized in Table 2.1.

TABLE 2.1 Battery Module Governing Equations

Term Description Representation

𝑆𝑆𝑆𝑆𝑂𝑂𝑗𝑗(𝑡𝑡) Open circuit voltage 𝑆𝑆𝑆𝑆𝑂𝑂𝑗𝑗(𝑡𝑡) = 𝑎𝑎𝑗𝑗 + 𝑏𝑏𝑗𝑗 ∗ 𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡)

𝑆𝑆𝑆𝑆𝑆𝑆̇ 𝑗𝑗(𝑡𝑡) state of charge 𝑆𝑆𝑆𝑆𝑆𝑆̇ 𝑗𝑗(𝑡𝑡) =−𝐼𝐼𝑗𝑗(𝑡𝑡)

𝑄𝑄𝑗𝑗(𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 ,𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆,𝑇𝑇)

�̇�𝑄𝑗𝑗(𝑡𝑡) capacity degradation

�̇�𝑄𝑗𝑗(𝑡𝑡) = �𝛼𝛼 + 𝛽𝛽 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) + 𝛾𝛾 ∗ 𝑒𝑒𝑖𝑖𝑗𝑗(𝑅𝑅)𝑄𝑄0,𝑗𝑗 � ∗ 𝑎𝑎2

⎜⎛

∫ �𝑖𝑖𝑗𝑗(𝑡𝑡)�𝑅𝑅0𝑄𝑄0,𝑗𝑗

2 ∗ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) ∗ 𝑄𝑄𝑗𝑗(𝑡𝑡)

⎟⎞

𝑅𝑅2−1

𝑣𝑣𝑗𝑗(𝑡𝑡) voltage of each cell 𝑣𝑣𝑗𝑗(𝑡𝑡) = 𝑆𝑆𝑆𝑆𝑂𝑂𝑗𝑗 �𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡)�+ 𝑅𝑅𝑗𝑗 �𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡)� ∗ 𝐼𝐼𝑗𝑗(𝑡𝑡)+ 𝑂𝑂𝐶𝐶,𝑗𝑗(𝑡𝑡)

𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆������� max charge in state of charge �𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) − 𝑆𝑆𝑆𝑆𝑆𝑆𝑅𝑅𝑎𝑎𝑎𝑎(𝑡𝑡)� ≤ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆�������

𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅,𝑗𝑗(𝑡𝑡) Current flow with respect to initial

capacity 𝑆𝑆𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅,𝑗𝑗(𝑡𝑡) =

𝑖𝑖𝑗𝑗(𝑡𝑡)𝑄𝑄0,𝑗𝑗

2.2 Battery Management Systems

Battery cells tied together in different topologies – series and parallel – form

networks of battery cells, effectively called battery modules. These battery modules are

Page 38: A New Approach to Battery Management System Control Design

27

interconnected to make up the battery system in many EVs today. Battery management

systems ensure correct, reliable operation of the battery systems.

2.2.1 Purpose of Battery Management Systems

The voltages and state of charge (SOC) of the batteries inside of the battery

system need to be monitored to ensure a high level of safety and optimized performance.

Common problems for operating outside of the lithium ion safety window are thermal

runaway, formation of dendrites, copper foil oxidation, short circuits, and reduced

lifetimes [45] [46]. The preferred operating window for lithium ion batteries is shown in

Figure 2.18 [45].

Page 39: A New Approach to Battery Management System Control Design

28

Figure 2.18: Safe Operating Window for Lithium Ion Batteries [45]

Page 40: A New Approach to Battery Management System Control Design

29

2.2.2 Battery Management System Topologies

There are different battery management techniques that include different

components, costs, and benefits. Figure 2.19 below shows the different battery

management techniques while Figure 2.20 shows a qualitative comparison between the

different techniques [47] [48].

Figure 2.19: Balancing Techniques [47]

Figure 2.20: Comparison of Balancing Techniques [48]

There are two main sub-categories of balancing techniques known as passive or

active balancing. Passive balancing removes the excess charge by dissipating the energy

Page 41: A New Approach to Battery Management System Control Design

30

in a resistor while active balancing moves the excess charge from one battery cell to

another – minimizing the energy to go to waste. A graphical representation of this

difference between active and passive balancing may be found in Figure 2.21 below [49].

Figure 2.21: Passive vs Active Balancing Techniques

Passive BMS topologies utilize a resistor in all cases, whether in a fixed or

shunting resistor topology. The resistor is used to effectively “bleed off” the excess

energy in order for cells to become balanced. As seen in Figure 2.20, the next main

separating principles under active balancing are capacitor based, inductor/transformer

based, and converter based techniques [47].

Page 42: A New Approach to Battery Management System Control Design

31

2.2.3 Battery Management System Hardware

Battery management systems need four main items to be successful. These four

items are: a microcontroller, switches, circuit isolation devices, and measuring devices.

Starting with microcontrollers, a powerful, small microcontroller is needed to be

able to throw switches and process the data acquired from the measuring devices on the

order of a few milliseconds to achieve a reasonably-fast single switched capacitor system.

In this thesis, the focus is not on creating a commercial-ready BMS, but to inspect

the controls of the BMS. For this reason, an Arduino was chosen for its ability for rapid-

prototyping and quick modification of the microcontroller. This choice is not without its

downsides, specifically in regards to limited analog resolution and conversion time. Other

choices besides the Arduino that would favor more towards commercialization may be

found in Figure 2.22 [45].

Figure 2.22: Comparison of Battery Management Chips [45]

The types of switches desired for a BMS application are MOSFETs, specifically

logic-level MOSFETs. Other types of relays may also be used, but switching frequency

may become limited based on the choice of relay. MOSFETs allow the user to have the

Page 43: A New Approach to Battery Management System Control Design

32

ability to switch typically on the order of microseconds with reduced power consumption.

For this reason, MOSFETs were chosen in this thesis. MOSFETs arranged strategically

also allow for them to be used as bidirectional switches; the orientation for using two

MOSFETs as a bidirectional switch may be seen in Figure 26. In order to control the

MOSFET as a bidirectional switch, we can apply a pulse width modulated (PWM) signal

to the gate to open and close the bidirectional switch, given that the gates are tied

together. Either ends of the switch are then connected to the capacitor and the battery –

with the correct polarities; a visual representation of this description, adapted from [50]

may be found in Figure 2.23.

Figure 2.24: Connecting MOSFETs as a Bidirectional Switch

There are a number of commercially available MOSFETs that fit the conditions of

BMS; there is however a significant difference between logic-level MOSFETs and

MOSFETs that are not logic-level. The difference between the two is the amount of

voltage, VGS, that is required across the gate-source to turn on the MOSFET. For logic-

level MOSFETs, VGS is less than or equal to 5V while MOSFETs that are not logic-level

require any VGS greater than 5V.

In Table 2.2, a comparison between various logic-level MOSFETs to non-logic-

level MOSFETs is made. It should be noted that a logic-level MOSFETs is not required

for a BMS to work properly, given that the current allowed to flow, ID, is greater than the

Page 44: A New Approach to Battery Management System Control Design

33

required current for that BMS topology. As an example, for a SSC topology that does not

perform balancing while cycling, it has been shown that the typical current flow through

the switches used for balancing is typically less than 1.5A [51] or under the case of

balancing while cycling, 30A [44]. The resistance of the MOSFET, typically documented

as RDS(on) should be low to keep the resistance of the balancing circuit to a minimum. If

the drain current ID is not sufficient with a logic-level input, the VGS voltage must be

amplified to achieve the desired current flow, which was performed in [51].

Figure 2.25: The ID vs VGS Characteristic Curve for the IRF510 MOSFET [52]

TABLE 2.2 MOSFETS FOR BMS APPLICATIONS

Transistor Model

Logic-level Indication

ID @ VGS=5V Room Temp Datasheet

IRF510

No 1A* [52]

IRF530

No 3A [73]

FQP30N06L Yes 15A [72]

IRLZ34NPbF Yes 14A [74]

NTP60N06L Yes 30A [75]

*The ID vs VGS curve is in Figure 2.25 as an example.

Page 45: A New Approach to Battery Management System Control Design

34

Circuit isolation between high voltage and lower voltage circuits is crucial to

ensure that there are not any undesirable occurrences. Most isolation circuits utilize an

optocoupler, sometimes mentioned as an opto-isolator, photocoupler, or optical isolator,

to keep high voltage circuits and low voltage circuits isolated but still communicate

between the two circuits. An optocoupler utilizes an LED to emit light that is then

transmitted to the receiver, a phototransistor, where the phototransistor can either

generate energy or simply modulate the current flowing in the second isolated circuit. It

should be noted that some solid-state relays combine MOSFETs and optocouplers into a

single device, compacting the circuit design. A circuit diagram of an opto-isolator within

a circuit is in Figure 2.26 [53].

Figure 2.26: An Opto-Isolator Circuit [53]

The measuring devices implemented in a BMS are voltage, current, and in most

cases, temperature. For the purposes of this thesis, measuring temperature is not

necessary to create an experimental scenario that replicates simulations and therefore will

be neglected; however, for the purposes of commercialization, the measurement of the

temperature of the battery module would be an essential safety factor. In regards to

voltage, the voltage of the each battery cell may be measured via the built-in analog to

Page 46: A New Approach to Battery Management System Control Design

35

digital converter (ADC) in the microcontrollers described in Figure 2.26. The current

measuring devices is perhaps the more difficult of the three; common practice is to utilize

a sense resistor and measure the low voltage across the sense resistor, dividing by the

resistance of the used sense resistor to obtain the current flow [51] [54].

For the design of a BMS, an engineering decision must be made for the placement

of the sense resistors. The sense resistors can be placed before or after the load, also

called high-side sensing and low-side sensing. A circuit diagram comparing the two

methods is in Figure 2.27 [55].

Figure 2.27: High-Side and Low-Side Current Sensing Comparison [55]

There are advantages and disadvantages for each current sensing method; low-

side sensing is less expensive and simpler than high-side sensing, with the disadvantage

that the load’s ground may be floating slightly off when compared to the systems ground

and can therefore introduce error [55] [56]. Low-side sensing is also better for higher

Page 47: A New Approach to Battery Management System Control Design

36

currents [55]. High-side sensing requires the comparison of the voltage before and after

the sense resistor which calls for the implementation of a differential op-amp – similar to

that of low-side sensing, except one of the inputs to the op-amp is the voltage below the

sense resistor instead of ground and denoted a single-ended amplifier. High-side sensing

will be used for this thesis as we would like to measure the currents through each of the

battery cells, to include measuring the current during balancing to monitor SOH of each

battery cell. The total current flowing through the system can also be calculated via any

of the sense resistor circuits put in place for each battery since this thesis is using the

battery cells in a series topology. However, if a separate current sensing circuit is desired,

high-side sensing could also be used to monitor the larger current flows, similar to the

design proposed in [57]. The careful use of measuring devices is essential to the

functionality of a BMS where the correct measurements will allow the microcontroller’s

control system to make accurate control decisions based off of the status of the BMS as a

whole.

2.2.4 Battery Management System Software

Currently implemented BMS control systems aim to completely balance all of the

cells via voltage equalization; if all of the cells have the same voltage and therefore the

same SOC, the battery module must be balanced. Papers that utilize this method without

the consideration of SOH are: [58] [59] [60] [51] . There are a few papers that calculate

SOC via fuzzy logic with success [61] [62], some with a maximum error of +/-0.2% [61];

fuzzy logic has also been used to predict SOH [63] [64]. There is another proposed

Page 48: A New Approach to Battery Management System Control Design

37

technique that switches which cells of the pack can provide power at any given time –

this technique focuses on utilizing the cells with the highest SOC and removing those

with lower SOC from the power-providing circuit [65]. This technique effectively

balances the SOC during operation and would inadvertently also help manage the SOH of

the cells; the downside to this technique is the amount of hardware required to implement

a switch on each battery cell, as shown in Figure 2.28 [65].

Figure 2.28: Circuit Diagram for Parallel-Connected Energy Management [65]

Mathematically, voltage equalization can be expressed in (2.19) as voltages or in

(2.20) as SOC where 𝛥𝛥𝑣𝑣���� and 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆������� represent the maximum allowed difference between

the cells’ voltages and SOCs.

�𝑣𝑣𝑗𝑗(𝑡𝑡) − 𝑣𝑣𝑅𝑅𝑎𝑎𝑎𝑎(𝑡𝑡)� ≤ 𝛥𝛥𝑣𝑣���� (2.19)

�𝑆𝑆𝑆𝑆𝑆𝑆𝑗𝑗(𝑡𝑡) − 𝑆𝑆𝑆𝑆𝑆𝑆𝑅𝑅𝑎𝑎𝑎𝑎(𝑡𝑡)� ≤ 𝛥𝛥𝑆𝑆𝑆𝑆𝑆𝑆������� (2.20)

Page 49: A New Approach to Battery Management System Control Design

38

This voltage equalization methodology works well in ideal circumstances, the

world is not ideal – batteries will not provide exactly the same as their counterparts. Over

time these slight differences can be exaggerated, particularly over many charge and

discharge cycles, causing different amounts capacity degradation and in-turn affecting the

SOH of the battery cells. This voltage equalization methodology does not take into

account SOH from capacity degradation and while this methodology works well, it may

be leaving some lifespan on the table for the battery module as a whole.

The proposed BMS control prioritizes SOH over having equally balanced battery

cells and will be referred to as the SOH equalization method in this thesis. This

methodology, by nature, would require a “buffer zone,” identical to that of the voltage

equalization method for the battery cells to not be balanced – i.e. the batteries can be +/-

2% SOC of one another. Having a “buffer zone” allows the BMS to attempt to evenly

distribute the aging of the battery cells evenly by transferring charge to the “youngest”

cell while staying within the “buffer zone” when performing balancing. Future work for

this thesis would consist of investigating switching logic with prioritization for SOH in

tandem with the technique proposed in [65]. For now however, changing the control logic

for a BMS that is already physically implemented is easier to prove that one can increase

the longevity of the battery module. It should be noted that for both scenarios, the best

application of this methodology would be before the first replacement of a battery

module in the entire battery management system. Further discussion of this proposed

BMS strategy is in Chapter 4: Battery Management System Simulation.

Page 50: A New Approach to Battery Management System Control Design

39

Chapter 3

Simulation Platform: Simscape

This chapter discusses the process to setup the simulation platform within a well-

documented and heavily supported application known as MATLAB. The environment

used within MATLAB is the Simulink environment with the physical system domain

simulator known as Simscape. Performing the simulation using Simscape allows the user

to create large models with custom components, as well as integrating seamlessly with

MATLAB/Simulink function blocks.

A model that takes into account capacity degradation needed to be developed

programmatically in order to continue with the inspection of reprioritizing BMS decision-

making.

3.1 Components

Simscape has several built-in standard components that work well for simulating

large circuits and scenarios. For special circumstances, there is also the option to edit the

source code of the standard components to create your own, custom components. The

main components used in this thesis are compiled into Table 3.1.

Page 51: A New Approach to Battery Management System Control Design

40

TABLE 3.1 Simscape Components

Graphical Block Description Use

resistor This block is used to simulate standard resistors.

capacitor This block is used to simulate standard capacitors.

inductor This block is used to simulate standard inductors.

reference This block is used as a reference or ground, there must

be one in every Simscape circuit.

Simscape switch This block is a Simscape switch, toggled on-off via the PS input.

variable resistor This block is a variable resistor where the resistance is

set via the PS input.

voltmeter This block operates as a standard voltmeter, measuring the voltage across its nodes.

ammeter This block performs as a standard ammeter would, measuring the current traveling between its nodes.

controlled current source

This block generates a current based off of the PS input, useful for scenarios where we need to set a current to

test a circuit’s response.

Simulink-PS converter This block is a Simulink to physical system (PS)

converter, required to convert any value to correctly provide an input to a Simscape component.

PS-Simulink converter This block performs the opposite of the block above,

converting a Simscape signal into a Simulink signal.

Simulink switch

This Simulink switch is similar to the Simscape switch, but requires that the user-defined condition is met to

throw the switch.

pulse generator

The pulse generator block is useful for generating pulses – and in the case of this thesis – a PWM signal output

for a microcontroller.

signal from workspace

This block reads in a matrix as an input to the Simulink environment. You can set how many samples are

considered the input. i.e. out of a 10 element matrix, we can force only 1 element to be read at a time.

to workspace

This block performs the opposite of the block above, returning the user-defined variable name to the MATLAB workspace after the simulation has

completed.

solver configuration

The solver configuration block is a required block for Simscape to simulate. The position of this block in your simulation does not matter as long as it is connected to

the Simscape diagram.

Page 52: A New Approach to Battery Management System Control Design

41

stop simulation The stop simulation block is a helpful tool for ending a

simulation when it receives a non-zero value.

custom voltage table lookup, amp-hour counter, percent

degradation calculator, soc calculator

The custom Simscape component to the left performs almost all of the operations required to model a battery

cell. Its performance will be expanded upon in the custom components section.

custom variable resistor

Another custom Simscape component that acts as a variable resistor that is dependent on the SOC provided to the PS input. This component will also be expanded

upon in the custom components section.

MATLAB function block

The MATLAB function block allows the user to define custom utilities via MATLAB syntax instead of via the Simscape language. For this thesis, MATLAB function blocks are used to help the adjustment from continuous

to discrete time.

memory block The memory block is useful for removing algebraic

loops and initializing an initial condition.

rate transition block

The rate transition block performs exactly as the name states, allowing the user to convert the sample rate for

any component to the right of the block. The application for this thesis is up-sampling for MATLAB functions.

3.1.1 Standard Components

The Simscape library comes with a handful of standard components, including the

resistor, capacitor, inductor, and variable resistor. The utilization of these components is

straight-forward, simple place the components into your circuit topology and connect the

wires. Some of the devices require an input; to convert a Simulink system into an input

for Simscape you must use an S-PS block. Simscape also requires the use of a solver

block and a reference for each circuit – place these components where you would

normally have ground for the sake of simplicity.

Page 53: A New Approach to Battery Management System Control Design

42

3.1.2 Custom Components

When using Simscape, you will quickly run into the scenario where you need a

component to be able to perform something non-conventional but would like to keep the

provided solution in continuous time. For this reason, Simscape also has a built-in

language that you can use to create custom components. It is highly recommended that

you open up an existing component, click on the “Source Code” link, and save this

source code as your new device name to save time.

The Simscape language has what are called members. In order to successfully

build your own custom component, one must understand the different member classes.

There are six different types of member classes: parameters, variables, inputs, outputs,

nodes, and components. Of these six member classes, the user can only write to two of

them – parameters and variables. Snippets from the custom voltage table that is

mentioned in Table III will be used as example code to discuss the functionality of the

Simscape language.

component voltage_table_v10 % Voltage Lookup v10 % This block implements the cell's main branch voltage source, and % determines values for capacity (C) and state of charge (SOC). The % defining equations do not depend on cell temperature, T. % % The outputs are SOC, Total Ah, and capacity of battery remaining % (from total Ah vs Capacity % curve) {Code here} end

Figure 3.1: Basic File Format

In the Figure 3.1, the basic file format is shown where there must be a component

with the name of the component next to it. The commented-out code is displayed to the

Page 54: A New Approach to Battery Management System Control Design

43

user when the customs Simscape component is clicked on and the “end” is required to

complete the component definition. Within the area marked “{Code here}” is where the

user will define the six member classes for the custom Simscape component. Each

member class is used for a specific action or functionality, which is compiled below in

Table 3.2; a useful resource for Simscape properties is MathWorks’ website [66].

Table 3.2 Simscape Member Classes

Term Description Code Example

Components

Allows the user to include other block

within a custom component. Unused in this thesis’ Simscape

models

components(ExternalAccess=observe) rot_spring = foundation.mechanical.rotational.spring; end

Nodes

Varies by domain – for electrical, simply initiate the + and – nodes across your

component

nodes p = foundation.electrical.electrical; % +:left n = foundation.electrical.electrical; % -:right end

Inputs

These inputs are inputs provided within the

Simscape environment as PS signals to the custom component

inputs deltaSOC = {0,'1'} % deltaSOC:right num_cycles = {0,'1'}; % num_cycles:right end

Outputs

The output member class is used to output a PS signal from the custom component

outputs Total_Ah = {0,'A*hr'} %Total_Ah:left current_SOC = {0,'1'} %SOC:left end

Parameters

There are two types of parameter when using

this member class: “parameters” and

“parameters (Size=variable)”. The variable size allows for matrices to be

input. i.e. for a look-up table.

parameters alpha = {0,'1'}; % Alpha from Exp Data beta = {0,'1'}; % Beta from Exp Data gamma = {0,'1'}; % Gamma from Exp Data end

Variables

These are variables used within the

component but not as inputs or outputs.

variables i = { 0, 'A' }; % Current v = { 0, 'V' }; % Voltage end

There is also a built-in function into MATLAB that allows you to convert

MATLAB equations into Simscape equations. This function is called

Page 55: A New Approach to Battery Management System Control Design

44

“simscapeEquations()” and the process is straightforward – simply use the symbolic

toolbox by calling the “syms” command followed by a variable like “x” and “f(x)”, and

finally set up the desired equation via the “simscapeEquations” function [67]. An

example would be “syms x f(x); simscapeEquation(f(x), diff(2*x^3))” would return “f(x)

== x^2*6” to be implemented into the Simscape environment.

There are three other sub-portions within the Simscape language that have yet to

be covered, including: function setup, branches, and equations. Within the function setup

portion, the user can define the required bounds for any of the input required to the

custom component block, i.e. voltage must be greater than 0 and produce an error to the

end user. The branch section is straight-forward for electrical applications as the current

flowing into the device must equal the current flowing out of the device. This is

represented by the code in Figure 3.2.

branches i : p.i -> n.i; end

Figure 3.2: Simscape Language Branch Code

The equations section of the Simscape language is the bulk of where the

computation will be done – the other sections are for setting up the equation portion to

work properly. For typical electrical operation, there is a voltage drop across the

component and must be defined first in the equation section. At any time in this section,

the time, current, and voltage of the component during the simulation may be accessed

via “time”, “i”, and “v” respectively. It should be noted that the values of the current and

voltage may be modified within the equations section, although the overall simulation

Page 56: A New Approach to Battery Management System Control Design

45

may produce an error. The entire source code for both custom Simscape components may

be found in Appendix B: Source Code.

Once the source code for the custom Simscape component is written, the custom

library must be compiled and made available for the user to drop into their schematic. To

do this, ensure that MATLAB is in the directory or one directory above the named

component library then run the command “ssc_build MyComponents” where

“MyComponents” is replaced with the name of your custom Simscape library. From here,

a .slx file named “MyComponents_lib.xls” should have been generated; open this file to

see your custom components then simply drag and drop your component into your

Simscape circuit.

The compilation order for Simscape components, especially when it comes to

custom components, is somewhat challenging for equations that have iterative processes.

The Simscape language compiles from the top down, and does not “loop back” for the

next iteration as Simscape simulates in continuous time and not discrete time. For

example, the capacity degradation model used in this thesis subtracts the degradation

from the previous cycle and denotes this value as the next value of capacity degradation;

tasks similar to iterative processes subtracting from a previous value are why a MATLAB

function block needed to be implemented.

Prior to the simulation is performed, ensure that all of the variables in the

Simscape and Simulink blocks are set, including the Simscape components. Note that the

user may define parameters as variables. For example, a resistor component in Simscape

requires a resistance value. The resistance value may be set as “R1” where “R1” is then

Page 57: A New Approach to Battery Management System Control Design

46

pulled from the MATLAB workspace when the simulation is performed. Enabling

variable inputs will allow for quick manipulation of variables without the need for re-

opening the Simulink files.

3.2 Validation of the Simscape Model

This section discusses the processes and results for validating the Simscape

model, both the electrical equivalent circuit and the capacity degradation algorithm.

3.2.1 Setup and Validation of the Electrical Model

In order to demonstrate the validity of the proposed and characterized electrical

model, simulations needed to be run. The characterization parameters found for the Sony

VTC4 18650 will be used for validation as physical tests were run using the Sony VTC4

18650 battery. The circuit diagram from Figure 2.13 [19] was used to construct the

Simscape model found in Figure 3.3.

Page 58: A New Approach to Battery Management System Control Design

47

Figure 3.3: Simscape Battery Model

The simplified version – that incorporates the Simscape battery model into a

single block – is used to simulate from a higher-level and may be found in Figure 34.

Page 59: A New Approach to Battery Management System Control Design

48

Figure 3.4: Simplified Simscape Model

In Figure 3.4, we can also see a controlled current source as well as a voltage

sensor with polarities that indicates negative current charges the battery and a positive

current discharges the battery.

To verify this model, experimental data of the physical battery cell – the Sony

VTC4 18650 – from a US06 drive cycle was used. A drive cycle is a predetermined route

that is intended to duplicate the situation in which drivers find themselves – the US06

drive cycle is meant to duplicate a “high acceleration driving schedule that is often

identified as the ‘Supplemental FTP’ driving schedule” [68]. The current and voltage

measurements were taken every 0.1 seconds throughout the duration of the US06 drive

Page 60: A New Approach to Battery Management System Control Design

49

cycle. The experimental current profile for the US06 drive cycle may be found below in

Figure 3.5.

Figure 3.5: Current Profile for US06 Drive Cycle

Providing the battery model with the experimental current profile of that found in

the US06 drive cycle, the output should be near identical to that of the experimental

voltage output in order to show that the model was verified; the resulting voltage output

from the current profile may be seen in Figure 3.6.

Page 61: A New Approach to Battery Management System Control Design

50

Figure 3.6: Battery Cell Voltage Simulated Results from US06 Current Profile Input

With both the experimental and simulated results of the US06 current profile test,

we are able to calculate the root mean square (RMS) error of the battery model. Looking

at (2.1), we can see the RMS error equation where Xn is data point n where n = {1,…,N}

and N is the number of points.

𝑅𝑅𝑅𝑅𝑆𝑆 = �

1𝑁𝑁� 𝑋𝑋𝑛𝑛2𝑛𝑛=𝑁𝑁

𝑛𝑛=1

(3.1)

Utilizing (2.1) above, the calculated RMS error was 0.011 Volts or 11mV when

comparing the experimental voltage to the simulated voltage results shown in Figure 3.6.

With such a low value for RMS error, we can deduce that the battery model is indeed a

valid model.

Page 62: A New Approach to Battery Management System Control Design

51

3.2.2 Setup and Validation of the Capacity Degradation Model

In order to ensure that the battery model is performing as desired in regards to

capacity degradation, simulations need to be run similar to those used to generate the

severity profile. Recall the current profile provided in Figure 2.9 – using a CRATE of 2C

and a ΔSOC of 10% we should be able to reproduce the capacity degradation curve found

in Figure 2.10; this process can be applied to the other tested CRATE and ΔSOC scenarios,

4C, 8C, 20%, and 30% respectively. Comparing the experimental values to the output of

the capacity degradation model implanted in Simscape, we can evaluate how well the

Simscape model performs.

The simplified version of the capacity degradation model used when simulating a

BMS can be found in Figure 3.4. Note the use of rate transition blocks that allow the user

to sample at a different frequency than the current input of 0.1 seconds; typical sampling

frequency for the capacity degradation simulations was every 100 seconds to avoid

having large matrices output into the workspace.

The results of simulating different current profiles in the Simscape capacity

degradation model were comparing a CRATE ranging from 2C to 8C and a ΔSOC change

ranging from 10% to 30% and can all be found in Figures 3.7-3.9. The dotted lines for all

figures indicate the simulation results, while the solid lines indicate the experimentally

fitted results produced in the work performed by [38].

Page 63: A New Approach to Battery Management System Control Design

52

Figure 3.7: Simscape Simulation vs Experimental Capacity Degradation for a CRATE of 2

Figure 3.8: Simscape Simulation vs Experimental Capacity Degradation for a CRATE of 4

Page 64: A New Approach to Battery Management System Control Design

53

Figure 3.9: Simscape Simulation vs Experimental Capacity Degradation for a CRATE of 8

The RMS error was calculated from the operation zone of 100% capacity to 80%

capacity for each scenario as this is considered the EOL for EV batteries. From Table 3.3,

we can see that the Simscape model is good enough for the purpose of this thesis as just a

capacity degradation model is not the focus, with a maximum RMS error of 1.52%

TABLE 3.3 RMS ERROR FOR SIMSCAPE MODEL

Test Number CRATE ΔSOC RMS Error

1 2 10% 1.45% 2 2 20% 1.04% 3 2 30% 0.92% 4 4 10% 1.52% 5 4 20% 1.03% 6 4 30% 0.92% 7 8 10% 0.59% 8 8 20% 0.66% 9 8 30% 0.69%

Page 65: A New Approach to Battery Management System Control Design

54

Chapter 4

Battery Management System Simulations

In order to properly evaluate the BMS control logic proposed in this thesis, the

entire battery management system must be simulated.

4.1 Voltage Equalization BMS Control Logic

The voltage equalization technique is – again – a simple, yet effective

technique. An example of this technique for a +/- 1% balancing system would allow four

cells in series to have SOCs of 70%, 71%, 72% and 71% and be considered balanced as

none of the cells is more than +/-1% from the average of all of the cells – in this example

the average SOC was 71%. A logic flow diagram of the voltage equalization process is in

Figure 4.1

Page 66: A New Approach to Battery Management System Control Design

55

Figure 4.1: Voltage Equalization BMS Logic Flow Diagram

Inspecting the logic flow diagram in Figure 4.1, the system initializes at the

location marked “start,” where the system checks if it is balanced or not by inspecting

each battery cell’s SOC compared to the average battery cell SOC. If within the bounds,

the system is considered balanced and the program exits. If not within bounds, the system

is considered unbalanced and loops back to retrieving the high SOC and low SOC cells. It

should also be noted that for physical implementation of activating or turning “on” the

switches, a PWM output to a switch – typically a MOSFET. All active balancing methods

have some form of switching to shuttle the energy from cell to cell; diagrams of active

topologies including switch locations can be found in [69]. The PWM signal typically

Page 67: A New Approach to Battery Management System Control Design

56

operates at less than a full duty cycle, some papers have used 200 Hz with a 45% duty

cycle [51] and others have found a way to optimize the best frequency for PWM with a

duty cycle of 50% [70]. For simplicity, this thesis will use 200Hz and 45% duty cycle for

PWM. The implemented Stateflow control diagram is similar to that found in Figure 4.1

and may be seen in Figure 4.2; the PWM signal is generated in Simulink, outside of the

Stateflow diagram.

Page 68: A New Approach to Battery Management System Control Design

57

Figure 4.2: Voltage Equalization Stateflow Control Diagram

Page 69: A New Approach to Battery Management System Control Design

58

4.2 SOH Equalization BMS Control Logic

The proposed BMS control logic attempts to evenly distribute the aging of the

cells during the balancing process. Through distributing the aging between the battery

cells, the longevity of the battery system as a whole will be increased as the capacity

degradation on one cell will not classify the module as having reached its EOL. The

premise of having more degraded battery modules than others can have detrimental

effects on the healthier modules [71] – the proposed BMS control logic offset this effect

by attempting to redistribute the aging during a typical balancing cycle. Figure 4.3 below

shows the logic flow for the proposed BMS controls.

Page 70: A New Approach to Battery Management System Control Design

59

Figure 4.3: Logic Flow Diagram for Proposed BMS Logic

Inspecting the logic flow diagram in Figure 4.3 above, there are four possible

states in which the proposed BMS must make a decision. For the simplest case where

both the SOC and SOH are balanced, the system leaves the battery cells as-is. Moving

from right to left, the next case is the SOC is balanced but the SOH is unbalanced. For

this scenario, the BMS will choose to do nothing as distributing the aging across the

battery cells is not worth sacrificing a balanced SOC. A longer battery life is not worth

risking ones’ safety and for this reason the BMS also leaves the battery cells as-is. The

Page 71: A New Approach to Battery Management System Control Design

60

remaining two states both have an unbalanced SOC; one of which is identical to the

decision-making that occurs during voltage equalization. The state that implements

voltage equalization is the SOC unbalanced with SOH balanced state where SOH is not a

concern and the system should focus on the SOC. For this block, all of the logic

discussed for the voltage equalization technique applies. The last state on the far left of

Figure 4.3 is where the proposed BMS control system comes into play. In this final state,

we can attempt to evenly distribute some of the aging while balancing SOC by utilizing

information provided by our SOH estimator. The implemented logic looks for the highest

SOH cell that is above the lower accepted SOC bound and transfers energy to the lowest

SOC cell until it reaches the lower accepted SOC bound or the system becomes SOC

balanced. If this cell reaches the lower accepted SOC bound, we move to the next

“youngest” cell that has a SOC above the lower accepted SOC bound to provide the

energy for the lowest SOC cell. The proposed BMS created in Stateflow may be seen in

Figure 4.4.

Page 72: A New Approach to Battery Management System Control Design

61

Figure 4.4: SOH Equalization BMS Stateflow Logic Overview

Page 73: A New Approach to Battery Management System Control Design

62

4.3 Comparison of the BMS Control Logic

In order to show the difference between the two BMS control logics, the two

control systems were ran side-by-side given the same scenarios to see which switches

would be thrown. The SOC and SOH inputs were generated via MATLAB’s random

number generator function. The Stateflow models for this comparison can be found in

Figure 4.5.

Figure 4.5: Comparison of BMS Control Logic Stateflow Model

Page 74: A New Approach to Battery Management System Control Design

63

During the execution of the comparison between the two Stateflow models, the

outputs of each model are the desired switch configurations. These switch configurations

are converted to the associated cells for interpretation simplicity. The provided SOC

inputs are given in Figure 4.6, the provided SOH inputs are provided in Figure 4.7, and

the comparison between the thrown switches is in Figure 4.8.

Figure 4.6: Provided SOC Inputs for Stateflow Comparison

Page 75: A New Approach to Battery Management System Control Design

64

Figure 4.7: Provided SOH Inputs for Stateflow Comparison

Figure 4.8: Switch Position Outputs for Stateflow Comparison

Page 76: A New Approach to Battery Management System Control Design

65

One of the first items to note in Figure 4.6 and Figure 4.7 are the green and red

portions of the plots. The green and red lines for both the SOC and SOH indicate the

highest battery cell for that respective parameter. For example, a green line for both SOC

and SOH begins on Cell 1 – this indicates that battery cell one has both the highest SOC

and the highest SOH. Conversely, we can see that battery cell three has the lowest SOC

and battery cell four has the lowest SOH.

To reveal the BMS logic for voltage equalization, simply look at the highest SOC

and the lowest SOC in Figure 4.6. The switches will be thrown between these two

positions. For example, initially the switches should oscillate between Cell 1 with the

highest SOC and Cell 3 with the lowest SOC, which is exactly what happens as shown in

Figure 4.8.

Upon further inspection, we can also see that for this round of testing, there were

three scenarios in which the systems provided different outputs. The first occurrence is

between samples 20 and 30, the second occurrence is between samples 30 and 40, and the

third occurrence is between 40 and 50. For the first occurrence, it is obvious that the

voltage equalization BMS balances by sending the energy from the maximum SOC

battery cell, cell 3, to the minimum SOC battery cell, cell 4. In this case, the SOH was the

greatest in cell 1 and cell 1 also had a SOC greater than the lower SOC bound, thus the

SOH equalization BMS chosen between Cell 1 and Cell 4. It should also be noted that for

this comparison, both tolerances for the upper and lower, SOC and SOH bounds were

1%. Similar to the first occurrence, the second occurrence took note that cell 1 was a

“younger” cell and transferred the energy from the “younger” cell to the lowest SOC cell,

Page 77: A New Approach to Battery Management System Control Design

66

cell 4. In the last occurrence, the cell with the highest SOH, cell 3, also had a SOC above

the lower SOC bound and therefore was used instead of cell 4 for the SOH equalization

topology.

4.4 BMS Simulation Setup

Now that the Stateflow models for each BMS control system are setup and

validated for their correct functionality, we must now simulate the entire BMS to be able

to quantify the difference between the two methodologies. The portion that includes the

four battery cells in series and a switched capacitor are identical for both BMS. A

simplified version of the battery module setup may be found in Figure 4.9. The full

“skeleton” version utilized in simulations is in Figure 4.10.

Figure 4.9: Simplified Battery Module Setup

Page 78: A New Approach to Battery Management System Control Design

67

Figure 4.10: Simulation Battery Module “Skeleton” Setup

Note how there are wires that go vertical, above the switches on the left hand side

of the battery module setup in Figure 4.10 – these wires hookup to the output of the

Stateflow block for either BMS control system. The wires on the right hand side of the

figure are for the SOC output to the BMS. For the case where SOH is needed, four more

wires are run to the SOH output from each battery cell block. Recall that inside of each

battery block is the Simscape capacity degradation model.

Page 79: A New Approach to Battery Management System Control Design

68

For the second half of the simulation setup, either the voltage equalization

Stateflow model or the proposed BMS Stateflow model is used. For both cases, a PWM

output is hooked up to a switch to indicate when to provide a PWM signal. The use of a

PWM signal instead of transistor-transistor logic (TTL) of 5V or 0V provided to the

switch – or in the physical BMS case, the MOSFET bidirectional switch – allows for the

omission of having an “off” state with the Stateflow decision logic for both cases as the

duty cycle for the PWM signal is 45%. With the PWM signal at 45%, the signal will

already be at 0V before throwing the next switch. It should also be noted that the

frequency for switching used is a magnitude lower than the time it takes the capacitor to

charge, that way the capacitor is charged to its maximum before the next switch is

thrown. There has been work done that mentions finding the optimal switching frequency

[70]. Nonetheless, the Stateflow models within the BMS simulation for both the voltage

equalization technique and the SOH equalization technique may be found in Figure 4.11

and Figure 4.12 respectively.

Page 80: A New Approach to Battery Management System Control Design

69

Figure 4.11: Voltage Equalization BMS Stateflow within the BMS Simulation

Page 81: A New Approach to Battery Management System Control Design

70

Figure 4.12: SOH Equalization BMS Stateflow within the BMS Simulation

Page 82: A New Approach to Battery Management System Control Design

71

4.5 BMS Control System Comparison Simulation Results

In order to quantify the difference between the two control systems, a balancing

operation was conducted. The conditions used were similar to those performed in other

BMS simulations, as used in [51]. The conditions were as follows: battery cell capacities

of 2.18 amp-hours, OCV vs SOC curve for the NMC battery, R0 vs SOC curve for the

NMC battery, R1 of 0.002 ohms, C1 of 670 farads, alpha, beta, and gamma values as

found in [38], a switching capacitor capacitance of 0.22 farads with initial charge of 0

volts, sample frequency of 10Hz, and a switching frequency of 200Hz. The initial

declared SOCs for cell 1, 2, 3, and 4 were 0.84, 0.91, 0.86, and 0.89 as used in other

simulations [51]. The SOH for the cells were declared as followed for cell 1, 2, 3, and 4:

97%, 96%, 98%, and 94%.

The ΔSOC and total amp-hours for each cell were plotted and analyzed. The plots

for SOC, and total amp-hours for each cell may be found in Figures 4.13-4.16. The

capacity degradation must be computed separately due low levels of current flow.

Page 83: A New Approach to Battery Management System Control Design

72

Figure 4.13: Voltage Equalization BMS SOC Output 1st Simulation

Figure 4.14: Voltage Equalization BMS Total Amp-hour Output 1st Simulation

Page 84: A New Approach to Battery Management System Control Design

73

Figure 4.15: SOH Equalization BMS SOC Output 1st Simulation

Figure 4.16: SOH Equalization BMS Total Amp-hour Output 1st Simulation

Page 85: A New Approach to Battery Management System Control Design

74

Looking at the data provided from the BMS simulations, we can see that there is a

different in the transfer of charge, seen both in the SOC plots and total amp-hour plots. In

order to quantify how significant the difference is, we must compute the difference in

capacity degradation between the techniques. The important items to note are: The SOC

are all within +/- 1% and less amp-hours traveled through the most degraded cell.

Other simulations were run and their respect results are shown below in Figure

4.17-4.20 for second simulation given the initial SOC of each battery cell as 0.94, 0.72,

0.86, 0.81 and initial SOH as 83, 90, 92, 86 for cell 1, 2, 3, and 4 respectively. The rest of

the parameters are the same as the first simulation.

Figure 4.17: Voltage Equalization BMS SOC Output 2nd Simulation

Page 86: A New Approach to Battery Management System Control Design

75

Figure 4.18: Voltage Equalization BMS Total Amp-hour Output 2nd Simulation

Figure 4.19: SOH Equalization BMS Total SOC Output 2nd Simulation

Page 87: A New Approach to Battery Management System Control Design

76

Figure 4.20: SOH Equalization BMS Total Amp-hour Output 2nd Simulation

For the second simulation, we can see that Cell 1 still had to be used to equalize

the SOCs, but was used less when possible, resulting in the most degraded cell, Cell 1, to

be used less in the SOH equalization method, accruing less degradation. Again, the

important items to note are: The SOCs are all within +/- 1% and less amp-hours traveled

through the most degraded cell.

For the final simulation, the initial SOC of each battery cell as 0.81, 0.84, 0.87,

0.91 and initial SOH as 97, 96, 95, and 98 for cell 1, 2, 3, and 4 respectively. The rest of

the parameters are the same as the first and second simulations.

Page 88: A New Approach to Battery Management System Control Design

77

Figure 4.21: Voltage Equalization BMS SOC Output 3rd Simulation

Figure 4.22: Voltage Equalization BMS Total Amp-hour Output 3rd Simulation

Page 89: A New Approach to Battery Management System Control Design

78

Figure 4.23: SOH Equalization BMS Total SOC Output 3rd Simulation

Figure 4.24: SOH Equalization BMS Total Amp-hour Output 3rd Simulation

Page 90: A New Approach to Battery Management System Control Design

79

For the third and last simulation, we can see that Cell 3 was essentially not used at

all during the balancing process for SOH equalization, but was used some 0.0049 amp-

hours using the voltage equalization method. Again, he important items to note are: The

SOCs are all within +/- 1% and less amp-hours traveled through the most degraded cell.

To summarize the results of all three cases, we can see that there was a capacity

degradation reduction for all of the lowest SOH cells, specifically over the lifetime of

each battery – assuming 10,000 cycles – of 0.04%, 0.007%, and 0.073% less for each

simulation respectively. Another key item to note is that the balancing times were

significantly longer, specifically five times longer, two times longer, and four times

longer. In regards to longer balancing times, this should not be an issue for EVs to

balance as they balance overnight. Thus, as long as the balancing times are less than 6-8

hours, the time span is less of a factor.

The effects of the reduced capacity degradation would be more significant in

larger battery packs, such as 12 amp-hours and above [51], as the batteries used in this

simulation had a mere 2.18 amp-hour capacity. If the SOH equalization method was

applied to every BMS in production, given there were 542,000 EVs produced by 2016 [4]

and assuming that only one cell in a pack saves 0.07% over its lifetime, approximately

82,709 amp-hours would be saved across the total amount of EVs. Given a Tesla Model

S with a 60kWh battery at 400 Volts has an amp-hour capacity of 150, this would result

in 551 more charges with a range of 210 miles per charge; the resulting math shows that

there would be a total of 115,794 miles of extra range for these batteries before deemed

having reached their EOL. Keep in mind that for this proposed scenario we assume only

Page 91: A New Approach to Battery Management System Control Design

80

one cell would benefit per EV, where in reality there are ~380 cells per module and ~14

modules in a Tesla Model S – we can expect the extra range number to be multiplied by

at least a magnitude or two.

Degradation reduction may become even more apparent when temperature is

taken into account as capacity degradation is heavily dependent on temperature. We may

also collect data for our capacity degradation model at currents closer to the currents of

balancing, typically between 0-2 amps for the SSC topology [51].

Page 92: A New Approach to Battery Management System Control Design

81

Chapter 5 Experimental Setup

The experimental portion of this thesis was to build a SSC BMS topology that

could run both the voltage equalization logic and the proposed BMS logic. To test the

different between the two, many cycles would need to be run on the proposed BMS

system in order to inspect the battery cell degradation over time. We can however show

that the two systems logically make different decisions in when and which switches to

throw.

5.1 Design Decisions and Limitations

The experimental setup for the physical BMS consists of all of the basic materials

needed to make a basic BMS system, including: a microcontroller, switches, circuit

isolation devices, and measuring devices. The microcontroller chosen was an Arduino for

its ease of implantation and availability as the focus is the logic control system, not the

hardware choices. The switches are constructed from two IRF530 MOSFETs each and

oriented as a bidirectional switch for a total of 16 MOSFETs. The circuit isolation

devices used in this circuit are generic optocouplers purchased from Amazon which are

fed by a 12V to 15V step-up circuit to allow enough voltage to turn on the MOSFETs

completely. The measuring device, specifically the ADC is built-in to the Arduino via the

analog pins. However, for current measurements a differential op-amp was used to

Page 93: A New Approach to Battery Management System Control Design

82

amplify the voltage across a 15mΩ sense resistor and then provided to the Arduino to

calculate the estimated aging of the battery cells.

One of the several limitations of the experimental BMS, including but not limited

to the resolution of the microcontroller. An accurate SOH estimation provided from the

microcontroller requires an accurate reading – there are much better choices out there for

ADC but this experimental setup can be used to show that the decision logic is indeed

working and can increase the longevity of the battery cells.

5.2 The Physical BMS

The setup of the physical BMS can be seen in Figure 58. On the left there are the

Sony VTC4-18650s in a battery case, connected to a terminal hub which then connects to

the corresponding bidirectional MOSFET switches on the top-most breadboard. The

circuitry beneath the MOSFETs is a part of the isolator circuits, which separates the

microcontrollers from the higher voltage levels of 15V, as shown on the left display. The

15V is provided by a step-up converter, which is supplied by a 12V wall outlet – instead

of the wall outlet plug, the system could derive its energy from the batteries, but for the

purposes of this thesis, they were kept separate. On the right-hand most side the switched

capacitor can be seen, with the ADC setup directly to the single switched capacitors left.

The second blue display screen displays the total run time for the system, whether

or not the system is balanced, and the voltages of each cell. The balancing process can

also be paused by simply throwing the physical switch in the bottom left-hand corner.

Last but not least, in the bottom middle is an Arduino Mega that contains the Stateflow

Page 94: A New Approach to Battery Management System Control Design

83

code for the desired battery management system, whether voltage equalization or the

proposed logic control in this thesis.

Figure 5.1: The Experimental BMS

Page 95: A New Approach to Battery Management System Control Design

84

Chapter 6 Conclusion

This thesis presents a new approach to battery management system control design

for increasing battery longevity. Previous BMS control designs simply neglected

estimated SOH information and implemented a voltage equalization method.

6.1 Summary of Contributions

A methodology for creating a battery model with capacity degradation has been

demonstrated.

A battery model that accounts for aging of battery cells has been implemented in

Simscape simulation environment which can be adapted for other simulation work by

simply “dragging and dropping” the component. The component may also be used for

other characterized batteries and is thus dynamic in the sense that one can provide the

parameters of their given battery.

Little work has been done on considering other methodologies for BMS control;

this thesis presented a new approach to the logic contained within battery management

systems given the new, accurate SOH estimators available.

Page 96: A New Approach to Battery Management System Control Design

85

6.2 Future Work

The addition of temperature into the battery model should allow more drastic

degradation to occur and thus increase the benefits of using a SOH equalization

technique.

The use of a BMS control that utilizes SOH in the decision-making process is

shown to provide benefits. Under different hardware conditions however, a BMS that

utilizes SOH can reach its true potential via distribution of the load, instead of during

balancing. The currents during a balancing cycle are much less than those during loading;

typical balancing currents are between 0-2A for the SSC [51], where during the loading

cycle the currents may reach the maximum discharge rate of the battery, specifically 25A

for the NMC Sony VTC4-18650 used in this thesis.

This topic has been approaches previously in [65] with the omission of a SOH

estimator in the control logic and a focused on balancing SOC by removing cells from the

load. Through the utilization of a switch on each battery, as shown in Figure 2.28 –

reproduced here for convenience [65] – the more aged cells may be temporarily removed

from the circuit until the other cells “catch up” in terms of capacity degradation.

Page 97: A New Approach to Battery Management System Control Design

86

Figure 2.27: Circuit Diagram for Parallel-Connected Energy Management [65]

An excellent metaphor for the ideology behind “turning batteries off” via a switch

attached to each battery cell can be thought of as: you and your three best friends are

moving a grand piano. One of your friends becomes tired and does not have the same

amount of energy as you and your two other friends; your tired friend is forcing the three

rest of you to have to slow down when moving the piano. It would be best to allow your

tired friend to take a break so that you and the other two of your friends can continue to

move the piano at a faster rate. After moving the piano a fair distance, now you and the

other two of your friends carrying the piano are now just as tired as your friend who had

to “sit-out” for a while. At this time, it would be best for that friend who had to “sit-out”

to join the three of you again to evenly distribute the load, although this time everyone is

moving at the same speed because they are all at the same energy levels.

Although your friend had to “sit-out,” the piano was still moved a farther distance

than if your friend had not “sat-out” as they were preventing the other three of you from

Page 98: A New Approach to Battery Management System Control Design

87

moving the piano as fast as you could and dragging the three of you down. The exact

same principle may be applied to battery cells, where your friends’ energy level would be

the amount that specific battery cell is degraded. We then allowed the SOH of the

“younger” three cells to degrade to the level of the “oldest” or most degraded cell, where

we then allowed that battery cell to rejoin the group.

The experimental BMS also needs to be modified to include parallel connected

cells in order to implement the future work for SOH equalization BMS control logic in

this thesis. The resolution on the standard Arduino will also be replaced for another

microcontroller with higher resolution and a faster conversion time. The use of a printed

circuit board (PCB) will be necessary to keep the components organized, compact, and

reduce power loss in the conventional breadboards.

Page 99: A New Approach to Battery Management System Control Design

88

Appendices

Page 100: A New Approach to Battery Management System Control Design

89

Appendix A

Glossary of Terminology

ADC – analog to digital conversion

Ahr – amp-hours

BMS – battery management system

CRATE – rate at which battery is charged or discharged relative to its initial capacity

DOD – depth of discharge, the inverse of SOC

EOL – end of life

EVs – Electric Vehicles

HEVs – Hybrid Electric Vehicles

HPPC – hybrid power pulse characterization test

Li-ion – lithium ion

MATLAB – matrix laboratory, a numerical computing environment and high-level

programming language

MOSFETs – metal-oxide semiconductor field-effect transistor

OCV – open circuit voltage

Op-amp – operational amplifier

PHEVs – Plug-in Hybrid Electric Vehicles

Ragone plot – used for performance comparison of battery parameters, power density in

W/Kg on the x-axis and energy density in Wh/Kg on the y-axis

RMS – root mean square error

Page 101: A New Approach to Battery Management System Control Design

90

Simscape – the physical system simulation software within Simulink

Simulink – a block diagram environment within MATLAB for multi-domain simulation

and model-based design

SOC – state of charge, the inverse of DOD

SOH – state of health, this must be estimated and cannot be directly calculated

SSC – single switched capacitor, a type of BMS topology

USABC – United States Advanced Battery Consortium

Page 102: A New Approach to Battery Management System Control Design

91

Appendix B

Source Code

Simscape Custom Component voltage_table_v11

component voltage_table_v11 % Voltage Lookup v11 % This block implements the cell's main branch voltage source, and determines % values for capacity (C) and state of charge (SOC). The defining equations do not % depend on cell temperature, T. % % The outputs are SOC, Total Ah, and capacity of battery remaining (from total Ah vs Capacity % curve) % nodes p = foundation.electrical.electrical; % +:left n = foundation.electrical.electrical; % -:right end inputs deltaSOC = {0,'1'} % deltaSOC:right num_cycles = {0,'1'}; % num_cycles:right refresh_flag = {1,'1'} % refresh_flag:right avg_crate = { 0, '1' }; % avg_crate:right current_degradation_in = {1,'1'} % degradation_in:right end outputs Total_Ah = {0,'A*hr'} %Total_Ah:left current_SOC = {0,'1'} %SOC:left current_degradation_out = {1,'1'} % degradation_out:left instant_crate = {0,'1'} %instant_Crate:left end parameters (Size=variable) % X and Y values for battery voltage curve below. ocv_points = {[1 2 3],'V'} % X-values for OCV soc_points = {[1 2 3],'1'} % Y-values for SoC end parameters initial_SOC = {0,'1'} % Initial SOC, 0-1 initial_capacity = {0,'A*hr'} % Initial Capacity in A*hr alpha = {0,'1'}; % Alpha from Exp Data beta = {0,'1'}; % Beta from Exp Data

Page 103: A New Approach to Battery Management System Control Design

92

gamma = {0,'1'}; % Gamma from Exp Data end variables (Access=private) i = { 0, 'A' }; % Current v = { 0, 'V' }; % Voltage end function setup if any(value(ocv_points,'V')<=0) pm_error('simscape:GreaterThanZero','Array of voltage values, ocv_points'); end if any(value(soc_points,'1')<0) pm_error('simscape:GreaterThanOrEqualToZero','State of Charge (SOC) points'); end if value(initial_SOC,'1')<0 pm_error('simscape:GreaterThanOrEqualToZero','Initial SOC'); end end branches i : p.i -> n.i; end equations v == p.v - n.v; % Calculating the total Ah the battery is used. Output is Ah. Verified. Total_Ah == integ(abs(i)); % Instant Crate instant_crate == abs(i)/initial_capacity *3600*{1,'C/A'}; if time > 0 && refresh_flag == 1; current_degradation_out == current_degradation_in - ... ((alpha + beta*deltaSOC*100 + gamma*exp(avg_crate)) ... * 1.36*num_cycles^(0.36)); else current_degradation_out == current_degradation_in; end % Calculating the current SOC. i.e. 2.18Ahr is the battery's initial capacity. current_SOC == initial_SOC + integ(i)/(initial_capacity*current_degradation_out)* 100 * {1,'C/(A*s)'}; % Voltage Lookup v == tablelookup(soc_points,ocv_points,current_SOC,... interpolation=linear,extrapolation=nearest) end end

Page 104: A New Approach to Battery Management System Control Design

93

Simscape Custom Component r0_table

component R0_table % R0_table % Models a resistor where the resistance value (R) depends on an external % physical signal input SOC. % Copyright 2012-2013 The MathWorks, Inc. nodes p = foundation.electrical.electrical; % +:left n = foundation.electrical.electrical; % -:right end inputs %T = {293.15,'K'}; %T:left SOC = {1,'1'}; %SOC:left end outputs %pow = {0,'W'}; % POW:right %Routput = {0,'Ohm'}; end parameters (Size=variable) SOC_Table = {[1 2 3],'1'} % X-values matrix of State of Charge (SoC) R0_Table = {[1 2 3],'Ohm'}; % Y-values matrix of resistance %Temp_Table = {[273.15 293.15 313.15],'K'} % Temperature (T) breakpoints end variables (Access=private) i = { 0, 'A' }; % Current v = { 0, 'V' }; % Voltage %R = {0,'Ohm'}; end function setup % Check parameter values if any(any(value(R0_Table,'Ohm')<=0)) pm_error('simscape:GreaterThanZero','Matrix of resistance values, R(SOC,T)'); end if any(value(SOC_Table,'1')<0) pm_error('simscape:GreaterThanOrEqualToZero','State of charge (SOC) breakpoints'); end %if any(value(Temp_Table,'K')<0) % pm_error('simscape:GreaterThanOrEqualToZero','Temperature (T) breakpoints');

Page 105: A New Approach to Battery Management System Control Design

94

%end end branches i : p.i -> n.i; end equations v == p.v - n.v; let % Perform the table lookup R = tablelookup(SOC_Table,R0_Table,SOC,... interpolation=linear,extrapolation=nearest) in % Electrical Equations v == i*R; %pow == v*i; end end end

Page 106: A New Approach to Battery Management System Control Design

95

Simscape Custom Component Calc_num_cycles

function [total_cycles_out,refresh_flag,summed_Crate_out,num_Crates_out,avg_Crate,deltaSOC,max_SOC_output,min_SOC_output, ... refresh_out,num_cycles_out,Ah_cycle_tally_out] = ... fcn(total_cycles_in,refresh_flag_in,summed_Crate_in, num_Crates_in,inst_Crate,total_Ah,current_SOC,capacity_degradation, ... max_SOC, min_SOC,refresh_in,num_cycles_in,Ah_cycle_tally_in) % capacity degradation in 0<x<100 % deltaSOC in 0<x<1 % current_SOC in 0<x<1 % initial_capacity in Ah % calculating deltaSOC % updating max_SOC if current_SOC > max_SOC max_SOC_output = current_SOC; else max_SOC_output = max_SOC; end % updating min_SOC if current_SOC < min_SOC min_SOC_output = current_SOC; else min_SOC_output = min_SOC; end % calculate deltaSOC deltaSOC = max_SOC_output - min_SOC_output; % calculate avg Crate, using a running average summed_Crate_out = inst_Crate + summed_Crate_in; num_Crates_out = num_Crates_in + 1; avg_Crate = summed_Crate_out / num_Crates_out; % calculating num_cycles % from eq (9): % https://cecas.clemson.edu/~sonori/Publications/0173.pdf if deltaSOC == 0 && num_cycles_in == 0% avoids dividing by 0 num_cycles_out = 0; total_cycles_out = total_cycles_in; % unsure about this line. elseif deltaSOC == 0 && num_cycles_in > 0 num_cycles_out = num_cycles_in; total_cycles_out = total_cycles_in; else % total_Ah - Ah_cycle_tally_in gives us the Ah for the current cycle num_cycles_out = (total_Ah-Ah_cycle_tally_in) * 3600 / (2 * deltaSOC*100 * capacity_degradation); total_cycles_out = total_cycles_in + (num_cycles_out - num_cycles_in);

Page 107: A New Approach to Battery Management System Control Design

96

end % checking for if cycles is near 1:1:desired_cycles, i.e. 1,2,3 etc. % refresh is between 0.99 and 1.01 cycles, 1.99 and 2.01 cycles, etc. if total_cycles_in >= refresh_in-0.01 && total_cycles_in <= refresh_in+0.01 % telling the simscape component to add the degradation up for this cycle refresh_flag = 1; refresh_out = refresh_in; % may not actually need.. Ah_cycle_tally_out = Ah_cycle_tally_in;% may not actually need.. else refresh_out = refresh_in; Ah_cycle_tally_out = Ah_cycle_tally_in; refresh_flag = refresh_flag_in; end if refresh_flag_in == 1 % if these conditions are true, reset deltaSOC for next cycle. deltaSOC = 0; num_cycles_out = 0; max_SOC_output = current_SOC; min_SOC_output = current_SOC; % incrementing to the next cycle refresh_out = refresh_in+1; Ah_cycle_tally_out = total_Ah; refresh_flag = 0; summed_Crate_out = inst_Crate; num_Crates_out = 1; avg_Crate = inst_Crate; end % applying the constraint that if deltaSOC < 10, we make it 10. if deltaSOC < 0.1 deltaSOC = 0.1; end end

Page 108: A New Approach to Battery Management System Control Design

97

References [1] AAA Foundation, "Americans Spend an Average of 17,600 Minutes Driving Each

Year," AAA Foundation, 8 September 2016. [Online]. Available: http://newsroom.aaa.com/2016/09/americans-spend-average-17600-minutes-driving-year/.

[2] U.S. Energy Information Administration, "FREQUENTLY ASKED QUESTIONS: How much gasoline does the United States consume?," U.S. Energy Information Administration, 29 March 2017. [Online]. Available: https://www.eia.gov/tools/faqs/faq.php?id=23&t=10.

[3] C. Daniel, "Materials and Processing for Lithium-ion Batteries," Journal of The Minerals, Metals & Materials Society, vol. 60, no. 9, pp. 43-48, 2008.

[4] J. Bhuiyan, "There have now been over 540,000 electric vehicles sold in the U.S.," Recode, 21 December 2016. [Online]. Available: https://www.recode.net/2016/12/21/14041112/electric-vehicles-report-2016.

[5] EVvolumes.com, "USA Plug-in Vehicle Sales for 2016 – Final," [Online]. Available: http://www.ev-volumes.com/country/usa/.

[6] Electric Power Research Institute (EPRI), "Electric Transportation: Industry Terms," 2013. [Online]. Available: http://et.epri.com/ResearchAreas_IndustryTerms.html.

[7] M. Kane, "Battery Capacity Comparison: Plug-ins Vs Hybrid Car Sold From 2011 To 2015," InsideEVs, October 2016. [Online]. Available: http://insideevs.com/battery-capacity-comparison-of-plug-ins-hybrid-car-sold-in-2011-2015/.

[8] United States Advanced Battery Consortium (USABC) LLC, 2017. [Online]. Available: http://www.uscar.org/guest/view_team.php?teams_id=12.

[9] P. Wolfs, "An Economic Assessment of “Second Use” Lithium Ion Batteries for Grid Support," in Universities Power Engineering Conference (AUPEC), 2010.

[10] R. C. Kroeze and P. T. Krein, "Electrical battery model for use in dynamic electric vehicle simulations," in Power Electronics Specialists Conference, 2008.

[11] D. Yang, C. Lu and G. Qi, "An Improved Electric Model with Online Parameters," International Journal of Computer and Electrical Engineering, vol. 5, no. 3, pp. 330-333, 2013.

[12] M. R. Jongerden and B. R. Haverkort, "Which battery model to use?," IET Softw, vol. 3, no. 6, pp. 445-457, 2009.

[13] M. Chen and G. A. Rincon-Mora, "Accurate electrical battery model capable of predicting runtime and I-V performance," IEEE Transactions on Energy Conversion, vol. 21, no. 2, pp. 504-511, 2006.

[14] S. Peck, T. Olszanski, S. Zanardelli and M. Pierce, "Validation of a Thermal-Electric Li-Ion Battery Model," SAE International, vol. 5, no. 1, pp. 154-163, 2012.

Page 109: A New Approach to Battery Management System Control Design

98

[15] J. Li and M. S. Mazzola, "Accurate battery pack modeling for automotive applications," Journal of Power Sources, vol. 237, pp. 215-228, 2013.

[16] C. Sen and N. C. Kar, "Battery pack modeling for the analysis of battery management system of a hybrid electric vehicle," in Vehicle Power and Propulsion Conference, 2009.

[17] B. J. Yurkovich, "Electrothermal Battery Pack Modeling and Simulation," 2010. [Online]. Available: https://etd.ohiolink.edu/rws_etd/document/get/osu1281632214/inline.

[18] University of Colorado, Boulder, "Today: Battery pack modeling and BMS," 2014. [Online]. Available: http://ecee.colorado.edu/~ecen5017/lectures/CU/L15_slides.pdf.

[19] A. Cordoba-Arenas, S. Onori and G. Rizzoni, "A control-oriented lithium-ion battery pack model for plug-in hybrid electric vehicle cycle-life studies and system design with consideration of health management," Journal of Power Sources, vol. 279, pp. 791-808, 2015.

[20] C. Lin, A. Tang and W. Wang, "A review of SOH estimation methods in Lithium-ion batteries for electric vehicle applications," in International Conference on Applied Energy, 2015.

[21] Y. Zou, X. Hu, H. Ma and S. E. Li, "Combined State of Charge and State of Health estimation over lithium-ion battery cell cycle lifespan for electric vehicles," Journal of Power Sources, pp. 793-803, 2015.

[22] J. Bi, T. Zhang, H. Yu and Y. Kang, "State-of-health estimation of lithium-ion battery packs in electric vehicles based on genetic resampling particle filter," Applied Energy, pp. 558-568, 2016.

[23] M. Daowd, N. Omar, P. V. D. Bossche and J. V. Mierlo, "A Review of Passive and Active Battery Balancing based on MATLAB/Simulink," International Review of Electrical Engineering, vol. xx, no. x, 2011.

[24] J. H. Pikul, H. G. Zhang, J. Cho, P. V. Braun and W. P. King, "High-power lithium ion microbatteries from interdigitated three-dimensional bicontinuous nanoporous electrodes," natureresearch journal, 16 April 2013.

[25] Battery University, "The High-power Lithium-ion," 2017. [Online]. Available: http://batteryuniversity.com/learn/archive/the_high_power_lithium_ion.

[26] J. E. B. Randles, "KINETICS OF RAPID ELECTRODE REACTIONS," Discussions of the Faraday Society, vol. 1, 1 January 1947.

[27] MathWorks, "Model batteries when designing battery-powered systems," 2017. [Online]. Available: https://www.mathworks.com/discovery/battery-models.html.

[28] A. Li, S. Pelissier, P. Venet and P. Gyan, "Fast Characterization Method for Modeling Battery Relaxation Voltage," Batteries, vol. 2, no. 7, 6 April 2016.

[29] A. M. Dhirde, N. V. Dale, H. Salehfar, M. D. Mann and T.-H. Han, "Equivalent Electric Circuit Modeling and Performance Analysis of a PEM Fuel Cell Stack Using Impedance Spectroscopy," IEEE Transactions on Energy Conversion, vol.

Page 110: A New Approach to Battery Management System Control Design

99

25, no. 3, pp. 778-786, 2010. [30] Metrohm, "Electrochemical Impedance Spectroscopy (EIS): Part 3 - Data

Analysis," [Online]. Available: http://www.ecochemie.nl/download/Applicationnotes/Autolab_Application_Note_EIS03.pdf.

[31] C. Lim, "IV. Transport Phenomena: Lecture 20: Warburg Impedance," 2014. [Online]. Available: https://ocw.mit.edu/courses/chemical-engineering/10-626-electrochemical-energy-systems-spring-2014/lecture-notes/MIT10_626S14_S11lec20.pdf.

[32] M. A. Roscher and D. U. Sauer, "Dynamic electric behavior and open-circuit-voltage modeling of LiFePO4-based," Journal of Power Sources, vol. 196, no. 1, pp. 331-336, 2011.

[33] M. A. Roscher, O. Bohlen and J. Vetter, "OCV Hysteresis in Li-Ion Batteries including Two-Phase Transition Materials," International Journal of Electrochemistry, 2011.

[34] Woodback Communications Ltd, "Battery Chargers and Charging Methods," 2005. [Online]. Available: http://www.mpoweruk.com/images/bat_hysteresis.gif.

[35] R. Ahmed, J. Gazzarri, S. Onori, S. Habibi, R. Jackey, K. Rzemien, J. Tjong and J. LeSage, "Model-Based Parameter Identification of Healthy and Aged Li-ion Batteries for Electric Vehicle Applications," SAE International, 2015.

[36] R. Jackey, M. Saginaw, P. Sanghvi, J. Gazzarri, T. Huria and M. Ceraolo, "Battery Model Parameter Estimation Using a Layered Technique: An Example Using a Lithium Iorn Phosphate Cell," in SAE World Congress, 2013.

[37] P. Keil, S. F. Schuster, J. Wilhelm, J. Travi, A. Hauser, R. C. Karl and A. Jossen, "Calendar Aging of Lithium-Ion Batteries," Journal of the Electrochemical Society, vol. 163, no. 9, 2016.

[38] F. Todeschini, S. Onori and G. Rizzoni, "An experimentally validated capacity degradation model for Li-ion batteries in PHEVs applications," in IFAC Symposium on Fault Detection, Mexico City, Mexico, 2012.

[39] A. Cordoba-Arenas, S. Onori, G. Rizzoni and G. Fan, "Aging propagation in advanced battery systems: Preliminary results," in IFAC, 2013.

[40] Woodback Communications Ltd, "Traction Batteries for EV and HEV Applications," 2005. [Online]. Available: http://www.mpoweruk.com/traction.htm.

[41] R. E. Araujo, R. d. Castro, C. Pinto, P. Melo and D. Freitas, "Combined Sizing and Energy Management in EVs With Batteries and Supercapacitors," IEEE Transactions on Vehicular Technology, vol. 63, no. 7, pp. 3062-3076, 2014.

[42] Iowa State University, "Palmgren-Miner Rule," 2009. [Online]. Available: http://www.public.iastate.edu/~e_m.424/Palmgren-Miner.pdf.

[43] M. Todinov, "Necessary and sufficient condition for additivity in the sense of the Palmgren–Miner rule," Computational Materials Science, vol. 21, no. 1, pp. 101-110, 2001.

Page 111: A New Approach to Battery Management System Control Design

100

[44] C. Pinto, J. V. Barreras, E. Schaltz and R. E. Araujo, "Evaluation of Advanced Control for Li-ion Battery Balancing Systems Using Convex Optimization," IEEE Transactions on Sustainable Energy, vol. 7, no. 4, pp. 1703-1717, 2016.

[45] L. Lu, X. Han, J. Li, J. Hua and M. Ouyang, "A review on the key issues for lithium-ion battery management in electric vehicles," Journal of Power Sources, vol. 226, pp. 272-288, 2013.

[46] L. Yarris, "Roots of the Lithium Battery Problem: Berkeley Lab Researchers Find Dendrites Start Below the Surface," Berkeley Lab, 22 May 2014. [Online]. Available: http://newscenter.lbl.gov/2013/12/17/roots-of-the-lithium-battery/.

[47] M. Daowd, M. Antoine, N. Omar, P. Lataire, P. V. D. Bossche and J. V. Mierlo, "Battery Management System—Balancing Modularization Based on a Single Switched Capacitor and Bi-Directional DC/DC Converter with the Auxiliary Battery," Energies, pp. 2897-2937, 2014.

[48] M. Brandl, H. Gall, M. Wenger, V. Lorentz, M. Giegerich, F. Baronti, G. Fantechi, L. Fanucci, R. Roncella, R. Saletti, S. Saponara, A. Thaler, M. Cifrain and W. Prochazka, "Batteries and Battery Management Systems," in Design, Automation & Test in Europe Conference & Exhibition (DATE), 2012.

[49] Zen Energy Systems, "System Overview," 7 April 2016. [Online]. Available: http://www.zenenergy.co.nz/home-energy/energy-storage/system-overview/.

[50] S. Collings, "Understanding Two MOSFET with sources connected," 15 August 2013. [Online]. Available: https://electronics.stackexchange.com/questions/79028/understanding-two-mosfet-with-sources-connected.

[51] M. Daowd, M. Antoine, N. Omar, P. v. d. Bossche and J. v. Mierlo, "Single Switched Capacitor Battery Balancing System Enhancements," energies, vol. 6, pp. 2149-2174, 2016.

[52] Vishay, "IRF510, SiHF510 Power MOSFET," 13 June 2016. [Online]. Available: http://www.vishay.com/docs/91015/sihf510.pdf.

[53] M. Mets, "Ask MAKE: Using an optocoupler," 6 October 2009. [Online]. Available: http://makezine.com/2009/10/06/ask-make-using-an-optocoupler/.

[54] Intersil, "Battery Management System Tutorial," [Online]. Available: https://www.mouser.com/pdfdocs/isl94203wpbatterymanagementsystemtutorial.PDF.

[55] B. Giovino, "Making Sense of Current Sensing," Mouser Press Room, 2017. [56] P. Semig and C. Wells, "A Current Sensing Tutorial - Part II: Devices," EETimes,

15 February 2012. [57] D. Li, "Current Shunt &Voltage Measurement Reference Design for EV/HEV

Automotive Battery Monitoring," October 2015. [Online]. Available: http://www.ti.com/lit/ug/tidua81/tidua81.pdf.

[58] M. M. Hoque, M. A. Hannan and A. Mohamed, "Voltage Equalization for Series Connected Lithium-Ion Battery Cells," in IEEE International Conference on Smart

Page 112: A New Approach to Battery Management System Control Design

101

Instrumentation, Measurement, and Applications, Putrajaya, Malaysia, 2015. [59] C. Piao, Z. Wang, J. Cao, W. Zhang and S. Lu, "Lithium-Ion Battery Cell-

Balancing Algorithm for Battery Management System Based on Real-Time Outlier Detection," Mathematical Problems in Engineering, vol. 2015, 2015.

[60] G. Wan, G. Yin, Q. Zhanf and Y. Fan, "A bidirectional equalization method of Lithium ion Batteries," in IEEE 9th Conference on Industrial Electronics and Applications, 2014.

[61] W. Li, Y. Fu, T. Liu, P. Chu, J. Wang and H. Chen, "Battery Equalization Based on State of Charge," in International Conference on Systems and Informatics, 2014.

[62] A. Mukherjee, "Advances in Battery Management Using Neural Networks and Fuzzy Logic," 16 May 2003. [Online]. Available: https://courses.cit.cornell.edu/engrwords/final_reports/Mukherjee_A_issue_1.pdf.

[63] J. Kim, "Fuzzy Logic-Controlled Online State-of-Health (SOH) Prediction in Large Format LiMn2O4 Cell for Energy Storage System (ESS) Applications," in International Conference on Industrial Technology, Busan, Korea, 2014.

[64] P. Ananto, F. Syabani, W. D. Indra, O. Wahyunggoro and A. I. Cahyadi, "The State Of Health of Li-Po Batteries Based on the Battery's Parameters and a Fuzzy Logic System," in Joint International Conference on Rural Information & Communication Technology and Electric-Vehicle Technology, Bangdung-Bali, Indonesia, 2013.

[65] C. Song, Y. Shao, S. Song, C. Chang, F. Zhou and S. Peng, "Energy Management of Parallel-Connected Cells in Electric Vehicles Based on Fuzzy Logic Control," Energies, 2017.

[66] MathWorks, "Customization," MathWorks, 2017. [Online]. Available: https://www.mathworks.com/help/physmod/simscape/customization.html.

[67] MathWorks, "Generate Simscape Equations from Symbolic Expressions," MathWorks, 2017. [Online]. Available: https://www.mathworks.com/help/symbolic/generate-simscape-equations.html.

[68] United States Environmental Protection Agency, "Dynamometer Drive Schedules," United States Environmental Protection Agency, 2017. [Online]. Available: https://www.epa.gov/vehicle-and-fuel-emissions-testing/dynamometer-drive-schedules.

[69] J. Gallardo-Lozano, E. Romero-Cadaval, M. I. Milanes-Montero and M. A. Guerrero-Martinez, "Battery equalization active methods," Journal of Power Sources, pp. 934-949, 2014.

[70] M. D. Yin, J. Youn, D. Park and J. Cho, "Efficient Frequency and Duty Cycle Control Method for Fast Pulse-Charging of Distributed Battery Packs by Sharing Cell Status," in IEEE 12th Intl Conf on Ubiquitous Intelligence and Computing and 2015 IEEE 12th Intl Conf on Autonomic and Trusted Computing and 2015 IEEE 15th Intl Conf on Scalable Computing and Communications and Its Associated Workshops (UIC-ATC-ScalCom), 2015.

Page 113: A New Approach to Battery Management System Control Design

102

[71] J. T. Warner, The Handbook of Lithium-Ion Battery Pack Design: Chemistry, Components, Types and Terminology, Grand Blanc, MI: Elsevier, 2015, p. 172.

[72] Fairchild Semiconductor, "FQP30N06L - N-Channel QFET® MOSFET," November 2013. [Online]. Available: http://datasheet.octopart.com/FQP30N06L-Fairchild-Semiconductor-datasheet-68820108.pdf.

[73] Vishay, "IRF530, SiHF530: Power MOSFET," 21 March 2011. [Online]. Available: http://www.vishay.com/docs/91019/91019.pdf.

[74] International Rectifier, "IRLZ34NPbF HEXFET Power MOSFET," 11 November 2003. [Online]. Available: http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720.

[75] ON Semiconductor, "NTP60N06L: Power MOSFET 60 Amps, 60 Volts, Logic Level," 2005. [Online]. Available: http://www.onsemi.com/pub/Collateral/NTP60N06L-D.PDF.

[76] G. L. Plett, "Equivalent-Circuit Cell Models," 2016. [Online]. Available: http://mocha-java.uccs.edu/ECE5710/ECE5710-Notes02.pdf.

[77] I. Arasaratnam, J. Tjong and S. Habibi, "Switched-Capacitor Cell Balancing: A Fresh Perspective," SAE Technical Paper, 2014.