Design of battery management system based on DSP and OZ890

Publisher:MusicLover123Latest update time:2011-11-28 Source: 互联网Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Based on the design requirements and functions, this paper designs a battery management system for hybrid electric vehicles. The hardware
system includes: power module, single cell voltage acquisition circuit and I2C communication circuit based on OZ890, RS232
serial communication and CAN communication based on DSP, etc. The software system includes: using periodic interrupts and underflow interrupts to realize data
acquisition and processing, SOC estimation and various communication programs.
Keywords: battery management system; OZ890; I2C bidirectional isolation; underflow interrupt
Document code: TM912.2 Document identifier: A Article number:
Design of battery management system based on DSP and OZ890
WANG Tao, QI Bo-jin, WU Hong-jie, LI Wei(School of Mechanical Engineering & Automation, Beihang University, Beijing 100191, China)
Abstract: A battery management system for Hybrid Electrical Vehicle is designed according to its design requirements and functions. The design of BMS contains two parts: hardware system and software system. The hardware system comprises power module, data acquisition and communication circuit, I2C bus circuit, CAN bus circuit, RS232 circuit and so on. The software
comprises data acquisition and processing program based on periodic interrupt and underflow interrupt, evaluation of SOC and communication programs.
Key words: battery management system; OZ890; Dual I2C Isolator; underflow interrupt
Battery Management System (BMS) is one of the key components of electric vehicles. A high-
performance and high-reliability battery management system can enable the battery to achieve optimal performance under various working conditions. The battery management system
can monitor the battery status in real time, such as battery voltage, charge and discharge current, operating temperature, etc.; predict the battery state of charge (SOC
) to prevent the battery from being overcharged or over-discharged, thereby improving the battery performance and life, and improving
the reliability and safety of hybrid vehicles.
This design mainly realizes functions such as data acquisition, battery status calculation, balancing control, thermal management, various communications, and fault diagnosis
.
1 Hardware composition of battery management system The
battery management system circuit consists of a power module, a DSP chip TMS320LF2407 A[1] (abbreviated as "LF2407"), a data acquisition module based on multiple OZ890[2], an I2C[3] communication module, an SCI communication module, and a CAN communication module. The system hardware block diagram is shown in Figure 1.

1.1 Power module
The power supply provided by the vehicle is +12V. The voltages required by the management system include: +3.3V (DSP, isolation circuit), +5V (bus
driver and other chips), ±15V (current sensor), which can be obtained through DC-DC conversion. This can not only meet
the power supply requirements of each chip but also play an isolation and anti-interference role.

1.2 Data acquisition module
The DSP completes the acquisition of total voltage, current and temperature. The OZ890 chip completes the acquisition and balancing of the battery cell voltage
and sends it to the DSP via the I2C bus. The circuit of this module mainly includes the front-end acquisition processing and balancing circuit.
1.3 I2C communication module
The OZ890 sampling module sends the collected and processed data to the LF2407 via the I2C bus. Since the LF2407 itself does not
have an I2C interface, this design uses PCA9564[4] to expand its I2C interface. In order to prevent electromagnetic interference from affecting
the transmission of data on the I2C bus, the bus signal must be isolated. Considering that the I2C bus is bidirectional, the ADuM1250 bidirectional isolation chip is used for isolation. The PCA9564 and the bidirectional isolation circuit are shown in Figure 2.

Figure 2 PCA9564 and bidirectional isolation circuit
PCA9564 is an I2C bus expander, connected to the GPIO port of LF2407, it supports data transmission and reception in master-slave mode,
LF2407 is set as the master device in BMS, and OZ890 is set as the slave device. LF2407
communicates with OZ890 by reading and writing the contents of four registers inside PCA9564.
ADuM1250 is a hot-swappable digital isolator, which contains a non-latching, bidirectional communication channel compatible with the I2C interface. In this way,
there is no need to divide the I2C signal into a transmission signal and a reception signal for use by a separate optocoupler.
1.4 Serial communication module
The battery management system sends the collected and processed data to the PC interface through the serial port to realize human-computer interaction. Through
the serial port interface, the total voltage, single cell voltage, current, SOC, fault status, charge and discharge power and other parameters of the battery can be observed
, and the online calibration of the management system can also be realized through the serial port. Its hardware circuit is mainly based on MAX232 chip, as shown in Figure 3a).

