Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ELECTRICAL ENERGY STORAGE SYSTEM WITH BATTERY RESISTANCE ESTIMATION
Document Type and Number:
WIPO Patent Application WO/2018/022134
Kind Code:
A1
Abstract:
An electrical energy storage system (500) includes a battery container (510), one or more temperature sensors (503), and a controller (502). The battery container includes one or more batteries (515) configured to store and discharge electrical energy. The temperature sensors (503) are configured to measure one or more temperatures associated with the battery container (510). The controller is configured to estimate a rate of heat generation by the one or more batteries (515) based on the measured temperatures, monitor an electric current provided to the one or more batteries, and estimate a resistance of the one or more batteries (515) based on the estimated rate of heat generation and the electric current.

Inventors:
DREES KIRK (US)
Application Number:
PCT/US2017/014191
Publication Date:
February 01, 2018
Filing Date:
January 19, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
JOHNSON CONTROLS TECH CO (US)
International Classes:
G01R31/36; H01M10/48; H02J3/32
Domestic Patent References:
WO2016091577A12016-06-16
WO2008058284A22008-05-15
Foreign References:
DE102015117914A12016-05-04
KR20150131773A2015-11-25
US201514717593A2015-05-20
US201514634609A2015-02-27
US201562239246P2015-10-08
US201562239245P2015-10-08
US201562239131P2015-10-08
US201562239231P2015-10-08
US201562239233P2015-10-08
US201562239245P2015-10-08
US201562239246P2015-10-08
US201562239249P2015-10-08
Other References:
HANS-GEORG SCHWEIGER ET AL: "Comparison of Several Methods for Determining the Internal Resistance of Lithium Ion Cells", SENSORS, vol. 10, no. 6, 3 June 2010 (2010-06-03), pages 5604 - 5625, XP055244934, DOI: 10.3390/s100605604
VERTIZ G ET AL: "Thermal characterization of large size lithium-ion pouch cell based on 1d electro-thermal model", JOURNAL OF POWER SOURCES, ELSEVIER SA, CH, vol. 272, 2 September 2014 (2014-09-02), pages 476 - 484, XP029048986, ISSN: 0378-7753, DOI: 10.1016/J.JPOWSOUR.2014.08.092
Attorney, Agent or Firm:
ZIEBERT, Joseph et al. (US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1. An electrical energy storage system comprising:

a battery container comprising one or more batteries configured to store and discharge electrical energy;

one or more temperature sensors configured to measure one or more temperatures associated with the battery container; and

a controller configured to:

estimate a rate of heat generation by the one or more batteries based on the measured temperatures;

monitor an electric current provided to the one or more batteries; and estimate a resistance of the one or more batteries based on the estimated rate of heat generation and the electric current.

2. The electrical energy storage system of Claim 1, wherein the controller is configured to calculate one or more operating parameters of the batteries based on the estimated resistance, the operating parameters comprising at least one of:

a maximum state-of-charge of the batteries;

a maximum charging/discharging power of the batteries;

a power storage efficiency of the batteries; or

a health of the batteries.

3. The electrical energy storage system of Claim 2, wherein the controller is configured to use the calculated operating parameters to generate battery power setpoints for the one or more batteries.

4. The electrical energy storage system of Claim 1, wherein the controller is configured to:

monitor the estimated resistance of the one or more batteries over time; and detect a fault in the electrical energy storage system in response to the estimated resistance crossing a resistance threshold.

5. The electrical energy storage system of Claim 1, wherein the controller is configured to:

apply the estimated resistance of the one or more batteries as an input to a battery life model; and

use the battery life model to predict a remaining life of the one or more batteries as a function of the estimated resistance.

6. The electrical energy storage system of Claim 1, wherein the controller is configured to estimate the rate of heat generation by the one or more batteries by:

calculating a rate of heat flow into the battery container;

calculating a rate of heat flow out of the battery container; and

subtracting the rate of heat flow into the battery container from the rate of heat flow out of the battery container to determine the rate of heat generation by the one or more batteries.

7. The electrical energy storage system of Claim 1, wherein the one or more temperature sensors comprise:

a supply air temperature sensor configured to measure a temperature of supply air provided to battery container; and

a return air temperature sensor configured to measure a temperature of return air returning from the battery container.

8. The electrical energy storage system of Claim 7, wherein the controller is configured to:

calculate a rate of heat flow into the battery container based on the measured temperature of the supply air;

calculate a rate of heat flow out of the battery container based on the measured temperature of the return air; and

estimate the rate of the heat generation by the one or more batteries based on a difference between the rate of heat flow out of the battery container and the rate of heat flow into the battery container.

9. The electrical energy storage system of Claim 1, further comprising an HVAC system configured to provide cooling for the battery container;

wherein the controller is configured to estimate the rate of heat generation by the one or more batteries based on a rate at which heat is removed from the battery container by the HVAC system.

10. The electrical energy storage system of Claim 1, wherein the controller is configured to:

estimate the rate of heat generation by the one or more batteries at each of a plurality of time steps within a time horizon;

determine the electric current provided to the one or more batteries at each of the plurality of time steps;

generate an integrated heat generation value and an integrated electric current value by integrating the estimated rates of heat generation and the determined electric currents over the time horizon; and

estimate the resistance of the one or more batteries based on the integrated heat generation value and the integrated electric current value.

11. A method for operating an electrical energy storage system, the method comprising: storing and discharging electrical energy in one or more batteries within a battery container;

measuring one or more temperatures associated with the battery container;

estimating a rate of heat generation by the one or more batteries based on the measured temperatures;

monitoring an electric current provided to the one or more batteries; and

estimating a resistance of the one or more batteries based on the estimated rate of heat generation and the electric current.

12. The method of Claim 11, further comprising calculating one or more operating parameters of the batteries based on the estimated resistance, the operating parameters comprising at least one of:

a maximum state-of-charge of the batteries;

a maximum charging/discharging power of the batteries;

a power storage efficiency of the batteries; or

a health of the batteries.

13. The method of Claim 12, further comprising using the calculated operating parameters to generate battery power setpoints for the one or more batteries.

14. The method of Claim 11, further comprising:

monitoring the estimated resistance of the one or more batteries over time; and detecting a fault in the electrical energy storage system in response to the estimated resistance crossing a resistance threshold.

15. The method of Claim 11, further comprising:

applying the estimated resistance of the one or more batteries as an input to a battery life model; and

using the battery life model to predict a remaining life of the one or more batteries as a function of the estimated resistance.

16. The method of Claim 11, wherein estimating the rate of heat generation by the one or more batteries comprises:

calculating a rate of heat flow into the battery container;

calculating a rate of heat flow out of the battery container; and

subtracting the rate of heat flow into the battery container from the rate of heat flow out of the battery container to determine the rate of heat generation by the one or more batteries.

17. The method of Claim 11, wherein measuring the one or more temperatures associated with the battery container comprises:

measuring a temperature of supply air provided to battery container; and measuring a temperature of return air returning from the battery container.

18. The method of Claim 17, wherein estimating the rate of heat generation by the one or more batteries comprises:

calculating a rate of heat flow into the battery container based on the measured temperature of the supply air;

calculating a rate of heat flow out of the battery container based on the measured temperature of the return air; and

estimating the rate of the heat generation by the one or more batteries based on a difference between the rate of heat flow out of the battery container and the rate of heat flow into the battery container.

19. The method of Claim 11, further comprising operating an HVAC system to provide cooling for the battery container;

wherein the rate of heat generation by the one or more batteries is estimated based on a rate at which heat is removed from the battery container by the HVAC system.

20. The method of Claim 11, further comprising:

estimating the rate of heat generation by the one or more batteries at each of a plurality of time steps within a time horizon;

determining the electric current provided to the one or more batteries at each of the plurality of time steps;

generating an integrated heat generation value and an integrated electric current value by integrating the estimated rates of heat generation and the determined electric currents over the time horizon; and

estimating the resistance of the one or more batteries based on the integrated heat generation value and the integrated electric current value.

Description:
ELECTRICAL ENERGY STORAGE SYSTEM WITH

BATTERY RESISTANCE ESTIMATION

CROSS-REFERENCE TO RELATED PATENT APPLICATIONS

[0001] This application claims the benefit of and priority to U.S. Provisional Patent Application No. 62/368,888 filed July 29, 2016, and U.S. Patent Application No.

15/406,596 filed January 13, 2017. The entire disclosures of both these patent applications are incorporated by reference herein.

BACKGROUND

[0002] The present disclosure relates generally to an electrical energy storage system. The present disclosure relates more particularly to an electrical energy storage system which estimates the internal cell resistance of batteries used to store electrical energy.

[0003] Electrical energy storage (e.g., batteries) can be used for several applications, two of which are ramp rate control and frequency regulation. Ramp rate control is the process of offsetting ramp rates (i.e., increases or decreases in the power output of an energy system such as a photovoltaic energy system) that fall outside of compliance limits determined by the electric power authority overseeing the energy grid. Ramp rate control typically requires the use of an energy source that allows for offsetting ramp rates by either supplying additional power to the grid or consuming more power from the grid. In some instances, a facility is penalized for failing to comply with ramp rate requirements.

[0004] Frequency regulation (also referred to as frequency response) is the process of maintaining the grid frequency at a desired value (e.g. 60 Hz in the United States) by adding or removing energy from the grid as needed. During a fluctuation of the grid frequency, a frequency regulation system may offset the fluctuation by either drawing more energy from the energy grid (e.g., if the grid frequency is too high) or by providing energy to the energy grid (e.g., if the grid frequency is too low). A facility participating in a frequency regulation program may receive a regulation signal from a utility or other entity responsible for regulating the frequency of the energy grid. In response to the regulation signal, the facility adds or removes energy from the energy grid. The facility may be provided with monetary incentives or awards in exchange for participating in the frequency regulation program. [0005] Storing electrical energy in a battery may allow a facility to perform frequency regulation and/or ramp rate control. However, repeatedly charging and discharging the battery may cause battery degradation and reduce battery life. Battery degradation can affect various operating parameters such as the battery's maximum state of charge and charging/discharging power. Changes in these parameters can decrease the battery's ability to store and discharge energy and can reduce the potential for participating in frequency regulation programs. Optimal battery control often relies upon accurate values for these operating parameters. However, it can be difficult to measure battery degradation and predict the resultant change in battery operating parameters.

SUMMARY

[0006] One implementation of the present disclosure is an electrical energy storage system. The system includes a battery container including one or more batteries configured to store and discharge electrical energy, one or more temperature sensors configured to measure one or more temperatures associated with the battery container, and a controller. The controller is configured to estimate a rate of heat generation by the one or more batteries based on the measured temperatures, monitor an electric current provided to the one or more batteries, and estimate a resistance of the one or more batteries based on the estimated rate of heat generation and the electric current.

[0007] In some embodiments, the controller is configured to calculate one or more operating parameters of the batteries based on the estimated resistance. The operating parameters may include at least one of a maximum state-of-charge of the batteries, a maximum charging/discharging power of the batteries, a power storage efficiency of the batteries, and/or a health of the batteries. In some embodiments, the controller is configured to use the calculated operating parameters to generate battery power setpoints for the one or more batteries.

[0008] In some embodiments, the controller is configured to monitor the estimated resistance of the one or more batteries over time and detect a fault in the electrical energy storage system in response to the estimated resistance crossing a resistance threshold.

[0009] In some embodiments, the controller is configured to apply the estimated resistance of the one or more batteries as an input to a battery life model and use the battery life model to predict a remaining life of the one or more batteries as a function of the estimated resistance.

[0010] In some embodiments, the controller is configured to estimate the rate of heat generation by the one or more batteries by calculating a rate of heat flow into the battery container, calculating a rate of heat flow out of the battery container, and subtracting the rate of heat flow into the battery container from the rate of heat flow out of the battery container to determine the rate of heat generation by the one or more batteries.

[0011] In some embodiments, the one or more temperature sensors include a supply air temperature sensor configured to measure a temperature of supply air provided to battery container and a return air temperature sensor configured to measure a temperature of return air returning from the battery container. In some embodiments, the controller is configured to calculate a rate of heat flow into the battery container based on the measured temperature of the supply air, calculate a rate of heat flow out of the battery container based on the measured temperature of the return air, and estimate the rate of the heat generation by the one or more batteries based on a difference between the rate of heat flow out of the battery container and the rate of heat flow into the battery container.

[0012] In some embodiments, the system includes an HVAC system configured to provide cooling for the battery container. The controller can be configured to estimate the rate of heat generation by the one or more batteries based on a rate at which heat is removed from the battery container by the HVAC system.

[0013] In some embodiments, the controller is configured to estimate the rate of heat generation by the one or more batteries at each of a plurality of time steps within a time horizon, determine the electric current provided to the one or more batteries at each of the plurality of time steps, generate an integrated heat generation value and an integrated electric current value by integrating the estimated rates of heat generation and the determined electric currents over the time horizon, and estimate the resistance of the one or more batteries based on the integrated heat generation value and the integrated electric current value.

[0014] Another implementation of the present disclosure is a method for operating an electrical energy storage system. The method includes storing and discharging electrical energy in one or more batteries within a battery container, measuring one or more temperatures associated with the battery container, estimating a rate of heat generation by the one or more batteries based on the measured temperatures, monitoring an electric current provided to the one or more batteries, and estimating a resistance of the one or more batteries based on the estimated rate of heat generation and the electric current.

[0015] In some embodiments, the method includes calculating one or more operating parameters of the batteries based on the estimated resistance. The operating parameters may include at least one of a maximum state-of-charge of the batteries, a maximum charging/discharging power of the batteries, a power storage efficiency of the batteries, and/or a health of the batteries. In some embodiments, the method includes using the calculated operating parameters to generate battery power setpoints for the one or more batteries.

[0016] In some embodiments, the method includes monitoring the estimated resistance of the one or more batteries over time and detecting a fault in the electrical energy storage system in response to the estimated resistance crossing a resistance threshold.

[0017] In some embodiments, the method includes applying the estimated resistance of the one or more batteries as an input to a battery life model and using the battery life model to predict a remaining life of the one or more batteries as a function of the estimated resistance.

[0018] In some embodiments, estimating the rate of heat generation by the one or more batteries includes calculating a rate of heat flow into the battery container, calculating a rate of heat flow out of the battery container, and subtracting the rate of heat flow into the battery container from the rate of heat flow out of the battery container to determine the rate of heat generation by the one or more batteries.

[0019] In some embodiments, measuring the one or more temperatures associated with the battery container includes measuring a temperature of supply air provided to battery container and measuring a temperature of return air returning from the battery container. In some embodiments, estimating the rate of heat generation by the one or more batteries includes calculating a rate of heat flow into the battery container based on the measured temperature of the supply air, calculating a rate of heat flow out of the battery container based on the measured temperature of the return air, and estimating the rate of the heat generation by the one or more batteries based on a difference between the rate of heat flow out of the battery container and the rate of heat flow into the battery container.

[0020] In some embodiments, the method includes operating an HVAC system to provide cooling for the battery container. The rate of heat generation by the one or more batteries may be estimated based on a rate at which heat is removed from the battery container by the HVAC system.

[0021] In some embodiments, the method includes estimating the rate of heat generation by the one or more batteries at each of a plurality of time steps within a time horizon, determining the electric current provided to the one or more batteries at each of the plurality of time steps, generating an integrated heat generation value and an integrated electric current value by integrating the estimated rates of heat generation and the determined electric currents over the time horizon, and estimating the resistance of the one or more batteries based on the integrated heat generation value and the integrated electric current value.

[0022] Those skilled in the art will appreciate that the summary is illustrative only and is not intended to be in any way limiting. Other aspects, inventive features, and advantages of the devices and/or processes described herein, as defined solely by the claims, will become apparent in the detailed description set forth herein and taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG. 1 is a block diagram of a frequency response optimization system, according to an exemplary embodiment.

[0024] FIG. 2 is a graph of a regulation signal which may be provided to the system of FIG. 1 and a frequency response signal which may be generated by the system of FIG. 1, according to an exemplary embodiment.

[0025] FIG. 3 is a block diagram of a photovoltaic energy system configured to simultaneously perform both ramp rate control and frequency regulation while maintaining the state-of-charge of a battery within a desired range, according to an exemplary embodiment. [0026] FIG. 4 is a drawing illustrating the electric supply to an energy grid and electric demand from the energy grid which must be balanced in order to maintain the grid frequency, according to an exemplary embodiment.

[0027] FIG. 5 is a block diagram of an electrical energy storage system which can be implemented as part of the frequency response optimization system of FIG. 1 and/or the photovoltaic energy system FIG. 3, according to an exemplary embodiment.

[0028] FIG. 6 is a block diagram illustrating a controller which can be used to control the electrical energy storage system of FIG. 5, according to an exemplary embodiment.

[0029] FIG. 7 is a flow diagram of a process which can be performed by the electrical energy storage system of FIG. 5 to estimate battery cell resistance, according to an exemplary embodiment.

[0030] FIG. 8 is a flow diagram of a process which can be performed by the electrical energy storage system of FIG. 5 to calculate operating parameters, estimate remaining battery life, predict faults, and determine battery power setpoints based on an estimated battery cell resistance, according to an exemplary embodiment.

DETAILED DESCRIPTION

Overview

[0031] Referring generally to the FIGURES, systems and methods for controlling and using electrical energy storage are shown, according to various exemplary embodiments. Storing electrical energy in a battery may allow a facility to perform frequency regulation and/or ramp rate control. However, repeatedly charging and discharging the battery may cause battery degradation and reduce battery life. Battery degradation can affect various operating parameters such as the battery's maximum state of charge and

charging/discharging power. Changes in these parameters can decrease the battery's ability to store and discharge energy and can reduce the potential for participating in frequency regulation programs. Optimal battery control often relies upon accurate values for these operating parameters. However, it can be difficult to measure battery degradation and predict the resultant change in battery operating parameters.

[0032] The systems and methods described herein use the internal cell resistance of the battery to quantify battery degradation. Battery cell resistance is a good indicator of battery health and remaining battery life. Advantageously, the systems and methods of the present disclosure estimate battery cell resistance based on the amount of heat generated by the battery and the battery current. For example, battery heat generation can be modeled using the following equation:

Qbat = i 2 Rcell

where Q bat is the rate of heat generation by the battery, i is the electric current through the battery, and R ce u is the internal cell resistance of the battery. Battery current i can be measured directly, whereas battery heat generation Q bat can be calculated based on data from a HVAC system used to cool the battery.

[0033] In some embodiments, the battery includes a collection of battery cells or modules that are connected into strings to achieve the desired voltage. The battery strings can be arranged in parallel with one another and packaged in a closed battery container. The battery container can be cooled by a HVAC system to remove the heat Q bat generated by the battery. The battery heat generation Q bat can be calculated based on data from the HVAC system. For example, the battery container can be insulated such that the only heat transfer into or out of the battery container is via the HVAC system. Temperature and airflow measurements from the HVAC system can be used to determine the heat transfer Q in into the battery container (e.g., via a supply air duct) and heat transfer Q out out of the battery container (e.g., via a return air duct). The battery heat generation Q bat can be calculated as the difference between Q out and Q in (e.g., Qbat— Qout ~ Qin)- The battery cell resistance R ce u can then be calculated based on the battery heat generation Q bat .

[0034] The battery cell resistance R ce u can be used to predict battery operating parameters

(e.g., maximum state of charge, maximum charging or discharging power, etc.), which can be used by a battery controller to determine optimal battery power setpoints. The battery cell resistance R ce u can also be used in a battery life model as an indicator of remaining battery life. In some embodiments, the battery cell resistance R ce u can be used to detect faults in the electrical energy storage system. For example, the battery cell resistance R ce u can be monitored over time and compared to a threshold value. The battery controller can output a fault indication in response to a determination that the battery cell resistance R ce u has crossed the threshold value. A history of values of the battery cell resistance R ce u can be used to generate a function or model (e.g., a battery degradation model) which predicts future values of the battery cell resistance R ceU and/or battery health. The model can be used to predict future battery faults and project battery health into the future.

[0035] The following sections of this disclosure describe the battery cell resistance estimation technique in greater detail as well as several electrical energy storage systems which can use the estimation technique. For example, the battery cell resistance estimation technique can be used in a frequency response optimization system. The frequency response implementation is described with reference to FIGS. 1-2. The battery cell resistance estimation technique can also be used in a photovoltaic (PV) energy system that simultaneously performs both frequency regulation and ramp rate control. The PV energy system implementation is described with reference to FIGS. 3-4. The battery cell resistance estimation technique is described in greater detail with reference to FIGS. 5-7.

Frequency Response Optimization

[0036] Referring now to FIG. 1, a frequency response optimization system 100 is shown, according to an exemplary embodiment. System 100 is shown to include a campus 102 and an energy grid 104. Campus 102 may include one or more buildings 116 that receive power from energy grid 104. Buildings 116 may include equipment or devices that consume electricity during operation. For example, buildings 116 may include HVAC equipment, lighting equipment, security equipment, communications equipment, vending machines, computers, electronics, elevators, or other types of building equipment. In some

embodiments, buildings 116 are served by a building management system (BMS). A BMS is, in general, a system of devices configured to control, monitor, and manage equipment in or around a building or building area. A BMS can include, for example, a HVAC system, a security system, a lighting system, a fire alerting system, and/or any other system that is capable of managing building functions or devices. An exemplary building management system which may be used to monitor and control buildings 116 is described in U.S. Patent Application No. 14/717,593, titled "Building Management System for Forecasting Time Series Values of Building Variables" and filed May 20, 2015, the entire disclosure of which is incorporated by reference herein.

[0037] In some embodiments, campus 102 includes a central plant 118. Central plant 118 may include one or more subplants that consume resources from utilities (e.g., water, natural gas, electricity, etc.) to satisfy the loads of buildings 116. For example, central plant 118 may include a heater subplant, a heat recovery chiller subplant, a chiller subplant, a cooling tower subplant, a hot thermal energy storage (TES) subplant, and a cold thermal energy storage (TES) subplant, a steam subplant, and/or any other type of subplant configured to serve buildings 116. The subplants may be configured to convert input resources (e.g., electricity, water, natural gas, etc.) into output resources (e.g., cold water, hot water, chilled air, heated air, etc.) that are provided to buildings 116. An exemplary central plant which may be used to satisfy the loads of buildings 116 is described U.S. Patent Application No. 14/634,609, titled "High Level Central Plant Optimization" and filed February 27, 2015, the entire disclosure of which is incorporated by reference herein.

[0038] In some embodiments, campus 102 includes energy generation 120. Energy generation 120 may be configured to generate energy that can be used by buildings 116, used by central plant 118, and/or provided to energy grid 104. In some embodiments, energy generation 120 generates electricity. For example, energy generation 120 may include an electric power plant, a photovoltaic energy field, or other types of systems or devices that generate electricity. The electricity generated by energy generation 120 can be used internally by campus 102 (e.g., by buildings 116 and/or campus 118) to decrease the amount of electric power that campus 102 receives from outside sources such as energy grid 104 or battery 108. If the amount of electricity generated by energy generation 120 exceeds the electric power demand of campus 102, the excess electric power can be provided to energy grid 104 or stored in battery 108. The power output of campus 102 is shown in FIG. 1 as Pcampus- Pcampus ma y be positive if campus 102 is outputting electric power or negative if campus 102 is receiving electric power.

[0039] Still referring to FIG. 1, system 100 is shown to include a power inverter 106 and a battery 108. Power inverter 106 may be configured to convert electric power between direct current (DC) and alternating current (AC). For example, battery 108 may be configured to store and output DC power, whereas energy grid 104 and campus 102 may be configured to consume and generate AC power. Power inverter 106 may be used to convert DC power from battery 108 into a sinusoidal AC output synchronized to the grid frequency of energy grid 104. Power inverter 106 may also be used to convert AC power from campus 102 or energy grid 104 into DC power that can be stored in battery 108. The power output of battery 108 is shown as P bat . P bat may be positive if battery 108 is providing power to power inverter 106 or negative if battery 108 is receiving power from power inverter 106.

[0040] In some instances, power inverter 106 receives a DC power output from battery 108 and converts the DC power output to an AC power output that can be fed into energy grid 104. Power inverter 106 may synchronize the frequency of the AC power output with that of energy grid 104 (e.g., 50 Hz or 60 Hz) using a local oscillator and may limit the voltage of the AC power output to no higher than the grid voltage. In some embodiments, power inverter 106 is a resonant inverter that includes or uses LC circuits to remove the harmonics from a simple square wave in order to achieve a sine wave matching the frequency of energy grid 104. In various embodiments, power inverter 106 may operate using high-frequency transformers, low-frequency transformers, or without transformers. Low-frequency transformers may convert the DC output from battery 108 directly to the AC output provided to energy grid 104. High-frequency transformers may employ a multi- step process that involves converting the DC output to high-frequency AC, then back to DC, and then finally to the AC output provided to energy grid 104.

[0041] System 100 is shown to include a point of interconnection (POI) 1 10. POI 1 10 is the point at which campus 102, energy grid 104, and power inverter 106 are electrically connected. The power supplied to POI 1 10 from power inverter 106 is shown as P sup . P sup may be defined as P bat + Pi oss , where Pbatt is th e battery power and P ioss is the power loss in the battery system (e.g., losses in power inverter 106 and/or battery 108). P sup may be positive is power inverter 106 is providing power to POI 1 10 or negative if power inverter 106 is receiving power from POI 1 10. P C ampus an d P sup combine at POI 1 10 to form Ppoi- P P0I may be defined as the power provided to energy grid 104 from POI 1 10. P P0I may be positive if POI 1 10 is providing power to energy grid 104 or negative if POI 1 10 is receiving power from energy grid 104.

[0042] Still referring to FIG. 1, system 100 is shown to include a frequency response controller 1 12. Controller 1 12 may be configured to generate and provide power setpoints to power inverter 106. Power inverter 106 may use the power setpoints to control the amount of power P sup provided to POI 1 10 or drawn from POI 1 10. For example, power inverter 106 may be configured to draw power from POI 1 10 and store the power in battery 108 in response to receiving a negative power setpoint from controller 1 12. Conversely, power inverter 106 may be configured to draw power from battery 108 and provide the power to POI 1 10 in response to receiving a positive power setpoint from controller 1 12. The magnitude of the power setpoint may define the amount of power P sup provided to or from power inverter 106. Controller 1 12 may be configured to generate and provide power setpoints that optimize the value of operating system 100 over a time horizon.

[0043] In some embodiments, frequency response controller 1 12 uses power inverter 106 and battery 108 to perform frequency regulation for energy grid 104. Frequency regulation is the process of maintaining the stability of the grid frequency (e.g., 60 Hz in the United States). The grid frequency may remain stable and balanced as long as the total electric supply and demand of energy grid 104 are balanced. Any deviation from that balance may result in a deviation of the grid frequency from its desirable value. For example, an increase in demand may cause the grid frequency to decrease, whereas an increase in supply may cause the grid frequency to increase. Frequency response controller 1 12 may be configured to offset a fluctuation in the grid frequency by causing power inverter 106 to supply energy from battery 108 to energy grid 104 (e.g., to offset a decrease in grid frequency) or store energy from energy grid 104 in battery 108 (e.g., to offset an increase in grid frequency).

[0044] In some embodiments, frequency response controller 1 12 uses power inverter 106 and battery 108 to perform load shifting for campus 102. For example, controller 1 12 may cause power inverter 106 to store energy in battery 108 when energy prices are low and retrieve energy from battery 108 when energy prices are high in order to reduce the cost of electricity required to power campus 102. Load shifting may also allow system 100 reduce the demand charge incurred. Demand charge is an additional charge imposed by some utility providers based on the maximum power consumption during an applicable demand charge period. For example, a demand charge rate may be specified in terms of dollars per unit of power (e.g., $/kW) and may be multiplied by the peak power usage (e.g., kW) during a demand charge period to calculate the demand charge. Load shifting may allow system 100 to smooth momentary spikes in the electric demand of campus 102 by drawing energy from battery 108 in order to reduce peak power draw from energy grid 104, thereby decreasing the demand charge incurred.

[0045] Still referring to FIG. 1, system 100 is shown to include an incentive provider 1 14. Incentive provider 1 14 may be a utility (e.g., an electric utility), a regional transmission organization (RTO), an independent system operator (ISO), or any other entity that provides incentives for performing frequency regulation. For example, incentive provider 114 may provide system 100 with monetary incentives for participating in a frequency response program. In order to participate in the frequency response program, system 100 may maintain a reserve capacity of stored energy (e.g., in battery 108) that can be provided to energy grid 104. System 100 may also maintain the capacity to draw energy from energy grid 104 and store the energy in battery 108. Reserving both of these capacities may be accomplished by managing the state-of-charge of battery 108.

[0046] Frequency response controller 112 may provide incentive provider 114 with a price bid and a capability bid. The price bid may include a price per unit power (e.g., $/MW) for reserving or storing power that allows system 100 to participate in a frequency response program offered by incentive provider 114. The price per unit power bid by frequency response controller 112 is referred to herein as the "capability price." The price bid may also include a price for actual performance, referred to herein as the "performance price." The capability bid may define an amount of power (e.g., MW) that system 100 will reserve or store in battery 108 to perform frequency response, referred to herein as the "capability bid."

[0047] Incentive provider 114 may provide frequency response controller 112 with a capability clearing price CP cap , a performance clearing price CP per ^ and a regulation award Reg awa rd, which correspond to the capability price, the performance price, and the capability bid, respectively. In some embodiments, CP cap , CP per ^ and Reg aW ard are the same as the corresponding bids placed by controller 112. In other embodiments, CP cap , CPperf, an d Reg a ward ma y n °t be the same as the bids placed by controller 112. For example, CP cap , CP per ^ and Reg award may be generated by incentive provider 114 based on bids received from multiple participants in the frequency response program. Controller 112 may use CP cap , CP per ^ and Reg award to perform frequency regulation.

[0048] Frequency response controller 112 is shown receiving a regulation signal from incentive provider 114. The regulation signal may specify a portion of the regulation award Reg a ward that frequency response controller 112 is to add or remove from energy grid 104. In some embodiments, the regulation signal is a normalized signal (e.g., between -1 and 1) specifying a proportion of Reg award - Positive values of the regulation signal may indicate an amount of power to add to energy grid 104, whereas negative values of the regulation signal may indicate an amount of power to remove from energy grid 104.

[0049] Frequency response controller 112 may respond to the regulation signal by generating an optimal power setpoint for power inverter 106. The optimal power setpoint may take into account both the potential revenue from participating in the frequency response program and the costs of participation. Costs of participation may include, for example, a monetized cost of battery degradation as well as the energy and demand charges that will be incurred. The optimization may be performed using sequential quadratic programming, dynamic programming, or any other optimization technique.

[0050] In some embodiments, controller 112 uses a battery life model to quantify and monetize battery degradation as a function of the power setpoints provided to power inverter 106. Advantageously, the battery life model allows controller 112 to perform an optimization that weighs the revenue generation potential of participating in the frequency response program against the cost of battery degradation and other costs of participation (e.g., less battery power available for campus 102, increased electricity costs, etc.). An exemplary regulation signal and power response are described in greater detail with reference to FIG. 2.

[0051] Referring now to FIG. 2, a pair of frequency response graphs 200 and 250 are shown, according to an exemplary embodiment. Graph 200 illustrates a regulation signal Reg S ignai 202 as a function of time. Reg signal 202 is shown as a normalized signal ranging from -1 to 1 (i.e., -1 < Reg signal ≤ 1). Reg signal 202 may be generated by incentive provider 114 and provided to frequency response controller 112. Reg signa i 202 may define a proportion of the regulation award Reg award 254 that controller 112 is to add or remove from energy grid 104, relative to a baseline value referred to as the midpoint b 256. For example, if the value of Reg award 254 is 10 MW, a regulation signal value of 0.5 (i.e., R e 9 signal = 0-5) may indicate that system 100 is requested to add 5 MW of power at POI 110 relative to midpoint b (e.g., Pp 0I = 10MW x 0.5 + b), whereas a regulation signal value of -0.3 may indicate that system 100 is requested to remove 3 MW of power from POI 110 relative to midpoint b (e.g., Pp 0I = 10MW x -0.3 + b).

[0052] Graph 250 illustrates the desired interconnection power Pp 0I 252 as a function of time. Pp 0I 252 may be calculated by frequency response controller 112 based on Reg signa i 202, Reg award 254, and a midpoint b 256. For example, controller 112 may calculate Pp 0I 252 using the following equation:

Ppoi = R e 9award X ^ e 9signal + ^ where Pp 0I represents the desired power at POI 110 (e.g., Pp 0I = P sup + P C ampus) an d b is the midpoint. Midpoint b may be defined (e.g., set or optimized) by controller 112 and may represent the midpoint of regulation around which the load is modified in response to

Reg S ignai 202. Optimal adjustment of midpoint b may allow controller 112 to actively participate in the frequency response market while also taking into account the energy and demand charge that will be incurred.

[0053] In order to participate in the frequency response market, controller 112 may perform several tasks. Controller 112 may generate a price bid (e.g., $/MW) that includes the capability price and the performance price. In some embodiments, controller 112 sends the price bid to incentive provider 114 at approximately 15:30 each day and the price bid remains in effect for the entirety of the next day. Prior to beginning a frequency response period, controller 112 may generate the capability bid (e.g., MW) and send the capability bid to incentive provider 114. In some embodiments, controller 112 generates and sends the capability bid to incentive provider 114 approximately 1.5 hours before a frequency response period begins. In an exemplary embodiment, each frequency response period has a duration of one hour; however, it is contemplated that frequency response periods may have any duration.

[0054] At the start of each frequency response period, controller 112 may generate the midpoint b around which controller 112 plans to perform frequency regulation. In some embodiments, controller 112 generates a midpoint b that will maintain battery 108 at a constant state-of-charge (SOC) (i.e. a midpoint that will result in battery 108 having the same SOC at the beginning and end of the frequency response period). In other

embodiments, controller 112 generates midpoint b using an optimization procedure that allows the SOC of battery 108 to have different values at the beginning and end of the frequency response period. For example, controller 112 may use the SOC of battery 108 as a constrained variable that depends on midpoint b in order to optimize a value function that takes into account frequency response revenue, energy costs, and the cost of battery degradation. Exemplary processes for calculating and/or optimizing midpoint b under both the constant SOC scenario and the variable SOC scenario are described in detail in U.S. Provisional Patent Application No. 62/239,246 filed October 8, 2015, the entire disclosure of which is incorporated by reference herein.

[0055] During each frequency response period, controller 1 12 may periodically generate a power setpoint for power inverter 106. For example, controller 1 12 may generate a power setpoint for each time step in the frequency response period. In some embodiments, controller 1 12 generates the power setpoints using the equation:

Ppoi = R e 9award x ^ e 9signal + b where Pp 0I = P sup + P ca mpus - Positive values of Pp 0I indicate energy flow from POI 1 10 to energy grid 104. Positive values of P sup and P ca mpus indicate energy flow to POI 1 10 from power inverter 106 and campus 102, respectively. In other embodiments, controller 1 12 generates the power setpoints using the equation:

Ppoi = R e 9award x RSS FR + b

where Res FR is an optimal frequency response generated by optimizing a value function. Controller 1 12 may subtract P ca mpus fr° m Ppoi t0 generate the power setpoint for power inverter 106 (i.e., P sup = Pp 0I — P C ampus)- The power setpoint for power inverter 106 indicates the amount of power that power inverter 106 is to add to POI 1 10 (if the power setpoint is positive) or remove from POI 1 10 (if the power setpoint is negative). Exemplary processes for calculating power inverter setpoints are described in detail in U. S. Provisional Patent Application No. 62/239,246.

Photovoltaic Energy System With Frequency Regulation and Ramp Rate Control

[0056] Referring now to FIGS. 3-4, a photovoltaic energy system 300 that uses battery storage to simultaneously perform both ramp rate control and frequency regulation is shown, according to an exemplary embodiment. Ramp rate control is the process of offsetting ramp rates (i.e., increases or decreases in the power output of an energy system such as a photovoltaic energy system) that fall outside of compliance limits determined by the electric power authority overseeing the energy grid. Ramp rate control typically requires the use of an energy source that allows for offsetting ramp rates by either supplying additional power to the grid or consuming more power from the grid. In some instances, a facility is penalized for failing to comply with ramp rate requirements. [0057] Frequency regulation is the process of maintaining the stability of the grid frequency (e.g., 60 Hz in the United States). As shown in FIG. 4, the grid frequency may remain balanced at 60 Hz as long as there is a balance between the demand from the energy grid and the supply to the energy grid. An increase in demand yields a decrease in grid frequency, whereas an increase in supply yields an increase in grid frequency. During a fluctuation of the grid frequency, system 300 may offset the fluctuation by either drawing more energy from the energy grid (e.g., if the grid frequency is too high) or by providing energy to the energy grid (e.g., if the grid frequency is too low). Advantageously, system 300 may use battery storage in combination with photovoltaic power to perform frequency regulation while simultaneously complying with ramp rate requirements and maintaining the state-of-charge of the battery storage within a predetermined desirable range.

[0058] Referring particularly to FIG. 3, system 300 is shown to include a photovoltaic (PV) field 302, a PV field power inverter 304, a battery 306, a battery power inverter 308, a point of interconnection (POI) 310, and an energy grid 312. PV field 302 may include a collection of photovoltaic cells. The photovoltaic cells are configured to convert solar energy (i.e., sunlight) into electricity using a photovoltaic material such as monocrystalline silicon, polycrystalline silicon, amorphous silicon, cadmium telluride, copper indium gallium selenide/sulfide, or other materials that exhibit the photovoltaic effect. In some embodiments, the photovoltaic cells are contained within packaged assemblies that form solar panels. Each solar panel may include a plurality of linked photovoltaic cells. The solar panels may combine to form a photovoltaic array.

[0059] PV field 302 may have any of a variety of sizes and/or locations. In some embodiments, PV field 302 is part of a large-scale photovoltaic power station (e.g., a solar park or farm) capable of providing an energy supply to a large number of consumers. When implemented as part of a large-scale system, PV field 302 may cover multiple hectares and may have power outputs of tens or hundreds of megawatts. In other embodiments, PV field 302 may cover a smaller area and may have a relatively lesser power output (e.g., between one and ten megawatts, less than one megawatt, etc.). For example, PV field 302 may be part of a rooftop-mounted system capable of providing enough electricity to power a single home or building. It is contemplated that PV field 302 may have any size, scale, and/or power output, as may be desirable in different implementations. [0060] PV field 302 may generate a direct current (DC) output that depends on the intensity and/or directness of the sunlight to which the solar panels are exposed. The directness of the sunlight may depend on the angle of incidence of the sunlight relative to the surfaces of the solar panels. The intensity of the sunlight may be affected by a variety of environmental factors such as the time of day (e.g., sunrises and sunsets) and weather variables such as clouds that cast shadows upon PV field 302. When PV field 302 is partially or completely covered by shadow, the power output of PV field 302 (i.e., PV field power Pp V ) may drop as a result of the decrease in solar intensity.

[0061] In some embodiments, PV field 302 is configured to maximize solar energy collection. For example, PV field 302 may include a solar tracker (e.g., a GPS tracker, a sunlight sensor, etc.) that adjusts the angle of the solar panels so that the solar panels are aimed directly at the sun throughout the day. The solar tracker may allow the solar panels to receive direct sunlight for a greater portion of the day and may increase the total amount of power produced by PV field 302. In some embodiments, PV field 302 includes a collection of mirrors, lenses, or solar concentrators configured to direct and/or concentrate sunlight on the solar panels. The energy generated by PV field 302 may be stored in battery 306 or provided to energy grid 312.

[0062] Still referring to FIG. 3, system 300 is shown to include a PV field power inverter 304. Power inverter 304 may be configured to convert the DC output of PV field 302 P PV into an alternating current (AC) output that can be fed into energy grid 312 or used by a local (e.g., off-grid) electrical network. For example, power inverter 304 may be a solar inverter or grid-tie inverter configured to convert the DC output from PV field 302 into a sinusoidal AC output synchronized to the grid frequency of energy grid 312. In some embodiments, power inverter 304 receives a cumulative DC output from PV field 302. For example, power inverter 304 may be a string inverter or a central inverter. In other embodiments, power inverter 304 may include a collection of micro-inverters connected to each solar panel or solar cell. PV field power inverter 304 may convert the DC power output Ppy into an AC power output u PV and provide the AC power output u PV to POI 310.

[0063] Power inverter 304 may receive the DC power output P PV from PV field 302 and convert the DC power output to an AC power output that can be fed into energy grid 312.

Power inverter 304 may synchronize the frequency of the AC power output with that of energy grid 312 (e.g., 50 Hz or 60 Hz) using a local oscillator and may limit the voltage of the AC power output to no higher than the grid voltage. In some embodiments, power inverter 304 is a resonant inverter that includes or uses LC circuits to remove the harmonics from a simple square wave in order to achieve a sine wave matching the frequency of energy grid 312. In various embodiments, power inverter 304 may operate using high- frequency transformers, low-frequency transformers, or without transformers. Low- frequency transformers may convert the DC output from PV field 302 directly to the AC output provided to energy grid 312. High-frequency transformers may employ a multi-step process that involves converting the DC output to high-frequency AC, then back to DC, and then finally to the AC output provided to energy grid 312.

[0064] Power inverter 304 may be configured to perform maximum power point tracking and/or anti-islanding. Maximum power point tracking may allow power inverter 304 to produce the maximum possible AC power from PV field 302. For example, power inverter 304 may sample the DC power output from PV field 302 and apply a variable resistance to find the optimum maximum power point. Anti-islanding is a protection mechanism that immediately shuts down power inverter 304 (i.e., preventing power inverter 304 from generating AC power) when the connection to an electricity-consuming load no longer exists. In some embodiments, PV field power inverter 304 performs ramp rate control by limiting the power generated by PV field 302.

[0065] Still referring to FIG. 3, system 300 is shown to include a battery power inverter 308. Battery power inverter 308 may be configured to draw a DC power P bat from battery 306, convert the DC power P bat into an AC power u bat , and provide the AC power u bat to POI 310. Battery power inverter 308 may also be configured to draw the AC power u bat from POI 310, convert the AC power u bat into a DC battery power P bat , and store the DC battery power P bat in battery 306. The DC battery power P bat may be positive if battery 306 is providing power to battery power inverter 308 (i.e., if battery 306 is discharging) or negative if battery 306 is receiving power from battery power inverter 308 (i.e., if battery 306 is charging). Similarly, the AC battery power u bat may be positive if battery power inverter 308 is providing power to POI 310 or negative if battery power inverter 308 is receiving power from POI 310.

[0066] The AC battery power u bat is shown to include an amount of power used for frequency regulation (i.e., u FR ) and an amount of power used for ramp rate control (i.e., u RR ) which together form the AC battery power (i.e., u bat = u FR + u RR ). The DC battery power P bat is shown to include both u FR and u RR as well as an additional term P ioss representing power losses in battery 306 and/or battery power inverter 308 (i.e., P bat = u FR + u RR + Pioss). The PV field power u PV and the battery power u bat combine at POI 110 to form P P0I (i.e., P P0I = u PV + u bat ), which represents the amount of power provided to energy grid 312. P P0I may be positive if POI 310 is providing power to energy grid 312 or negative if POI 310 is receiving power from energy grid 312.

[0067] Still referring to FIG. 3, system 300 is shown to include a controller 314.

Controller 314 may be configured to generate a PV power setpoint u PV for PV field power inverter 304 and a battery power setpoint u bat for battery power inverter 308. Throughout this disclosure, the variable u PV is used to refer to both the PV power setpoint generated by controller 314 and the AC power output of PV field power inverter 304 since both quantities have the same value. Similarly, the variable u bat is used to refer to both the battery power setpoint generated by controller 314 and the AC power output/input of battery power inverter 308 since both quantities have the same value.

[0068] PV field power inverter 304 uses the PV power setpoint u PV to control an amount of the PV field power P PV to provide to POI 110. The magnitude of u PV may be the same as the magnitude of P PV or less than the magnitude of P PV . For example, u PV may be the same as P PV if controller 314 determines that PV field power inverter 304 is to provide all of the photovoltaic power P PV to POI 310. However, u PV may be less than P PV if controller 314 determines that PV field power inverter 304 is to provide less than all of the

photovoltaic power P PV to POI 310. For example, controller 314 may determine that it is desirable for PV field power inverter 304 to provide less than all of the photovoltaic power P PV to POI 310 to prevent the ramp rate from being exceeded and/or to prevent the power at POI 310 from exceeding a power limit.

[0069] Battery power inverter 308 uses the battery power setpoint u bat to control an amount of power charged or discharged by battery 306. The battery power setpoint u bat may be positive if controller 314 determines that battery power inverter 308 is to draw power from battery 306 or negative if controller 314 determines that battery power inverter 308 is to store power in battery 306. The magnitude of u bat controls the rate at which energy is charged or discharged by battery 306. [0070] Controller 314 may generate u PV and u bat based on a variety of different variables including, for example, a power signal from PV field 302 (e.g., current and previous values for Pp V ), the current state-of-charge (SOC) of battery 306, a maximum battery power limit, a maximum power limit at POI 310, the ramp rate limit, the grid frequency of energy grid 312, and/or other variables that can be used by controller 314 to perform ramp rate control and/or frequency regulation. Advantageously, controller 314 generates values for u PV and u bat that maintain the ramp rate of the PV power within the ramp rate compliance limit while participating in the regulation of grid frequency and maintaining the SOC of battery 306 within a predetermined desirable range. An exemplary controller which can be used as controller 314 and exemplary processes which may be performed by controller 314 to generate the PV power setpoint u PV and the battery power setpoint u bat are described in detail in U.S. Provisional Patent Application No. 62/239, 245 filed October 8, 2015, the entire disclosure of which is incorporated by reference herein.

Electrical Energy Storage System With Battery Internal Cell Resistance Estimation

[0071] Referring now to FIG. 5, an electrical energy storage system 500 is shown, according to an exemplary embodiment. System 500 can be used to monitor and control electrical energy storage in one or more batteries. System 500 can be implemented as part of a frequency response optimization system (e.g., system 100), a photovoltaic energy system (e.g., system 300), a ramp rate control system, a building management system, or any other system that stores electrical energy in batteries. Several examples of systems in which electrical energy storage system 500 can be implemented are described in detail in U.S. Provisional Patent Applications Nos. 62/239,131, 62/239,231, 62/239,233, 62/239,245, 62/239,246, and 62/239,249. All of these applications have a filing date of October 8, 2015, and are incorporated by reference herein.

[0072] Electrical energy storage system 500 is shown to include a battery container 510. Battery container 510 may be an insulated or closed container which contains one or more batteries. In some embodiments, battery container 510 contains multiple battery strings 512, 514, and 516. Although only three battery strings are shown in FIG. 5, it should be understood that battery container 510 can contain any number of battery strings. Battery strings 512-516 can be arranged in parallel with one another and connected to a battery power inverter 520. [0073] Each battery string 512-516 can include one or more batteries 515, 517 and 519. In some embodiments, batteries 515-519 are nickel-cobalt-aluminum (NCA) lithium ion (Li-Ion) batteries. For example, batteries 515-519 can be model VL41M NCA Li-Ion batteries. Each battery 515-519 can include one or more battery cells or battery modules. Although only six batteries 515-519 are shown in each battery string 512-516, it should be understood that each battery string 512-516 can include any number of batteries 515-519. Batteries 515-519 can be connected in series with one another within each battery string 512-516 to achieve the desired voltage per battery string 512-516.

[0074] Battery power inverter 520 can be the same or similar to power inverter 106 described with reference to FIG. 1 and/or battery power inverter 308 described with reference to FIG. 3. Battery power inverter 520 can be configured to charge or discharge each battery string 512-516 by controlling the electric current of each battery string 512- 516. For example, battery power inverter 520 can draw power from battery string 512 by drawing a DC current i s tring,i fr° m the positive terminal of battery string 512, and can store power in battery string 512 by causing the DC current i s tring,i to flow into the positive terminal of battery string 512.

[0075] Similarly, battery power inverter 520 can draw power from battery string 514 by drawing a DC current i str ing,2 fr° m the positive terminal of battery string 514, and can store power in battery string 514 by causing the DC current i str ing,2 to flow into the positive terminal of battery string 514. Battery power inverter 520 can draw power from battery string 516 by drawing a DC current i s tring,N from the positive terminal of battery string 516, and can store power in battery string 516 by causing the DC current i s tring,N to flow into the positive terminal of battery string 516. Battery power inverter 520 can be configured to control and/or measure the magnitude of the DC currents through each battery string 512-516.

[0076] Still referring to FIG. 5, electrical energy storage system 500 is shown to include a heating, ventilation, and air conditioning (HVAC) system 504. HVAC system 504 can be configured to monitor and control the environment (e.g., temperature, humidity, etc.) within battery container 510. For example, HVAC system 504 can provide cooling or heating to battery container 510 to maintain battery container 510 at a temperature setpoint or within a temperature range. In various embodiments, HVAC system 504 can be configured to provide cooling or heating for only battery container 510, or for multiple building zones or spaces including battery container 510.

[0077] HVAC system 504 can include any of a variety of HVAC equipment (e.g., chillers, heat recovery chillers, air handling units, cooling towers, pumps, etc.) configured to add or remove heat from an airflow provided to battery container 510. HVAC system 504 can include airflow devices (e.g., fans, ducts, vents, dampers, actuators, variable air volume units, etc.) configured to provide airflow through battery container 510. HVAC system 504 can include sensors (e.g., temperature sensors, pressure sensors, humidity sensors, airflow sensors, oxygen sensors, etc.) configured to measure various attributes of supply air 506 provided to battery container 510 and/or return air 508 received from battery container 510.

[0078] In some embodiments, HVAC system 504 includes a temperature sensor 503 configured to measure the temperature of supply air 506 and a pressure sensor 505 configured to measure the dynamic pressure of supply air 506. Sensors 503 and 505 can provide supply air measurements to controller 502. The dynamic pressure measured by pressure sensor 505 can be used by controller 502 to determine the flow velocity and/or flow rate of supply air 506. Similarly, HVAC system 504 can include a temperature sensor 507 configured to measure the temperature of return air 508 and a pressure sensor 509 configured to measure the dynamic pressure of return air 508. Sensors 507 and 509 can provide return air measurements to controller 502. The dynamic pressure measured by pressure sensor 507 can be used by controller 502 to determine the flow velocity and/or flow rate of return air 508.

[0079] Still referring to FIG. 5, electrical energy storage system 500 is shown to include a controller 502. Controller 502 can be configured to monitor and control system 500. For example, controller 502 can receive input from sensors 503-509 and current measurements from battery power inverter 520. Controller 502 and can provide control signals to battery power inverter 520 and to HVAC system 504. Controller 502 can operate battery power inverter 520 to control the rate at which electrical energy is stored or discharged from each of battery strings 512-516. Controller 520 can be configured to perform any of the functions described in U.S. Provisional Patent Applications Nos. 62/239,131, 62/239,231,

62/239,233, 62/239,245, 62/239,246, and 62/239,249. For example, controller 502 can operate battery power inverter 520 to perform frequency regulation, ramp rate control, electric load shifting, or any other activity which uses electrical energy storage. [0080] Controller 502 can use temperature and airflow measurements from sensors 503- 509 to determine the rate of heat generation by battery strings 512-516. For example, controller 502 can use the measurements provided by sensors 503-505 to calculate the heat transfer Q in into battery container 510 via supply air 506. Similarly, controller 502 can use the measurements provided by sensors 507-509 to calculate the heat transfer Q out out of battery container 510 via return air 508. In some embodiments, the battery container 510 is insulated such that the only heat transfer into or out of battery container 510 is via the supply air 506 and return air 508. Accordingly, controller 502 can calculate the battery heat generation Q bat as the difference between Q out and Q in (e.g., Q bat = Q out - Q in ).

[0081] Controller 502 can use the battery heat generation Q bat to estimate the battery cell resistance R ce u. In some embodiments, controller 502 models the battery heat generation using the following equation:

Qbat = i 2 Rcell

where i is the total electric current through battery strings 512-516, and R ce u is the composite battery cell resistance. Controller 502 can use battery current measurements from battery power inverter 520 in combination with the estimated battery heat generation Qbat to calculate the battery cell resistance R ce u.

[0082] Controller 502 can use the battery cell resistance R ceU to predict or estimate battery operating parameters (e.g., maximum state of charge, maximum charging or discharging power, etc.). Controller 502 can use the battery operating parameters to determine optimal power setpoints for power inverter 520. Controller 502 can use the battery cell resistance R ce u in a battery life model as an indicator of remaining battery life. In some embodiments, controller 502 uses the battery cell resistance R ce u to detect faults in electrical energy storage system 500. For example, controller 502 can monitor the battery cell resistance R ce u over time and compare the battery cell resistance R ce u to a threshold value. Controller 502 can output a fault indication in response to a determination that the battery cell resistance R ce u has crossed the threshold value. Controller 502 can use a history of values of the battery cell resistance R ceU to generate a function or model (e.g., a battery degradation model) which predicts future values of the battery cell resistance R ce u and/or battery health. Controller 502 can use the battery degradation model to predict future battery faults and project battery health into the future. These and other features of controller 502 are described in greater detail below.

Controller

[0083] Referring now to FIG. 6, a block diagram illustrating controller 502 in greater detail is shown, according to an exemplary embodiment. Controller 502 is shown to include a communications interface 602 and a processing circuit 604. Communications interface 602 may include wired or wireless interfaces (e.g., jacks, antennas, transmitters, receivers, transceivers, wire terminals, etc.) for conducting data communications with various systems, devices, or networks. For example, communications interface 602 may include an Ethernet card and port for sending and receiving data via an Ethernet-based

communications network and/or a WiFi transceiver for communicating via a wireless communications network. Communications interface 602 may be configured to

communicate via local area networks or wide area networks (e.g., the Internet, a building WAN, etc.) and may use a variety of communications protocols (e.g., BACnet, IP, LON, etc.).

[0084] Communications interface 602 may be a network interface configured to facilitate electronic data communications between controller 502 and various external systems or devices (e.g., campus 102, energy grid 104, battery power inverter 520, incentive provider 114, HVAC system 504, client device 622, etc.). For example, controller 502 can receive supply air measurements and return air measurements from HVAC system 504 via communications interface 602. Controller 502 can receive measurements of the battery string electric currents from battery power inverter 520 and provide battery power setpoints to battery power inverter 520 via communications interface 602. Controller 502 can provide fault indications and battery life indications to client device 622 via

communications interface 602.

[0085] Processing circuit 604 is shown to include a processor 606 and memory 608.

Processor 606 may be a general purpose or specific purpose processor, an application specific integrated circuit (ASIC), one or more field programmable gate arrays (FPGAs), a group of processing components, or other suitable processing components. Processor 606 may be configured to execute computer code or instructions stored in memory 608 or received from other computer readable media (e.g., CDROM, network storage, a remote server, etc.).

[0086] Memory 608 may include one or more devices (e.g., memory units, memory devices, storage devices, etc.) for storing data and/or computer code for completing and/or facilitating the various processes described in the present disclosure. Memory 608 may include random access memory (RAM), read-only memory (ROM), hard drive storage, temporary storage, non-volatile memory, flash memory, optical memory, or any other suitable memory for storing software objects and/or computer instructions. Memory 608 may include database components, object code components, script components, or any other type of information structure for supporting the various activities and information structures described in the present disclosure. Memory 608 may be communicably connected to processor 606 via processing circuit 604 and may include computer code for executing (e.g., by processor 606) one or more processes described herein.

[0087] Still referring to FIG. 6, controller 502 is shown to include a battery heat estimator 610. Battery heat estimator 610 is configured to estimate the heat generation Qj, at of battery strings 512-516. In some embodiments, battery heat estimator 610 estimates the battery heat generation Q bat as a function of the supply air measurements, return air measurements, and battery string currents. For example, battery heat estimator 610 can use the supply air measurements and return air measurements to calculate a rate of heat flow Q in into battery container 510 and a rate of heat flow Q out out of battery container 510.

[0088] In some embodiments, battery heat estimator 610 calculates the heat flow Q in into battery container 510 using the following equation:

where T in is the temperature of the supply air 506, C in is the heat capacity of the supply air 506, V in is the volumetric flow rate of the supply air 506, and p in is the density of the supply air 506. T in can be measured directly (e.g., by temperature sensor 503), whereas V in can be calculated based on the measured flow velocity v in of the supply air 506 (measured by sensor 505) and the cross-sectional area A in of the supply air duct (e.g., V in = v in * A in ) The supply air heat capacity C in and density p in can be stored as constants or calculated based on the measured temperature and pressure of the supply air 506. [0089] In some embodiments, battery heat estimator 610 calculates the heat flow Q out out of battery container 510 using the following equation:

where T out is the temperature of the return air 508, C out is the heat capacity of the return air 508, V out is the volumetric flow rate of the return air 508, and p out is the density of the return air 508. T out can be measured directly (e.g., by temperature sensor 507), whereas V out can be calculated based on the measured flow velocity v out of the return air 508 (measured by sensor 509) and the cross-sectional area A out of the return air duct (e.g., Vout = v out * A 0 ut) - The return air heat capacity C out and density p out can be stored as constants or calculated based on the measured temperature and pressure of the return air 508.

[0090] Battery heat estimator 610 can use the heat flow Q in into battery container 510 heat flow Q out out of battery container 510 to estimate the heat generation Q bat of battery strings 512-516. In some embodiments, battery heat estimator 610 estimates Q bat using the following equation: where Q bat is defined as the difference between the heat flow Q out out of battery container 510 and the heat flow Q in into battery container 510. Battery heat estimator 610 can model battery container 510 as an insulated control volume such that the only heat transfer into battery container 510 and out of battery container 510 is via the supply air 506 and the return air 508.

[0091] In some embodiments, battery heat estimator 610 can account for heat transfer through the walls of battery container 510 when estimating the battery heat generation Q bat . For example, battery heat estimator 610 can model the walls of battery container 510 as a thermal resistor between the internal volume of battery container 510 and the ambient environment outside battery container 510. Battery heat estimator 610 can generate a battery heat model which accounts for heat transfer through the walls of battery container 510, as shown in the following equation:

Qbat ~ Qout ~ Qin ~ Qwalls where Q wa iis represents the heat transfer into battery container 510 from the ambient environment. Battery heat estimator 610 can calculate Q wa iis as a function of the internal temperature of battery container 510 and the ambient temperature outside battery container 510. It is contemplated that battery heat estimator 610 can generate and use any of a variety of battery heat models which account for various sources of heat flow into or out of battery container 510 (e.g., HVAC heat transfer, heat generation by electronics within battery container 510, heat transfer through the walls of battery container 510, etc.).

[0092] Still referring to FIG. 6, controller 502 is shown to include a battery resistance estimator 612. Battery resistance estimator 612 is configured to estimate the internal cell resistance R ce u of batteries 515-519 and/or battery strings 512-516. In some embodiments, R ce ii is a composite resistance of the entire set of batteries 515-519 within battery container 510, denoted herein as R C eii,comp - I n other embodiments R ce u can include a cell resistance of one or more battery strings 512-516 (e.g., R ceil, string, i ^ ceil, string, 2 > etc.) and/or a cell resistance of one or more individual batteries 515-519 (e.g., R ce ii,bat,i, Rceii,bat,2, etc.)-

[0093] Battery resistance estimator 612 can estimate the composite battery resistance Rceii.comp as a function of the battery heat generation Q bat and the electric currents provided to each of battery strings 512-516 (i.e., tring.i, tring.i , - - tring,N)- For example, battery resistance estimator 612 can estimate the composite battery resistance R C eii,comp using the following equation:

where∑ Strings ls tne sum of the squares of the electric currents provided to battery strings 512-516 and Q bat is the battery heat generation provided by battery heat estimator 610. The term∑ I strings can b e defined 1 'string, where N is the total number of battery strings 512-516. Battery resistance estimator 612 can receive measurements or estimates of the battery string currents from battery power inverter 520 or from electric current sensors configured to measure the electric current of each battery string 512-516.

[0094] In some embodiments, battery resistance estimator 612 compensates for internal energy changes within battery container 510 that can cause the frequency response of the battery heat generation Q bat to be different from that of∑ I strings - For example, thermal energy stored in the solid mass of the battery racks (e.g., steel modules), within batteries 515-519, and/or the air within battery container 510 can cause Q bat to be time shifted relative to∑ I strings or h ve a different frequency response than∑ I strings - Battery resistance estimator 612 can compensate for such factors by integrating both terms over a suitable time horizon, as shown in the following equation:

where H defines the duration of the time horizon over which Qb at t) and∑ I strings ^) are integrated (e.g., one hour, one day, etc.). In some embodiments, battery resistance estimator 612 calculates the duration of the time horizon H as a function of the frequency responses

