Motor open-phase detection method and system, medium, program product and terminal
By acquiring the three-phase current data of the motor in real time, Fourier transform and mode calculation are performed, combined with the pre-trained phase-loss detection model and smoothing processing, the detection difficulties and accuracy problems in the motor phase-loss detection are solved, and the detection difficulties and accuracy problems are realized in different states Efficient and accurate detection under the hood reduces cost and complexity.
Patent Information
- Application Number
- CN202411235382.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the motor phase-lost detection, the prior art has problems such as difficulty in detecting at low speed or zero speed, low accuracy, different detection methods, complex threshold judgment, high cost and complexity, and the inability to accurately judge specific phase problems.
Real-time acquisition of the three-phase current data of the motor, Fourier transform and mode calculation, input a pre-trained phase-loss detection model for detection, and obtain the final result through smoothing processing, reducing dependence on other sensors.
The motor phase loss detection consistency and reliability are achieved in zero-speed, low-speed and high-speed states, avoid false alarms, accurately judge phase loss, reduce costs, and improve the accuracy and reliability of the detection model.
Smart Images

Figure CN119087064A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor control technology, and in particular to a motor phase loss detection method, system, medium, program product and terminal. Background Art
[0002] With the development of microcontroller unit (MCU) technology, its application in the field of motor control is becoming more and more extensive. Motor control requires not only accuracy but also high reliability, especially in detecting and handling motor faults. Motor phase loss is one of the common problems in motor operation. Motor phase loss refers to the failure of one or more phase lines due to some reason during the operation of a three-phase AC motor, making it unable to work normally. Motor phase loss may cause motor performance degradation or even damage. Therefore, motor phase loss detection is crucial to ensure motor stability and safety.
[0003] The existing technology for detecting phase loss in motors includes: identifying phase loss by monitoring the change in motor speed; or using a vibration sensor to sense abnormal vibration during motor operation; or analyzing the harmonic components of the motor current to identify phase loss; or calculating whether the sum of the three-phase current is zero to determine whether there is a phase loss; or detecting other indirect physical quantities to detect phase loss; or determining whether there is a phase loss by comparing with a threshold. Although the existing technology can detect motor phase loss to a certain extent, the following problems still exist:
[0004] (1) When the motor is at low speed or zero speed, phase loss detection is difficult and the accuracy is low;
[0005] (2) When the motor is at zero speed or high speed, different detection methods need to be used;
[0006] (3) The threshold-based judgment method may increase the difficulty of program maintenance, and the threshold setting needs to be adjusted according to different application scenarios.
[0007] (4) If a comprehensive judgment based on speed and other parameters is used to determine the phase failure, more sensors will be needed, increasing the cost and complexity of the system.
[0008] (5) Existing methods often make it difficult to accurately determine which phase has a problem, which affects the rapid location and handling of the fault. Summary of the invention
[0009] In view of the above-mentioned shortcomings of the prior art, the present invention provides a motor phase loss detection method, system, medium, program product and terminal, which are used to solve the problems in the prior art.
[0010] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a motor phase loss detection method, which is applied to a microcontroller, and the method includes: acquiring three-phase current data during the operation of the motor in real time; performing Fourier transform processing on the three-phase current data, and performing a modulo operation on the transformation result; inputting the modulo operation result into a pre-trained phase loss detection model in the microcontroller for detection to obtain a preliminary phase loss detection result; and smoothing the preliminary phase loss detection result to obtain a final motor phase loss detection result.
[0011] In some embodiments of the first aspect of the present application, performing a modulo operation on the transformation result includes: selecting the first half of the data of the transformation result to perform a modulo operation.
[0012] In some embodiments of the first aspect of the present application, the pre-trained phase loss detection model is trained in the following manner: obtaining historical three-phase current data during the operation of the motor within a preset sampling time period; performing Fourier transform processing on the historical three-phase current data, and performing a modulus operation on the transformed historical three-phase current data; and training and constructing a phase loss detection model using a neural network model based on the modulus operation result.
[0013] In some embodiments of the first aspect of the present application, the historical three-phase current data is collected according to different combinations of situations; wherein one or more situations are selected as the situation combination from the following situations: different speeds, different three-phase states, different loads, and different sampling start times.
[0014] In some embodiments of the first aspect of the present application, smoothing the preliminary phase loss detection result includes: filtering the preliminary phase loss detection result through a low-pass filter.
[0015] In some embodiments of the first aspect of the present application, the three-phase current data includes U-phase current data, V-phase current data and W-phase current data, and the method also includes: inputting the U-phase current data, V-phase current data and W-phase current data into a pre-trained phase loss detection model for detection, and smoothing the detection results; analyzing the smoothed detection results to determine which phase among the U-phase, V-phase and W-phase is missing.
[0016] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a motor phase loss detection system, including: a data acquisition module, used to acquire three-phase current data during the operation of the motor in real time; a data processing module, used to perform Fourier transform processing on the three-phase current data and perform modulus operation on the transformation result; a preliminary detection module, used to input the modulus operation result into a pre-trained phase loss detection model in a microcontroller for detection to obtain a preliminary phase loss detection result; a result output module, used to smooth the preliminary phase loss detection result to obtain a final motor phase loss detection result.
[0017] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the motor phase loss detection method when executed by a processor.
[0018] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements the motor phase loss detection method.
[0019] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides an electronic terminal, including a memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the motor phase loss detection method.
[0020] As described above, the motor phase loss detection method, system, medium, program product and terminal provided by the present application have the following features:
[0021] Beneficial effects:
[0022] (1) The present invention can use the motor phase loss detection method regardless of whether the motor is running at zero speed, low speed or high speed, which not only simplifies the operation process, but also improves the consistency and reliability of detection. At the same time, the detection result can avoid false alarm after filtering.
[0023] (2) The present invention can directly output the motor phase loss detection result and can accurately determine which phase among the three phases U, V and W has a problem, providing a clear direction for fault diagnosis and maintenance.
[0024] (3) The phase loss detection process of the present invention only relies on the current sampling data required for motor control, which reduces the dependence on other sensors or data and reduces the cost.
[0025] (4) If a false alarm occurs in the present invention, it is only necessary to re-collect the false alarm data to retrain the phase loss detection model, thereby continuously improving the accuracy and reliability of the phase loss detection model. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 Shown is a flow chart of a motor phase loss detection method in one embodiment of the present application.
[0027] Figure 2 Shown is a structural schematic diagram of a motor phase loss detection system in one embodiment of the present application.
[0028] Figure 3 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION
[0029] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0030] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0031] <1> Fourier Transform: (FT) is a linear integral transform used to convert signals from the time domain to the frequency domain and has many applications in physics and engineering.
[0032] <2> A microcontroller unit (MCU) is a single-chip microcomputer that integrates the main parts of a microcomputer on one chip. It integrates the main components such as the central processing unit, memory, input / output (I / O) interface, timer / counter, and interrupt system, and has the characteristics of small size, low power consumption, and stable performance. The emergence of microcontrollers has greatly promoted the development of embedded systems and enabled various intelligent devices to be realized.
[0033] <3> FIFO (First Input First Output): is a memory used for data caching. It stores and reads data according to the first-in-first-out principle. FIFO memory is usually used in applications that require temporary storage and sequential management of data, such as data transmission, data buffering, queue management, etc.
[0034] To facilitate understanding of the embodiments of the present application, first Figure 1Detailed description. Figure 1 The flowchart of a motor phase loss detection method in an embodiment of the present invention is shown. The motor phase loss detection method in this embodiment is applied to a microcontroller MCU, and the method mainly includes the following steps:
[0035] Step S11: Acquire three-phase current data during the operation of the motor in real time.
[0036] It should be noted that in the microcontroller MCU, it is necessary to collect the three-phase current data of the motor in real time through the sensor during operation. The three-phase current data is transmitted and stored in the data buffer FIFO. The data buffer FIFO allows data to be transmitted from the high-speed part to the low-speed part. Among them, the data buffer FIFO can be used to temporarily store data between hardware or software components. In the microcontroller MCU, FIFO is used as a data buffer to store data collected from sensors or other data sources.
[0037] Step S12: Perform Fourier transform processing on the three-phase current data, and perform a modulo operation on the transformation result.
[0038] Furthermore, the microcontroller MCU reads the three-phase current data in the data buffer FIFO, and performs Fourier transform processing on the three-phase current data. The current data can be converted from a time domain signal to a frequency domain signal through the Fourier transform processing.
[0039] It should be explained that when the motor in the three-phase power system is operating normally, the current of each phase should theoretically be a sinusoidal waveform. This ideal current waveform indicates that the motor is running smoothly and without abnormalities. However, in actual applications, some abnormal conditions may occur, such as phase loss operation. Phase loss operation means that in the three-phase power system, one or more phases of current are interrupted or missing, resulting in current imbalance. When the phase is lost, the current waveform will also change and will no longer be a standard sine wave.
[0040] For example, when the motor is operating normally at high or low speed, the waveform of the current collected in any phase is close to a sine waveform. However, if a phase loss current occurs at this time, the phase loss current will fluctuate in a small range at a frequency different from the current under normal operation. When the motor is operating normally at zero speed, the current loop will produce slight frequency fluctuations due to the adjustment of the proportional-integral controller. This slight frequency fluctuation is because the motor control system needs to maintain a certain current to keep the motor stable, even at zero speed. However, if the motor loses a phase at zero speed, the proportional-integral controller may not be able to maintain current stability, resulting in the current loop missing the adjustment frequency of the corresponding phase.
[0041] Based on the above principle, it can be known that the corresponding phase-loss current of the motor at different speeds is different from the current under normal operation. Therefore, the collected three-phase current is processed by Fourier transform. If the motor is working normally, the result of Fourier transform will show normal waveform and frequency; if the motor is phase-loss, the absence or abnormality of certain frequency components will be observed in the frequency domain, which can help diagnose motor faults.
[0042] Furthermore, the Fourier transform result usually contains a real part and an imaginary part. Performing a modulo operation on the Fourier transform result can obtain the amplitude value of each frequency point, which is helpful for further analyzing the characteristics of the signal. The advantages of modulo operation are: by analyzing the result of modulo operation, it is possible to identify whether there is abnormal frequency fluctuation in the current signal; modulo operation can provide the amplitude of each frequency point, which is the key information for analyzing the signal strength; the result after modulo operation is a real number, which can simplify the analysis process of the current signal and make it easier to identify and quantify the various frequency components in the current signal; when performing spectrum analysis, the spectrum diagram after modulo operation is more intuitive, which is convenient for observing and interpreting the frequency characteristics of the current signal.
[0043] In one embodiment, performing a modulo operation on the transformation result includes: selecting the first half of the data of the transformation result to perform a modulo operation.
[0044] It should be noted that the spectrum signal obtained after Fourier transform processing of the three-phase current data is centrally symmetrical, and the first half of the signal is basically equal to the second half of the signal. Therefore, it is only necessary to perform a modulus operation on the first half of the spectrum signal to obtain the amplitude value at each frequency. This method can effectively reduce the amount of calculation.
[0045] Step S13: inputting the modulo operation result into a pre-trained phase loss detection model in the microcontroller for detection to obtain a preliminary phase loss detection result.
[0046] It should be noted that a pre-trained phase loss detection model is imported into the microcontroller MCU, and the modulus operation result of the three-phase current is input into the pre-trained phase loss detection model. The phase loss detection model classifies the modulus operation result data, and can distinguish between normal current data and phase loss current data, that is, obtain a preliminary phase loss detection result.
[0047] In one embodiment, the pre-trained phase loss detection model is trained in the following manner:
[0048] Step 1: Obtain historical three-phase current data during the motor operation process within a preset sampling time period.
[0049] It should be noted that before model training, historical three-phase current data is first collected. The method for collecting historical three-phase current data during motor operation in an embodiment of the present invention includes: collecting the historical three-phase current data according to different combinations of situations; wherein one or more situations are selected as a situation combination from the following situations: different speeds, different three-phase states, different loads, and different sampling start times.
[0050] In order to improve the accuracy of the trained phase loss detection model, diversified data is collected for model training and testing. In the embodiment of the present invention, normal three-phase current data and faulty three-phase current data during the operation of the motor within a preset sampling time period are collected. By using a relay to control the on and off of the three phases of the motor, different states such as starting, stopping and phase loss of the motor can be simulated. The microcontroller MCU can accurately control the operating parameters of the motor, such as speed and state. The microcontroller MCU controls the collection of three-phase current data at different speeds, different three-phase states, different loads, and different sampling start times to ensure the diversity and accuracy of the collected data.
[0051] Among them, different speeds refer to the data collected by the motor at different operating speeds (high speed, low speed, zero speed) to represent different working conditions; different three-phase states refer to the motor being in different three-phase current states, such as full phase, one phase missing, two phases missing, etc., and these states also need to be collected and recorded; different loads refer to the data collected by the motor under different load conditions to reflect the different load conditions that the motor may encounter in actual work, and the load range is within the preset range of the motor; different sampling start times refer to data collection in different stages of motor operation, such as startup, any time period during operation or before shutdown. The sampling time can also be the moment when the motor running speed changes, the moment when the three-phase state switches, etc. as the sampling start time to collect current data at different operating stages.
[0052] Specifically, different three-phase states include the following eight situations:
[0053] Case 1: U phase, V phase and W phase are normal;
[0054] Case 2: U phase and V phase are normal, W phase is missing;
[0055] Case 3: U phase and W phase are normal, V phase is missing;
[0056] Case 4: V phase and W phase are normal, U phase is missing;
[0057] Case 5: U phase is normal, V phase and W phase are missing;
[0058] Case 6: V phase is normal, U phase and W phase are missing;
[0059] Case 7: W phase is normal, U phase and V phase are missing;
[0060] Case 8: Phase U, phase V, and phase W are missing.
[0061] It should be noted that by randomly selecting different speeds, states, loads and sampling times for random combination sampling, the diversity of the data can be increased, overfitting during model training can be avoided, and all the data and corresponding situation combination information can be stored to facilitate subsequent testing and analysis of the model.
[0062] Specifically, enough data (about tens of thousands) is collected, and the length of each data is configured according to the requirements. For example, the detection needs to be completed in about 50ms, and the current sampling frequency is 20K, so 1024 sampling points need to be selected as a current data, and the sampling time is 1000 / (20K / 1024) = 51.2ms. At the same time, the three-phase current data collected also needs to ensure that a single data is large enough while meeting the detection time requirements and the storage space of the microcontroller MCU is sufficient, so as to reduce the data spectrum leakage that may exist during the sampling process.
[0063] Step 2: Perform Fourier transform processing on the historical three-phase current data, and perform modulus operation on the transformed historical three-phase current data.
[0064] Further, the data is Fourier transformed, and the historical three-phase current data after the transformation is subjected to a modulo operation. When performing the modulo operation, only the first half of the data of the transformation result needs to be selected for the modulo operation. For example, 1024 lengths of data are collected and obtained, and then Fourier transformed to obtain 1024 spectrum signals. The spectrum signals are centrally symmetrical. Therefore, only the first half of the 1024 spectrum signals (512 data) need to be selected for the modulo operation, which can reduce the amount of data.
[0065] Step 3: Based on the modular operation results, a neural network model is used for training and building a phase loss detection model.
[0066] Specifically, the data set of the modular operation result is divided into a training set, a validation set and a test set. For example, the division ratio can be 70% training set, 15% validation set and 15% test set, which can also be adjusted according to actual conditions. This embodiment does not limit it. Select a suitable neural network model, such as a convolutional neural network, a multilayer perceptron or a recurrent neural network. In this embodiment, considering that the model will run in the microcontroller MCU, it is necessary to use a model with a relatively simple structure, which can reduce the computational complexity and model size, and ensure the hardware compatibility of the model with the microcontroller MCU. In this embodiment, a convolutional neural network is preferably used for training and constructing a phase loss detection model.
[0067] In the embodiment of the present invention, tools such as TensorFlow and PyTorch are used to train the model. The training set data is input into the tool to train the model. The validation set is used to adjust the model parameters and prevent overfitting. Then, the performance of the model is evaluated using the test set. The model is optimized according to the test results to obtain a pre-trained phase loss detection model. By evaluating the performance of the model with the test set, it can be concluded that the phase loss detection model provided by the present invention has a 99.2% success rate in detecting motor faults. The phase loss detection model is used to classify the three-phase current data to distinguish between normal three-phase current and phase loss current, thereby realizing the detection of motor phase loss current.
[0068] Export the phase loss detection model trained in the tool into a format that can be run by the microcontroller MCU. For example, the model trained using the TensorFlow tool can be directly exported to the tensorflow lite for Microcontrollers format. If it is a custom calculation function, you only need to export the weight parameters of the model. The weight parameters can be stored in the memory of the microcontroller MCU and used to detect motor faults during runtime.
[0069] Step S14: smoothing the preliminary phase loss detection result to obtain a final motor phase loss detection result.
[0070] In some examples, smoothing the preliminary phase loss detection result includes filtering the preliminary phase loss detection result through a low-pass filter.
[0071] It should be explained that when performing phase loss detection of the three-phase current of the motor, although the phase loss detection model has high accuracy, it cannot guarantee that the results are 100% correct. In the preliminary phase loss detection results obtained by the phase loss detection model, some classification results are wrong. After analysis, it is determined that these errors are mainly caused by interference during the three-phase current data sampling process. These interferences may come from a variety of factors, such as electromagnetic noise, insufficient sensor accuracy, or instability of the data acquisition system. Moreover, these incorrect classification results are sporadic and not continuous.
[0072] Therefore, in order to improve the accuracy of phase loss detection, the preliminary phase loss detection result is smoothed to remove high-frequency noise. In an embodiment of the present invention, a low-pass filter is set at the output result position of the phase loss detection model in the microcontroller MCU. The function of the low-pass filter is to allow low-frequency signals to pass through while suppressing high-frequency noise, which helps to filter out occasional erroneous data and ensure the stability of the detection result. The preliminary phase loss detection result output by the phase loss detection model enters the low-pass filter for filtering and smoothing, and the result after filtering and smoothing is the final motor phase loss detection result. Through smoothing, the embodiment of the present invention can significantly improve the reliability and accuracy of motor phase loss detection and reduce false alarms.
[0073] In one embodiment, the three-phase current data includes U-phase current data, V-phase current data and W-phase current data, and the method further includes:
[0074] The U-phase current data, the V-phase current data and the W-phase current data are respectively input into a pre-trained phase loss detection model for detection, and the detection results are smoothed;
[0075] The smoothed detection results are analyzed to determine which phase among the U phase, the V phase and the W phase is missing.
[0076] It needs to be explained that after obtaining the pre-trained phase loss detection model, the three-phase current data of the motor is obtained in real time. The three-phase current data includes U-phase, V-phase and W-phase current data. In the present invention, the U-phase, V-phase and W-phase current data are respectively subjected to phase loss detection, that is, the pre-trained phase loss detection model is respectively input for detection, and the detection results of the U-phase, V-phase and W-phase currents can be obtained. By analyzing the detection results, it can be determined which phase of the three phases, U-phase, V-phase and W-phase currents, is lacking.
[0077] It should be noted that after obtaining the U-phase, V-phase and W-phase current data, it is necessary to first perform Fourier transform processing on the U-phase, V-phase and W-phase current data respectively, and then perform modulo operation on the transformation results of the U-phase, V-phase and W-phase current data respectively to obtain the modulo operation results of the U-phase, V-phase and W-phase current data, and then input the modulo operation results of the U-phase, V-phase and W-phase current data into the pre-trained phase loss detection model for detection.
[0078] Furthermore, during the real-time phase loss detection of the motor, if misidentification occurs, the microcontroller MCU saves the misidentification data for subsequent analysis and processing. The misidentification data is analyzed to determine whether it is caused by system noise, sensor error or limitation of the model itself. If it is analyzed that the misidentification data is caused by model limitation, the misidentification data is merged with the existing training data set to form a new training set. The phase loss detection model is retrained using the new training set to obtain an updated phase loss detection model. In this way, the accuracy and reliability of the phase loss detection model can be continuously improved.
[0079] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects, and do not limit their order. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0080] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0081] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0082] Figure 2 is a schematic block diagram of a motor phase loss detection system 200 provided in an embodiment of the present application. Figure 2 As shown, the motor phase loss detection system 200 includes:
[0083] The data acquisition module 210 is used to acquire the three-phase current data of the motor in real time during operation;
[0084] The data processing module 220 is used to perform Fourier transform processing on the three-phase current data and perform a modulus operation on the transformation result;
[0085] A preliminary detection module 230 is used to input the modulo operation result into a phase loss detection model pre-trained in the microcontroller for detection to obtain a preliminary phase loss detection result;
[0086] The result output module 240 is used to smooth the preliminary phase loss detection result to obtain a final motor phase loss detection result.
[0087] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0088] It should also be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0089] Figure 3 is a schematic block diagram of an electronic terminal provided in an embodiment of the present application. Figure 3 As shown, the electronic terminal includes: at least one processor 301, a memory 302, at least one network interface 303 and a user interface 305. The various components in the device are coupled together through a bus system 304. It can be understood that the bus system 304 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 304 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 3 In the specification, various buses are labeled as bus systems.
[0090] The user interface 305 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0091] It is understood that the memory 302 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0092] The memory 302 in the embodiment of the present invention is used to store various categories of data to support the operation of the electronic terminal 300. Examples of these data include: any executable program for operating on the electronic terminal 300, such as an operating system 3021 and an application 3022; the operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 3022 may include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The motor phase loss detection method provided in the embodiment of the present invention may be included in the application 3022.
[0093] The method disclosed in the above embodiment of the present invention can be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 301 or the instruction in the form of software. The above processor 301 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 301 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 301 can be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0094] In an exemplary embodiment, the electronic terminal 300 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0095] According to the method provided in the embodiments of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes the motor phase loss detection method of any of the illustrated embodiments.
[0096] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable storage medium, which stores a program code. When the program code runs on a computer, the computer executes the motor phase loss detection method of any of the illustrated embodiments.
[0097] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0098] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0100] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0103] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).
[0104] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0105] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0106] In summary, the present application provides a motor phase loss detection method, system, medium, program product and terminal, including: real-time acquisition of three-phase current data during motor operation; Fourier transform processing of the three-phase current data, and modulo operation of the transformation result; inputting the modulo operation result into a pre-trained phase loss detection model in a microcontroller for detection to obtain a preliminary phase loss detection result; smoothing the preliminary phase loss detection result to obtain a final motor phase loss detection result. The present invention can use the motor phase loss detection method regardless of whether the motor is running at zero speed, low speed or high speed, which not only simplifies the operation process, but also improves the consistency and reliability of detection. At the same time, the detection result can avoid false alarm after filtering. The present invention can directly output the motor phase loss detection result, and can accurately determine which phase of the three phases U phase, V phase and W phase has a problem, providing a clear direction for fault diagnosis and maintenance. The phase loss detection process of the present invention only relies on the current sampling data required for motor control, reducing the dependence on other sensors or data and reducing costs. If a false alarm occurs in the present invention, it only needs to re-collect the false alarm data to retrain the phase loss detection model, thereby continuously improving the accuracy and reliability of the phase loss detection model. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0107] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for detecting a motor phase loss, characterized in that: Applied to a microcontroller, the method comprises: Real-time acquisition of three-phase current data during motor operation; Performing Fourier transform processing on the three-phase current data, and performing a modulus operation on the transformation result; The modulo operation result is input into the phase loss detection model pre-trained in the microcontroller for detection to obtain a preliminary phase loss detection result; The preliminary phase loss detection result is smoothed to obtain a final motor phase loss detection result.
2. The motor phase loss detection method according to claim 1, characterized in that: Performing a modulo operation on the transformation result includes: selecting the first half of the data of the transformation result to perform a modulo operation.
3. The motor phase loss detection method according to claim 1, characterized in that: The pre-trained phase loss detection model is trained in the following way: Obtain historical three-phase current data during the motor operation process within a preset sampling time period; Performing Fourier transform processing on the historical three-phase current data, and performing a modulus operation on the transformed historical three-phase current data; Based on the modular operation results, a neural network model is used to train and build a phase loss detection model.
4. The motor phase loss detection method according to claim 3, characterized in that: The historical three-phase current data is collected according to different situation combinations; wherein one or more situations are selected from the following situations as the situation combination: different speeds, different three-phase states, different loads, and different sampling start times.
5. The motor phase loss detection method according to claim 1, characterized in that: The smoothing process of the preliminary phase failure detection result includes: filtering the preliminary phase failure detection result through a low-pass filter.
6. The motor phase loss detection method according to claim 1, characterized in that: The three-phase current data includes U-phase current data, V-phase current data and W-phase current data, and the method further includes: The U-phase current data, the V-phase current data and the W-phase current data are respectively input into a pre-trained phase loss detection model for detection, and the detection results are smoothed; The smoothed detection results are analyzed to determine which phase among the U phase, the V phase and the W phase is missing.
7. A motor phase loss detection system, characterized in that: include: A data acquisition module is used to obtain three-phase current data of the motor in real time during operation; A data processing module, used for performing Fourier transform processing on the three-phase current data and performing a modulus operation on the transformation result; A preliminary detection module is used to input the modulo operation result into a phase loss detection model pre-trained in the microcontroller for detection to obtain a preliminary phase loss detection result; The result output module is used to smooth the preliminary phase loss detection result to obtain the final motor phase loss detection result.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the motor phase loss detection method according to any one of claims 1 to 6 is implemented.
9. A computer program product, characterized in that The computer program product includes computer program codes, and when the computer program codes are executed on a computer, the computer is enabled to implement the motor phase loss detection method according to any one of claims 1 to 6.
10. An electronic terminal comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the motor phase loss detection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Transformer phase loss detection and warning device and method
CN104391184A
Motor three-phase current measurement error automatic alarm method and device
CN115792600A
Low-voltage power distribution network zero-line disconnection and open-phase fault diagnosis algorithm based on multi-source information fusion
CN116223926A
Phase difference calculation method for Coriolis flowmeter with mixed zero-cross detection and orthogonal demodulation
CN116337191A
Open-phase detection method and device, computer equipment and storage medium
CN117269628A
