EV battery thermal management control
This class project built a Simulink model of an air-cooled EV battery pack and compared controllers for its cooling fan. The goal is to keep every cell core below 45 °C while using as little fan energy as possible. At the same overheating risk, a variable-speed fan with a corrected temperature estimate used about 16% less energy than an on/off thermostat. It came within 2 Wh of a controller that knows the exact core temperature.
Everything is simulated. The cell is a real commercial size, but the cooling, airflow and fan parameters are assumptions, not measurements.
The pack model
The pack is 96s24p: eight modules of 288 Molicel P42A-size 21700 cells, at 345.6 V and about 35 kWh, cooled by one shared fan. Every cell has a single-particle electrochemical model and a three-layer thermal model from core to surface, so the model tracks almost 30,000 states. Parallel cells share current unevenly, depending on their temperature and resistance, and the air warms row by row as it passes the cells.
The model checks itself on every run. It checks the charge and energy balance, the current sharing in each parallel row, and the heat that the air carries away. Halving the time step changed the peak core temperature by less than 0.01 °C.
Estimating the core temperature
A real controller cannot measure the temperature inside a cell. It has only eight surface thermistors, the pack current, the inlet air temperature and the fan speed. The study compared five ways of estimating the hottest core: a two-temperature observer, the observer with a learned correction (linear, lookup table or a small neural network), a 60 or 120 s look-ahead forecast, an LSTM, and perfect knowledge as a benchmark. Each estimator was paired with each fan rule, which gave 20 controllers.
Comparing energy alone rewards the controller that runs the hottest. So each controller got one temperature offset, tuned on 129 drives so that all the controllers overheat equally rarely. Their fan energy was then compared on 258 different drives.
Results
The fan rule matters most. With the same estimator, the thermostat used 507 Wh per drive and the variable-speed fan used 424 Wh. A learned correction on the observer saved about 10%. The lookup-table version came within 2 Wh of perfect knowledge, so a better estimate cannot save much more. The look-ahead and LSTM controllers used about the same energy, but they needed almost no offset to be safe.
The recommended controller is the variable-speed fan with the observer and the lookup-table correction. It is small enough for a microcontroller, and the C code that MATLAB Coder generates for it matches the MATLAB output.