Battery simulator
By designing a battery simulator with components such as microcontrollers, digital-to-analog converters, power amplifiers, etc., the problem of the need to connect to the real battery when testing battery management chips in the prior art is solved, and efficient and safe battery simulation tests are achieved, covering the full range of large currents to weak leakage currents.
Patent Information
- Application Number
- CN202421073970.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2034-05-17
AI Technical Summary
The prior art requires access to the real battery when testing the battery management chip, resulting in a prolonged test time and a safety risk, especially in the case of large currents and weak leakage currents, it is difficult to truly simulate the battery charge and discharge state.
Design a battery simulator, including a microcontroller, digital-to-analog converter, power amplifier, analog-to-digital converter, multiplexer and current acquisition module, through these components, simulating the charging and discharge state of the battery, covering the full range from large current to weak leakage current.
It realizes the real simulation of the battery charge and discharge state without connecting to the real battery, improves the test efficiency, reduces safety risks, and can meet the needs of different test scenarios.
Smart Images

Figure CN222800862U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery testing, and in particular to a battery simulator. Background Art
[0002] With the continuous development of electronic technology, electronic devices have become an indispensable part of daily life. In particular, 3C products, such as smart phones, tablets, smart wearable devices, etc., are widely popular due to their portability and flexibility. The stable operation and high performance of the above devices depend largely on efficient battery management chips. Battery management chips are responsible for managing the charging and discharging process of the battery to ensure the stable operation of the device and the long life of the battery. However, the charging and discharging of the battery is a complex electrochemical process affected by multiple factors such as temperature, current, and voltage. Therefore, accurate measurement and control of this process is crucial for the design and optimization of battery management chips.
[0003] In current technical practice, in order to test the performance of battery management chips, it is usually necessary to connect a real battery to simulate the charging and discharging process.
[0004] However, although the above method can more realistically reflect the working state of the battery and provide a certain basis for the performance evaluation of the battery management chip, it also exposes problems in actual operation. The charging and discharging speed of the real battery is relatively slow, which directly leads to the extension of the test time, thereby affecting the test efficiency. In addition, the safety risks when operating a real battery cannot be ignored. Improper operation may cause the battery to overheat or even explode and spontaneously combust, posing a potential threat to testers and the test environment. Therefore, how to truly simulate the charging and discharging state of the battery without connecting to a real battery, especially in the case of large current and weak leakage current, has become a technical problem that needs to be solved urgently in this field. Utility Model Content
[0005] In order to simulate the charging and discharging state of a battery without connecting to a real battery, the present application provides a battery simulator. The present application provides the following technical solutions:
[0006] A battery simulator comprises a microcontroller, a digital-to-analog converter, a power amplifier, an analog-to-digital converter, a multiplexer and a current acquisition module, wherein the microcontroller is connected to a computer used in conjunction with the battery simulator, and the computer is connected to a control end of the microcontroller; the output end of the microcontroller is connected to an input end of the digital-to-analog converter and an output end of the analog-to-digital converter, the output end of the digital-to-analog converter is connected to an input end of the power amplifier, the input end of the analog-to-digital converter is connected to one end of the multiplexer, the output end of the power amplifier is connected to an input end of the current acquisition module, and the other end of the multiplexer is connected to the current acquisition module;
[0007] The current acquisition module is used to connect to the product under test that is used in conjunction with a battery simulator, and the output end of the current acquisition module is connected to the power supply end of the battery management chip of the product under test; the current acquisition module includes an ampere acquisition unit, a milliampere acquisition unit, and a microampere acquisition unit connected in parallel.
[0008] In a specific implementation manner, the microcontroller is an MCU.
[0009] In a specific implementation scheme, the digital-to-analog converter is DAC8571.
[0010] In a specific implementation scheme, the power amplifier is OPA569.
[0011] In a specific implementation scheme, the structures of the ampere acquisition unit, the milliampere acquisition unit, and the microampere acquisition unit are all combinations of sampling resistors and operational amplifier amplification circuits.
[0012] In a specific implementation scheme, the output end of the microcontroller is also connected to an IO expansion circuit, the input end of the IO expansion circuit is connected to the output end of the microcontroller, and the output end of the IO expansion circuit is connected to the input end of the multiplexer.
[0013] In summary, the beneficial effects of this application include at least:
[0014] 1) The circuit design includes a multiplexer MUX and an analog-to-digital converter ADC. Through the control of the microcontroller MCU, different current acquisition units can be switched as needed to adapt to different test scenarios. In addition, through the software interface, users can set the parameters of the simulated battery, further increasing the flexibility and adaptability of the test. This design enables the circuit to provide a variety of different test modes to meet the needs of various application scenarios.
[0015] 2) The microcontroller MCU calculates the current analog voltage value according to the set parameters, and outputs the corresponding voltage to the product under test through the digital-to-analog converter DAC and the power amplifier, thereby simulating the voltage of the battery at different power levels. At the same time, according to the voltage value standard of the lithium battery, when the analog voltage value is in different ranges, the IO expansion circuit controls the multiplexer MUX to select different current acquisition units to simulate the behavior of the battery at different power levels (such as discharge, charge, and trickle mode). This design enables the test to more comprehensively reflect the performance of the battery management chip at different power levels.
[0016] The digital signal is converted into an analog voltage signal by using a digital-to-analog converter DAC, and these signals are amplified by a power amplifier to simulate the voltage output of the battery. In order to perform accurate measurements in different current ranges, a current acquisition module including an ampere acquisition unit, a milliampere acquisition unit, and a microampere acquisition unit is designed. These units can cover the full range from large current to weak leakage current, thereby simulating the charge and discharge state of the battery without connecting to a real battery.
[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the structure of the battery simulator in this embodiment. DETAILED DESCRIPTION
[0019] The present application is further described in detail below in conjunction with the accompanying drawings.
[0020] The embodiment of the present application discloses a battery simulator.
[0021] Reference Figure 1 The battery simulator includes a microcontroller, a digital-to-analog converter DAC, a power amplifier, and a current acquisition module. The microcontroller is used to connect to a computer PC used in conjunction with the battery simulator. The computer PC is connected to the control end of the microcontroller. The output end of the microcontroller is connected to the input end of the digital-to-analog converter DAC. The output end of the digital-to-analog converter DAC is connected to the input end of the power amplifier. The output end of the power amplifier is connected to the input end of the current acquisition module. The current acquisition module is used to connect to the product under test used in conjunction with the battery simulator. Specifically, the output end of the current acquisition module is connected to the power supply end of the battery management chip of the product under test.
[0022] Optionally, MCU is selected as the microcontroller in the embodiment of the present application, and other types of controllers may also be selected. The present application does not limit the specific implementation method of the microcontroller.
[0023] Optionally, in the embodiment of the present application, DAC8571 is selected as the specific model of the digital-to-analog converter, and other models of digital-to-analog converters may also be selected. The present application does not limit the specific model of the digital-to-analog converter.
[0024] Optionally, OPA569 is selected as the specific model of the power amplifier in the embodiment of the present application, and other models of power amplifiers may also be selected. The present application does not limit the specific model of the power amplifier.
[0025] Reference Figure 1 In implementation, based on the above hardware settings, it is convenient to assist in realizing a battery simulation test on the battery management chip of the product under test. The user sets the parameters of the simulated battery through the software interface of the computer PC. Then the microcontroller MCU calculates the current analog voltage value according to the parameters set by the computer PC and generates a digital signal to send to the digital-to-analog converter DAC. The digital-to-analog converter DAC converts the digital signal into an analog voltage signal and outputs it to the power amplifier. The power amplifier amplifies and outputs the corresponding voltage to the product under test according to the analog voltage signal output by the digital-to-analog converter DAC, simulating the voltage output of the battery.
[0026] Reference Figure 1 The current acquisition module includes an ampere acquisition unit, a milliampere acquisition unit and a microampere acquisition unit connected in parallel, wherein the structures of the ampere acquisition unit, the milliampere acquisition unit and the microampere acquisition unit are all a combination of a sampling resistor and an operational amplifier amplification circuit, and the difference lies only in the different resistance values of the sampling resistors. The current range corresponding to the ampere acquisition unit is 2mA-2A, the current range corresponding to the milliampere acquisition unit is 2uA-2mA, and the current range corresponding to the microampere acquisition unit is 0-2uA.
[0027] Reference Figure 1 The battery simulator also includes an analog-to-digital converter ADC, a multiplexer MUX and an IO expansion circuit. The output end of the microcontroller is respectively connected to the output end of the analog-to-digital converter ADC and the input end of the IO expansion circuit. The input end of the analog-to-digital converter ADC and the output end of the IO expansion circuit are both connected to one end of the multiplexer MUX, and the other end of the multiplexer MUX is connected to the current acquisition module.
[0028] Reference Figure 1In the implementation, based on the above hardware settings, it is convenient to assist in realizing that when the battery management chip of the product under test is subjected to battery simulation test, after the microcontroller MCU calculates the analog voltage value, on the one hand, it is transmitted to the battery management chip through the digital-to-analog converter DAC and the power amplifier, and on the other hand, the corresponding current acquisition unit is selected according to the analog voltage value and the corresponding voltage value standard. Specifically, the output end of the microcontroller MCU selects the switching of the three current acquisition units in the multiplexer MUX and the current acquisition module through the IO expansion circuit. After switching to the specified current acquisition unit, the current acquisition unit collects the current value and generates an analog current signal. The analog current signal is input to the input end of the analog-to-digital converter ADC through the multiplexer MUX, and is converted into a digital signal and then fed back to the microcontroller MCU to judge whether the collected current value is within the preset range. If it is, it is good, and if it is not, it is bad. The circuit design includes the multiplexer MUX and the analog-to-digital converter ADC. Through the control of the microcontroller MCU, different current acquisition units can be switched as needed to adapt to different test scenarios. In addition, through the software interface, the user can set the parameters of the simulated battery, which further increases the flexibility and adaptability of the test. This design enables the circuit to provide a variety of different test modes to meet the needs of various application scenarios.
[0029] Optionally, the embodiment of the present application adopts the voltage value standard of lithium batteries. When the analog voltage value is greater than or equal to 4.7V, the IO expansion circuit controls the multiplexer MUX to select the ampere acquisition unit, and the battery simulation is in a discharge state. If the analog voltage value is greater than 2.8V and less than 4.7V, the IO expansion circuit controls the multiplexer MUX to select the milliampere acquisition unit, and the battery simulation is in a charging state. If the analog voltage value is less than 2.8V, the IO expansion circuit controls the multiplexer MUX to select the microampere acquisition unit, and the battery simulation is in a trickle mode.
[0030] In addition, the microcontroller MCU calculates the current analog voltage value according to the set parameters, and outputs the corresponding voltage to the product under test through the digital-to-analog converter DAC and the power amplifier, thereby simulating the voltage of the battery at different power levels. At the same time, according to the voltage value standard of the lithium battery, when the analog voltage value is in different ranges, the IO expansion circuit controls the multiplexer MUX to select different current acquisition units to simulate the behavior of the battery at different power levels (such as discharge, charge, and trickle mode). This design enables the test to more comprehensively reflect the performance of the battery management chip at different power levels.
[0031] In summary, the present application converts digital signals into analog voltage signals by using a digital-to-analog converter DAC, and amplifies these signals through a power amplifier to simulate the voltage output of the battery. In order to perform accurate measurements in different current ranges, a current acquisition module including an ampere acquisition unit, a milliampere acquisition unit, and a microampere acquisition unit is designed. These units can cover the full range from large currents to weak leakage currents, thereby truly simulating the charge and discharge state of the battery without connecting to a real battery.
[0032] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A battery simulator, characterized in that: It includes a microcontroller, a digital-to-analog converter, a power amplifier, an analog-to-digital converter, a multiplexer and a current acquisition module. The microcontroller is used to connect to a computer used in conjunction with a battery simulator, and the computer is connected to a control end of the microcontroller; the output end of the microcontroller is connected to the input end of the digital-to-analog converter and the output end of the analog-to-digital converter, the output end of the digital-to-analog converter is connected to the input end of the power amplifier, the input end of the analog-to-digital converter is connected to one end of the multiplexer, the output end of the power amplifier is connected to the input end of the current acquisition module, and the other end of the multiplexer is connected to the current acquisition module; The current acquisition module is used to connect to the product under test that is used in conjunction with a battery simulator, and the output end of the current acquisition module is connected to the power supply end of the battery management chip of the product under test; the current acquisition module includes an ampere acquisition unit, a milliampere acquisition unit, and a microampere acquisition unit connected in parallel.
2. The battery simulator according to claim 1, characterized in that: The microcontroller is MCU.
3. The battery simulator according to claim 1, characterized in that: The digital-to-analog converter is DAC8571.
4. The battery simulator according to claim 1, characterized in that: The power amplifier is OPA569.
5. The battery simulator according to claim 1, characterized in that: The structures of the ampere acquisition unit, the milliampere acquisition unit and the microampere acquisition unit are all combinations of sampling resistors and operational amplifier amplification circuits.
6. The battery simulator according to claim 1, characterized in that: The output end of the microcontroller is also connected to an IO expansion circuit, the input end of the IO expansion circuit is connected to the output end of the microcontroller, and the output end of the IO expansion circuit is connected to the input end of the multiplexer.