Figure 3 Serial communication interface circuit
MAX232 is a +5V power transceiver, connected to the computer serial port, to achieve RS-232 interface signal and TTL signal
level conversion, so that BMS and PC can perform asynchronous serial communication.
In order to prevent electromagnetic interference from affecting the transmission of data on the serial port, the bus signal must be isolated. The serial port is a one-way transmission,
so it is more convenient to use 6N137 photoelectric coupling. Figure 3b) shows the 232TXD signal photocoupler isolation circuit.
1.5 CAN communication module
CAN communication is an information bridge between the battery management system (BMS) and the vehicle HCU. The BMS sends the battery status
parameters to the HCU through the CAN bus. The HCU makes decisions by judging the current battery status, allocates
power between the motor and the engine, and controls the charging and discharging of the battery. At the same time, the BMS can also receive relevant commands sent by the HCU and make
corresponding processing. The hardware mainly uses the PCA82C250 universal CAN transceiver to provide
differential transmission capability for bus data and differential reception capability for communication bus data. The anti-interference capability of the CAN bus is enhanced through an optical coupling isolation circuit similar to Figure 3b)
. The hardware circuit is shown in Figure 4.

Figure 4 CAN communication interface circuit
In the circuit, whether to connect a 120Ω terminal resistor can be determined according to the requirements of the vehicle. When the JP201 jumper is connected to pins 1 and 2,
the resistor is not connected. When it is connected to pins 2 and 3, the resistor is connected.
2 Software design of battery management system
The battery management system software [6] system includes 6 tasks and 5 interrupts. The 6 tasks include: AD conversion processing task
(including reading data from OZ890), CAN receiving task, CAN sending task, SOC calculation task, system monitoring
fault diagnosis task and serial port sending task. The 5 interrupts include: AD acquisition interrupt service subroutine, Timer1 underflow interrupt
service subroutine, periodic interrupt subroutine, CAN bus receiving interrupt service subroutine and serial port receiving interrupt service subroutine,
as shown in the interrupt vector table below:
.ref _c_int0
.ref _ADC, _INT2, _INT5

.sect ".vectors"
rset: B _c_int0;00h reset
int1: B ADC ;02h ADC
int2: B _INT2 ;04h cycle, underflow interrupt
int3: B int3 ;06h INT3
int4: B int4 ;08h INT4
int5: B _INT5 ;0Ah CAN, SCI
int6: B int6 ;0Ch INT6
According to the vehicle control strategy, the refresh period of each frame of battery status data on CAN is 10ms, so
the clock beat of the periodic interrupt is set to 10ms; accordingly, the execution period of the above tasks is set to 10ms.

Figure 5 Cycle clock beat diagram
As can be seen from Figure 5, after the system initialization is completed, Time1 starts timing. When it reaches 5ms,
a cycle interrupt occurs at point A, and then the cycle interrupt subroutine is entered to start AD conversion and read the data in OZ890 through the I2C bus
. After the AD conversion is completed, the software triggers the ADC interrupt to save the data and perform corresponding processing, and clears the cycle interrupt flag
. When it reaches 10ms, an underflow interrupt occurs, and the underflow interrupt service subroutine is entered to execute the CAN sending task, SOC
calculation task, system monitoring fault diagnosis task, and serial port sending task. In addition, CAN reception and serial port reception are executed using
the interrupt trigger method. Using cycle interrupts and underflow interrupts to divide the task execution time area can not only meet
the CAN transmission requirements of 10ms per frame of data for the entire vehicle, but also each task time can be calculated through the status of the counter and the flag bit to calculate
the execution time of the task, so as to better allocate the execution time period of the task.
3 Conclusions
The battery management system adopts the structure of DSP+OZ890, and with the corresponding anti-interference measures, it has
the characteristics of high performance and low cost. Due to the use of a special battery sampling chip OZ890, the sampling accuracy is improved and
the overcharge problem caused by the imbalance of battery cell voltage is solved. At the same time, the hardware development cycle is greatly shortened, the reliability and maintainability of the system are enhanced
, and good results have been achieved in practical applications.
The author's innovation point: using the OZ890 battery sampling chip to measure battery data, and using PCA9564 to expand
the I2C interface of LF2407, the communication between LF2407 and OZ890 is realized.

