Professional Documents
Culture Documents
BMS Development
BMS Development
OVERVIEW
3
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
WHY BMS?
• The battery charger provides a single DC output voltage to
charge the battery pack at the nominal 400Vdc or 800Vdc,
depending upon the configuration.
• The charging voltage will be distributed across the series-
connected blocks of cells.
• If there is any non-uniformity among the series blocks of cells
within the pack, a non-uniform charge will be applied to the
cells. Battery modules connected together to
• Any non-uniformity of the cell voltage during charging can form a battery pack
cause a non-uniform capacity of the cells, degrading their
performance or could cause damage to the cells and
possible fire.
• Battery Management Systems (BMS) are required to monitor
and manage the battery pack to ensure safety, reliability,
optimal mileage range and maximum lifetime.
• Non-uniformity during charging can be corrected for using
cell voltage balancing.
• Other functions of the BMS include temperature monitoring
and protection and alarm reporting.
5
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
6
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
7
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
8
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
9
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
10
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Texas Instruments
• bq76PL455A-q1: https://www.ti.com/product/BQ76PL455A-Q1
• 6 to 16 cells for each chip; up to sixteen chips connected in series
• 8 auxiliary analog inputs for temperature measurement
• Balancing control outputs
• 8 GPIOs, integrated comparators
• Serial UART communication
• Support for ISO26262
• Evaluation module bq76PL455EVM:
https://www.ti.com/tool/BQ76PL455EVM?utm
• On-board balancing resistors (passive)
• On-board isolated daisy-chain communication
• Up to six can be connected in series
11
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
ST
• L9963: https://www.st.com/en/automotive-analog-and-
power/l9963.html
• 4 to 14 cells for each chip; up to fifteen chips connected in
series
• 7 auxiliary analog inputs for temperature measurement
• 9 GPIOs, integrated comparators
• Integrated balancing (200mA)
• Integrated coulomb counter
• Redundant measurements
• Serial SPI communication
• ISO26262 ASIL-D
• Evaluation module EVAL-L9963 -
https://www.st.com/en/evaluation-tools/eval-l9963.html
• 4 temperature sensing channels + current sensing
13 • Isolated SPI communication
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Other Manufacturers
• NXP: MC33771B chip – FRDM33771BTPLEVB | MC33771 TPL EVB | NXP Semiconductors
• The evaluation module FRDM33771BTPLEVB using the NXP MC33771B chip –
FRDM33771BTPLEVB | MC33771 TPL EVB | NXP Semiconductors
• Analog Devices: LTC6811 chip – DC2259A Evaluation Board | Analog Devices
• The evaluation module DC2259A using the Analog Devices LTC6811 chip – DC2259A
Evaluation Board | Analog Devices
• Maxim: MAX17853 chip – MAX17853EVKIT Evaluation Kit for the MAX17853 - Maxim Integrated
• The evaluation module MAX17853EVKIT using the Maxim MAX17853 chip –
MAX17853EVKIT Evaluation Kit for the MAX17853 - Maxim Integrated
14
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
BATTERY PACK
15
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
16
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
17
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
V, T
Embed GUI
Isolated UART Balancing
V, T
Balancing
High-speed UART
V, T
For initial development, the BMS evaluation boards can be directly Charger
connected to the PC and communication is performed from the GUI / Load
over the PC USB serial interface using the Embed real-time serial
communication blocks.
18
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
JTAG V, T
High-speed UART
Balancing
V, T
Pack V, I
CAN to
external On/Off, V/I control
Charger
controllers / Load
/ devices This design example implements the bq76PL455EVM
from TI with the TMS320F28379D microcontroller
19 also from TI.
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Balancing
Isolated UART2
JTAG V, T
Balancing
Isolated SPI
V, T
Pack V, I
CAN to
external On/Off, V/I control
Charger
controllers It is possible to evaluate different BMS solutions simultaneously / Load
/ devices utilizing the multiple communication ports of the microcontroller
to monitor and control sections of the battery pack monitored by
20 different manufacturer’s development boards.
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Software
• Altair Embed
Professional
• Altair Digital Power
Addon
21
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
BMS SYSTEM
• Custom solutions can be developed according to customer
requirements.
• Altair Embed provides the flexible Integrated Development
Environment (IDE) in order to perform the complete set of
development tasks to achieve a final design.
24
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Top-level GUI
- Configuration dialogs
29
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
30
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
31
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Faults View
- Viewing individual alarms of all
configured EVMs
32
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Registers View
• Viewing the actual configuration
register values
• Viewing the actual active register
values (faults, balancing and
GPIOs).
• Viewing the actual thresholds and
analog adjustments converted to
comprehensible values.
33
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
34
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Table View
- Cell voltages and temperatures
35
BMS Control and Monitoring Diagram GUI © Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
in Altair Embed
36
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Logging of events
Measurements can be logged to
a customer selected file.
37
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Step 1:
• Develop a routine included within the GUI diagram that uses the Altair Embed real-time serial
blocks for communication directly with the BMS hardware (no microcontroller required).
• The routine is developed in a way so that it is modular and sections can be code-generated to later
test in the microcontroller.
• Start with one EVM and add further EVMs to verify multi-EVM communication and monitoring.
• For safety reasons, multiple battery boards can be left unconnected at the positive end during the
Steps to BMS
software development (no series connection), thus limiting the maximum DC voltage and reducing
the risk of error.
• Use of the real-time serial blocks allows easier debugging especially during the initial phases of
Step
the2:
development.
Software • With the same routine and GUI as developed in step1, select sections of the underlying control
blocks which can be code-generated for the microcontroller and each section can be verified as
desired.
Complete
• In this step, the section monitoring the battery board is code-generated in the original diagram and
a target interface diagram is added to a new copy of the diagram, with the target interface block
simply replacing the original block that was code-generated. The BMS hardware and the
microcontroller communicate independently and concurrently with the GUI.
Development Step 3:
with Embed
• Returning to the diagram in step 1, a larger section of the underlying control blocks is code-
generated for operation in the micro-controller. In this step, the whole control and monitoring
routine is code-generated to operate in the microcontroller.
• The microcontroller communicates with the BMS hardware via the UART interface while it
communicates with the GUI over the JTAG interface using the target interface block which
substitutes the original control block.
Step 4:
• In this step a CAN bus routine is added and can communicate over the Embed PCAN blocks in the
original GUI or a new GUI.
• The CAN bus interface, if sufficiently complex, can substitute the original GUI and eliminate the
need for the JTAG interface.
• The routine can be programmed into the microcontroller flash memory at this stage and run
independently of the GUI if necessary.
38
Steps to BMS Software Development with © Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Embed – Step 1.
Hardware and software setup
Embed – Step 2.
Hardware and software setup
Embed – Step 3.
Hardware and software setup
Embed – Step 4.
Hardware and software setup
CAN bus
Original GUI
optional
The CAN connection provides an alternative (or parallel) method to interface with
42 the control, monitoring and communication diagram running on the microcontroller.
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
43
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
44
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
BMS Control
and Monitoring
Diagram
Example in
Altair Embed
45
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
47
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
48
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
49
© Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
BMS Embed diagrams can be found in the Digital Power Designer (DPD) add-on to Altair Embed.
50
THANK YOU
altair.com
#ONLYFORWARD