introduction
Battery energy saving and pollution are becoming increasingly concerned issues. In the field of traditional batteries, lead-acid batteries and nickel-metal hydride batteries have a series of problems in actual use: such as small specific capacity, unsuitable for fast charging and high current power generation, or more management problems when nickel-metal hydride batteries are connected in series. On the contrary, lithium batteries not only have better specific capacity than lead-acid batteries and nickel-metal hydride batteries, but also have the advantages of no memory effect, long service life and high voltage per cell.
In mining products, lithium batteries have gradually replaced lead-acid batteries and nickel-metal hydride batteries. However, there is also an important problem when using lithium batteries. The battery may explode when it is overcharged or over-discharged, so a good protection circuit is needed to prevent the problem of battery explosion. This article studies the use of STM32f103 microcontroller and LTC6802-1 chip to manage and protect lithium battery packs. This can not only give full play to the advantages of lithium batteries, but also eliminate some problems caused by the use of lithium batteries.
LTC6802 Introduction
Among many battery management chips, LTC6802 has outstanding performance. Its unique internal design enables it to detect up to 12 battery voltages at the same time, and its simple external circuit configuration enables us to easily build the system, which helps reduce costs and development time.
The LTC6802 has a high-precision analog-to-digital converter with up to 12 bits. A single LTC6802 can simultaneously detect the voltage of 12 series-connected single cells, and can also measure the total voltage of the battery pack. In the battery management system, we can combine multiple LTC6802 chips into a chain circuit to facilitate us to monitor battery packs with more than 12 cells or greater than 60V. This stackable architecture makes it possible for us to measure or manage 1000V battery systems. The temperature of the lithium battery pack can be monitored in real time using multiple channels such as its dual thermistor input and on-board temperature sensor.
The communication between LTC6802 and microprocessor is realized by a compatible serial interface. In the chain circuit, each LTC6802 can realize data communication through simple diode isolation. Its SPI timing diagram is shown in Figure 1.
The LTC6802 has multiple operating modes, such as standby mode, measurement mode, and monitoring mode; each mode has its own unique operating state:
Standby mode: When the system is powered on, the LTC6802 is in standby mode by default. At this time, except for the serial port and regulator circuit, all other circuits are in the off state. At this time, the LTC6802 current is at the minimum state.
Measurement mode: By setting the register CDC bit through a command, the LTC6802 can be placed in measurement mode. At this time, the voltage of the single cell is monitored normally, and the register can be used to determine whether it is overvoltage or undervoltage.
Monitoring mode: LTC6802 only monitors single cells in overvoltage or undervoltage state, and the serial communication circuit is in the off state;
It is widely used in electric and hybrid vehicles, high-power portable devices, backup power supplies, and high-voltage data acquisition systems. This article mainly applies it to backup power supplies and achieves good results.
Hardware system design
In Figure 2, the LTC6802 chain circuit can measure the values of multiple (12 or more) lithium battery cells. Through these voltage or temperature values, it can be determined whether the battery is overcharged, over-discharged or over-temperature. The STM32F103 main control chip reads the required values from the LTC6802 through its own SPI bus module, and uses the charge and discharge control unit to protect the lithium battery pack, which can also be displayed on the LCD human-machine interface.
Figure 2 Hardware system block diagram
STM32F103 control unit
This MCU is an ARM chip designed based on the Cortex-M3 core, with internal integrated SPI bus module, USB module, 16-channel ADC sampling and other peripherals. Its clock frequency can reach up to 72MHz, which can meet the needs of most occasions. Built-in 512KB high-speed memory and 64KB SRAM, rich enhanced I/O ports and peripherals connected to the APB bus make STM32F103 a very excellent MCU.
These rich peripheral resources make the STM32F103 series MCU suitable for a variety of occasions:
① Motor drive and application control;
②Medical and handheld devices;
③PC peripherals and GPS platform;
④Industrial applications: programmable controllers, frequency converters, printers and scanners;
⑤Alarm system, video system, backup battery system, etc.
In this system, the STM32F103 microcontroller is mainly used in the battery management system, that is, the backup power supply. The STM32F103 uses its own SPI peripheral to set the LTC6802 working mode, reads the battery cell voltage value and cell temperature value through the LTC6802, and sets the battery overvoltage, undervoltage and overtemperature alarm flags, and uses these values to manage the battery charge and discharge, so as to protect the battery.
In the hardware system block diagram, we can see that the system modules include: single-chip minimum system, LTC6802 chain circuit, battery balancing circuit, battery temperature measurement unit circuit, communication circuit, etc.
In this circuit, the STM32F103 microcontroller is mainly responsible for reading and writing LTC6802 information, controlling the balancing circuit, that is, the charge and discharge control unit, and can also detect the battery temperature and display these useful information on the human-machine interface. The circuit is shown in Figure 3.
Figure 3 STM32F103 control circuit
LTC6802 Chain Circuit
The LTC6802 chain circuit plays an important role in multi-battery information detection. We know that one LTC6802 chip can only manage 12 individual batteries, which is generally about 36V. In some cases, the battery voltage may be much greater than 36V. At this time, we can use the LTC6802 chain circuit to meet this requirement, as shown in Figure 4.
In Figure 4, SPI TOP and SPI BOTTOM connect the top LTC6802 and the bottom LTC6802. This can form a multi-stage LTC6802 chain circuit.
Figure 4 LTC6802 chain circuit
Control equalization circuit
The balancing circuit plays a vital role in the battery management process. Everything we do is to facilitate the management of the battery voltage and power balance. The role of the balancing circuit is to maintain the balance of the battery voltage, thus protecting the battery. The circuit is shown in Figure 5, where only part of the balancing circuit is shown.
Figure 5 Equalization circuit
Battery temperature measurement unit circuit
Each chip has its own operating temperature range. The temperature range of LTC6802 is <85℃. When its internal temperature exceeds 105℃, the sampling performance of LTC6802 will be reduced. What is more serious is that if its temperature reaches 150℃, the LTC6802 chip is very likely to be burned. Therefore, in order to protect the LTC6802 chip, a temperature detection circuit must be used, as shown in Figure 6.
Figure 6 Battery temperature measurement unit circuit
Here VTEMP2 is connected to NTC, and we can get the actual temperature value through NTC.
Communication circuit
The communication circuit between STM32F103 and LTC6802 is relatively simple, mainly SPI communication, as shown in Figure 7.
Figure 7 Communication circuit
Software Design
This battery management system adopts a modular programming method and uses high-level language programming. The main flow chart is shown in Figure 8.
Figure 8 shows the software programming of a single LTC6802 for data processing. The LTC6802 chip can be connected into a chain circuit. At this time, the STM32F103 sends read and write instructions to each level of LTC6802 from high to low. When writing instructions, data is transmitted from high to low, and the opposite is true for reading data.
LTC6802 has multiple instruction registers, such as voltage register, temperature register, flag register, and command register. Each register has its own special function. For example, by configuring the voltage register, we can set the overvoltage size, undervoltage size, etc.; by configuring the command register, we can set the number of battery measurements, etc. Table 1 lists the command registers.
Table 1 Command register
Figure 8 Program flow chart
Figure 9 LTC6802 management effect
The system uses a single-chip microcomputer as the main controller, and uses its own SPI peripheral to exchange data with the LTC6802. Here is a partial program list as follows:
void Ltc6802_Init(void)
{
GPIO_Configuration();
SPI_Configuration();
Ltc6802_Write();
}
Test Results
We can use special software to check the management effect of LTC6802. From Figure 9, we can see that there are 12 batteries in the battery pack, which means that only one LTC6802 chip is used here to manage the battery. The cell voltages CELL1 to CELL12 are all around 1.89V. From this software, we can also see the sampled temperature voltage: such as 2.487V. Of course, we need to convert it into temperature value manually. Another important thing is that this software can be used to set the over-voltage and under-voltage values of the cells in the battery pack.
Through this software, we can monitor the operating status of the lithium battery pack in real time and accurately determine whether any single cell is in an overvoltage or undervoltage state.
in conclusion
This article introduces the joint use of STM32F103 microcontroller and LTC6802 in detail, and gives a lithium battery management method. LTC6802 is a very excellent battery management chip. During the battery management process, it can accurately obtain the voltage and temperature of the battery cell of the battery pack, effectively balance the battery voltage, and realize the dynamic protection of the lithium battery pack. It can measure and monitor the voltage of the battery cell of a long string of lithium battery packs, and can also achieve the purpose of battery pack voltage balance by charging and discharging the battery. It can be widely used in places such as electric vehicles and backup power supplies. Of course, in this article, the system power consumption and current detection need to be improved.
Previous article:Monitoring circuit to save battery power
Next article:Design analysis of dual battery power supply solution based on bq24161+TPS2419
Recommended ReadingLatest update time:2024-11-16 15:47
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- TI Live: A detailed discussion of a candidate solution for "electric vehicle on-board charger". Will it be popular among engineers?
- DSPC6678 on-chip storage space allocation mechanism
- EEWORLD University Hall ---- Computer Control Devices Zhang Guangxin of Zhejiang University
- The most worrying thing happened: ARM complies with new US regulations and stops cooperating with Huawei
- Summary of remote firmware upgrade for MSP430, STM8L, cortex-M0 core
- Do all voltage rails need to use low quiescent current? Here's the answer!
- How Carrier Networks Will Achieve 5G 《Vintage Multi-Carrier Technology》
- Mentor Use
- Analysis of the working principles of seven triode collector DC circuits 2
- Circuit