A motor torque control method and system for a multifunctional gardening operation device
By analyzing the PWM signal and speed data of the motor torque, the torque adjustment demand degree is constructed, the adjustment coefficient is calculated, and the SPWM algorithm is used to adjust the motor torque, which solves the problem of inaccurate torque control in gardening operations and improves the accuracy of torque control.
Patent Information
- Application Number
- CN202411016734.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In gardening operations, the problem of inaccurate motor torque control, especially under weak load conditions, causes the torque to be insensitive to load changes, affecting efficiency and accuracy.
By collecting the PWM signal data and rotational speed data of the motor torque, the torque change characteristics are analyzed, the reality of the torque change and the degree of adjustment demand are constructed, the torque adjustment coefficient is calculated, and the SPWM algorithm is used to adjust the motor torque to improve control accuracy.
It effectively reduces the impact of accidental factors on the working state of the motor, improves the accuracy of torque control, and ensures effective adjustment of the motor under different load conditions.
Smart Images

Figure CN118554846B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical torque control, and in particular to a motor torque control method and system for a multifunctional gardening operation device. Background Art
[0002] With the development of science and technology, various devices and equipment for gardening operations are gradually moving towards electrification, automation, and multifunctionality. Many gardening operation devices are gradually equipped with special motors. One motor can be connected to multiple operation heads, so that a gardener can use one motor and different operation heads to perform multiple operations, greatly improving the efficiency of gardening operations.
[0003] Normally, the motor of a gardening operation device is mainly used to provide power for the gardening operation device. However, in actual use, the gardening operation device has a wide range of uses, including but not limited to pruning trees, shrubs, lawns, etc. Therefore, the load of the motor for different uses is different, and the required output torque is also different. Therefore, in order to ensure the efficiency of the gardening operation, the output torque of the motor is usually controlled so that the motor can work constantly.
[0004] In the process of gardening operations, the control of motor torque is the regulation of voltage. In order to save energy when the motor is unloaded, it usually maintains a lower torque output. When the load increases, the duty cycle of the motor torque PWM signal will decrease according to the load. The less the load increases, the less the duty cycle changes. When the operating object is flowers or thinner branches, the load generated is small, which may be similar to the duty cycle in the unloaded state, resulting in the motor torque being insensitive to slight load changes, resulting in low torque control accuracy. Summary of the invention
[0005] In order to solve the above technical problems, the purpose of this application is to provide a motor torque control method and system for a multifunctional gardening operation device. The technical solutions adopted are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for controlling the torque of a motor for a multifunctional gardening operation device, the method comprising the following steps:
[0007] Collect the pulse width time data and duty cycle data of each cycle in the PWM signal data of each time window of the motor torque; collect the speed data of the motor at each moment;
[0008] Determine the degree of motor change difference in each time window based on the change of the speed and duty cycle data in the PWM signal, and determine the authenticity of the torque change in each time window based on the change regularity of the pulse width time data in the PWM signal and the difference between the pulse width times in different time windows;
[0009] The torque regulation requirement of each time window is constructed based on the difference between the duty cycle data of different time windows and the change of the duty cycle data in each time window;
[0010] Determine the torque adjustment coefficient of each time window based on the torque change authenticity and torque adjustment requirement of each time window;
[0011] The motor torque is adjusted based on the torque adjustment coefficient of each time window.
[0012] In one embodiment, the process of obtaining the motor change difference degree in each time window is as follows:
[0013] Calculate the mean of all duty cycle data in each time window, recorded as a first mean; calculate the difference between each time window and the first mean of the corresponding previous time window, recorded as a first difference;
[0014] Calculate the difference between the rotation speeds at any acquisition moment and its multiple adjacent moments, and record it as the second difference; record the fusion value of all the second differences at any acquisition moment as the first fusion value;
[0015] The degree of difference in motor change in each time window is positively correlated with the first difference in each time window and the corresponding first fusion value.
[0016] In one embodiment, the process of obtaining the torque change authenticity of each time window is as follows:
[0017] The degree of influence of the torque in each time window is determined based on the degree of change of the pulse width time data in the PWM signal and the difference between the maximum pulse width times in different time windows;
[0018] The authenticity of the torque change in each time window is positively correlated with the difference in the motor change in each time window and the degree to which the torque is affected.
[0019] In one embodiment, the process of obtaining the degree of influence of the torque in each time window is as follows:
[0020] Record the sequence composed of all pulse width times in each time window as a pulse width time series; calculate the PLV value between any time window and the pulse width time series of multiple adjacent time windows; calculate the fusion value of all the PLV values in any time window, and record it as a second fusion value;
[0021] Calculate the difference between the maximum pulse width time of each time window and its multiple adjacent time windows, and record it as a first difference; calculate the fusion value of all the first differences of each time window, and record it as a third fusion value;
[0022] The degree to which the torque in each time window is affected is negatively correlated with the second fusion value, and positively correlated with the third fusion value.
[0023] In one embodiment, the process of obtaining the torque regulation requirement of each time window is as follows:
[0024] Determining the torque ramping degree of each time window based on the difference between the duty cycle data of each time window and a plurality of adjacent time windows;
[0025] The segmentation threshold of all duty cycle data in all time windows is obtained by a threshold segmentation algorithm, which is recorded as a first segmentation threshold; the duty cycle data greater than or equal to the first segmentation threshold is regarded as high duty cycle data;
[0026] Determine the degree of duty cycle stability and continuity of each time window based on the number of high duty cycle data in each time window and the time interval between the high duty cycle data;
[0027] The torque regulation requirement of each time window is positively correlated with the torque gradient degree and the duty cycle stability and continuity degree of each time window.
[0028] In one embodiment, the process of obtaining the torque variation degree of each time window is as follows:
[0029] Calculate the difference between each time window and the first mean value of its multiple adjacent time windows, and record it as the second difference; record the fusion value of all the second differences of each time window and the fusion value of the absolute values of all the second differences as the fourth fusion value and the fifth fusion value; calculate the ratio between the fourth fusion value of each time window and the sum of the time lengths of its multiple adjacent time windows, and record it as the first ratio;
[0030] The torque variation degree of each time window is negatively correlated with the first ratio of each time window, and positively correlated with the fifth fusion value.
[0031] In one embodiment, the process of obtaining the degree of stable continuity of the duty cycle of each time window is as follows:
[0032] Calculate the difference between the number of high duty cycle data in each time window and its multiple adjacent time windows, and record it as a third difference; record the sum of all the third differences in each time window as a first sum;
[0033] Obtain the time interval between any two high duty cycle data in each time window, recorded as the first time difference; calculate the sum of all the first time differences in each time window, recorded as the second sum; calculate the difference between the second sums of each time window and its multiple adjacent time windows, recorded as the fourth difference; and record the average value of all the fourth differences in each time window as the first average value;
[0034] The degree of smooth continuity of the duty cycle of each time window is negatively correlated with the first sum value of each time window, and positively correlated with the first average value.
[0035] In one embodiment, the torque adjustment coefficient of each time window is: the product of the torque change authenticity of each time window and the torque adjustment requirement.
[0036] In one embodiment, the motor torque is adjusted based on the torque adjustment coefficient of each time window, specifically:
[0037] The torque adjustment coefficients of all time windows are threshold-segmented to obtain a second segmentation threshold; when the torque adjustment coefficient of the time window is greater than or equal to the second segmentation threshold, the normalized result of the torque adjustment coefficient of the time window is used as the modulation index of the SPWM algorithm, the modulation index and the PWM signal of the time window are used as the input of the SPWM algorithm, and the output is a pulse width modulation control signal, and the torque of the special motor of the garden operation device is adjusted by the pulse width modulation control signal; otherwise, the motor torque is not adjusted.
[0038] In a second aspect, an embodiment of the present application also provides a motor torque control system for a multifunctional gardening work device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned methods when executing the computer program.
[0039] The embodiments of the present application have at least the following beneficial effects:
[0040] The present application collects the PWM signal data of the motor torque and the speed data of the motor, analyzes the torque PWM signal change characteristics caused by light loads based on the PWM signal change and the speed change, and constructs the torque change authenticity of each time window; based on the difference between the duty cycle data of different time windows and the change of the duty cycle data in each time window, the torque change characteristics of normal gardening operations and abnormal gardening operations are analyzed, and the torque adjustment demand of each time window is constructed to reduce the influence of accidental factors on the normal working state of the special motor of the gardening operation device, and characterize the current motor torque change; and then constructs the torque adjustment coefficient to judge whether the motor is in a normal working state at this time, which solves the problem of inaccurate torque control due to insensitivity to slight load changes in the current motor torque adjustment process, and improves the accuracy of torque control. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a method for controlling motor torque for a multifunctional gardening operation device provided in one embodiment of the present application;
[0043] Figure 2 It is a schematic diagram of pulse width time data and duty cycle data;
[0044] Figure 3 Schematic diagram of the process of obtaining the torque regulation demand in each time window. DETAILED DESCRIPTION
[0045] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the motor torque control method and system for a multifunctional gardening operation device proposed in the present application, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0046] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0047] The specific scheme of the motor torque control method and system for a multifunctional gardening operation device provided by the present application is described in detail below with reference to the accompanying drawings.
[0048] See also Figure 1 , which shows a flowchart of a motor torque control method for a multifunctional gardening operation device provided by an embodiment of the present application, the method comprising the following steps:
[0049] Step S1, collecting PWM signal data of motor torque and motor speed data, and performing preprocessing.
[0050] By setting an STM32 microcontroller in the motor, the PWM signal data of the motor torque voltage is continuously collected from the time the motor is turned on to the time when the motor is turned off. The PWM signal data is divided once every time interval T, and the time interval T is used as a time window to obtain the PWM signal data in each time window; the speed measuring instrument is set to measure the speed data of the motor once every time interval T. The PWM signal is a periodic signal, and each period includes a pulse width time data and a duty cycle data, such as Figure 2 shown.
[0051] In order to prevent data from being lost during transmission, the present application adopts a mean filling method for data filling, wherein mean filling is a well-known technology and the present application will not describe the process in detail.
[0052] Preferably, in one embodiment of the present application, when collecting PWM signal data and motor speed data, the present embodiment sets the interval time T to 0.1s, wherein the motor control frequency is 50Hz, that is, there are 5 PWM cycles in one time window. As other implementation methods, the implementer can decide the interval time and the motor control frequency according to the actual situation.
[0053] Step S2, based on the PWM signal changes and the speed changes, analyze the torque PWM signal change characteristics caused by the light load, and construct the torque change authenticity of each time window.
[0054] When the motor for gardening equipment is turned on but not operating normally, the motor torque is mainly manifested in the PWM signal as a small duty cycle, which is relatively stable and has a strong periodicity. When a relatively light load is generated, the duty cycle of the PWM signal will change slightly. Since the load generated by the motor during use is mainly the resistance generated when the operating head touches objects such as trees and grass, the degree of resistance change is different, so the regularity of the change of the duty cycle data in the PWM signal is low. As for the speed of the motor, it will also maintain a low speed when it is not operating normally. When it is operating normally, the speed will drop rapidly due to the generation of resistance, and the drop will be large. When a weak load is generated under abnormal operation, the speed will change less and will quickly return to normal levels.
[0055] (1) Determine the degree of motor change difference in each time window based on the change of duty cycle data and speed in the torque PWM signal:
[0056] Calculate the mean value of the duty cycle data of all PWM cycles in each time window, recorded as a first mean value; calculate the difference between each time window and the first mean value of the previous time window, recorded as a first difference;
[0057] For the rotation speed data at each acquisition moment, the first n acquisition moments of any acquisition moment are taken as the previous adjacent acquisition moments of the any acquisition moment; the difference between the rotation speed of the any acquisition moment and each of its previous adjacent moments is calculated and recorded as the second difference; the fusion value of all the second differences of the any acquisition moment is recorded as the first fusion value;
[0058] According to the data collection process of step S1, a speed data is collected every time window, that is, each time window corresponds to a speed data; the degree of difference in motor change in each time window is positively correlated with the first difference in each time window and the first fusion value at the collection moment of the corresponding speed data.
[0059] Among them, if it is impossible to obtain enough moment or time window data, the mean filling method is used to fill the data. Mean filling is a well-known technology and this application will not describe its process in detail.
[0060] It should be understood that the fusion described in this application is to combine multiple variables, which can be specifically addition, multiplication, etc.; the positive correlation relationship is that the dependent variable increases as the independent variable increases, and the independent variable decreases as the dependent variable decreases. The specific fusion and positive correlation application process can be determined according to actual conditions, and this application does not impose any special restrictions.
[0061] Preferably, as an embodiment of the present application, the first difference may be the difference between each time window and the first mean value of the previous time window; when acquiring the previous adjacent acquisition moment, the number n of the previous adjacent acquisition moments is set to 5 in this embodiment, and as other implementations, the implementer may determine the value of n according to actual conditions; the first fusion value may be the sum of all the second differences at any acquisition moment; the degree of motor change difference of each time window may be the product of the first difference of each time window and the first fusion value at the acquisition moment of the corresponding speed data;
[0062] In other embodiments of the present application, the first difference may be the ratio of each time window to the first mean value of its previous time window; the first fusion value may be the product of all the second differences at any acquisition moment; the degree of difference in motor change in each time window may be the sum of the first difference of each time window and the first fusion value at the acquisition moment of the corresponding speed data.
[0063] The greater the difference in motor changes in a single time window, the greater the change in the current motor torque duty cycle and speed, and the more likely it is that external factors have caused the torque change in the motor load.
[0064] (2) The degree of influence of the torque in each time window is determined based on the degree of change of the pulse width time data in the PWM signal and the difference between the maximum pulse width times in different time windows:
[0065] Arrange all the pulse width times in each time window from small to large in the order of their starting time to obtain the pulse width time sequence of each time window; it should be understood that arranging all the pulse width times in each time window from small to large in the order of their starting time to obtain the pulse width time sequence of each time window is only one implementation method of the present application. As other implementation methods, the implementer does not need to completely sort them in the order of the starting time. The implementer decides according to the actual application situation, and the present application does not impose any special restrictions;
[0066] The front of any time window time windows as the preceding adjacent time windows of any time window; calculating the PLV value between the pulse width time series of any time window and each preceding adjacent time window; calculating the fusion value of all the PLV values of any time window, recorded as the second fusion value; wherein the calculation of the PLV value is a well-known technology, and the specific process is not repeated here;
[0067] The maximum value of all pulse width times in each time window is recorded as the first maximum value; the difference between each time window and each of its previous adjacent time windows is calculated, recorded as the first difference; the fusion value of the first difference between each time window and all of its previous adjacent time windows is calculated, recorded as the third fusion value;
[0068] The degree to which the torque of each time window is affected is negatively correlated with the second fusion value of each time window, and positively correlated with the third fusion value of each time window.
[0069] It should be understood that the negative correlation described in this application is that the independent variable decreases as the dependent variable increases, and the independent variable increases as the dependent variable decreases. The specific negative correlation can be determined according to actual conditions during application, and this application does not impose any special restrictions.
[0070] It should be noted that if sufficient time window data cannot be obtained, the data is filled using the mean filling method. Mean filling is a well-known technology and the process will not be described in detail in this application.
[0071] Preferably, as an embodiment of the present application, in the process of calculating the degree of influence of the torque in each time window, for obtaining the previous adjacent time window, in this embodiment, the number of previous adjacent acquisition moments is Set to 5. As other implementation methods, implementers can decide according to actual conditions. The second fusion value may be the sum of all the PLV values of any time window; the third fusion value may be the sum of the first difference values between each time window and all its previous adjacent time windows; the calculation expression for the degree of influence of the torque in each time window may be: , where is the degree of influence of the torque in the i-th time window, is the second fusion value of the i-th time window; is the third fusion value of the i-th time window; To prevent the parameter with a denominator of 0, in this embodiment , as another embodiment, The implementer can decide the value of according to the actual situation;
[0072] In other embodiments of the present application, the second fusion value may be the average of all the PLV values of any time window; the third fusion value may be the average of the first differences between each time window and all its previous adjacent time windows; the degree of torque influence of each time window may be: calculating the result of an exponential function with a natural constant as the base and the opposite of the second fusion value of each time window as the exponent; and taking the product of the third fusion value of each time window and the calculation result as the degree of torque influence of each time window.
[0073] The greater the degree of influence on the torque of a single time window, the lower the regularity of the change of the current motor torque, the smaller the PLV value between the pulse width time series of the current time window and the previous 5 time windows, and the more prominent the change of the pulse width time, the greater the difference between the maximum pulse width time of the current time window and the previous 5 time windows, and the more likely it is that the load change has an impact on the motor.
[0074] (3) Determine the authenticity of the torque change in each time window based on the difference in motor change and the degree of torque impact in each time window:
[0075] The authenticity of the torque change in each time window is positively correlated with the difference in the motor change in each time window and the degree to which the torque is affected.
[0076] Preferably, as an embodiment of the present application, the torque change authenticity of each time window can be the product of the motor change difference degree and the torque affected degree of each time window;
[0077] In other embodiments of the present application, the torque change authenticity of each time window may be the sum of a normalized value of the motor change difference degree and a normalized value of the torque impact degree in each time window.
[0078] The greater the authenticity of the torque change in a single time window, the greater the degree of change in the motor's torque and speed, and the greater the degree of periodic change. It is more likely to be the true state of the torque change caused by the load, and the more the torque needs to be adjusted.
[0079] Step S3, based on the difference between the duty cycle data of different time windows and the change of the duty cycle data in each time window, analyze the torque change characteristics of normal gardening operations and abnormal gardening operations, and construct the torque adjustment demand of each time window.
[0080] In the process of gardening operations, workers need to repair large areas of gardens according to needs, so they will move frequently during the operation. In the process of movement, the operation head may touch trees, flowers, etc., which will cause a certain load change. However, at this time, the workers do not want to operate these trees, flowers, etc. If they only judge based on the authenticity of the torque change, misjudgment may occur, which will cause the torque of the motor to increase when the operation is not required, thereby consuming more electricity resources and causing resource waste. Therefore, it is also necessary to judge the actual operation needs.
[0081] Specifically, under normal operation, the load duration is long, and the load changes gradually increase, then remain stable, and finally return to normal value after the operation is completed. The change in the motor torque is mainly manifested in that the duty cycle data will gradually decrease, and it will last for a period of time at a lower torque, and the decrease is greater. Under abnormal operation, the load mainly changes to increase rapidly first, and then decrease rapidly to the normal level, and the increase is small. The change in the motor torque is mainly manifested in that the duty cycle data decreases and then increases rapidly, the change duration is shorter, and the degree of each change is different, and the number of occurrences is more frequent.
[0082] (1) Obtaining the previous adjacent time window of each time window. It should be noted that in the process of calculating the torque adjustment demand of each time window, for obtaining the previous adjacent time window, in this embodiment, the number of previous adjacent acquisition moments is Set to 10. As other implementation methods, implementers can decide according to actual conditions. The value of .
[0083] (2) The degree of torque variation in each time window is determined based on the difference between the duty cycle data of each time window and its previous adjacent time window:
[0084] Obtain the mean value of the duty cycle data of all PWM cycles in each time window, that is, the first mean value; calculate the difference between each time window and each of its previous adjacent time windows, the difference being recorded as the second difference value;
[0085] Recording the fusion value of the second difference between each time window and all its previous adjacent time windows as a fourth fusion value; calculating the ratio between the fourth fusion value of each time window and the sum of the time lengths of all its previous adjacent time windows, and recording it as a first ratio;
[0086] A fusion value of the absolute value of the second difference between each time window and all its previous adjacent time windows is recorded as a fifth fusion value;
[0087] The torque variation degree of each time window is negatively correlated with the first ratio of each time window, and positively correlated with the fifth fusion value.
[0088] It should be noted that if sufficient time window data cannot be obtained, the data is filled using the mean filling method. Mean filling is a well-known technology and the process will not be described in detail in this application.
[0089] Preferably, as an embodiment of the present application, the fourth fusion value may be the sum of the second difference values between each time window and all its previous adjacent time windows; the fifth fusion value may be the average value of the absolute values of the second difference values between each time window and all its previous adjacent time windows; the expression of the torque variation degree of each time window may be: , where is the torque variation degree of the i-th time window, is the first ratio of the i-th time window; is the fifth fusion value of the i-th time window; To prevent the parameter with a denominator of 0, in this embodiment , as another embodiment, The implementer can decide the value of according to the actual situation;
[0090] In other embodiments of the present application, the fourth fusion value may be a normalized value of the sum of the second differences between each time window and all its previous adjacent time windows; the fifth fusion value may be a normalized value of the product of the absolute values of the second differences between each time window and all its previous adjacent time windows; the expression of the torque variation degree of each time window may be: , where is an exponential function with the natural number e as base.
[0091] The greater the degree of torque variation in each time window, the smaller the variation speed of the current motor torque duty cycle and the larger the variation amplitude, which means that the current motor torque variation is more likely to be the torque variation caused by normal operating conditions, and the more necessary it is to adjust and control the motor torque.
[0092] (3) All duty cycle data in all time windows are used as input of the Otsu method, and the output is the first segmentation threshold of the duty cycle data. When each duty cycle data is greater than or equal to the first segmentation threshold, the duty cycle data is considered to be high duty cycle data, otherwise, it is not considered to be high duty cycle data. The Otsu method is a well-known technology, and the specific process is not repeated here.
[0093] It should be understood that, as an embodiment of the present application, the Otsu method is used to perform threshold segmentation on all duty cycle data. The above merely provides a method for performing threshold segmentation on duty cycle data. As other implementation methods, on the premise of achieving the purpose of threshold segmentation of duty cycle data, other threshold segmentation algorithms in the prior art can be used to perform threshold segmentation on duty cycle data.
[0094] (4) Determine the degree of duty cycle stability in each time window based on the number of high duty cycle data in each time window and the time interval between high duty cycle data:
[0095] Calculate the difference between the number of high duty cycle data in each time window and each of its previous adjacent time windows, and record it as a third difference; record the sum of the third differences between each time window and all of its previous adjacent time windows as a first sum;
[0096] Obtain the time interval between any two high duty cycle data in each time window, recorded as the first time difference; calculate the sum of all the first time differences in each time window, recorded as the second sum; calculate the difference between the second sum of each time window and each of its previous adjacent time windows, recorded as the fourth difference; record the average value of the fourth differences between each time window and all of its previous adjacent time windows as the first average value;
[0097] The degree of smooth continuity of the duty cycle of each time window is negatively correlated with the first sum value of each time window, and positively correlated with the first average value of each time window.
[0098] Preferably, as an embodiment of the present application, the third difference may be the difference between the number of high duty cycle data of each time window and each of its previous adjacent time windows; the fourth difference may be the difference between the second sum of each time window and each of its previous adjacent time windows; the duty cycle stability and continuity of each time window may be the ratio of the first average value of each time window to the first sum of each time window;
[0099] In other embodiments of the present application, the third difference may be the ratio of the number of high duty cycle data in each time window and each of its previous adjacent time windows; the fourth difference may be the ratio of the second sum of each time window and each of its previous adjacent time windows; the degree of duty cycle continuity of each time window may be the ratio of the normalized value of the first average value of each time window to the first sum value.
[0100] It should be noted that if sufficient time window data cannot be obtained, the data is filled using the mean filling method. Mean filling is a well-known technology and the process will not be described in detail in this application.
[0101] The greater the degree of stability and continuity of the duty cycle in a single time window, the more cases of high duty cycle of the motor torque at this time, and the greater the continuity, the more likely it is that the motor torque changes under normal operation, and the more the torque needs to be adjusted.
[0102] (5) The torque regulation requirement of each time window is obtained based on the torque gradient degree and the duty cycle smoothness and continuity degree of each time window.
[0103] The torque regulation requirement of each time window is positively correlated with the torque variation degree and the duty cycle stability and continuity degree of each time window.
[0104] Preferably, as an embodiment of the present application, the torque regulation requirement of each time window may be the product of the torque variation degree of each time window and the duty cycle smooth continuity degree;
[0105] In other embodiments of the present application, the torque regulation requirement of each time window may be the sum of a normalized value of the torque variation degree and a normalized value of the duty cycle smooth continuity degree of each time window.
[0106] The greater the demand for single torque adjustment, the faster the torque duty cycle changes and the longer it takes to reach a stable state. It is more likely that normal gardening operations will generate loads, and the more the motor torque needs to be adjusted.
[0107] Step S4, obtaining the torque adjustment coefficient of each time window according to the torque change authenticity and torque adjustment requirement of each time window.
[0108] The product of the torque change authenticity of each time window and the torque adjustment requirement is used as the torque adjustment coefficient of each time window. The larger the torque adjustment coefficient of a single time window, the more likely it is to be in a normal gardening operation state, and the motor torque should be adjusted according to the actual load conditions.
[0109] Step S5, adjusting the motor torque according to the torque adjustment coefficient of each time window.
[0110] The torque adjustment coefficients of all time windows are taken as input, and the segmentation threshold of the torque adjustment coefficient is output by cross-validation, which is recorded as the second segmentation threshold. When the torque adjustment coefficient of each time window is greater than or equal to the second segmentation threshold, it is determined that this is a normal gardening operation state, and the motor torque needs to be increased and adjusted according to the load conditions; otherwise, the motor torque does not need to be adjusted.
[0111] It should be noted that, for obtaining the segmentation threshold of the torque adjustment coefficient, this embodiment only provides a method for obtaining it. There are many existing methods for obtaining the segmentation threshold. The implementer may also use other threshold segmentation algorithms to obtain the second segmentation threshold. This application does not make any specific restrictions.
[0112] When the motor torque needs to be adjusted at a certain moment, the torque adjustment coefficient at this time is normalized, and the normalized result is used as the modulation index of SPWM, and the PWM signal of the motor at this time is used as input together, and the SPWM algorithm (Sinepulse width modulation, sine pulse width modulation method) is used to output a pulse width modulation control signal, and the pulse width modulation control signal is used to adjust the torque of the motor dedicated to the garden operation device to ensure the overall output torque and speed of the motor, and ensure the normal progress of the garden operation. Among them, cross-validation and SPWM algorithm are both well-known technologies, and this application will not repeat them.
[0113] The schematic diagram of the process of obtaining the torque regulation requirement in each time window is as follows: Figure 3 shown.
[0114] Based on the same inventive concept as the above method, an embodiment of the present application also provides a motor torque control system for a multifunctional gardening work device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned motor torque control methods for a multifunctional gardening work device are implemented.
[0115] In summary, the embodiment of the present application provides a motor torque control method for a multifunctional gardening operation device, which collects the PWM signal data of the motor torque and the speed data of the motor, analyzes the torque PWM signal change characteristics caused by light loads based on the PWM signal change and the speed change, and constructs the torque change authenticity of each time window; based on the difference between the duty cycle data of different time windows and the duty cycle data change in each time window, analyzes the torque change characteristics of normal gardening operations and abnormal gardening operations, constructs the torque adjustment requirement of each time window, reduces the influence of accidental factors on the normal working state of the motor dedicated to the gardening operation device, and characterizes the current motor torque change; and then constructs a torque adjustment coefficient for judging whether the motor is in a normal working state at this time, which solves the problem of inaccurate torque control due to insensitivity to slight load changes in the current motor torque adjustment process, thereby improving the accuracy of torque control.
[0116] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of the present application are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0118] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.
Claims
1. A motor torque control method for a multifunctional gardening operation device, characterized in that: The method comprises the following steps: Collect the pulse width time data and duty cycle data of each cycle in the PWM signal data of each time window of the motor torque; collect the speed data of the motor at each moment; Determine the degree of motor change difference in each time window based on the change of the speed and duty cycle data in the PWM signal, and determine the authenticity of the torque change in each time window based on the change regularity of the pulse width time data in the PWM signal and the difference between the pulse width times in different time windows; The torque regulation requirement of each time window is constructed based on the difference between the duty cycle data of different time windows and the change of the duty cycle data in each time window; Determine the torque adjustment coefficient of each time window based on the torque change authenticity and torque adjustment requirement of each time window; The motor torque is adjusted based on the torque adjustment coefficient of each time window.
2. A motor torque control method for a multifunctional gardening operation device as claimed in claim 1, characterized in that: The process of obtaining the motor change difference degree of each time window is as follows: Calculate the mean of all duty cycle data in each time window, recorded as a first mean; calculate the difference between each time window and the first mean of the corresponding previous time window, recorded as a first difference; Calculate the difference between the rotation speeds at any acquisition moment and its multiple adjacent moments, and record it as the second difference; record the fusion value of all the second differences at any acquisition moment as the first fusion value; The degree of difference in motor change in each time window is positively correlated with the first difference in each time window and the corresponding first fusion value.
3. The motor torque control method for a multifunctional gardening operation device according to claim 1, characterized in that: The process of obtaining the authenticity of the torque change in each time window is as follows: The degree of influence of the torque in each time window is determined based on the degree of change of the pulse width time data in the PWM signal and the difference between the maximum pulse width times in different time windows; The authenticity of the torque change in each time window is positively correlated with the difference in the motor change in each time window and the degree to which the torque is affected.
4. A motor torque control method for a multifunctional gardening operation device as claimed in claim 3, characterized in that: The process of obtaining the degree of influence of the torque in each time window is as follows: Record the sequence composed of all pulse width times in each time window as a pulse width time series; calculate the PLV value between any time window and the pulse width time series of multiple adjacent time windows; calculate the fusion value of all the PLV values in any time window, and record it as a second fusion value; Calculate the difference between the maximum pulse width time of each time window and its multiple adjacent time windows, and record it as the first difference; Calculate a fusion value of all the first difference values in each time window, recorded as a third fusion value; The degree to which the torque in each time window is affected is negatively correlated with the second fusion value, and positively correlated with the third fusion value.
5. The method for controlling the motor torque of a multifunctional gardening device according to claim 2, characterized in that: The process of obtaining the torque regulation requirement of each time window is as follows: Determining the torque ramping degree of each time window based on the difference between the duty cycle data of each time window and a plurality of adjacent time windows; The segmentation threshold of all duty cycle data in all time windows is obtained by using a threshold segmentation algorithm, which is recorded as a first segmentation threshold; taking duty cycle data greater than or equal to the first segmentation threshold as high duty cycle data; Determine the degree of duty cycle stability and continuity of each time window based on the number of high duty cycle data in each time window and the time interval between the high duty cycle data; The torque regulation requirement of each time window is positively correlated with the torque variation degree and the duty cycle stability and continuity degree of each time window.
6. A motor torque control method for a multifunctional gardening operation device as claimed in claim 5, characterized in that: The process of obtaining the torque variation degree of each time window is as follows: Calculate the difference between each time window and the first mean value of its multiple adjacent time windows, and record it as a second difference; record the fusion value of all the second differences of each time window and the fusion value of all the absolute values of the second differences as a fourth fusion value and a fifth fusion value; Calculate the ratio of the fourth fusion value of each time window to the sum of the time lengths of its multiple adjacent time windows, and record it as a first ratio; The torque variation degree of each time window is negatively correlated with the first ratio of each time window, and positively correlated with the fifth fusion value.
7. A motor torque control method for a multifunctional gardening operation device as claimed in claim 5, characterized in that: The process of obtaining the degree of stability and continuity of the duty cycle of each time window is as follows: Calculate the difference between the number of high duty cycle data in each time window and its multiple adjacent time windows, and record it as a third difference; record the sum of all the third differences in each time window as a first sum; Obtain the time interval between any two high duty cycle data in each time window, recorded as the first time difference; calculate the sum of all the first time differences in each time window, recorded as the second sum; calculate the difference between the second sums of each time window and its multiple adjacent time windows, recorded as the fourth difference; and record the average value of all the fourth differences in each time window as the first average value; The degree of smooth continuity of the duty cycle of each time window is negatively correlated with the first sum value of each time window, and positively correlated with the first average value.
8. The method for controlling the motor torque of a multifunctional gardening device according to claim 1, characterized in that: The torque adjustment coefficient of each time window is: the product of the torque change authenticity of each time window and the torque adjustment requirement.
9. The method for controlling the motor torque of a multifunctional gardening device according to claim 1, characterized in that: The motor torque is adjusted based on the torque adjustment coefficient of each time window, specifically: The torque adjustment coefficients of all time windows are threshold-segmented to obtain a second segmentation threshold; when the torque adjustment coefficient of the time window is greater than or equal to the second segmentation threshold, the normalized result of the torque adjustment coefficient of the time window is used as the modulation index of the SPWM algorithm, the modulation index and the PWM signal of the time window are used as the input of the SPWM algorithm, and the output is a pulse width modulation control signal, and the torque of the special motor of the garden operation device is adjusted by the pulse width modulation control signal; Otherwise, no adjustment is made to the motor torque.
10. A motor torque control system for a multifunctional gardening operation device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