Keywords:DSP Reference address:Design of battery management system based on DSP and OZ890

Previous article:Research on performance test of intelligent battery charger
Next article:Single-cell lithium-ion battery charger application circuit design based on MAX8844/MAX8844Z/MAX8844Y

Recommended ReadingLatest update time:2024-11-16 23:30

Design of train strain test system based on DSP
The force between the wheel and the track is an important factor in evaluating the running quality of the vehicle. Whether the force between the wheel and the track can be obtained accurately and timely directly affects the calculation of parameters such as the vehicle derailment coefficient. The strain force test sys
[Embedded]
Design of TMS320C30 and A/D and D/A interfaces
    Abstract: A design method for the interface between DSP and A/D and D/A with minimal hardware generation and simple software control. This method uses the program control capability of DSP to coordinate the work of various modules such as A/D and D/A, and does not require bus isolation. This method has been succe
[Analog Electronics]
Design and implementation of digital controller for intelligent switching power supply based on DSP and CPLD
   1 Introduction   In recent years, with the development of high-power switching power supplies, the requirements for controllers have become increasingly higher, and the digitization and intelligence of switching power supplies will also become the future development direction.   At present, most of my country's
[Power Management]
Design and implementation of digital controller for intelligent switching power supply based on DSP and CPLD
Key circuit design of laser particle size analyzer based on DSP and ARM
0 Introduction Laser particle size analyzer is a most advanced particle size measuring instrument with the broadest development prospects. Its measuring principle is based on Mie scattering theory. MIE scattering theory is a classic light scattering theory. Its biggest feature is that it can be used to meas
[Embedded]
Design of Adaptive Filter Based on DSP
  According to the principle of adaptive filtering, the paper mainly discusses and analyzes the easy-to-implement minimum mean square error algorithm. By comparing the advantages and disadvantages of IIR structure and FIR structure filters, the adaptive filter of lateral FIR structure is adopted to realize it. In orde
[Embedded]
Design of Adaptive Filter Based on DSP
Ultra-low power non-touch gesture control is possible with the help of audio DSP platform
  Wolfson Microelectronics plc, a global leading supplier of mixed-signal semiconductor devices and audio solutions for consumer electronics, and Elliptic Labs, a leading supplier of ultrasonic touchless gesture recognition for consumer electronic devices, recently announced that the two parties have established a par
[Embedded]
Ultra-low power non-touch gesture control is possible with the help of audio DSP platform
Generation, Analysis and Detection of DTMF Signaling of DSP
Dual Tone Multi-Frequency (DTMF) signaling is gradually being used on touch-tone telephones around the world. It quickly replaced the dial pulse signaling used in traditional rotary phones because it provides a higher dialing rate. In recent years, DTMF has also been used in interactive controls, such as voice menus,
[Power Management]
Generation, Analysis and Detection of DTMF Signaling of DSP
High-speed data transmission based on PCI bus between DSP and PC
TMS320C6713 is a new generation floating-point DSP chip of C6000 series launched by TI based on TMS320C6711. It is the one with the highest performance in C6000 series DSP chips so far. TMS320C6713 can realize 1800MIPS/1350MFLOPs of fixed-point and floating-point operations at a clock frequency of 255MHz, thus great
[Embedded]
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号