Of Qbat and∑ Istrings (e.g., H = f {u batl O ) strings))-

[0095] Battery resistance estimator 612 can collect multiple samples of Qb at (t) and ∑ ^ strings ^) over tne time horizon and can use the collected samples to calculate the integrated values. In some embodiments, battery resistance estimator 612 uses average values of Qb at (t) and∑ I strings ^) instead of integrated values to calculate R C eii,comp - Advantageously, the use of integrated or average values compensates for internal energy changes as described above. The use of integrated or average values also attenuates measurement noise on the composite cell resistance estimate R C eii,comp ( e -g-, noise in measuring the string currents, noise in measuring the temperature/pressure of the supply air 506 and return air 508, etc.).

[0096] In some embodiments, battery resistance estimator 612 uses the estimated composite cell resistance R C eii,comp to calculate the cell resistance of each battery string 512-516 and/or the cell resistance of each individual battery. For example, if the battery strings 512-516 are arranged in parallel, the composite cell resistance R C eii,comp can be expressed as a function of the individual string resistances R s tring,i as shown in the following equation:

1 1 1 1

+ - + ··· +

cell,comp ^cell,string,l ^ cell, string, 2 ^cell,string,N Battery resistance estimator 612 can calculate the individual resistance of each battery string 512-516 based on the assumption that each string resistance is approximately equal (i.e.,

^string,! ¾ ^string,! ¾ ^string,^-

[0097] If each string contains multiple batteries in series, battery resistance estimator 612 can calculate the resistance of each battery in a given string (e.g., R ce ii,bat,i, Rceii,bat,2 , etc ) by dividing the string resistance R ce u, string, i by the total number of batteries in the string. For example, battery resistance estimator 612 can calculate the cell resistance of battery j using the following equation: g _ Rcell,string,i

^cell,bat,j ~ where battery j is an individual battery located in battery string i and M is the total number of batteries in battery string i .

[0098] Still referring to FIG. 6, controller 502 is shown to include an operating parameter calculator 614. Operating parameter calculator 614 is configured to calculate one or more operating parameters of electrical energy storage system 500. In some embodiments, operating parameter calculator 614 calculates the operating parameters as a function of the battery cell resistance R ce u . Operating parameter calculator 614 can receive the battery cell resistance R ce u from battery resistance estimator 612. As discussed above, the battery cell resistance R ce u can include the estimated composite battery cell resistance R ce ii,comp, one or more estimated battery string resistances R C eii, string, and/or one or more estimated individual battery resistances R ce ii,bat,j -

[0099] Operating parameter calculator 614 can use the battery cell resistance R ce u to calculate battery parameters such as maximum state of charge (i.e., the maximum charge the battery can hold), maximum charging/discharging power (i.e., the rate at which the battery can be charged or discharged), power storage efficiency, battery efficiency, battery health, etc. Although only a few operating parameters are described herein, it is contemplated that the battery cell resistance R ceU can be used to determine any of a variety of parameters that characterize the performance of electrical energy storage system 500 and/or batteries 515- 519. Operating parameter calculator 614 can provide the operating parameters to battery setpoint generator 616. [0100] Battery setpoint generator 616 can use the operating parameters to generate battery power setpoints. The battery power setpoints can be provided to battery power inverter 520 to control the amount of electrical energy stored or discharged from batteries 515-519. In some embodiments, battery setpoint generator 616 determines optimal battery power setpoints in order to comply with ramp rate requirements, regulate the frequency of an energy grid, participate in incentive-based frequency regulation programs, provide electricity to a building or campus, perform load shifting, or otherwise use batteries 515-519 to optimize the operation of the electrical energy storage system 500. Several examples of optimization techniques which can be used by battery setpoint generator 616 to generate battery power setpoints are described in detail in U. S. Provisional Patent Applications Nos. 62/239, 131, 62/239,231, 62/239,233, 62/239,245, 62/239,246, and 62/239,249.

[0101] Still referring to FIG. 6, controller 502 is shown to include a fault detector 618. Fault detector 618 can use the battery cell resistance R ce u to detect faults in electrical energy storage system 500. For example, fault detector 618 can monitor the battery cell resistance R ce u over time and compare the battery cell resistance R ce u to a threshold value. Fault detector 618 can output a fault indication in response to a determination that the battery cell resistance R ce u has crossed the threshold value (e.g., increases above the threshold value or drops below the threshold value). Fault detector 618 can provide fault indications to client device 622.

[0102] In some embodiments, fault detector 618 uses a history of values of the battery cell resistance R ce u to generate a function or model which predicts future values of the battery cell resistance R ce u . For example, fault detector 618 can extrapolate a series values of R ce u into the future to estimate future values of the battery cell resistance R ce u. Fault detector 618 can predict when a battery fault will occur based on the extrapolated values of R ce u. For example, fault detector 618 can use the extrapolated values of the battery cell resistance R ce ii to determine when the battery cell resistance R ce u will reach a threshold value. Fault detector 618 can predict that the battery fault will occur at a time when the battery cell resistance R ce u is estimated to reach the threshold value.

[0103] In some embodiments, fault detector 618 uses multiple different values of R ce u to perform alarming and fault detection functions. For example, battery resistance estimator 612 can provide fault detector 618 with instantaneous values of R ce u for use in alarming. The instantaneous values of R ce u can be based on a single value of Q bat and/or a single measurement of the string currents I str ings - Battery resistance estimator 612 can use a relatively short integration interval (e.g., a minute, fifteen minutes, an hour, etc.) to calculate short-term values of R ce u and a relatively long integration interval (e.g., several hours, a day, etc.) to calculate long-term values of R ce u. The short-term values of R ce u may be less accurate than the long-term values, but can provide fault detector 618 with information more quickly for time-sensitive implementations such as alarming. The long- term values of R ce u may be more accurate than the short-term values and can be used for implementations that do not require contemporaneous data (e.g., fault prediction, diagnostics, etc.).

[0104] Still referring to FIG. 6, controller 502 is shown to include a battery life modeler 620. Battery life modeler 620 can use the battery cell resistance R ce u to estimate the remaining life of the batteries 515-519. In some embodiments, battery life modeler 620 estimates remaining battery life using a battery life model. The battery life model can define remaining battery life as a function of the battery cell resistance R ce u provided by battery resistance estimator 612 and/or the operating parameters provided by operating parameter calculator 614. One example of such a battery life model is shown in the following equation:

Battery Life = f R cell , DOD, SOC, ^ kW battery , ^ dkWb tery where BatteryLife is the estimated remaining battery life, R ce u is the battery cell resistance, DOD is the typical (e.g., average) depth of discharge of the battery during use, SOC is the typical (e.g., average) state-of-charge of the battery, kW battery is the battery power setpoint, and dkWb ^ ter [ s th e ra t e 0 f change of the battery power setpoint.

[0105] Some of the variables in the battery life model can be based on the battery power setpoints provided by battery setpoint generator 616 and/or other control decisions made by controller 502. Other variables in the battery life model can be based on the estimated cell resistance R ce u and/or other battery attributes or parameters. Several examples of battery life models which can be used by battery life modeler 620 are described in detail in U.S.

Provisional Patent Applications Nos. 62/239, 131 and 62/239,246. Battery life modeler 620 can provide the remaining battery life to client device 622. Flow Diagrams

[0106] Referring now to FIG. 7, a flow diagram illustrating a process 700 for estimating battery cell resistance is shown, according to an exemplary embodiment. Process 700 can be performed by one or more components of electrical energy storage system 500 (e.g., controller 502). Process 700 is shown to include measuring attributes of airflow into a battery container and airflow out of the battery container (step 702). In some embodiments, the airflow into the battery container is provided as supply air from a HVAC system (e.g., supply air 506) and the airflow out of the battery container is provided as return air to the HVAC system (e.g., return air 508). The measured attributes can include, for example, temperature, humidity, pressure, oxygen content, flow velocity, etc.

[0107] Process 700 is shown to include calculating battery heat generation based on the airflow measurements (step 704). In some embodiments, step 704 is performed by battery heat estimator 610, as described with reference to FIG. 6. Step 704 can include using the supply air measurements and return air measurements to calculate a rate of heat flow Q in into the battery container and a rate of heat flow Q out out of the battery container. The heat flow Q in into the battery container and the heat flow Q out out of the battery container can be used to estimate the heat generation Q bat of the battery using the following equation:

where Q bat is defined as the difference between the heat flow Q out out of the battery container and the heat flow Q in into the battery container.

[0108] In some embodiments, step 704 includes accounting for heat transfer through the walls of the battery container when estimating the battery heat generation Q bat . For example, step 704 can include modeling the walls of the battery container as a thermal resistor between the internal volume of the battery container and the ambient environment outside the battery container. Step 704 can include generating a battery heat model which accounts for heat transfer through the walls of the battery container, as shown in the following equation:

Qbat ~ Qout ~ Qin ~ Qwalls

where Q wa iis represents the heat transfer into the battery container from the ambient environment. [0109] Process 700 is shown to include measuring electric current provided to one or more batteries in the battery container (step 706) and estimating battery cell resistance based on the battery heat generation and the electric current (step 708). Step 706 can include receiving measurements or estimates of one or more battery string currents from a battery power inverter or from electric current sensors configured to measure the electric current of each battery string. In some embodiments, the battery cell resistance R ce u estimated in step 708 is a composite resistance of an entire set of batteries within the battery container, denoted herein as R C eii,comp - I n other embodiments R ce u can include a cell resistance of one or more battery strings (e.g., R ce ii,string,i, R 'ceil, string, .2, etc) and/or a cell resistance of one or more individual batteries (e.g., R ce ii,bat,i, Rceii,bat,2, etc.).

[0110] Step 708 can include estimating the composite battery resistance R C eii,comp as a function of the battery heat generation Q bat and the electric currents provided to each of battery strings (i.e., tring.i, tring.i , - - I string ji)- For example, step 708 can include estimating the composite battery resistance R C eii,comp using the following equation: where∑ Strings ls the sum of the squares of the electric currents provided to the battery strings and Q bat is the battery heat generation estimated in step 704. The term∑ I strings can be defined Istring.h where N is the total number of battery strings.

[0111] In some embodiments, step 708 includes compensating for internal energy changes within the battery container that can cause the frequency response of the battery heat generation Q bat to be different from that of∑ I strings - For example, thermal energy stored in the solid mass of the battery racks (e.g., steel modules), within batteries, and/or the air within the battery container can cause Q bat to be time shifted relative to∑ Strings or have a different frequency response than∑ Strings - Step 708 can include compensating for such factors by integrating both terms over a suitable time horizon, as shown in the following equation:

J 0 ∑ trings ( ) where H defines the duration of the time horizon over which Qbat (t) an d∑ I 'strings ^) are integrated (e.g., one hour, one day, etc.). In some embodiments step 708 includes calculating the duration of the time horizon H as a function of the frequency responses of

Qbat an d∑ Strings ( e g-; H = f bat > ω strings))-

[0112] Step 708 can include collecting multiple samples of Qbat (t) an d∑ I 'strings ^) over the time horizon and can use the collected samples to calculate the integrated values. In some embodiments, step 708 includes using average values of Qbat(t) and∑ I strings ^) instead of integrated values to calculate R C eii,comp - Advantageously, the use of integrated or average values compensates for internal energy changes as described above. The use of integrated or average values also attenuates measurement noise on the composite cell resistance estimate R C eii,comp ( e -g-, noise in measuring the string currents, noise in measuring the temperature/pressure of the supply air and return air, etc.).

[0113] In some embodiments, step 708 includes using the estimated composite cell resistance R C eii,comp t0 calculate the cell resistance of each battery string and/or the cell resistance of each individual battery. For example, if the battery strings are arranged in parallel, the composite cell resistance R C eii,comp can be expressed as a function of the individual string resistances R s tring,i as shown in the following equation:

1 1 1 1

+ - + ··· +

ncell,comp n cell,string,l n cell, string, 2 n cell,string,N

In some embodiments, step 708 includes calculating the individual resistance of each battery string 512-516 based on the assumption that each string resistance is approximately equal (i.e., R s tring,l ¾ Rstring.2 ¾ Rstringfl)-

[0114] If each string contains multiple batteries in series, step 708 can include calculating the resistance of each battery in a given string (e.g., R ce ii ib at,i, R C eii,bat,2 , etc.) by dividing the string resistance R ce ii,string,i by the total number of batteries in the string. For example, step 708 can include calculating the cell resistance of battery j using the following equation: g _ Rcell,string,i

^cell,bat,j ~ 77 where battery j is an individual battery located in battery string i and M is the total number of batteries in battery string i.

[0115] Referring now to FIG. 8, a flow diagram illustrating a process 800 for using battery cell resistance to operate an electrical energy storage system is shown, according to an exemplary embodiment. Process 800 can be performed by one or more components of electrical energy storage system 500 (e.g., controller 502). Process 800 is shown to include estimating battery cell resistance (step 802). Step 802 can be accomplished by performing process 700, as described with reference to FIG. 7.

[0116] Process 800 is shown to include predicting battery operating parameters using the estimated battery cell resistance (step 804). In some embodiments, step 804 is performed by operating parameter calculator 614, as described with reference to FIG. 6. Step 804 can include using the battery cell resistance R ce u to calculate battery parameters such as maximum state of charge (i.e., the maximum charge the battery can hold),

charging/discharging power (i.e., the rate at which the battery can be charged or discharged), power storage efficiency, etc. Although only a few operating parameters are described herein, it is contemplated that the battery cell resistance R ce u can be used to determine any of a variety of parameters that characterize the performance of the electrical energy storage system 500 and/or the batteries.

[0117] In some embodiments, step 804 includes using the battery cell resistance R ce u to estimate the remaining life of the batteries. Remaining battery life can be estimated using a battery life model. The battery life model can define remaining battery life as a function of the battery cell resistance R ceU determined in step 802 and/or the operating parameters determined in step 804. One example of such a battery life model is shown in the following equation:

Battery Life = f R cell , DOD, SOC, ^ kW battery , ^ dkWb tery where BatteryLife is the estimated remaining battery life, R ce u is the battery cell resistance, DOD is the typical (e.g., average) depth of discharge of the battery during use, SOC is the typical (e.g., average) state-of-charge of the battery, kW battery is the battery power setpoint, and dkWb ^ ter [ s th e ra t e 0 f change of the battery power setpoint. [0118] Some of the variables in the battery life model can be based on battery power setpoints and/or other control decisions made by the controller. Other variables in the battery life model can be based on the estimated cell resistance R ce u and/or other battery attributes or parameters. Several examples of battery life models which can be used in step 804 are described in detail in U.S. Provisional Patent Applications Nos. 62/239, 131 and 62/239,246. Battery life modeler 620 can provide the remaining battery life to client device 622.

[0119] Process 800 is shown to include using the battery operating parameters to determine battery power setpoints (step 806). In some embodiments, step 806 is performed by battery setpoint generator 616, as described with reference to FIG. 6. The battery power setpoints can be provided to a battery power inverter to control the amount of electrical energy stored or discharged from the batteries. In some embodiments, step 804 includes determining optimal battery power setpoints in order to comply with ramp rate

requirements, regulate the frequency of an energy grid, participate in incentive-based frequency regulation programs, provide electricity to a building or campus, perform load shifting, or otherwise use the batteries to optimize the operation of the electrical energy storage system. Several examples of optimization techniques which can be used in step 806 to generate battery power setpoints are described in detail in U. S. Provisional Patent Applications Nos. 62/239, 131, 62/239,231, 62/239,233, 62/239,245, 62/239,246, and 62/239,249.

[0120] Process 800 is shown to include detecting battery faults based on the estimated battery cell resistance (step 808). In some embodiments, step 808 is performed by fault detector 618, as described with reference to FIG. 6. Step 808 can include monitoring the battery cell resistance R ce u over time and comparing the battery cell resistance R ce u to a threshold value. Step 808 can include outputting a fault indication in response to a determination that the battery cell resistance R ce u has crossed the threshold value (e.g., increases above the threshold value or drops below the threshold value).

[0121] In some embodiments, step 808 includes a history of values of the battery cell resistance R ce u to generate a function or model which predicts future values of the battery cell resistance R ce u . For example, step 808 can include extrapolating a series values of R ce ii into the future to estimate future values of the battery cell resistance R ce u . Step 808 can include predicting when a battery fault will occur based on the extrapolated values of Rceii - For example, step 808 can include using the extrapolated values of the battery cell resistance R ce u to determine when the battery cell resistance R ce u will reach a threshold value. Step 808 can include predicting that the battery fault will occur at a time when the battery cell resistance R ce u is estimated to reach the threshold value.

Configuration of Exemplary Embodiments

[0122] The construction and arrangement of the systems and methods as shown in the various exemplary embodiments are illustrative only. Although only a few embodiments have been described in detail in this disclosure, many modifications are possible (e.g., variations in sizes, dimensions, structures, shapes and proportions of the various elements, values of parameters, mounting arrangements, use of materials, colors, orientations, etc.). For example, the position of elements can be reversed or otherwise varied and the nature or number of discrete elements or positions can be altered or varied. Accordingly, all such modifications are intended to be included within the scope of the present disclosure. The order or sequence of any process or method steps can be varied or re-sequenced according to alternative embodiments. Other substitutions, modifications, changes, and omissions can be made in the design, operating conditions and arrangement of the exemplary

embodiments without departing from the scope of the present disclosure.

[0123] The present disclosure contemplates methods, systems and program products on any machine-readable media for accomplishing various operations. The embodiments of the present disclosure can be implemented using existing computer processors, or by a special purpose computer processor for an appropriate system, incorporated for this or another purpose, or by a hardwired system. Embodiments within the scope of the present disclosure include program products comprising machine-readable media for carrying or having machine-executable instructions or data structures stored thereon. Such machine- readable media can be any available media that can be accessed by a general purpose or special purpose computer or other machine with a processor. By way of example, such machine-readable media can comprise RAM, ROM, EPROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store desired program code in the form of machine-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer or other machine with a processor. Combinations of the above are also included within the scope of machine-readable media. Machine- executable instructions include, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing machines to perform a certain function or group of functions.

[0124] Although the figures show a specific order of method steps, the order of the steps may differ from what is depicted. Also two or more steps can be performed concurrently or with partial concurrence. Such variation will depend on the software and hardware systems chosen and on designer choice. All such variations are within the scope of the disclosure. Likewise, software implementations could be accomplished with standard programming techniques with rule based logic and other logic to accomplish the various connection steps, processing steps, comparison steps and decision steps.