Program-controlled battery simulation system and implementation method thereof
By designing a programmable battery simulation system, the problems of high cost, large size and inability to be quickly integrated in existing battery simulation devices are solved. This results in a battery simulation system with miniaturized circuitry and low cost, which can be applied to more application scenarios. It also solves the integration problem of production and testing systems for existing battery simulation devices, and realizes application scenarios with miniaturized circuitry and lower cost.
Patent Information
- Application Number
- CN202511515064.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-22
- Publication Date
- 2026-02-17
AI Technical Summary
Existing battery simulation devices are costly and bulky, making them difficult to integrate quickly into production testing systems. Furthermore, they cannot simulate battery charging functions, resulting in low R&D and production efficiency.
Design a programmable battery simulation system, including an input port, a power isolation circuit, a level conversion isolation circuit, and a battery simulation circuit. The level conversion isolation circuit adapts to I2C communication at different levels, directly connects to an external I2C communication interface, and outputs a target voltage to simulate a battery interface. It can be programmed or manually adjusted to suit more application scenarios.
This results in a small circuit size and low cost, enabling rapid integration into testing systems, making it suitable for more application scenarios, reducing production costs and shortening the R&D and production cycle.
Smart Images

Figure CN121541059A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery simulation technology, and in particular to a programmable battery simulation system and its implementation method. Background Technology
[0002] With the rapid improvement of living standards, various mobile electronic devices are emerging in an endless stream, leading to a surge in demand for battery products and promoting the rapid development of clean energy products such as batteries. In the research and development and production of battery-equipped products, it is necessary to test the product's operating status and other parameters under different battery charge and current conditions. However, controlling the battery charge through charging and discharging is time-consuming, difficult to control precisely, and results in energy waste. Therefore, battery simulation devices capable of adjusting charge can significantly shorten the research and development and production cycle and reduce product costs.
[0003] To address the functional and application requirements of battery simulation devices, battery simulators have emerged as standard instruments, meeting the R&D needs of products with portable batteries. However, their high cost and large size limit their application scenarios (such as mass production testing). Some standard battery simulation boards can also meet the corresponding R&D and production needs, but they have certain limitations in the integration of production testing systems (such as interfaces, locations, and communication protocols). Some products still use batteries during the R&D process, which is inefficient and cannot quickly control the battery output voltage; or they use DC power supplies instead of batteries, which cannot simulate battery charging functions. Summary of the Invention
[0004] To address the aforementioned technical problems, the purpose of this application is to provide a programmable battery simulation system and its implementation method, which has a small circuit size, low cost, and can be applied to more application scenarios.
[0005] To achieve the above objectives, one aspect of this application proposes a programmable battery simulation system, comprising: The input port connects to the external power supply interface and communication interface, and is used to input system voltage and I2C level signals. A power isolation circuit, connected to the input port, is used to output an isolated power supply voltage according to the system voltage; A level conversion and isolation circuit, connected to the input port, is used to perform level conversion and isolation on the I2C level signal and output the target I2C signal; A battery simulation circuit, connected to the power isolation circuit and the level conversion isolation circuit, is used to output a target voltage based on the isolated power supply voltage and the target I2C signal; The output port is connected to the battery simulation circuit and is used to simulate the battery interface.
[0006] In some embodiments, the power isolation circuit includes: A power isolation module, connected to the input port, is used to obtain the isolation power supply voltage based on the system voltage; A filtering circuit, which is connected to the power isolation module, is used to provide a filtering capacitor to the power isolation module; An enable circuit, connected to the power isolation module, is used to control the operating state of the power isolation module.
[0007] In some embodiments, the level shifting isolation circuit includes: A level conversion circuit, connected to the input port, is used to convert the I2C level signal to obtain a target level I2C signal; A signal isolation circuit, connected to the level conversion circuit, is used to isolate the target level I2C signal to obtain the target I2C signal.
[0008] In some embodiments, the target voltage includes a first target voltage or a second target voltage, and the battery simulation circuit includes: A voltage regulator circuit, connected to the power isolation circuit, is used to output a reference voltage based on the isolation power supply voltage; A programmable voltage divider circuit, connected to the level conversion isolation circuit, is used to output the first target voltage according to the target I2C signal; A manually adjustable voltage divider circuit is used to output the second target voltage according to the manual adjustment signal input by the user; The battery simulation module is connected to the programmable voltage divider circuit and the manually adjustable voltage divider circuit, and is used to output a target current or input a target current according to the first target voltage or the second target voltage to simulate battery charging and discharging.
[0009] In some embodiments, the battery simulation module includes: The system includes a DIP switch and a bidirectional power amplifier. The first pin of the DIP switch is connected to the manually adjustable voltage divider circuit, the second pin of the DIP switch is connected to the bidirectional power amplifier, and the third pin of the DIP switch is connected to the programmable voltage divider circuit.
[0010] In some embodiments, the programmable voltage divider circuit includes: The system includes a digital potentiometer, a ninth capacitor, a tenth capacitor, a tenth resistor, an eleventh resistor, and a twelfth resistor. The first pin of the digital potentiometer is connected to the third pin of the DIP switch. The fourth and fifth pins of the digital potentiometer are both connected to the level conversion isolation circuit. The sixth and eighth pins of the digital potentiometer are both connected to one end of the ninth and tenth capacitors. The second pin of the digital potentiometer is connected to one end of the tenth resistor. The third pin of the digital potentiometer is connected to one end of the eleventh resistor. The ninth pin of the digital potentiometer is connected to one end of the twelfth resistor. The other ends of the ninth, tenth, tenth, eleventh, and twelfth capacitors are all grounded.
[0011] In some embodiments, the manually adjustable voltage divider circuit includes: A potentiometer and a fifteenth resistor are provided. The potentiometer is connected to the first pin of the DIP switch. One end of the potentiometer is connected to the voltage regulator circuit, and the other end of the potentiometer is connected to one end of the fifteenth resistor, which in turn is connected to the voltage regulator circuit.
[0012] In some embodiments, the bidirectional power amplifier is used to output a first drive signal based on the current current and a preset current limit value, and / or to output a second drive signal based on the current temperature and a preset temperature threshold.
[0013] In some embodiments, the battery simulation system further includes: A monitoring circuit, connected to the bidirectional power amplifier, is used to output an abnormal current signal and / or an abnormal temperature signal based on the first drive signal and / or the second drive signal.
[0014] To achieve the above objectives, another aspect of this application proposes a method for implementing a programmable battery simulation system, comprising the following steps: The system voltage and I2C level signal are input through the input port; An isolation power supply voltage is output based on the system voltage via a power isolation circuit. The I2C level signal is level-converted and isolated by a level-conversion isolation circuit, and the target I2C signal is output. The target voltage is output based on the isolated power supply voltage and the target I2C signal through the battery simulation circuit; The output port simulates a battery interface.
[0015] The beneficial effects of this application are as follows: This application provides a programmable battery simulation system and its implementation method, including an input port, a power isolation circuit, a level conversion isolation circuit, a battery simulation circuit, and an output port. The input port is used to input system voltage and I2C level signals; the power isolation circuit is used to output an isolated power supply voltage according to the system voltage; the level conversion isolation circuit is used to perform level conversion and isolation on the I2C level signals and output a target I2C signal; the battery simulation circuit is used to output a target voltage according to the isolated power supply voltage and the target I2C signal; and the output port is used to simulate a battery interface. This application adapts to I2C communication at different levels through the level conversion isolation circuit, directly connects to an external I2C communication interface, and eliminates the need for interface matching circuits, etc. It can be quickly integrated into a test system or circuit using only a power supply and an I2C interface; by outputting a specified voltage through the battery simulation circuit, it simulates different battery charge states, making it applicable to more application scenarios, and the overall circuit is smaller and lower in cost. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments of this application are described below. It should be understood that the drawings described below are only for the purpose of clearly illustrating some embodiments of the technical solutions in this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a structural block diagram of a programmable battery simulation system provided in one embodiment of this application; Figure 2 A circuit schematic diagram of a power isolation circuit provided in one embodiment of this application; Figure 3 This is a circuit schematic diagram of a level conversion isolation circuit provided in one embodiment of this application; Figure 4 A circuit schematic diagram of a battery simulation circuit and an output port provided in one embodiment of this application; Figure 5 A circuit schematic diagram of a monitoring circuit provided in one embodiment of this application; Figure 6 This is a schematic diagram illustrating the steps of a method for implementing a programmable battery simulation system according to an embodiment of this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0019] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”
[0020] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.
[0021] With the rapid improvement of living standards, various mobile electronic devices are emerging in an endless stream, leading to a surge in demand for battery products and promoting the rapid development of clean energy products such as batteries. In the research and development and production of battery-equipped products, it is necessary to test the product's operating status and other parameters under different battery charge and current conditions. However, controlling the battery charge through charging and discharging is time-consuming, difficult to control precisely, and results in energy waste. Therefore, battery simulation devices capable of adjusting charge can significantly shorten the research and development and production cycle and reduce product costs.
[0022] To address the functional and application requirements of battery simulation devices, battery simulators have emerged as standard instruments, meeting the R&D needs of products with portable batteries. However, their high cost and large size limit their application scenarios (such as mass production testing). Some standard battery simulation boards can also meet the corresponding R&D and production needs, but they have certain limitations in the integration of production testing systems (such as interfaces, locations, and communication protocols). Some products still use batteries during the R&D process, which is inefficient and cannot quickly control the battery output voltage; or they use DC power supplies instead of batteries, which cannot simulate battery charging functions.
[0023] In summary, the main shortcomings of existing processing systems and methods are as follows: (1) Standard instrument battery simulator: powerful functions, suitable for laboratory research and development; high cost and large size, not suitable for production testing; (2) Battery simulation board: The function meets the requirements, but the interface, location, communication protocol and other factors need to be considered when integrating the production test system; Battery or DC power supply: The battery output voltage cannot be quickly controlled, and the DC power supply cannot simulate battery charging.
[0024] In view of this, this application proposes a programmable battery simulation system, including an input port, a power isolation circuit, a level conversion isolation circuit, a battery simulation circuit, and an output port. The input port is used to input system voltage and I2C level signals; the power isolation circuit is used to output an isolated power supply voltage based on the system voltage; the level conversion isolation circuit is used to perform level conversion and isolation on the I2C level signals and output a target I2C signal; the battery simulation circuit is used to output a target voltage based on the isolated power supply voltage and the target I2C signal; and the output port is used to simulate a battery interface. This application adapts to I2C communication at different levels through the level conversion isolation circuit, directly connects to an external I2C communication interface, and eliminates the need for interface matching circuits. It can be quickly integrated into a test system or circuit using only a power supply and an I2C interface. By outputting a specified voltage through the battery simulation circuit, it simulates different battery charge states, making it suitable for more application scenarios, and the overall circuit is smaller and less expensive.
[0025] Reference Figure 1 , Figure 1 This is a structural block diagram of a programmable battery simulation system provided in one embodiment of this application. This application proposes a programmable battery simulation system, comprising: The input port connects to the external power supply interface and communication interface, and is used to input system voltage and I2C level signals. A power isolation circuit, connected to the input port, is used to output an isolated power supply voltage based on the system voltage; A level conversion and isolation circuit, connected to the input port, is used to perform level conversion and isolation on I2C level signals and output the target I2C signal. A battery simulation circuit, connected to a power isolation circuit and a level conversion isolation circuit, is used to output a target voltage based on the isolated power supply voltage and the target I2C signal; The output port connects to the battery simulation circuit and is used to simulate the battery interface.
[0026] Specifically, the embodiments of this application include an input port, a power isolation circuit, a level conversion isolation circuit, a battery simulation circuit, a monitoring circuit, and an output port. The input port is used to connect to an external power interface and communication interface, wherein the power interface includes a power supply port and a control port. The power isolation circuit uses an enabled DC-DC isolation module to output an isolated power supply voltage to power the level conversion isolation circuit, the battery simulation circuit, and the monitoring circuit. The level conversion isolation circuit uses a level conversion circuit to achieve level adaptation of the I2C signal and a signal isolation circuit to achieve I2C communication between the external circuit and the battery simulation circuit. The battery simulation circuit implements battery simulation functionality through a reference voltage source circuit, a voltage divider circuit, and a power amplifier circuit. The voltage divider circuit uses both I2C interface digital potentiometers and manual potentiometers, allowing for programmable or manual adjustment of the simulated battery circuit's output voltage. The output port is a simulated battery interface, including the positive and negative terminals of the simulated battery.
[0027] Reference Figure 2 , Figure 2 The circuit diagram of a power isolation circuit provided in one embodiment of this application is shown. Further, as an optional implementation, the power isolation circuit includes: The power isolation module, connected to the input port, is used to obtain the isolation power supply voltage based on the system voltage. The filter circuit is connected to the power isolation module and is used to provide filter capacitors to the power isolation module. The enable circuit, connected to the power isolation module, is used to control the operating state of the power isolation module.
[0028] Specifically, such as Figure 2 As shown, PP5V is the system voltage input through power port J1, the first chip U1 is a DC-DC power isolation module; ISO5V is the isolation power supply voltage output by the power isolation module; the first capacitor C1 and the second capacitor C2 are the input filter capacitors of the power isolation module; the third capacitor C3 and the fourth capacitor C4 are the output filter capacitors of the power isolation module; the power control port J2, the first resistor R1 and the N-MOS transistor Q1 form the enable circuit of the power isolation module.
[0029] The enabling circuit is implemented as follows: the gate (G) terminal of N-MOS transistor Q1 is pulled up through the first resistor R1, turning on N-MOS transistor Q1 and pulling the PIN2 pin of the first chip U1 low, thus enabling the power isolation module to operate. Conversely, when the gate (G) terminal of N-MOS transistor Q1 is pulled low through the power control port J2, N-MOS transistor Q1 is turned off, leaving the PIN2 pin of the first chip U1 floating, and the power isolation module not operating. Therefore, the external circuit can control the operating state of the power isolation module by controlling the high and low levels of port J2.
[0030] The function of the power isolation module: The working mode of the battery (current flows out from the positive terminal, flows back to the negative terminal through the product to realize external power supply, and the current direction is reversed when charging) determines that there is no clear potential relationship between the two terminals of the battery and the external power source. The power isolation module is needed to simulate the isolation between the negative terminal of the battery and the power source.
[0031] Reference Figure 3 , Figure 3 The circuit diagram shows a level conversion isolation circuit according to one embodiment of this application. Further, as an optional implementation, the level conversion isolation circuit includes: The level conversion circuit, connected to the input port, is used to convert the I2C level signal to obtain the target level I2C signal. The signal isolation circuit, connected to the level conversion circuit, is used to isolate the target level I2C signal to obtain the target I2C signal.
[0032] Specifically, such as Figure 3 As shown, J3 is the external I2C communication interface, the second chip U2 and its surrounding circuits form an I2C level conversion circuit, and the third chip U3 and its surrounding circuits form an I2C signal isolation circuit.
[0033] Among them, the inputs of PIN1 and PIN4 pins of communication interface J3 are external I2C level signals, and the PP_I2C voltage range of PIN1 pin is 1~3.3V; PIN2 and PIN3 pins of communication interface J3 are the I2C data signal I2C_SDA and clock signal I2C_SCL.
[0034] In the level conversion circuit, the second chip U2 is the level conversion chip, the third capacitor C3 and the sixth capacitor C6 are power supply decoupling capacitors, and the second resistor R2, the third resistor R3, the fifth resistor R5, and the sixth resistor R6 are I2C signal pull-up resistors. PP5V provides the target level I2C signal to the second chip U2 through the fourth resistor R4, and enables the chip to work through the PIN8 pin of the second chip U2. The I2C signal level range before conversion is 1~3.3V, and the signal level after conversion is 5V, realizing the self-adaptation of the I2C signal level.
[0035] The third chip U3 in the signal isolation circuit is an I2C isolation chip. The seventh capacitor C7 and the eighth capacitor C8 are power supply decoupling capacitors. The seventh resistor R7 and the eighth resistor R8 are pull-up resistors for the I2C signal after isolation. The I2C signals before and after isolation are not grounded to meet the requirement that the external power supply and the analog battery are not grounded.
[0036] It should be noted that the embodiments of this application use level conversion circuits and signal isolation circuits to achieve I2C signal level adaptation and direct connection to external I2C communication interfaces. The interface circuit is simple and can be quickly integrated into the system or circuit.
[0037] Reference Figure 4 , Figure 4 The circuit schematic diagram of the battery simulation circuit and output port provided in one embodiment of this application is shown. Further, as an optional implementation, the target voltage includes a first target voltage or a second target voltage, and the battery simulation circuit includes: A voltage regulator circuit, connected to a power isolation circuit, is used to output a reference voltage based on the isolated power supply voltage; A programmable voltage divider circuit, connected to a level conversion isolation circuit, is used to output a first target voltage based on the target I2C signal; The manually adjustable voltage divider circuit is used to output a second target voltage based on the manual adjustment signal input by the user. The battery simulation module, connected to the programmable voltage divider circuit and the manually adjustable voltage divider circuit, is used to output a target current or input a target current according to a first target voltage or a second target voltage to simulate battery charging and discharging.
[0038] Specifically, such as Figure 4 As shown, the fifth chip U5 and its surrounding components constitute a voltage regulator circuit. The fifth chip U5 is a voltage reference chip. ISO5V is connected to the fifth chip U5 through the thirteenth resistor R13. The internal Zener diode of the fifth chip U5 clamps the voltage at 2.5V, providing a stable reference voltage REF2V5. J4 is the analog battery output port, with pins 1 / 2 being the positive terminal of the analog battery and pins 3 / 4 being the negative terminal. The fifteenth capacitor C15 is the analog battery output filter capacitor.
[0039] Reference Figure 4 As an optional implementation, the programmable voltage divider circuit includes: The system includes a digital potentiometer, a ninth capacitor, a tenth capacitor, a tenth resistor, an eleventh resistor, and a twelfth resistor. The first pin of the digital potentiometer is connected to the third pin of the DIP switch. The fourth and fifth pins of the digital potentiometer are both connected to the level conversion isolation circuit. The sixth and eighth pins of the digital potentiometer are both connected to one end of the ninth and tenth capacitors. The second pin of the digital potentiometer is connected to one end of the tenth resistor. The third pin of the digital potentiometer is connected to one end of the eleventh resistor. The ninth pin of the digital potentiometer is connected to one end of the twelfth resistor. The other ends of the ninth, tenth, tenth, eleventh, and twelfth capacitors are all grounded.
[0040] Specifically, the fourth chip U4 and its surrounding components constitute a voltage divider circuit for I2C control. The fourth chip U4 is an I2C interface digital potentiometer, with its PIN4 and PIN5 pins connected to the isolated I2C signal (i.e., the target I2C signal). The ninth capacitor C9 and the tenth capacitor C10 are power supply filtering and decoupling capacitors. The chip's address bits AD0 / AD1 are set to 00 through the tenth resistor R10 and the eleventh resistor R11 (both are pull-down resistors). AW (The resistance between pin 10 and pin 1 of the fourth chip U4), R BW (The resistor between pin 9 and pin 1 of the fourth chip U4) and the twelfth resistor R12 form a voltage divider circuit, where: R can be adjusted via I2C communication. AW R BW The resistance value, the output voltage of this programmable voltage divider circuit (i.e., the first target voltage) is: ; in, ,but .
[0041] Reference Figure 4 As a further optional implementation, the manually adjustable voltage divider circuit includes: The potentiometer is connected to the first pin of the DIP switch. One end of the potentiometer is connected to the voltage regulator circuit, and the other end of the potentiometer is connected to one end of the fifteenth resistor, which in turn is connected to the voltage regulator circuit.
[0042] Specifically, potentiometer R14 and the fifteenth resistor R15 form a manually adjustable voltage divider circuit, with potentiometer R14 being the manually adjustable potentiometer. , The output voltage of this manually adjustable voltage divider circuit can be manually adjusted within the range of 0~10K. (i.e., the second target voltage) is: ; ; It should be noted that, based on the above-mentioned programmable voltage divider circuit and manually adjustable voltage divider circuit, the embodiments of this application can select programmable or manual adjustment of the simulated battery output voltage according to the specific application scenario, to simulate different battery charge states, so as to be applicable to more application scenarios.
[0043] Reference Figure 4 As an optional implementation, the battery simulation module includes: The DIP switch and the bidirectional power amplifier are connected as follows: the first pin of the DIP switch is connected to the manually adjustable voltage divider circuit, the second pin of the DIP switch is connected to the bidirectional power amplifier, and the third pin of the DIP switch is connected to the programmable voltage divider circuit.
[0044] Specifically, the DIP switch SW1 is used to select between programmable or manual adjustment of the voltage divider circuit. The bidirectional power amplifier U6 and its peripheral components constitute the battery simulation circuit. The bidirectional power amplifier U6 can output current or input current to meet the function of simulating battery charging and discharging. Simulating battery discharging means outputting a specified current, and simulating battery charging means inputting current. The twelfth capacitor C12 and the thirteenth capacitor C13 are power supply filtering and decoupling capacitors. The voltage BATT_REF at the positive input terminal (PIN9 pin) of the amplifier can be selected by the DIP switch SW1 to either programmable or manual adjustment of the voltage divider circuit output.
[0045] Resistors R16 and R17 form a negative feedback amplifier circuit with the amplifier. Resistor R18 and capacitor C11 limit the amplifier's operating bandwidth to prevent overshoot or oscillation in the output signal. The power amplifier's output voltage is related to the positive input voltage. The relationship is: ; in, ,but ; Therefore, the output voltage of the simulated battery The range is 1.794~5V, that is: .
[0046] As a further optional implementation, the bidirectional power amplifier is used to output a first drive signal based on the current current and a preset current limit value, and / or, based on the current temperature and a preset temperature threshold, output a second drive signal.
[0047] Reference Figure 1 and Figure 5 , Figure 5 The circuit diagram of the monitoring circuit provided in one embodiment of this application is shown. Further, as an optional implementation, the battery simulation system also includes: A monitoring circuit, connected to a bidirectional power amplifier, is used to output an abnormal current signal and / or an abnormal temperature signal based on a first drive signal and / or a second drive signal.
[0048] Specifically, PIN10 (TFLAG_L) of the bidirectional power amplifier U6 is a temperature detection pin. When the temperature exceeds the temperature threshold, TFLAG_L outputs a low level (i.e., the second drive signal) to drive the monitoring circuit. The signal then passes through the filter circuit composed of the nineteenth resistor R19 and the fourteenth capacitor C14 to control the enable pin PIN11 of the bidirectional power amplifier U6, causing the bidirectional power amplifier U6 to stop working and providing over-temperature protection.
[0049] The twentieth resistor, R20, is a current-limiting configuration resistor. Its resistance value can be set according to the operating current. When the operating current exceeds the set current limit, pin 7 (IFLAG_L) of the bidirectional power amplifier U6 will output a low level (i.e., the first drive signal), driving the monitoring circuit. It can be expanded to enable the power isolation module or power amplifier using the IFLAG_L signal. The relationship between the maximum output current of the power amplifier and R20 is as follows: ; like Figure 5 As shown, the seventh chip U7 in the monitoring circuit is the driver chip. The twenty-first resistor R21, the twenty-second resistor R22, the first diode LED1, and the second diode LED2 form an LED display circuit. When the current or temperature of the power amplifier is abnormal, the corresponding IFLAG_L or TFLAG_L outputs a low level, and the seventh chip U7 drives the first diode LED1 or the second diode LED2 to light up, indicating that the current or temperature is abnormal.
[0050] The structure and working principle of the battery simulation system according to the embodiments of this application have been described above. It can be recognized that the embodiments of this application have the following advantages compared with existing battery simulation systems: 1. A resistor voltage divider circuit is used to control the output voltage of the power amplifier circuit, realizing the simulation of functions such as battery voltage output and current input. The resistor voltage divider circuit is implemented in two ways: I2C interface digital potentiometer and manual potentiometer. It can be selected for programmable or manual adjustment according to the application, and has strong compatibility.
[0051] Second, the level conversion isolation circuit is used to achieve adaptive I2C to different levels. It can be directly connected to the external I2C communication interface without the need for interface matching circuits. It can be quickly integrated into the test system or circuit through only the power supply and I2C interface. The interface is simple and easy to integrate into the system or circuit.
[0052] Third, by controlling the enable terminal of the power amplifier through the temperature flag bit, the power operational amplifier is quickly shut down once the temperature is too high. At the same time, the circuit temperature and current status are monitored by LEDs, which can improve the service life of the system.
[0053] Fourth, the circuit uses chips and common components, resulting in lower cost and smaller size.
[0054] Reference Figure 6 This application provides a method for implementing a programmable battery simulation system, which includes the following steps S101 to S105: Step S101: Input the system voltage and I2C level signal through the input port; Step S102: Output the isolation power supply voltage according to the system voltage through the power isolation circuit; Step S103: The I2C level signal is level-converted and isolated by the level conversion and isolation circuit, and the target I2C signal is output. Step S104: Through the battery simulation circuit, output the target voltage according to the isolation power supply voltage and the target I2C signal; Step S105: Simulate the battery interface through the output port.
[0055] The contents of the above-described programmable battery simulation system embodiments are all applicable to the implementation method embodiments of this programmable battery simulation system. The specific functions implemented by the implementation method embodiments of this programmable battery simulation system are the same as those of the above-described programmable battery simulation system embodiments, and the beneficial effects achieved are also the same as those achieved by the above-described programmable battery simulation system embodiments.
[0056] It should be understood that embodiments of this application can be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable storage medium. The methods described above can be implemented using standard programming techniques—including implementation in a computer program on a non-transitory computer-readable storage medium configured to allow the computer to operate in a specific and predefined manner—according to the methods and drawings described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. Furthermore, for this purpose, the program can run on a programmed application-specific integrated circuit (ASIC).
[0057] Furthermore, the procedures described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by the context. The procedures described herein (or variations and / or combinations thereof) may be executed under the control of one or more computer systems configured with executable instructions, and may be implemented by hardware or a combination thereof as code (e.g., executable instructions, one or more computer programs, or one or more applications) that commonly executes on one or more processors. The aforementioned computer programs include a plurality of instructions executable by one or more processors.
[0058] Furthermore, the above methods can be implemented in any suitable type of computing platform, including but not limited to personal computers, minicomputers, mainframes, workstations, networked or distributed computing environments, standalone or integrated computer platforms, or in communication with charged particle tools or other imaging devices. Aspects of this application can be implemented as machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and / or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which, when read by the computer, can be used to configure and operate the computer to perform the processes described herein. Additionally, the machine-readable code, or portions thereof, can be transmitted via wired or wireless networks. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media comprises instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. This application also includes the computer itself when programmed according to the methods and techniques described herein.
[0059] A computer program can be applied to input data to perform the functions described herein, thereby transforming the input data to generate output data stored in non-volatile memory. The output information can also be applied to one or more output devices, such as a display. In a preferred embodiment of this application, the transformed data represents physical and tangible objects, including a specific visual depiction of physical and tangible objects generated on a display.
[0060] In the foregoing description of this specification, the references to terms such as "one embodiment," "another embodiment," or "some embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0061] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
[0062] The above is a detailed description of the preferred embodiments of this application, but this application is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. A programmable battery simulation system, characterized by, The application relates to a battery simulation circuit, which comprises the following parts: an input port connected with an external power supply interface and a communication interface, used for inputting a system voltage and an I2C level signal; a power supply isolation circuit connected with the input port, used for outputting an isolated power supply voltage according to the system voltage; a level conversion isolation circuit connected with the input port, used for performing level conversion and isolation on the I2C level signal and outputting a target I2C signal; a battery simulation circuit connected with the power supply isolation circuit and the level conversion isolation circuit, used for outputting a target voltage according to the isolated power supply voltage and the target I2C signal; and an output port connected with the battery simulation circuit, used for simulating a battery interface.
2. The system of claim 1, wherein, The power supply isolation circuit comprises: a power supply isolation module connected with the input port, used for obtaining the isolated power supply voltage according to the system voltage; a filter circuit connected with the power supply isolation module, used for providing a filter capacitor to the power supply isolation module; and an enabling circuit connected with the power supply isolation module, used for controlling the working state of the power supply isolation module.
3. The system of claim 1, wherein, The level conversion isolation circuit comprises: a level conversion circuit connected with the input port, used for performing level conversion on the I2C level signal and obtaining a target level I2C signal; and a signal isolation circuit connected with the level conversion circuit, used for performing isolation on the target level I2C signal and obtaining the target I2C signal.
4. The system of claim 1, wherein, The target voltage comprises a first target voltage or a second target voltage, and the battery simulation circuit comprises: a voltage stabilizing circuit connected with the power supply isolation circuit, used for outputting a reference voltage according to the isolated power supply voltage; a program-controlled voltage dividing circuit connected with the level conversion isolation circuit, used for outputting the first target voltage according to the target I2C signal; a manually-adjusted voltage dividing circuit, used for outputting the second target voltage according to a manually-adjusted signal input by a user; and a battery simulation module connected with the program-controlled voltage dividing circuit and the manually-adjusted voltage dividing circuit, used for outputting a target current or inputting a target current according to the first target voltage or the second target voltage, so as to simulate battery charging and discharging.
5. The system of claim 4, wherein, The battery simulation module comprises: a DIP switch and a bidirectional power amplifier, wherein a first pin of the DIP switch is connected with the manually-adjusted voltage dividing circuit, a second pin of the DIP switch is connected with the bidirectional power amplifier, and a third pin of the DIP switch is connected with the program-controlled voltage dividing circuit.
6. The system of claim 5, wherein, The program-controlled voltage dividing circuit comprises: A digital potentiometer, a ninth capacitor, a tenth capacitor, a tenth resistor, an eleventh resistor and a twelfth resistor, a first pin of the digital potentiometer is connected with a third pin of the DIP switch, a fourth pin and a fifth pin of the digital potentiometer are connected with the level conversion isolation circuit, a sixth pin and an eighth pin of the digital potentiometer are connected with one end of the ninth capacitor and the tenth capacitor, a second pin of the digital potentiometer is connected with one end of the tenth resistor, a third pin of the digital potentiometer is connected with one end of the eleventh resistor, a ninth pin of the digital potentiometer is connected with one end of the twelfth resistor, and the other end of the ninth capacitor, the tenth capacitor, the tenth resistor, the eleventh resistor and the twelfth resistor is grounded.
7. The system of claim 5, wherein, The manual adjustment voltage dividing circuit comprises: A potentiometer and a fifteenth resistor, the potentiometer is connected with a first pin of the DIP switch, one end of the potentiometer is connected with the voltage stabilizing circuit, the other end of the potentiometer is connected with one end of the fifteenth resistor, and the other end of the fifteenth resistor is connected with the voltage stabilizing circuit.
8. The system of claim 5, wherein, The bidirectional power amplifier is used for outputting a first driving signal according to a current and a preset current limiting value, and / or outputting a second driving signal according to a current and a preset temperature threshold.
9. The system of claim 8, wherein, The battery simulation system further comprises: A monitoring circuit connected with the bidirectional power amplifier, used for outputting a current abnormal signal and / or a temperature abnormal signal according to the first driving signal and / or the second driving signal.
10. A method of implementing a programmable battery simulation system for implementing a programmable battery simulation system as claimed in any one of claims 1 to 9, characterized in that, The method comprises the following steps: Inputting a system voltage and an I2C level signal through an input port; Outputting an isolated power voltage according to the system voltage through a power isolation circuit; Converting and isolating the I2C level signal through a level conversion isolation circuit to output a target I2C signal; Outputting a target voltage according to the isolated power voltage and the target I2C signal through a battery simulation circuit; Simulating a battery interface through an output port.