Method, chip, device and medium for motor detection
By using the chip to detect the three-phase voltage when the motor is not started, the problem in the existing technology that the motor short circuit and phase loss fault detection requires the motor to be running is solved, and fast, simple and low-cost fault detection is achieved.
Patent Information
- Application Number
- CN202510822051.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-09-19
AI Technical Summary
Existing methods for detecting motor short-circuit and phase loss faults require the motor to be running, which leads to problems such as inaccurate judgment, complexity and high cost.
When the motor is not started, the chip is used to detect the three-phase voltage, the back electromotive force module is used to perform voltage division sampling, and the voltage value is compared with the threshold to determine whether the motor is short-circuited to the ground or has a phase loss.
It can quickly and concisely detect short circuit to ground and phase loss faults before the motor starts, reducing system costs and improving detection efficiency and accuracy.
Smart Images

Figure CN120669109A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor control technology, and in particular to a method, chip, device and medium for detecting ground short circuit and phase loss faults when the motor is not started. Background Art
[0002] With the widespread adoption of brushless DC motors (BLDCs) and permanent magnet synchronous motors (PMSMs) in industrial, home appliance, and electric vehicles, their safety and fault diagnosis capabilities have become core design priorities. Ground short circuits and phase loss are the most common connection faults in motors. If not promptly identified before startup, these faults can lead to serious consequences such as power device breakdown and motor burnout. Existing diagnostic methods often rely on indirect detection of current or speed fluctuations during motor rotation, which can be complex, costly, and slow.
[0003] Currently, a common method for detecting motor short-circuits to ground is to briefly activate the upper transistor of a specific inverter bridge phase and detect whether the current in that phase of the motor is close to zero. If a non-zero current value exceeds a set threshold, a motor short-circuit to ground is determined. Common motor phase loss detection technologies include current detection and speed detection, both of which require the motor to be running. The current detection method detects and collects motor current in real time, calculates the current value of each phase, performs corresponding operations, and compares it with a reference value. If a set condition is met, the phase is determined to be missing. The speed detection method detects or calculates the actual motor speed in real time and determines whether the motor is missing based on the changes in motor speed.
[0004] These traditional methods all require running the motor and determining whether the motor is missing a phase based on the motor's operating status. This has drawbacks such as inaccurate judgment or complex algorithms. Therefore, a new motor detection method is needed. Summary of the Invention
[0005] In response to the above problems, the present disclosure provides a method for motor detection in the first aspect, the method comprising: closing the switching tubes of the first phase, the second phase and the third phase and connecting the power supply voltage of the drive circuit; detecting the first phase voltage, the second phase voltage and the third phase voltage; determining whether the motor has a short circuit to the ground based on the detected first phase voltage, the second phase voltage and the third phase voltage; in response to determining that the motor does not have a short circuit to the ground, opening the switching tubes of the first phase, the second phase and the third phase; and determining whether the motor has a phase loss based on the detected first phase voltage, the second phase voltage and the third phase voltage.
[0006] In one embodiment, determining whether the motor is short-circuited to ground based on the detected first phase voltage, second phase voltage, and third phase voltage includes: in response to the difference between the detected first phase voltage, second phase voltage, and third phase voltage and the power supply voltage of the motor being within a first threshold range, determining that the motor is not short-circuited to ground; and in response to the difference between any one of the detected first phase voltage, second phase voltage, and third phase voltage and the power supply voltage of the motor being outside the first threshold range, determining that the motor is short-circuited to ground.
[0007] In one embodiment, turning on the switch tubes of the first phase, the second phase, and the third phase includes:
[0008] The lower switch tube of the first phase is turned on, and the switch tubes of the second and third phases are kept off.
[0009] In one embodiment, determining whether the motor has a phase loss based on the detected first phase voltage, second phase voltage and third phase voltage includes: in response to the first phase voltage, the second phase voltage and the third phase voltage all being different from the ground voltage within a second threshold range, determining that the motor has no phase loss; and in response to the first phase voltage, the second phase voltage and the third phase voltage being different from the power supply voltage of the motor outside the first threshold range, determining that the motor has a phase loss.
[0010] In one embodiment, determining that there is a phase loss in the motor includes: in response to the difference between the second phase voltage and the ground voltage being within a second threshold range and the difference between the third phase voltage and the power supply voltage of the motor being within a first threshold range, determining that there is a phase loss in the third phase of the motor; or in response to the difference between the third phase voltage and the ground voltage being within a second threshold range and the difference between the second phase voltage and the power supply voltage of the motor being within a first threshold range, determining that there is a phase loss in the second phase of the motor.
[0011] In one embodiment, determining whether the motor has a phase loss includes: in response to the difference between the second phase voltage and the third phase voltage and the power supply voltage of the motor being within a first threshold range, turning on the lower side switch tube of the second phase and keeping the switch tubes of the first phase and the third phase closed; detecting the first phase voltage, the second phase voltage and the third phase voltage; and in response to the difference between the first phase voltage and the power supply voltage of the motor being within a first threshold range and the difference between the third phase voltage and the ground voltage being within a second threshold range, determining that there is a phase loss in the first phase of the motor.
[0012] In one embodiment, determining that the motor has a phase loss further includes: in response to the difference between the first phase voltage and the third phase voltage and the power supply voltage of the motor being within a first threshold range, turning on the lower side switch tube of the third phase and keeping the switch tubes of the first phase and the second phase closed; detecting the first phase voltage, the second phase voltage and the third phase voltage; in response to the difference between the first phase voltage and the power supply voltage of the motor being within a first threshold range and the difference between the second phase voltage and the ground voltage being within a second threshold range, determining that only the first phase in the motor has a phase loss; or in response to the difference between the first phase voltage, the second phase voltage and the power supply voltage of the motor being within a first threshold range, determining that two or three phases in the motor have a phase loss.
[0013] According to a third aspect of the present disclosure, a chip for motor detection is provided, which uses the method described above to detect the motor, including: a power supply voltage module, configured to provide a power supply voltage for a drive circuit; a back electromotive force module, configured to perform voltage division on a first phase voltage, a second phase voltage, and a third phase voltage; and a microcontroller unit, configured to detect the first phase voltage, the second phase voltage, and the third phase voltage signals and determine whether the motor is missing a phase or short-circuited to the ground based on the detected first phase voltage, the second phase voltage, and the third phase voltage.
[0014] According to a third aspect of the present disclosure, a computing device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor so as to enable the at least one processor to execute the method of the first aspect of the present disclosure.
[0015] In a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method of the first aspect of the present disclosure.
[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.
[0018] Figure 1 A schematic diagram of a system 100 for implementing a method for detecting a short circuit to ground or a phase loss in a motor according to an embodiment of the present disclosure is shown.
[0019] Figure 2A flow chart of a method 200 for detecting a short circuit to ground or a phase loss in a motor according to an embodiment of the present disclosure is shown.
[0020] Figure 3 A schematic diagram of a motor control system based on the SPD1179 chip according to an embodiment of the present invention is shown.
[0021] Figure 4 A flow chart of a method 400 for detecting a phase loss of a motor to ground according to an embodiment of the present disclosure is shown.
[0022] Figure 5 A schematic block diagram of an example electronic device 500 is shown, which may be used to implement embodiments of the present disclosure. DETAILED DESCRIPTION
[0023] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0024] As used herein, the term "including" and its variations represent open inclusion, i.e., "including but not limited to." Unless otherwise stated, the term "or" means "and / or." The term "based on" means "based at least in part on." The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment." The term "another embodiment" means "at least one additional embodiment." The terms "first," "second," etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0025] Figure 1 FIG. 1 is a schematic diagram of a system 100 for implementing a method for detecting a short circuit to ground or a phase loss in a motor according to an embodiment of the present disclosure. Figure 1 As shown in FIG, the system 100 includes a computing device 110, a motor detection device 130, and a network 140. The computing device 110 and the motor detection device 130 can exchange data through the network 140.
[0026] The motor detection device 130 can, for example, perform functions for detecting a short circuit to ground, a phase loss, and the like in the motor. The motor detection device 130 can also transmit the determined reconstruction current to the computing device 110. The motor detection device 130 can have one or more processing units, including specialized processing units such as an MCU, a GPU, an FPGA, and an ASIC, as well as general-purpose processing units such as a CPU, such as, but not limited to, desktop computers, laptop computers, netbook computers, tablet computers, web browsers, e-book readers, personal digital assistants (PDAs), and wearable computers (such as smart watches and activity trackers) that can read and modify Chinese data.
[0027] Regarding computing device 110, it is used, for example, to receive voltage data from motor detection device 130 via network 140. Computing device 110 may include one or more processing units, including specialized processing units such as an MCU, GPU, FPGA, and ASIC, as well as general-purpose processing units such as a CPU. Furthermore, one or more virtual machines may also be running on each computing device 110. In some embodiments, computing device 110 and motor detection device 130 may be integrated or provided separately.
[0028] The technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with actual applications and with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of them.
[0029] Figure 2 FIG. 2 shows a flow chart of a method 200 for detecting a short circuit to ground or a phase loss in a motor according to an embodiment of the present disclosure. The method 200 may be performed as follows: Figure 1 The computing device 110 shown is executed, and may also be executed on Figure 5 The method 200 is executed at the electronic device 500. It should be understood that the method 200 may further include additional blocks not shown and / or may omit the blocks shown, and the scope of the present disclosure is not limited in this respect.
[0030] The detection process described in the present invention can be implemented by chip control logic, for example, the SPD1179 chip. Its integrated voltage-dividing sampling, pre-drive control, logical judgment, fault storage, and reporting capabilities ensure that the detection method can be effectively deployed and run long-term in actual control systems. However, those skilled in the art will understand that the method can also be executed by a chip or other MCU that provides a power supply voltage for the drive circuit. The method has the characteristics of simple structure, high detection efficiency, and low system cost. It is suitable for various motor control scenarios and can also be extended to preliminary fault screening of multi-phase systems.
[0031] Figure 3FIG. 1 shows a schematic diagram of a motor control system based on the SPD1179 chip according to an embodiment of the present invention. Figure 3 As shown in the figure, the SPD1179 chip has weak pull-up drive capability and an integrated back-electromotive force detection circuit. When the motor is stationary, it can obtain the voltage signal of the three-phase winding port through the control logic of the switch tube and the voltage division sampling method, thereby determining the fault type without running the motor.
[0032] In step 202 , the switches of the first phase, the second phase, and the third phase are turned off and the power supply voltage of the driving circuit is turned on.
[0033] In one embodiment, Figure 3 As shown in the figure, when the system is first powered on, the pre-driver module in the chip makes the three-phase ports UVW output a weak pull-up voltage close to the supply voltage Vbat (for example, 24V or 12V), with an output capacity of approximately 1mA or less, which is used as the initial detection condition. During the detection process, all six power switches (i.e., U-phase high and low sides Q1 / Q2, V-phase Q3 / Q4, and W-phase Q5 / Q6) are in the off state, so that the three-phase ports are floating, and only the pull-up voltage provided by the chip maintains the static level. The voltage values of the U, V, and W ports are sampled by the BEMF detection module inside the SPD1179 chip and compared with the supply voltage Vbat and the ground voltage Vgnd.
[0034] After chip initialization is complete and the system is powered on, the SPD1179 chip's pre-driver module defaults to outputting the drive circuit's supply voltage on the UVW three-phase ports. This is a weak pull-up voltage close to Vbat, typically outputting a mA-level drive capability of approximately 12V in a 12V power supply system. At this point, the chip's internal control logic keeps all power switches connected to the motor (i.e., Q1 through Q6) off, leaving the motor's three-phase ports in an unloaded, floating state, driven only by the weak voltage output by the chip.
[0035] In step 204 , a first phase voltage, a second phase voltage, and a third phase voltage are detected.
[0036] In one embodiment, the SPD1179 chip uses a high-impedance voltage divider network (e.g., a 100kΩ and 10kΩ resistor in series) in the back-electromotive force (BEMF) detection module to proportionally sample the voltages at the U, V, and W ports. The sampled voltages are then fed into an on-chip comparator or analog-to-digital converter. The chip then reads these three divided voltages and compares them with a set threshold voltage to determine the voltage status of each phase.
[0037] In step 206 , it is determined whether the motor is short-circuited to ground based on the detected first phase voltage, second phase voltage, and third phase voltage.
[0038] In one embodiment, in response to the detected first phase voltage, the second phase voltage, and the third phase voltage differing from the power supply voltage of the motor within a first threshold range, it is determined that the motor does not have a short circuit to ground. In response to the detected first phase voltage, the second phase voltage, and the third phase voltage differing from the power supply voltage of the motor outside the first threshold range, it is determined that the motor has a short circuit to ground.
[0039] For example, if it is detected that the difference between the three-phase voltages U, V, and W and the power supply voltage is less than the set first threshold value (for example, ΔV=1V), the chip determines that the current motor does not have a short circuit to the ground, and at this time it can be further determined whether the motor has a phase loss. If it is detected that any phase voltage of the three-phase voltages U, V, and W is significantly lower than the power supply voltage Vbat, and the difference with the ground voltage is less than the set second threshold value (for example, ΔV=1V), the chip determines that the current motor has at least one phase winding short circuit to the ground. At this time, the chip will record the error status and report the fault through the internal status register or GPIO interface, and prohibit the subsequent drive logic from executing. Specifically, the second threshold value in the present invention refers to the voltage threshold between the voltage sensed by the chip and the ground voltage, and the first threshold value is the threshold between the voltage sensed by the chip and the power supply voltage. In the present invention, the first threshold value and the second threshold value may be the same or different.
[0040] In step 208 , in response to the fact that there is no short circuit to ground in the motor, the switches of the first phase, the second phase, and the third phase are turned on.
[0041] As described above, in one embodiment, if the three-phase voltages are all within a first threshold value (for example, 1V, which is close to Vbat) of the power supply voltage, that is, the difference between each phase voltage and Vbat is within a second threshold value range, the chip determines that there is no short circuit to ground and enters the next stage of the phase loss detection process. At this time, the chip control logic starts the phase-by-phase judgment strategy, first turning on the low-side switch Q2 of the U phase, while keeping Q1, Q3, Q4, Q5, and Q6 off. Since Q2 is turned on, if the U phase is connected normally, the U terminal will be pulled to the ground voltage. After the internal winding of the motor forms a loop, the V and W phase voltages will also drop to close to the ground potential.
[0042] In step 210 , it is determined whether the motor has a phase missing based on the detected first phase voltage, second phase voltage, and third phase voltage.
[0043] When Q2 is on, the chip continues to monitor the three-phase voltage status through the BEMF module. If the U, V, and W phase voltages are all close to ground (e.g., less than 1V), the three-phase connection of the motor is normal and there is no phase loss. If, in this state, the V or W phase remains high near Vbat, it indicates that the phase is disconnected from the circuit, indicating a phase loss fault. The chip records the faulty phase and reports it to the upper-level system.
[0044] This process is automatically executed by the chip. The detection delay and sampling period can be configured, provided hardware resources permit. This method, combined with the system power-up process, allows for a one-time short-circuit and phase loss screening. This method requires no current sampling or motor operation; the chip can initially determine whether the motor is properly connected. This makes it particularly suitable for batch factory testing, field system deployment, and automated initialization processes.
[0045] Figure 4 FIG. 4 is a flow chart of a method 400 for detecting a phase loss of a motor relative to ground according to an embodiment of the present disclosure. Figure 1 The computing device 110 shown is executed, and may also be executed on Figure 5 The method 400 is executed at the electronic device 500. It should be understood that the method 400 may further include additional blocks not shown and / or may omit the blocks shown, and the scope of the present disclosure is not limited in this respect.
[0046] In step 402 , in response to the first phase voltage, the second phase voltage, and the third phase voltage all being within a second threshold range from the ground voltage, it is determined that the motor has no phase loss.
[0047] If a short-circuit to ground fault is not detected, the controller further executes the phase loss detection process, which sequentially turns on the lower-side power switch of a phase while keeping the other five switches off. For example, the low-side switch Q2 of phase U is turned on, while phases V and W remain off. In this state, the voltage values of the three-phase ports U, V, and W are again tested. If the voltage values of the three-phase ports U, V, and W are all close to the ground voltage Vgnd (for example, less than 1V), it is determined that the motor has not lost a phase.
[0048] In step 404 , in response to a difference between any one of the first phase voltage, the second phase voltage, and the third phase voltage and the power supply voltage of the motor being outside a first threshold range, it is determined that the motor has a phase loss.
[0049] If it is detected that the difference between the U-phase, V-phase or W-phase voltage and the power supply voltage Vbat is less than the second threshold value 1V (ie close to Vbat), it is determined that a phase loss exists.
[0050] To further determine which phase is missing, the system performs switching operations based on the detected voltage combination. For example, if both V and W voltages are high when the lower bridge arm of phase U is conducting, it can be determined that phase U is missing or multiple phases are missing.
[0051] Specifically, in response to the second phase V phase voltage being different from the ground voltage Vgnd within a threshold range (i.e., close to Vgnd) and the third phase W phase voltage being different from the power supply voltage Vbat of the motor within a threshold range (i.e., close to Vbat), it is determined that there is a phase loss in the third phase W of the motor.
[0052] In response to the third phase W phase voltage being different from the ground voltage Vgnd within a threshold range (i.e. close to Vgnd) and the second phase voltage V phase being different from the power supply voltage of the motor within a threshold range (i.e. close to Vbat), it is determined that there is a phase loss in the second phase V phase of the motor.
[0053] If the voltage difference between the second phase V and the third phase W and the ground voltage Vgnd is within the threshold range (that is, close to Vgnd), it means that a phase is missing, but it is not yet certain which phase is missing. It is possible that the U phase is missing, or two phases or three phases are missing at the same time. The specific situation requires further investigation.
[0054] In order to further determine which phase is missing, the lower switch tube of the second phase is turned on, that is, Q2 can be turned off and the lower bridge arm Q4 of the V phase is turned on, and then the three-phase voltage is detected. In response to the difference between the first phase U phase voltage and the power supply voltage Vbat being within the threshold range (ie, close to Vbat) and the third phase W phase voltage and the ground voltage Vgnd being within the threshold range (ie, close to Vgnd), it is determined that there is a phase loss in the first phase U phase of the motor. If the difference between the first phase U phase and the third phase W phase and the power supply voltage Vbat is within the threshold range (ie, close to Vbat), it is necessary to further locate downward.
[0055] To further determine which phase is missing, the lower switch of the third phase is turned on, that is, Q4 is turned off and the lower bridge arm of the W phase, Q6, is turned on. Then, the three-phase voltage is measured. Q6 is switched on and the voltage levels of the first phase, U, and the second phase, V, are measured to ultimately determine whether the missing phase is U, both phases U and V, or all three phases are missing.
[0056] In response to the difference between the first phase voltage and the third phase voltage and the power supply voltage of the motor being within a threshold range, the lower switch of the third phase is turned on, and the switches of the first and second phases are kept off. The first phase voltage, the second phase voltage, and the third phase voltage are detected.
[0057] In response to the first phase U phase voltage and the power supply voltage Vbat of the motor being different within a threshold range (i.e. close to Vbat) and the second phase V phase voltage and the ground voltage Vgnd being different within a threshold range (i.e. close to Vgnd), it is determined that only the first phase U phase in the motor is missing.
[0058] In response to the difference between the first phase U phase voltage, the second phase V phase voltage and the power supply voltage Vbat of the motor being within a threshold range (ie close to Vbat), it is determined that two or three phases are missing in the motor.
[0059] It is noted that during the description of the present invention, the first phase, the second phase and the third phase are expressed as U phase, V phase and W phase respectively. However, it will be understood by those skilled in the art that the method of testing whether the motor is short-circuited to the ground, missing phase and determining the specific missing phase based on generating a voltage with weak pull-up capability at the three-phase port of the motor can also be applied to motors of other sequences. For example, the method of the present invention can also be extended to apply to motor systems with two-phase wiring or multi-phase structures. By modifying the detection logic and the number of voltage divider channels, the short-circuit and missing phase diagnosis function of the motor in the non-operating state can also be realized. In the specific engineering implementation, the controller can use a polling method or a finite state machine to automatically schedule the above-mentioned detection process, and complete it synchronously with the initialization process, so as to quickly complete the fault screening before the system starts, thereby improving the stability and safety of the motor system.
[0060] The present invention also relates to a chip for executing the above-mentioned detection method, which includes functional modules such as a power supply voltage module, a back electromotive force sampling module and a microcontroller unit. The power supply voltage module is connected to the motor drive end and can provide a weak pull-up driving capability to realize pre-charging of the motor port voltage. The back electromotive force module integrates multiple resistor voltage divider channels and is connected to an on-chip comparator or ADC. It can synchronously sample the voltage of each phase port and output a digital signal to the microcontroller unit. The microcontroller unit receives the output signal of the BEMF module and switches the conduction state of the power tube according to the control logic within a preset period, executes multiple processes such as short circuit judgment, phase loss judgment, phase location, etc., and finally outputs the fault diagnosis result.
[0061] The back-EMF module in this chip architecture performs high-impedance voltage division on each of the three phases. The typical resistance ratio is set to a series structure of 100kΩ and 10kΩ, converting the maximum input voltage of 12V to a measurable voltage within 1.2V, compatible with the controller's internal low-voltage signal processing module. The microcontroller's comparison logic can use a digital comparator or analog-to-digital conversion combined with software judgment. The sampling period is configurable, with a default range of tens to hundreds of microseconds, ensuring fast fault detection response times when the motor is stationary.
[0062] The chip can further include a fault flag register and a communication interface for sending fault diagnosis results to a host computer or master MCU for use during system initialization, self-test, or abnormal shutdown. An output protection pin can also be configured to raise the protection level and disable PWM operation when a short circuit to ground or phase loss is detected, thereby improving system safety.
[0063] Using these technologies, a motor short circuit to ground or phase loss fault can be detected before the motor is even started. This eliminates the need to detect or calculate the motor's phase current or speed, making the detection method simple, efficient, and reliable. The SPD1179's built-in current-source pre-driver generates a weak pull-up voltage at the motor's U, V, and W terminals, facilitating fault detection and diagnosis before starting the motor without affecting actual motor operation. The SPD1179's built-in BEMF circuit enables efficient and cost-effective voltage detection at the motor's U, V, and W terminals.
[0064] Figure 5 1 shows a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Figure 1 The computing device 110 shown can be implemented by an electronic device 500. As shown, the electronic device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 508 into a random access memory (RAM) 503. In the random access memory 503, various programs and data required for the operation of the electronic device 500 can also be stored. The central processing unit 501, the read-only memory 502, and the random access memory 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0065] Multiple components in the electronic device 500 are connected to the input / output interface 505, including: an input unit 506, such as a keyboard, a mouse, a microphone, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0066] The various processes and procedures described above, such as methods 200 and 400, may be performed by the central processing unit 501. For example, in some embodiments, the methods 200, 400, and 500 may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed onto the device 500 via the read-only memory 502 and / or the communication unit 509. When the computer program is loaded into the random access memory 503 and executed by the central processing unit 501, one or more actions in the methods 200 and 400 described above may be performed.
[0067] The present disclosure relates to methods, apparatuses, systems, electronic devices, computer-readable storage media, and / or computer program products. The computer program products may include computer-readable program instructions for executing various aspects of the present disclosure.
[0068] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
[0069] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge computing devices. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0070] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions. The electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0071] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0072] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0073] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0074] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the prescribed logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented by a dedicated hardware-based system that performs the prescribed function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0075] Those skilled in the art will appreciate that the present invention is not limited to the embodiments described above, and that the present invention may be implemented in many other forms without departing from its spirit and scope. Therefore, the examples and embodiments shown are to be considered illustrative rather than restrictive, and that the present invention may encompass various modifications and substitutions without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A method for motor detection, characterized in that: The method comprises: Turn off the switches of the first, second and third phases and connect the power supply voltage of the drive circuit; detecting a first phase voltage, a second phase voltage, and a third phase voltage; determining whether the motor is short-circuited to ground based on the detected first phase voltage, second phase voltage, and third phase voltage; In response to determining that the motor does not have a short circuit to ground, turning on the switches of the first phase, the second phase, and the third phase; and It is determined whether the motor has a phase loss based on the detected first phase voltage, second phase voltage, and third phase voltage.
2. The method according to claim 1, characterized in that Determining whether the motor has a short circuit to ground based on the detected first phase voltage, second phase voltage, and third phase voltage includes: In response to the detected first phase voltage, second phase voltage, and third phase voltage all differing from the power supply voltage of the motor within a first threshold range, determining that the motor does not have a short circuit to ground; as well as In response to the difference between the detected first phase voltage, the detected second phase voltage and the detected third phase voltage and the power supply voltage of the motor being outside a first threshold range, it is determined that the motor is short-circuited to ground.
3. The method according to claim 2, characterized in that The switching tubes for opening the first phase, the second phase, and the third phase include: The lower switch tube of the first phase is turned on, and the switch tubes of the second and third phases are kept off.
4. The method according to claim 3, characterized in that Determining whether the motor has a phase loss based on the detected first phase voltage, second phase voltage, and third phase voltage includes: In response to the first phase voltage, the second phase voltage, and the third phase voltage all differing from the ground voltage within a second threshold range, determining that the motor has no phase loss; as well as In response to the difference between any one of the first phase voltage, the second phase voltage and the third phase voltage and the power supply voltage of the motor being outside a first threshold range, it is determined that the motor has a phase loss.
5. The method according to claim 4, characterized in that Determining whether the motor has a phase loss includes: In response to the second phase voltage differing from the ground voltage within a second threshold range and the third phase voltage differing from the power supply voltage of the motor within a first threshold range, determining that a phase loss exists in the third phase of the motor; or In response to the third phase voltage differing from the ground voltage within a second threshold range and the second phase voltage differing from the power supply voltage of the motor within a first threshold range, it is determined that a phase loss exists in the second phase of the motor.
6. The method according to claim 5, characterized in that Determining whether the motor has a phase loss includes: In response to the difference between the second phase voltage and the third phase voltage and the power supply voltage of the motor being within a first threshold range, turning on the lower switch tube of the second phase and keeping the switch tubes of the first phase and the third phase closed; detecting a first phase voltage, a second phase voltage, and a third phase voltage; as well as In response to the first phase voltage differing from the power supply voltage of the motor within a first threshold range and the third phase voltage differing from the ground voltage within a second threshold range, it is determined that a phase loss exists in the first phase of the motor.
7. The method according to claim 6, characterized in that Determining whether the motor has a phase loss further includes: In response to the difference between the first phase voltage and the third phase voltage and the power supply voltage of the motor being within a first threshold range, the lower switch tube of the third phase is turned on, and the switch tubes of the first phase and the second phase are kept off; detecting a first phase voltage, a second phase voltage, and a third phase voltage; In response to a difference between the first phase voltage and the power supply voltage of the motor being within a first threshold range and a difference between the second phase voltage and the ground voltage being within a second threshold range, determining that only the first phase of the motor is missing; or In response to the difference between the first phase voltage, the second phase voltage and the power supply voltage of the motor being within a first threshold range, it is determined that two or three phases of the motor are missing.
8. A chip for motor detection, wherein the chip detects the motor using the method according to any one of claims 1 to 7, characterized in that: include: A power supply voltage module configured to provide a power supply voltage for a drive circuit; a back electromotive force module configured to perform voltage division on the first phase voltage, the second phase voltage, and the third phase voltage; as well as The micro control unit is configured to detect the first phase voltage, the second phase voltage and the third phase voltage, and determine whether the motor is phase-lost or short-circuited to ground based on the detected first phase voltage, the second phase voltage and the third phase voltage.
9. A computing device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.