Electric vehicles are vehicles that are fully or partially driven by electric motors. Currently, there are three main types of vehicles: pure electric vehicles, hybrid electric vehicles, and fuel cell vehicles. Electric vehicles are currently powered by lead-acid batteries, lithium batteries, nickel-metal hydride batteries, etc.
Lithium batteries have high cell voltage, high specific energy and high energy density, and are currently the batteries with the highest specific energy. However, it is precisely because of the high energy density of lithium batteries that they will cause safety accidents when they are misused or abused. The battery management system can solve this problem. When the battery is in the state of over-voltage during charging or under-voltage during discharging, the management system can automatically cut off the charge and discharge circuit, and its power balancing function can ensure that the voltage difference of a single battery is maintained within a very small range. In addition, it also has functions such as over-temperature, over-current, and remaining power estimation. This article designs a battery management system based on a single-chip microcomputer.
1. Hardware composition of battery management system
The system's hardware circuit can be divided into MCU module, detection module and balancing module.
1.1 MCU module
MCU is the core of system control. The MCU used in this article is the GZ16 model of the M68HC08 series. All MCUs in this series use the enhanced M68HC08 central processor (CP08). This microcontroller has the following features:
(1) 8 MHz internal bus frequency; (2) 16 KB of built-in FLASH memory; (3) 2 16-bit timer interface modules; (4) Clock generator supporting 1 MHz to 8 MHz crystal oscillators; (5) Enhanced serial communication interface (ESCI) module.
1.2 Detection Module
The detection module will introduce the voltage detection, current detection and temperature detection modules respectively.
1.2.1 Voltage detection module
In this system, the microcontroller will detect the overall voltage and single-cell voltage of the battery pack. There are two methods for detecting the overall voltage of the battery pack: (1) using a dedicated voltage detection module, such as a Hall voltage sensor; (2) using precision resistors to build a resistor voltage divider circuit. The use of a dedicated voltage detection module is expensive and requires a specific power supply, and the process is relatively complicated. Therefore, a voltage divider circuit is used for detection. The voltage variation range of a 10-string lithium manganese oxide battery pack is 28 V to 42 V. Using 3.9 M? and 300 k? resistors for voltage division, the range of the collected voltage signal is 2 V to 3 V, and the corresponding AD conversion results are 409 and *.
For the detection of single cells, flying capacitor technology is mainly used. The principle diagram of flying capacitor technology is shown in Figure 1, which is a protection circuit diagram of the last 4 cells of the battery pack. Through the four-channel switch array, the voltage of any one of the last 4 cells can be collected into the single-chip microcomputer, and the single-chip microcomputer outputs a driving signal to control the conduction and shutdown of the MOS tube, thereby protecting the charging and discharging of the battery pack.
As shown in Figure 1, this is the protection circuit diagram of the last 4 cells of the battery pack. The voltage of any one of the last 4 cells can be collected into the single-chip microcomputer through a four-channel switch array. The single-chip microcomputer outputs a drive signal to control the on and off of the MOS tube, thereby protecting the charging and discharging of the battery pack.
The above 6 batteries can be realized by using 2 three-channel switch arrays. MAX309 is a 4-to-1 dual-channel multi-way switch, which realizes channel selection by address selection. Switches S5, S6, and S7 are responsible for connecting the positive electrode of the battery to the positive electrode of the flying capacitor. Switches S2, S3, and S4 are responsible for connecting the negative electrode of the battery to the negative electrode of the flying capacitor. The structure of the three-channel switch array is similar to that of the four-channel switch array, except that the number of channels is one less. When working, the microcontroller sends a channel address signal to connect the positive and negative electrodes of one of the batteries to the capacitor to charge the capacitor, then disconnect the channel switch and connect the switch of the follower amplifier. The microcontroller quickly detects the voltage of the capacitor, thereby completing the voltage detection of one battery. If the detection voltage is found to be less than 2.8 V, it can be inferred that the battery may be short-circuited, over-discharged, or the detection line from the protection system to the battery is broken, and the microcontroller will immediately send a signal to cut off the main circuit MOS tube. Repeat the above process, and the microcontroller will complete the detection of the battery managed by this module.
1.2.2 Current sampling circuit
When sampling current, the parameters in the battery management system are important bases for battery overcurrent protection. The current sampling circuit in this system is shown in Figure 2. When the battery is discharged, the current signal is detected by the constantan wire, and the detected voltage signal is amplified by the differential amplifier and converted into a 0-5 V voltage signal and sent to the single-chip microcomputer. If the discharge current is too large, the voltage signal detected by the single-chip microcomputer is relatively large, which will drive the triode to act, change the MOS tube gate voltage, and shut down the discharge circuit. For example, for a 36 V lithium manganese oxide battery, the protection current is set to 60 A. The resistance of the constantan wire is about 5 mΩ. When the current reaches 60 A, the voltage of the constantan wire reaches about 300 mV. In order to improve the accuracy, the voltage is amplified 10 times by the amplifier and sent to the single-chip microcomputer for detection.
1.2.3 Temperature detection
During the charging and discharging process of the battery pack, part of the energy is released in the form of heat. If this heat is not removed in time, it will cause the battery pack to overheat. If the temperature of a single NiMH battery exceeds 55°C, the battery characteristics will deteriorate, the charge and discharge balance of the battery pack will be broken, and then the battery pack will be permanently damaged or exploded. To prevent the above situation from happening, it is necessary to monitor the battery pack temperature in real time and perform heat dissipation treatment.
Thermistors are used as temperature sensors for temperature sampling. Thermistors are heat-sensitive semiconductor resistors whose resistance decreases as temperature increases. The resistance-temperature characteristic can be approximately expressed by the following formula:
1.3 Balance module
Common equalization methods for battery packs include shunt method, fast capacitor equalization charging method, inductive energy transfer method, etc. In this system, more I/O ports are needed to drive the switch tube, but the I/O ports of the single-chip microcomputer are limited, so the charging equalization method of full charge to single charge is adopted. The schematic diagram is shown in Figure 3. Q4 is the switch that controls the full charge of the battery pack, and Q2, Q3, and Q5 are switches that control the charging of a single battery. Taking a 10-cell lithium manganese oxide battery pack as an example, the voltage across the main coil of the transformer is 42 V, and the voltage of the secondary coil is the rated voltage of the battery, 4.2 V. At the beginning, Q4 is turned on, Q2, Q3, and Q5 are turned off, and the voltage of a single battery continues to rise. When it is detected that the voltage of a certain battery reaches the rated voltage of 4.2 V, the voltage detection chip sends a drive signal, closes Q4, opens Q2, Q3, and Q5, and the entire system enters the single charge stage. The unfilled battery continues to charge, so that the battery that reaches the rated voltage maintains the rated voltage unchanged. After testing, the voltage difference will not exceed 50 mV
[page]
2 SOC power detection
In lithium-ion battery management systems, commonly used SOC calculation methods include open circuit voltage method, Coulomb calculation method, impedance measurement method, and comprehensive table lookup method.
(1) The open circuit voltage method is the simplest measurement method, which mainly determines the SOC based on the open circuit voltage of the battery. From the working characteristics of the battery, it can be seen that there is a certain corresponding relationship between the open circuit voltage of the battery and the remaining capacity of the battery.
(2) The Coulomb calculation method measures the charging and discharging current of the battery, integrates the product of the current value and the time value, and calculates the amount of electricity charged and discharged by the battery, thereby estimating the SOC value.
(3) The impedance measurement method uses the linear relationship between the internal resistance of the battery and the state of charge (SOC). By measuring the voltage and current parameters of the battery, the internal resistance of the battery is calculated, thereby obtaining an estimated value of the SOC.
(4) In the comprehensive table lookup method, the remaining capacity SOC of the battery is closely related to the battery voltage, current, temperature and other parameters. By setting up a correlation table and inputting parameters such as voltage, current, temperature, etc., the remaining capacity value of the battery can be queried.
In this design, considering the integration of the circuit, cost, and performance of the selected MCU, the software programming method is adopted. Combining several methods, the Coulomb calculation method is more appropriate.
(1) C represents the total amount of electricity discharged when the lithium battery pack drops from 42 V to 32 V.
(2) η represents the ratio of the amount of electricity discharged after the current i passes through time t to C.
Where CRM is the remaining capacity. Let ΔCi=i×Δt, which represents the discharge amount of the battery pack at i discharge during the dwell time t; or the charge amount at i charge. The remaining capacity is actually the calculation and accumulation of ΔCi. Set a suitable sampling time Δt, measure the current current value, and then calculate the product to obtain the change in the remaining capacity CRM within the Δt time, so as to continuously update the value of CRM and realize the detection of SOC capacity.
3 Test results
The battery management system is used to test the charge and discharge of the lithium manganese oxide battery pack. Figure 4(a) is a test diagram of the lithium battery pack discharge. The discharge current is 8 A. When the battery pack voltage drops to 32 V, the discharge MOS tube is turned off. Figure 4(b) is a test diagram of the charge. After 4 hours of charging, the balance is completed.
The battery management system in this paper is based on M68HC08GZ16, which realizes the acquisition of voltage, current and temperature signals of battery pack. After the charging power is balanced, the voltage difference of the single battery does not exceed 50 mV. The overall system has good operating performance and can meet the application needs of electric vehicle power battery packs.
Previous article:Uninterruptible power supply system based on MC68HC908MR16 digital control
Next article:Design of a new three-phase electric energy metering system based on MC68HC908LJl2
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【Distributed temperature and humidity acquisition system】+MFC software
- Use of EEPROM inside STC microcontroller - Recording power-on times
- Regarding the number of bits of the microcontroller, the number of bits of the ADC, and the number of bits of the PWM, ADC and PWM are both indicators that reflect the resolution...
- Please teach me an op amp circuit - RMS to DC circuit
- 【Silicon Labs Development Kit Review】+ PWM Example Test
- Porter-3: Will this topology work?
- Problem with the abs function
- Xunwei i.MX6ULL development board-Transplant OpenCv2.4.9-QT program compilation
- [Me and Arteli] DIY an AT32 board, full of favorability
- Microcontroller selection