A power supply overcurrent detection method, system and storage medium
By collecting the voltage difference at the connection between the system-on-a-chip and the inductor module to calculate the bus current, the high cost of power overcurrent detection for valve products is solved, achieving low-cost power overcurrent detection and reducing the probability of thermal failure.
Patent Information
- Application Number
- CN202411904181.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2026-06-23
AI Technical Summary
Existing valve products lack power overcurrent detection, resulting in a high probability of thermal failure, and existing solutions are costly.
By connecting two pins of the system-on-a-chip to the two ends of the inductor module, the voltage difference is collected to calculate the bus current, and the bus current is compared with the preset current to detect power supply overcurrent.
It achieves low-cost power supply overcurrent detection and reduces the probability of power supply thermal failure.
Smart Images

Figure CN122259937A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of circuits, and in particular to a power supply overcurrent detection method, system, and storage medium. Background Technology
[0002] With the development of circuit and automation technologies, valve products are finding increasingly wider applications. Valve products can include electronic expansion valves, water valves, and refrigerant valves. Electronic expansion valves can be used in new energy vehicles.
[0003] Valve products typically include a motor and a power supply. The power supply powers the motor so it can operate normally. To ensure the proper functioning of the motor in valve products, overcurrent and overload protection is usually included to reduce the probability of thermal failure. However, in practical applications, power supply overcurrent and overload can sometimes lead to thermal failure of the valve product.
[0004] Therefore, current valve products lack power overcurrent detection. Summary of the Invention
[0005] In view of this, the purpose of this application is to provide a power overcurrent detection method, system and storage medium that can detect power overcurrent, reduce the probability of thermal failure caused by power overcurrent, and at a low cost.
[0006] To achieve the above objectives, this application provides the following technical solution:
[0007] This application provides a power supply overcurrent detection method. The power supply includes a filter circuit, which includes an inductor module. The voltage of the power supply is output to a system-on-a-chip (SoC) after passing through the filter circuit. The SoC is used to drive a motor. Two pins of the SoC are respectively connected to the two ends of the inductor module.
[0008] The method includes:
[0009] Based on the connection relationship between the two pins of the system-on-a-chip and the inductor module, the voltage across the inductor module is collected, and the voltage difference across the inductor module is calculated.
[0010] The bus current through the inductor module is calculated based on the voltage difference;
[0011] By comparing the bus current with the preset current, the detection result of whether the power supply is overcurrent is obtained.
[0012] Optionally, the preset current is the drive current consumed by the motor, and the step of comparing the bus current and the preset current to obtain the detection result of whether the power supply is overcurrent includes:
[0013] If the current difference between the bus current and the drive current is greater than the current threshold, then the detection result is determined to be a power supply overcurrent.
[0014] Optionally, the preset current is a bus current threshold.
[0015] The step of comparing the bus current with the preset current to obtain the detection result of whether the power supply is overcurrent includes:
[0016] If the bus current is greater than the bus current threshold, then the detection result is determined to be a power supply overcurrent.
[0017] Optionally, the inductor module includes an inductor;
[0018] The calculation of the bus current through the inductor based on the voltage difference includes:
[0019] Obtain the DC impedance of the inductor, and determine the bus current through the inductor by dividing the voltage difference by the DC impedance.
[0020] Optionally, the inductor module includes an inductor and a resistor, wherein the resistor and the inductor are connected in series;
[0021] The calculation of the bus current through the inductor based on the voltage difference includes:
[0022] Obtain the DC impedance of the inductor and the resistance value of the resistor to obtain the total resistance of the inductor module;
[0023] The quotient obtained by dividing the voltage difference by the total resistance is determined as the bus current through the inductor.
[0024] Optionally, the resistor is located on the side of the inductor away from the system-on-a-chip.
[0025] Optionally, the current threshold is determined based on the current consumption other than that of the motor.
[0026] Optionally, the system-on-a-chip includes a voltage acquisition module, which includes two pins connected to both ends of the inductor module;
[0027] The step of collecting the voltage across the inductor module based on the connection relationship between the two pins of the system-on-a-chip and the inductor module includes:
[0028] The voltage acquisition module of the system-on-a-chip (SoC) and the connection relationship between the two pins of the SoC and the inductor module are used to acquire the voltage across the inductor module.
[0029] This application provides a power supply overcurrent detection system. The power supply includes a filter circuit, which includes an inductor module. The voltage of the power supply is output to a system-on-a-chip (SoC) after passing through the filter circuit. The SoC is used to drive a motor. Two pins of the SoC are respectively connected to the two ends of the inductor module.
[0030] The system includes a system-on-a-chip;
[0031] The system-on-a-chip (SoC) is used to collect the voltage across the inductor module based on the connection relationship between the two pins of the SoC and the inductor module, and calculate the voltage difference across the inductor module; calculate the bus current through the inductor module based on the voltage difference; and compare the bus current with a preset current to obtain the detection result of whether the power supply is overcurrent.
[0032] Optionally, the preset current is the drive current consumed by the motor, and the system-on-a-chip is used to determine that the detection result is the power supply overcurrent based on the current difference between the bus current and the drive current being greater than a current threshold.
[0033] This application provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the methods described in the above embodiments.
[0034] This application provides a power supply overcurrent detection method. The power supply includes a filter circuit, which in turn includes an inductor module. The power supply voltage is output to a system-on-a-chip (SoC) after passing through the filter circuit. The SoC is used to drive a motor. Two pins of the SoC are connected to the two ends of the inductor module. The method includes: since the two pins of the SoC are connected to the two ends of the inductor module, this connection can be directly utilized to collect the voltage across the inductor module and calculate the voltage difference. Then, the bus current through the inductor module is calculated based on the voltage difference, thus obtaining the power supply current. The bus current is compared with a preset current to obtain the detection result of whether the power supply is overcurrent. In other words, this application utilizes the connection between the SoC and the inductor module to calculate the power supply current, and then determines whether the power supply is overcurrent by comparing the current with the preset current. This achieves the goal of reducing the probability of power supply thermal failure through a simple and convenient detection method, without the need for an additional detection module, resulting in low cost. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 A schematic flowchart of a power supply overcurrent detection method provided in an embodiment of this application is shown;
[0037] Figure 2 This paper shows a schematic diagram of a power supply overcurrent detection circuit provided in an embodiment of this application.
[0038] Figure 3 A schematic diagram of another power supply overcurrent detection circuit provided in an embodiment of this application is shown. Detailed Implementation
[0039] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0040] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the spirit of this application. Therefore, this application is not limited to the specific embodiments disclosed below.
[0041] Valve products typically include a motor and a power supply. The power supply powers the motor so it can operate normally. To ensure proper motor operation, overcurrent and overload protection is usually included to reduce the probability of thermal failure. However, in practical applications, the lack of overcurrent and overload protection for the power supply can lead to thermal failure of the valve product due to power supply overcurrent or overload.
[0042] Therefore, current valve products lack power overcurrent detection.
[0043] Overcurrent and overload protection can be achieved by adding a fuse to the power supply, but this requires upgrading the power supply and conducting additional reliability tests on the fuse, resulting in higher costs. Alternatively, a current sensing module can be added to the power supply for overcurrent and overload protection, but this also requires upgrading the power supply and separately testing electromagnetic susceptibility (EMC) immunity to reduce the risk of malfunction by the current sensing module, further increasing costs.
[0044] Based on this, this application provides a power supply overcurrent detection method. The power supply includes a filter circuit, which includes an inductor module. The power supply voltage is output to a system-on-a-chip (SoC) after passing through the filter circuit. The SoC is used to drive a motor. Two pins of the SoC are respectively connected to the two ends of the inductor module. The method includes: since the two pins of the SoC are respectively connected to the two ends of the inductor module, this connection relationship can be directly utilized to collect the voltage across the inductor module using the two pins of the SoC, calculate the voltage difference across the inductor module, and then calculate the bus current through the inductor module based on the voltage difference, thus obtaining the power supply current. The bus current is compared with a preset current to obtain the detection result of whether the power supply is overcurrent. In other words, this application utilizes the connection relationship between the SoC and the inductor module to calculate the power supply current, and then determines whether the power supply is overcurrent by comparing the power supply current with the preset current. This achieves the goal of reducing the probability of power supply thermal failure through a simple and convenient detection method, without the need for an additional detection module, resulting in low cost.
[0045] To better understand the technical solution and effects of this application, the specific embodiments will be described in detail below with reference to the accompanying drawings.
[0046] refer to Figure 1 The diagram shown is a flowchart illustrating a power input overcurrent detection method provided in an embodiment of this application. The power input overcurrent detection method provided in this embodiment can be applied to system-on-a-chip (SoC), meaning the SoC can perform overcurrent detection of the power supply.
[0047] The power supply outputs voltage to the system-on-a-chip (SoC), which then drives the motor. (Reference) Figure 2 As shown, the power supply includes an input interface 110, a pulse voltage protection device 120, a reverse connection protection circuit 130, and a filter circuit 140. The input interface 110 may include multiple pins, such as four pins. The two ends of the pulse voltage protection device 120 are respectively connected to the two pins of the output voltage. The reverse connection protection circuit 130 is located between the pulse voltage protection device 120 and the filter circuit 140. The filter circuit 140 may include at least two capacitors 141 and one inductor module 142. Capacitors 141 are respectively disposed on both sides of the inductor module 142. The inductor module 142 and capacitors 141 are connected in parallel. One end of capacitor 141 is connected to the inductor module 142, and the other end is grounded.
[0048] In practical applications, the filter circuit 140 has fewer capacitors 141 located on the side of the inductor module 142 closer to the input interface 110, and more capacitors 141 located on the side of the inductor module 142 farther from the input interface 110. This allows for power storage. When capacitors 141 fail incompletely, the current to ground increases, and leakage current causes heat generation. Since valve-type products typically have plastic casings with poor heat dissipation, the heat generated by leakage current can accumulate, leading to power supply thermal failure.
[0049] The power supply voltage is output to the system-on-a-chip (SoC) 200 after passing through the filter circuit 140. The SoC 200 includes two pins, designated as pin 1 and pin 2. Pin 1 can be BVDD, and pin 2 can be MON. The two pins of the SoC 200 can be connected to the two ends of the inductor module 142, respectively. The SoC 200 has a voltage acquisition function, allowing it to obtain the voltage across the inductor module 142 using its two pins.
[0050] The inductor module 142 includes a first terminal and a second terminal, through which current can flow. A first pin of the system-on-a-chip 200 can be connected to the first terminal of the inductor module 142, and the voltage at the first terminal of the inductor module 142 can be obtained using the first pin. A second pin of the system-on-a-chip 200 can be connected to the second terminal of the inductor module 142, and the voltage at the second terminal of the inductor module 142 can be obtained using the second pin.
[0051] The method includes the following steps:
[0052] S101, based on the connection relationship between the two pins of the system-on-a-chip and the inductor module, collects the voltage across the inductor module and calculates the voltage difference across the inductor module.
[0053] In the embodiments of this application, since the two pins of the system-on-a-chip are connected to the two ends of the inductor module, the voltage across the inductor module can be directly acquired by utilizing the connection relationship between the two pins of the system-on-a-chip and the inductor module, and then the voltage difference across the inductor module can be calculated based on the voltage across the inductor module.
[0054] The system-on-a-chip (SoC) can acquire the voltage across the inductor module through two pins connected to the inductor module. This is because the SoC has a voltage acquisition function, and therefore the SoC can directly reuse this voltage acquisition function to acquire the voltage across the inductor module.
[0055] Specifically, a voltage acquisition module can be included in the system-on-a-chip (SoC). This module enables the SoC to acquire voltage data, allowing the voltage across the inductor module to be acquired using the SoC's voltage acquisition module and the connection between the SoC's two pins and the inductor module. Since the SoC's voltage acquisition function is reused to acquire the voltage across the inductor module, no additional acquisition cost is incurred.
[0056] S102 calculates the bus current through the inductor module based on the voltage difference.
[0057] In the embodiments of this application, after the system-on-a-chip acquires the voltage across the inductor module using two pins and obtains the voltage difference across the inductor module, the bus current through the inductor module can be calculated based on the voltage difference.
[0058] Specifically, the bus current through the inductor module can be obtained by dividing the voltage difference by the resistance value of the inductor module. Since different components are included in the inductor module, the resistance value of the inductor module may vary, resulting in different accuracy of the final bus current reading.
[0059] In one possible implementation, the inductor module includes an inductor, and the resistance of the inductor module is the DC impedance of the inductor. Thus, the bus current through the inductor module is the same as the current through the inductor, the voltage difference across the inductor module is the same as the voltage difference across the inductor, and the bus current is the quotient of the voltage difference across the inductor divided by the DC impedance.
[0060] As another possible implementation, the inductor module includes an inductor and a resistor connected in series. The resistance of the inductor module is the total resistance formed by the DC impedance of the inductor and the resistance of the resistor, for example, the sum of the DC impedance and the resistance of the resistor. Thus, the bus current through the inductor module is the current flowing through the inductor and resistor, and the voltage difference across the inductor module is the voltage drop after the current flows through the inductor and resistor. The bus current is then the quotient of the voltage difference divided by the total resistance.
[0061] By adding a resistor to the inductor module compared to having only an inductor, although the current complexity increases, the accuracy of current acquisition can be improved, thus enabling more precise overcurrent detection.
[0062] As an example, see reference Figure 3 As shown, the resistor can be placed on the side of the inductor furthest from the system-on-a-chip (SoC), meaning current flows from the resistor to the inductor. In other examples, the resistor can also be placed on the side of the inductor closest to the SoC. The relative positions of the resistor and inductor do not affect the current acquisition accuracy.
[0063] S103 compares the bus current with the preset current to obtain the detection result of whether the power supply is overcurrent.
[0064] In the embodiments of this application, the bus current can be considered as the power supply current. After obtaining the bus current, the bus current can be compared with a preset current to obtain the detection result of whether the power supply is overcurrent. That is, it is determined whether the power supply current is much greater than the preset current, and thus the detection result of whether the power supply is overcurrent is obtained.
[0065] As one possible implementation, the preset current can be an empirical value, which is the drive current consumed by the motor. A portion of the voltage output by the power supply sustains the motor's operation, while the remainder sustains other devices. Correspondingly, a portion of the current output by the power supply is consumed by the motor, and the remainder by other devices. Therefore, the drive current consumed by the motor is a fixed value, and the remaining current is also a fixed value. Normally, the bus current is the sum of the drive current and the remaining current. When the bus current is much greater than the sum of the drive current and the remaining current—that is, the current difference between the bus current and the drive current is much greater than the remaining current—it indicates that the power supply includes an additional current discharge point. For example, a failure in some circuits within the power supply could lead to increased leakage current, meaning the power supply faces an overcurrent risk.
[0066] In other words, when detecting whether the power supply is overcurrent, the detection result can be obtained by determining whether the current difference between the bus current and the drive current is greater than the current threshold. The current threshold can be determined based on the current consumption other than the motor, that is, the current threshold is the remaining current mentioned above.
[0067] As an example, if the current difference between the bus current and the drive current is greater than the current threshold, the detection result is determined to be a power supply overcurrent.
[0068] In practical applications, the preset current can be calculated based on historical data of the motor's drive current consumption, or it can be obtained by sampling the motor's drive current. The system-on-a-chip (SoC) also has a current sampling function, meaning it can sample the motor's drive current to obtain the drive current consumed by the electrodes. Sampling the motor's drive current reuses the SoC's built-in current sampling function, thus not increasing sampling costs.
[0069] As another possible implementation, the preset current is the bus current threshold, which can be the sum of the drive current and the remaining current. Therefore, when the bus current is greater than the bus current threshold, it means that there is an additional current discharge point in the power supply. For example, the failure of some circuits in the power supply leads to an increase in leakage current, and the power supply has an overcurrent risk. That is, the detection result is determined to be power supply overcurrent.
[0070] In practical applications, when the detection result indicates power overcurrent, the detection result can be transmitted to the Electronic Control Unit (ECU). The ECU then issues corresponding instructions to prevent power thermal runaway.
[0071] As described above, the power supply overcurrent detection method provided in this application utilizes the connection between the two pins of the system-on-a-chip (SoC) and the two ends of the inductor module. This connection allows for the direct acquisition of the voltage across the inductor module using the SoC's pins, calculation of the voltage difference, and then calculation of the bus current flowing through the inductor module. This yields the power supply current. By comparing the bus current with a preset current, the detection result of whether the power supply is overcurrent is obtained. In other words, this application utilizes the connection between the SoC and the inductor module to calculate the power supply current, and then determines whether the power supply is overcurrent by comparing the current with a preset current. This achieves the goal of reducing the probability of power supply thermal failure through a simple and convenient detection method, without requiring an additional detection module, thus reducing costs.
[0072] Based on the power overcurrent detection method provided in the above embodiments, this application also provides a power overcurrent detection system.
[0073] The power supply includes a filter circuit, which in turn includes an inductor module. The voltage from the power supply is output to the system-on-a-chip (SoC) after passing through the filter circuit. The SoC is used to drive the motor. The two pins of the SoC are connected to the two ends of the inductor module, respectively.
[0074] The power overcurrent detection system provided in this application includes: a system-on-a-chip;
[0075] The system-on-a-chip (SoC) is used to collect the voltage across the inductor module based on the connection relationship between the two pins of the SoC and the inductor module, and calculate the voltage difference across the inductor module; calculate the bus current through the inductor module based on the voltage difference; and compare the bus current with a preset current to obtain the detection result of whether the power supply is overcurrent.
[0076] As one possible implementation, the preset current is the motor drive current, and the system-on-a-chip is used to determine that the detection result is the power supply overcurrent based on the current difference between the bus current and the drive current being greater than a current threshold.
[0077] As another possible implementation, the preset current is the bus current threshold. If the bus current is greater than the bus current threshold, then the detection result is determined to be the power supply overcurrent.
[0078] As one possible implementation, the inductor module includes an inductor;
[0079] The system-on-a-chip is used to obtain the DC impedance of the inductor, and the quotient of the voltage difference divided by the DC impedance is determined as the bus current through the inductor.
[0080] As another possible implementation, the inductor module includes an inductor and a resistor, wherein the resistor and the inductor are connected in series;
[0081] The system-on-a-chip is used to obtain the DC impedance of the inductor and the resistance value of the resistor to obtain the total resistance value of the inductor module; the quotient of the voltage difference divided by the total resistance value is determined as the bus current through the inductor.
[0082] Optionally, the resistor is located on the side of the inductor away from the system-on-a-chip.
[0083] Specifically, the current threshold is determined based on the current consumption other than that of the motor.
[0084] The methods disclosed in the embodiments of this application can be applied to or implemented by a system-on-a-chip (SoC). A SoC can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of the SoC or by instructions in software form. The SoC can be a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0085] This application also provides a computer-readable storage medium for storing program code that is used to execute any of the methods in the foregoing embodiments.
[0086] In the context of this application, a readable storage medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution apparatus, device, or device. A readable storage medium can be a machine-readable signal medium or a machine-readable storage medium. A readable storage medium can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or device, or any suitable combination of the foregoing. More specific examples of readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0087] It should be noted that the computer-readable medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution device, apparatus, or apparatus. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0088] When describing elements of various embodiments of this application, the articles “a,” “an,” “this,” and “described” are all intended to indicate that there are one or more elements. The words “comprising,” “including,” and “having” are inclusive and mean that there may be other elements in addition to those listed.
[0089] It should be noted that those skilled in the art will understand that all or part of the processes in the above method embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0090] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0091] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0092] The above description is merely a preferred embodiment of this application. Although this application has disclosed preferred embodiments above, it is not intended to limit this application. Any person skilled in the art can make many possible variations and modifications to the technical solutions of this application using the methods and techniques disclosed above, or modify them into equivalent embodiments with equivalent changes, without departing from the scope of the technical solutions of this application. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of this application without departing from the content of the technical solutions of this application shall still fall within the protection scope of the technical solutions of this application.
Claims
1. A power supply overcurrent detection method, characterized by, The power supply includes a filtering circuit, which includes an inductor module. The voltage of the power supply is output to a system-on-a-chip (SoC) after passing through the filtering circuit. The SoC is used to drive the motor. The two pins of the SoC are respectively connected to the two ends of the inductor module. The method includes: Based on the connection relationship between the two pins of the system-on-a-chip and the inductor module, the voltage across the inductor module is collected, and the voltage difference across the inductor module is calculated. The bus current through the inductor module is calculated based on the voltage difference; By comparing the bus current with the preset current, the detection result of whether the power supply is overcurrent is obtained.
2. The method of claim 1, wherein, The preset current is the drive current consumed by the motor. The step of comparing the bus current and the preset current to obtain the detection result of whether the power supply is overcurrent includes: If the current difference between the bus current and the drive current is greater than the current threshold, then the detection result is determined to be a power supply overcurrent.
3. The method according to claim 1, characterized in that, The preset current is a bus current threshold. The step of comparing the bus current with the preset current to obtain the detection result of whether the power supply is overcurrent includes: If the bus current is greater than the bus current threshold, then the detection result is determined to be a power supply overcurrent.
4. The method according to claim 1, characterized in that, The inductor module includes an inductor; The calculation of the bus current through the inductor based on the voltage difference includes: Obtain the DC impedance of the inductor, and determine the bus current through the inductor by dividing the voltage difference by the DC impedance.
5. The method according to claim 1, characterized in that, The inductor module includes an inductor and a resistor, wherein the resistor and the inductor are connected in series. The calculation of the bus current through the inductor based on the voltage difference includes: Obtain the DC impedance of the inductor and the resistance value of the resistor to obtain the total resistance of the inductor module; The quotient obtained by dividing the voltage difference by the total resistance is determined as the bus current through the inductor.
6. The method according to claim 5, characterized in that, The resistor is positioned on the side of the inductor furthest from the system-on-a-chip.
7. The method according to any one of claims 1-6, characterized in that, The system-on-a-chip includes a voltage acquisition module, which includes two pins connected to the two ends of the inductor module; The step of collecting the voltage across the inductor module based on the connection relationship between the two pins of the system-on-a-chip and the inductor module includes: The voltage acquisition module of the system-on-a-chip (SoC) and the connection relationship between the two pins of the SoC and the inductor module are used to acquire the voltage across the inductor module.
8. A power supply overcurrent detection system, characterized in that, The power supply includes a filtering circuit, which includes an inductor module. The voltage of the power supply is output to a system-on-a-chip (SoC) after passing through the filtering circuit. The SoC is used to drive the motor. The two pins of the SoC are respectively connected to the two ends of the inductor module. The system includes a system-on-a-chip; The system-on-a-chip (SoC) is used to collect the voltage across the inductor module based on the connection relationship between the two pins of the SoC and the inductor module, and calculate the voltage difference across the inductor module; calculate the bus current through the inductor module based on the voltage difference; and compare the bus current with a preset current to obtain the detection result of whether the power supply is overcurrent.
9. The system according to claim 8, characterized in that, The preset current is the drive current consumed by the motor. The system-on-a-chip is used to determine that the detection result is the power supply overcurrent based on the current difference between the bus current and the drive current being greater than a current threshold.
10. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-7.
