Motor control method and device, computer equipment and storage medium

By acquiring and correcting the motor angle and determining the target transition angle with historical angle data, the problem of interference in the motor control accuracy of high-speed electric drive seeders is solved, and the seeding quality is improved and the system stability is achieved.

CN119010712APending Publication Date: 2024-11-22HEILONGJIANG DEWO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411138403.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The motor control system of the high-speed electric drive seeder is affected by the angle sensor signal due to multiple interferences, which affects the motor control accuracy, resulting in inaccurate seeding and nonlinear seeding.

Method used

By obtaining the motor angle at the current time and the motor angle at multiple adjacent historical moments, the target transition angle is determined, and the current motor angle is corrected according to this angle to suppress high-frequency interference and ensure the smoothness and accuracy of the motor angle.

Benefits of technology

Effectively eliminate angle sensor interference, improve seed quality, prevent seed spacing differences, realize stable operation and high-precision control of the motor control system, and avoid overshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010712A_ABST
    Figure CN119010712A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of motor control, in particular to a motor control method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a current motor angle of a seeding driving motor of a target seeder collected at a current moment; obtaining motor angles at a plurality of adjacent historical moments corresponding to the current moment as historical motor angles; determining a target transition angle at the current moment according to each historical motor angle; and correcting the current motor angle according to the target transition angle, and controlling a seeding driving motor to rotate according to a correction result. According to the invention, continuous and stable operation of the target seeder is ensured, no overshoot of the motor control system of the target seeder is realized, and the motor control precision of the motor control system of the target seeder is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of controlling motors, and in particular to a motor control method, device, computer equipment and storage medium. Background Art

[0002] The current electronic control solutions for high-speed electric seeders in the industry all use a motor to drive the seed disc and rely on providing negative wind pressure to the seeder to seed. In order to ensure accurate plant spacing, there are certain requirements for the motor control accuracy of the motor control system in the seeder.

[0003] However, since the motor control system may be subject to interference from multiple parties, the angle sensor in the motor control system may transmit the initial signal affected by the interference to the motor control system, causing the motor control system to overshoot, thereby affecting the motor control accuracy of the motor control system. Summary of the invention

[0004] Based on this, it is necessary to provide a motor control method, device, computer equipment and storage medium that can ensure the motor control accuracy of the motor control system in response to the above technical problems.

[0005] In a first aspect, the present application provides a motor control method. The method comprises:

[0006] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0007] Obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0008] Determining the target transition angle at the current moment according to each of the historical motor angles;

[0009] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0010] In one embodiment, determining the target transition angle at the current moment according to each of the historical motor angles includes:

[0011] According to the motor angles at the multiple adjacent historical moments, determine the first-order angle parameters and second-order angle parameters corresponding to the multiple adjacent historical moments; wherein the first-order angle parameter represents the angle change at the latest historical moment among the multiple adjacent historical moments; and the second-order angle parameter represents the angle change stability at the latest historical moment;

[0012] The target transition angle at the current moment is determined according to the motor angle acquisition cycle, the first-order angle parameter, the second-order angle parameter and the historical motor angle at the latest historical moment.

[0013] In one embodiment, determining the target transition angle at the current moment according to each of the historical motor angles includes:

[0014] Select any historical moment as the reference moment;

[0015] The target transition angle at the current moment is determined based on the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

[0016] In one embodiment, the selecting any historical moment as the reference moment includes:

[0017] Performing quality inspection on the sowing quality of the target seeding machine at each of the historical moments to obtain the sowing quality parameters at each of the historical moments;

[0018] A reference moment is selected from each of the historical moments according to the sowing quality parameters at each of the historical moments.

[0019] In one embodiment, selecting a reference moment from each of the historical moments according to the sowing quality parameters at each of the historical moments includes:

[0020] The historical moment at which the value of the sowing quality parameter is the largest is selected from the historical moments as the reference moment.

[0021] In one embodiment, the correcting the current motor angle according to the target transition angle includes:

[0022] If the target transition angle is different from the current motor angle, determining the angle difference between the target transition angle and the current motor angle;

[0023] The current motor angle is corrected according to the angle difference.

[0024] In a second aspect, the present application also provides a motor control device. The device comprises:

[0025] The first acquisition module is used to acquire the current motor angle of the sowing drive motor of the target seeding machine collected at the current moment;

[0026] A second acquisition module is used to acquire the motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0027] A determination module, used to determine the target transition angle at the current moment according to each of the historical motor angles;

[0028] The correction module is used to correct the current motor angle according to the target transition angle, and control the rotation of the sowing drive motor according to the correction result.

[0029] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0030] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0031] Obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0032] Determining the target transition angle at the current moment according to each of the historical motor angles;

[0033] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0036] Obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0037] Determining the target transition angle at the current moment according to each of the historical motor angles;

[0038] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0039] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0040] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0041] Obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0042] Determining the target transition angle at the current moment according to each of the historical motor angles;

[0043] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0044] The above-mentioned motor control method, device, computer equipment and storage medium obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment, and the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles; then, according to each historical motor angle, the target transition angle at the current moment is determined; therefore, the current motor angle can be corrected according to the target transition angle, and the rotation of the sowing drive motor can be controlled according to the correction result. According to the above content, it can be known that in the process of determining the target transition angle, the present application takes into account the historical motor angles at multiple adjacent historical moments, so as to realize the determination of the target transition angle at the current moment in combination with the historical driving conditions of the sowing drive motor in the target seeder, thereby ensuring that the current motor angle can be smoothly corrected according to the target transition angle in the future, thereby completing the elimination of the interference influence on the angle sensor, and suppressing high-frequency interference to obtain a smoother and peak-free motor angle, and preventing the initial signal affected by interference from being transmitted to the motor control system. Furthermore, for the target seeder, the present application can effectively guarantee the sowing quality of seeds, prevent non-linear seed sowing, and prevent differences in sowing spacing, thereby ensuring the continuous and stable operation of the target seeder, achieving no overshoot in the motor control system of the target seeder, and improving the motor control accuracy of the motor control system of the target seeder. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of the structure of a first motor control closed loop circuit provided in an embodiment of the present application;

[0046] Figure 2 An application environment diagram of a motor control method provided in an embodiment of the present application;

[0047] Figure 3 A schematic flow chart of a first motor control method provided in an embodiment of the present application;

[0048] Figure 4 A schematic flow chart of a second motor control method provided in an embodiment of the present application;

[0049] Figure 5 A functional structure block diagram of a calculation formula provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of a second motor control closed loop provided in an embodiment of the present application;

[0051] Figure 7A schematic flow chart of a third motor control method provided in an embodiment of the present application;

[0052] Figure 8 A schematic flow chart of a fourth motor control method provided in an embodiment of the present application;

[0053] Fig. 9 A schematic flow chart of a fifth motor control method provided in an embodiment of the present application;

[0054] Fig.10 A structural block diagram of a motor control device provided in an embodiment of the present application;

[0055] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms is not necessarily for the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradicting each other.

[0058] In a conventional motor control closed loop, the angle sensor installed at the end of the motor shaft directly measures the angle of the shaft rotation, and calculates the angle sampling signals at two moments before and after with the sampling period to obtain the actual speed signal of the motor.

[0059] Among them, the motor control closed loop is as follows Figure 1 As shown, α(t) is the angle signal of the current motor angle given by the angle sensor, ω(t) is the differential of the angle signal, also known as the angular velocity, ω*(t) is the reference speed of the motor derived from the tractor speed, e is the error between the reference speed and the actual speed, S is the differential link, ia*, ia is the reference current and the actual current, u dc is the bus voltage and PI is the controller.

[0060] Generally speaking, the process of converting angle information to angular velocity in the control chip is shown in the calculation formula (1):

[0061] ω(t)=[α(t)-α(t-1 / f)]f (1)

[0062] Among them, ω(t) is the angular velocity; α(t) is the angle signal of the current motor angle given by the angle sensor; f is the sampling frequency; and t is the current time.

[0063] Calculation formula (1) indicates that the speed information is obtained by subtracting the angle value at the current moment from the angle value at the previous moment and then dividing it by the period ratio. Assuming that there is an external interference signal αN(t) at the current moment, the calculation formula (1) can be adjusted to obtain the calculation formula (2):

[0064] ω(t)=[α(t)-α(t-1 / f)]f+α N (t)f (2)

[0065] Among them, ω(t) is the angular velocity; α(t) is the angle signal of the current motor angle given by the angle sensor; f is the sampling frequency; t is the current moment; αN(t) is the interference signal. Furthermore, it can be seen from the calculation formula (2) that the higher the sampling frequency, the greater the impact of the interference signal. In the chip of the control circuit, in order to maintain a faster dynamic response, the sampling frequency is generally lower than 1kHz.

[0066] The motor control method provided in the embodiment of the present application can be applied to Figure 2 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. By obtaining the current motor angle of the sowing drive motor of the target seeding machine collected at the current moment, and the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angle; then, according to each historical motor angle, the target transition angle at the current moment is determined; therefore, the current motor angle can be corrected according to the target transition angle, and the sowing drive motor can be controlled to rotate according to the correction result. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0067] In one embodiment, Figure 3 As shown, a motor control method is provided, which introduces an inertia link into the angle signal obtained from the angle sensor of the motor to correct the current motor angle. The method is applied to Figure 2 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0068] S301, obtaining the current motor angle of the sowing drive motor of the target seeding machine collected at the current moment.

[0069] The current motor angle refers to the angle signal of the motor rotor in the sowing drive motor of the target seed drill at the current moment.

[0070] In one embodiment of the present application, when it is necessary to determine the current motor angle of the sowing drive motor of the target sowing machine collected at the current moment, an angle sensor for the sowing drive motor can be pre-set, and then the operation of obtaining the current motor angle of the sowing drive motor of the target sowing machine collected at the current moment can be implemented according to the angle sensor.

[0071] In another embodiment of the present application, if it is not possible to deploy an angle sensor for the sowing drive motor of the target seeder, the sowing data information corresponding to the target seeder at the current moment is obtained, and then, through the pre-trained angle prediction model and sowing data information, the current motor angle of the sowing drive motor of the target seeder collected at the current moment is predicted.

[0072] The sowing data information refers to information that has an operational relationship with the rotor angle information of the sowing drive motor, and the type of information included in the sowing data information is not limited here.

[0073] Specifically, the sowing data information at the current moment can be input into the angle prediction model, and the output result of the angle prediction model can be obtained. The output result is the current motor angle of the sowing drive motor of the target seeder collected at the current moment; further, the training process of the angle prediction model can be: obtaining at least one sample data information in advance, and labeling the sample motor angle of each sample data information through artificial experience, and then, training the angle prediction model according to the sample data information labeled with the sample motor angle to obtain the trained angle prediction model.

[0074] S302, obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles.

[0075] The historical motor angle refers to the angle signal of the motor rotor in the seeding drive motor of the target seeding machine at multiple adjacent historical moments.

[0076] In one embodiment of the present application, historical angle records containing motor angles at multiple historical moments can be obtained in advance; then, from each historical angle record, the motor angles at multiple adjacent historical moments corresponding to the current moment are selected as the historical motor angles to implement the operation of obtaining the historical motor angles.

[0077] S303, determining the target transition angle at the current moment according to each historical motor angle.

[0078] It should be noted that when it is necessary to determine the target transition angle at the current moment, the following contents may be included: based on the motor angles at multiple adjacent historical moments, the first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments are determined; then, based on the motor angle acquisition period, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment, the target transition angle at the current moment is determined.

[0079] S304, correcting the current motor angle according to the target transition angle, and controlling the sowing drive motor to rotate according to the correction result.

[0080] In one embodiment of the present application, when the current motor angle needs to be corrected, it can be verified in advance whether the target transition angle is the same as the current motor angle. If they are the same, it is determined that there is no need to correct the current motor angle; if they are not the same, the angle difference between the target transition angle and the current motor angle is determined; and based on the angle difference, the current motor angle is corrected.

[0081] The above-mentioned motor control method obtains the current motor angle of the sowing drive motor of the target seeder collected at the current moment, and the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles; then, according to each historical motor angle, the target transition angle at the current moment is determined; therefore, the current motor angle can be corrected according to the target transition angle, and the rotation of the sowing drive motor can be controlled according to the correction result. According to the above content, it can be known that in the process of determining the target transition angle, the present application takes into account the historical motor angles at multiple adjacent historical moments, so as to realize the determination of the target transition angle at the current moment in combination with the historical driving conditions of the sowing drive motor in the target seeder, thereby ensuring that the current motor angle can be smoothly corrected according to the target transition angle in the future, thereby completing the elimination of the interference influence on the angle sensor, and suppressing high-frequency interference to obtain a smoother and peak-free motor angle, and preventing the initial signal affected by interference from being transmitted to the motor control system. Furthermore, for the target seeder, the present application can effectively guarantee the sowing quality of seeds, prevent non-linear seed sowing, and prevent differences in sowing spacing, thereby ensuring the continuous and stable operation of the target seeder, achieving no overshoot in the motor control system of the target seeder, and improving the motor control accuracy of the motor control system of the target seeder.

[0082] In one embodiment, if Figure 4 As shown, when it is necessary to determine the target transition angle at the current moment according to each historical motor angle, the following contents may be specifically included:

[0083] S401, determining first-order angle parameters and second-order angle parameters corresponding to a plurality of adjacent historical moments according to motor angles at a plurality of adjacent historical moments.

[0084] Among them, the first-order angle parameter represents the angle change at the latest historical moment among multiple adjacent historical moments; the second-order angle parameter represents the stability of the angle change at the latest historical moment.

[0085] In one embodiment of the present application, when it is necessary to determine the first-order angle parameters, the current motor angle and the historical motor angles at historical moments adjacent to the current moment can be obtained, and the first-order angle parameters can be determined based on the rate of change between the current motor angle and the historical motor angle.

[0086] In another embodiment of the present application, when it is necessary to determine the second-order angle parameter, the current motor angle and the first historical motor angle of the first historical moment adjacent to the current moment, as well as the second historical motor angle of the second historical moment adjacent to the first historical moment, can be obtained, and the first first-order angle parameter can be determined based on the rate of change between the current motor angle and the first historical motor angle; the second first-order angle parameter can be determined based on the rate of change between the first historical motor angle and the second historical motor angle; and the second-order angle parameter can be determined based on the rate of change between the first first-order angle parameter and the second first-order angle parameter.

[0087] S402, determining a target transition angle at a current moment according to a motor angle acquisition cycle, a first-order angle parameter, a second-order angle parameter, and a historical motor angle at a latest historical moment.

[0088] In one embodiment of the present application, when it is necessary to determine the target transition angle at the current moment based on the motor angle acquisition cycle, first-order angle parameters, second-order angle parameters and the historical motor angle at the latest historical moment, the motor angle acquisition cycle, first-order angle parameters, second-order angle parameters and the historical motor angle at the latest historical moment can be substituted into calculation formula (3) to obtain the target transition angle at the current moment.

[0089] The calculation formula (3) is as follows:

[0090]

[0091] in, refers to the second-order angular parameter; Refers to the first-order angle parameter; α(t) refers to the current motor angle; Refers to the target transition angle at the current moment; T refers to the motor angle acquisition period.

[0092] In one embodiment of the present application, when the function structure diagram corresponding to the calculation formula (3) can be as follows: Figure 5 As shown, Figure 5 middle refers to the second-order angular parameter; Refers to the first-order angle parameter; α(t) refers to the current motor angle; Refers to the target transition angle at the current moment; T refers to the motor angle acquisition period; ω(t) refers to the angular velocity; s refers to the complex variable in the Latent domain.

[0093] According to the above content, when it is necessary to construct calculation formula (3), the inertia link can be introduced in the process of obtaining the motor angle, which may include the following content: Assume that the motor angle corresponding to a certain moment (t1) in the time domain is α(t-t1), and (α(t-t1)) in the time domain lags behind α(t) by one period t1. According to the characteristics of the inertia link, when the time t1 value is very small, the time domain signal is Laplace transformed, and the inertia link 1 / (t 1s +1); therefore, α(t-t1) under the Pull-type domain representation is determined as shown in the calculation formula (4):

[0094]

[0095] Among them, α(t-t1) refers to the motor angle of the sowing drive motor at time t1; L[α(t-t1)] refers to the Lattices domain representation of the motor angle of the sowing drive motor at time t1; α(t) refers to the motor angle of the sowing drive motor at the moment before time t1; s refers to the Lattices domain complex variable.

[0096] Furthermore, two adjacent historical moments are represented by t-t1 and t-t2 respectively, and the angular velocity can be calculated by the following formula (5):

[0097]

[0098] Among them, ω(t) refers to the angular velocity; t-t1 and t-t2 refer to two adjacent historical moments.

[0099] According to calculation formula (4), calculation formula (5) is subjected to Laplace transform to obtain calculation formula (6), which is as follows:

[0100]

[0101] Among them, ω(t) refers to the angular velocity; L[ω(t)] refers to the Lattices domain representation of the angular velocity; α(t) refers to the motor angle of the seeding drive motor at the moment before time t1; s refers to the Lattices domain complex variable; t-t1 and t-t2 refer to two adjacent historical moments.

[0102] The calculation formula (6) is integrated to obtain the calculation formula (7), which is as follows:

[0103]

[0104] Among them, ω(t) refers to the angular velocity; L[ω(t)] refers to the Lattices domain representation of the angular velocity; α(t) refers to the motor angle of the seeding drive motor at the moment before time t1; s refers to the Lattices domain complex variable; t1 and t2 refer to different time periods.

[0105] According to the above content, when determining the angular velocity, the present application has a relationship with the time periods t1 and t2. In the actual operation environment of the sowing drive motor, since the sampling frequency of obtaining the motor angle is high, the time interval between t1 and t2 is short, so t1=t2=T can be set. Thus, the calculation formula (7) can be converted to obtain the calculation formula (8), which is as follows:

[0106]

[0107] Among them, ω(t) refers to the angular velocity; L[ω(t)] refers to the Lattices domain representation of the angular velocity; α(t) refers to the motor angle of the seeding drive motor at the moment before time t1; s refers to the Lattices domain complex variable; T refers to the preset time period.

[0108] If the target transition angle is predetermined, the calculation formula (9) is as follows:

[0109]

[0110] Where ω(t) refers to the angular velocity; L[ω(t)] refers to the Lasik domain representation of the angular velocity; s refers to the Lasik domain complex variable; Refers to the target transition angle.

[0111] Furthermore, according to calculation formula (9) and calculation formula (8), calculation formula (10) can be obtained, and calculation formula (10) is as follows:

[0112]

[0113] in, Refers to the target transition angle; α(t) refers to the motor angle of the sowing drive motor at the moment before time t1; s refers to the pull domain complex variable; T refers to the preset time period.

[0114] Further explanation, in order to solve the technical problem of this application and realize the motor control system of the target seed drill without overshoot, since there is a second-order linear system between the current motor angle and the target transition angle, and the system without overshoot is directly related to the natural frequency and the damping coefficient, therefore, in order to realize the system without overshoot, it is necessary to ensure that the natural frequency W of the second-order linear system n =1 / T, and the damping coefficient ζ = 1. Therefore, at the natural frequency W n =1 / T, and the damping coefficient ζ = 1, the system can achieve no overshoot from the current motor angle to the target transition angle, and the smaller the value of T is, the higher the motor control accuracy of the motor control system of the target planter is. Figure 5 Application Figure 1 Yes, if Figure 6 As shown, α(t) is the angle signal of the current motor angle given by the angle sensor, ω(t) is the differential of the angle signal, and also the angular velocity\ It refers to the target transition angle, ω*(t) is the motor reference speed derived from the tractor speed, e is the error between the reference speed and the actual speed, S is the differential link, ia*, ia is the reference current and the actual current, u dc is the bus voltage, PI is the controller, and ∮ is the frequency for obtaining the current motor angle.

[0115] The above-mentioned motor control method determines the target transition angle at the current moment through the motor angle acquisition cycle, first-order angle parameters, second-order angle parameters and the historical motor angle at the latest historical moment, and determines the target transition angle at the current moment in combination with the historical driving conditions of the sowing drive motor in the target seeder. Furthermore, it ensures that the current motor angle can be smoothly corrected according to the target transition angle in the future, thereby completing the elimination of the interference effect on the angle sensor and suppressing high-frequency interference to obtain a smoother motor angle without spikes, thereby preventing the initial signal affected by interference from being transmitted to the motor control system.

[0116] In one embodiment, if Figure 7 As shown, when it is necessary to determine the target transition angle at the current moment according to each historical motor angle, the following contents may be specifically included:

[0117] S701, select any historical moment as a reference moment.

[0118] It should be noted that in order to further ensure the target transition angle determined subsequently, the current motor angle can be effectively corrected to achieve no overshoot in the motor control system of the target seeder and improve the motor control accuracy of the motor control system of the target seeder; therefore, when determining the motor angles at multiple adjacent historical moments as the historical motor angles, a reference moment with higher sowing quality can be selected, and then, the subsequent process is executed according to the historical motor angles at the neighborhood historical moments corresponding to the reference moment, so as to further improve the motor control accuracy of the motor control system of the target seeder.

[0119] To further explain, when it is necessary to select any historical moment as a reference moment, the following contents may be included: performing quality inspection on the sowing quality of the target seeder at each historical moment to obtain the sowing quality parameters at each historical moment; and selecting a reference moment from each historical moment based on the sowing quality parameters at each historical moment.

[0120] Among them, the sowing quality parameter is used to characterize the sowing quality of the target seeder at a certain historical moment; if the sowing quality parameter value is larger, it means that the sowing quality of the target seeder at that historical moment is higher; conversely, if the sowing quality parameter value is smaller, it means that the sowing quality of the target seeder at that historical moment is lower.

[0121] Specifically, when selecting the reference moment from various historical moments, the historical moment with the largest value of the sowing quality parameter may be selected from various historical moments as the reference moment.

[0122] In one embodiment of the present application, a sowing quality prediction model can be pre-trained, and then, when it is necessary to perform quality inspection on the sowing quality of the target seeder at each historical moment, the seed spacing sown by the target seeder and the target seeder moving speed at each historical moment can be collected, and the collected seed spacing and target seeder moving speed at each historical moment can be input into the quality prediction model, and then the sowing quality parameters at each historical moment can be output.

[0123] Among them, the training process of the sowing quality prediction model may include obtaining at least one sample species spacing and sample movement speed, manually labeling the sample species spacing and sample movement speed with sample quality parameters, and then training the initial model with the sample species spacing and sample movement speed labeled with sample quality parameters to obtain the trained sowing quality prediction model.

[0124] S702, determining a target transition angle at a current moment according to a historical motor angle at a reference moment and a historical motor angle at a neighborhood historical moment corresponding to the reference moment.

[0125] In one embodiment of the present application, when it is necessary to determine the target transition angle at the current moment, the first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments corresponding to the reference moment can be determined based on the motor angles at multiple adjacent historical moments corresponding to the reference moment; the motor angle acquisition period, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment are substituted into calculation formula (3) to obtain the target transition angle at the current moment.

[0126] The above-mentioned motor control method determines the reference time, and then determines the target transition angle at the current time based on the historical motor angle at the reference time and the historical motor angle at the neighborhood historical time corresponding to the reference time, thereby ensuring that the present application can effectively correct the current motor angle, achieve overshoot-free motor control system of the target seed drill, and further improve the motor control accuracy of the motor control system of the target seed drill.

[0127] In one embodiment, if Figure 8 As shown, when the current motor angle needs to be corrected according to the target transition angle, the following contents may be included:

[0128] S801, if the target transition angle is different from the current motor angle, then the angle difference between the target transition angle and the current motor angle is determined.

[0129] It should be noted that before correcting the current motor angle, it is possible to verify whether the target transition angle is the same as the current motor angle, and then, according to the actual situation between the target transition angle and the current motor angle, the current motor angle is corrected in different ways.

[0130] As an implementation, if the target transition angle is the same as the current motor angle, it is determined that there is no need to correct the current motor angle, and therefore, there is no need to determine the angle difference between the target transition angle and the current motor angle.

[0131] As another implementation method, if the target transition angle is different from the current motor angle, in order to ensure that the current motor angle can be smoothly adjusted to the target transition angle later, it is necessary to perform a difference operation on the target transition angle and the current motor angle, and then obtain the angle difference between the target transition angle and the current motor angle.

[0132] S802, correcting the current motor angle according to the angle difference.

[0133] Among them, since the angle difference is the result obtained by performing a difference operation between the target transition angle and the current motor angle, the angle difference may include a positive difference and a negative difference.

[0134] In one embodiment of the present application, when the current motor angle needs to be corrected, if the angle difference is a positive difference, the current motor angle is increased, and the angle increase amount of the current motor angle is ensured to be equal to the angle difference.

[0135] In another embodiment of the present application, when the current motor angle needs to be corrected, if the angle difference is a negative difference, the current motor angle is reduced, and the angle reduction amount of the current motor angle is ensured to be equal to the angle difference.

[0136] The above-mentioned motor control method corrects the current motor angle according to the target transition angle, thereby eliminating the interference influence on the angle sensor and suppressing high-frequency interference to obtain a smoother and peak-free motor angle, thereby preventing the initial signal affected by interference from being transmitted to the motor control system.

[0137] In one embodiment, if Fig. 9 As shown, when the current motor angle needs to be corrected, the following contents may be included:

[0138] S901, obtaining the current motor angle of the sowing drive motor of the target sowing machine collected at the current moment.

[0139] S902, obtaining the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles.

[0140] S903: Determine first-order angle parameters and second-order angle parameters corresponding to the plurality of adjacent historical moments according to the motor angles at the plurality of adjacent historical moments.

[0141] S904, determining a target transition angle at a current moment according to a motor angle acquisition cycle, a first-order angle parameter, a second-order angle parameter, and a historical motor angle at a latest historical moment.

[0142] S905, correcting the current motor angle according to the target transition angle, and controlling the seeding drive motor to rotate according to the correction result.

[0143] The above-mentioned motor control method obtains the current motor angle of the sowing drive motor of the target seeder collected at the current moment, and the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles; then, according to each historical motor angle, the target transition angle at the current moment is determined; therefore, the current motor angle can be corrected according to the target transition angle, and the rotation of the sowing drive motor can be controlled according to the correction result. According to the above content, it can be known that in the process of determining the target transition angle, the present application takes into account the historical motor angles at multiple adjacent historical moments, so as to realize the determination of the target transition angle at the current moment in combination with the historical driving conditions of the sowing drive motor in the target seeder, thereby ensuring that the current motor angle can be smoothly corrected according to the target transition angle in the future, thereby completing the elimination of the interference influence on the angle sensor, and suppressing high-frequency interference to obtain a smoother and peak-free motor angle, and preventing the initial signal affected by interference from being transmitted to the motor control system. Furthermore, for the target seeder, the present application can effectively guarantee the sowing quality of seeds, prevent non-linear seed sowing, and prevent differences in sowing spacing, thereby ensuring the continuous and stable operation of the target seeder, achieving no overshoot in the motor control system of the target seeder, and improving the motor control accuracy of the motor control system of the target seeder.

[0144] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0145] Based on the same inventive concept, the embodiment of the present application also provides a motor control device for implementing the motor control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more motor control device embodiments provided below can refer to the limitations of the motor control method above, and will not be repeated here.

[0146] In one embodiment, Fig.10 As shown, a motor control device is provided, comprising: a first acquisition module 10, a second acquisition module 20, a determination module 30 and a correction module 40, wherein:

[0147] The first acquisition module 10 is used to acquire the current motor angle of the sowing drive motor of the target seeding machine collected at the current moment.

[0148] The second acquisition module 20 is used to acquire the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles.

[0149] The determination module 30 is used to determine the target transition angle at the current moment according to each historical motor angle.

[0150] The correction module 40 is used to correct the current motor angle according to the target transition angle, and control the rotation of the sowing drive motor according to the correction result.

[0151] In one embodiment, first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments are determined based on the motor angles at multiple adjacent historical moments; wherein the first-order angle parameters characterize the angle change at the latest historical moment among the multiple adjacent historical moments; the second-order angle parameters characterize the angle change stability at the latest historical moment; and the target transition angle at the current moment is determined based on the motor angle acquisition period, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment.

[0152] In one embodiment, any historical moment is selected as a reference moment; and the target transition angle at the current moment is determined based on the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

[0153] In one embodiment, the sowing quality of the target seeding machine at each historical moment is tested to obtain the sowing quality parameters at each historical moment; and a reference moment is selected from each historical moment according to the sowing quality parameters at each historical moment.

[0154] In one embodiment, the historical moment at which the value of the sowing quality parameter is the largest is selected from various historical moments as the reference moment.

[0155] In one embodiment, if the target transition angle is different from the current motor angle, the angle difference between the target transition angle and the current motor angle is determined; and the current motor angle is corrected based on the angle difference.

[0156] The above-mentioned motor control device obtains the current motor angle of the sowing drive motor of the target seeder collected at the current moment, and the motor angles at multiple adjacent historical moments corresponding to the current moment as the historical motor angles; then, based on each historical motor angle, the target transition angle at the current moment is determined; therefore, the current motor angle can be corrected according to the target transition angle, and the rotation of the sowing drive motor can be controlled according to the correction result. According to the above content, it can be known that in the process of determining the target transition angle, the present application takes into account the historical motor angles at multiple adjacent historical moments, so as to realize the determination of the target transition angle at the current moment in combination with the historical driving conditions of the sowing drive motor in the target seeder, thereby ensuring that the current motor angle can be smoothly corrected according to the target transition angle in the future, thereby completing the elimination of the interference influence on the angle sensor, and suppressing high-frequency interference to obtain a smoother and peak-free motor angle, and preventing the initial signal affected by interference from being transmitted to the motor control system. Furthermore, for the target seeder, the present application can effectively guarantee the sowing quality of seeds, prevent non-linear seed sowing, and prevent differences in sowing spacing, thereby ensuring the continuous and stable operation of the target seeder, achieving no overshoot in the motor control system of the target seeder, and improving the motor control accuracy of the motor control system of the target seeder.

[0157] Each module in the above motor control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0158] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a motor control method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0159] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0160] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0161] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0162] Obtain the motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0163] According to each historical motor angle, determine the target transition angle at the current moment;

[0164] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0166] According to the motor angles at multiple adjacent historical moments, first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments are determined; wherein the first-order angle parameter represents the angle change at the latest historical moment among the multiple adjacent historical moments; the second-order angle parameter represents the angle change stability at the latest historical moment;

[0167] The target transition angle at the current moment is determined according to the motor angle acquisition cycle, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment.

[0168] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0169] Select any historical moment as the reference moment;

[0170] The target transition angle at the current moment is determined according to the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0172] Perform quality inspection on the sowing quality of the target seeder at each historical moment to obtain the sowing quality parameters at each historical moment;

[0173] According to the sowing quality parameters at each historical moment, a reference moment is selected from each historical moment.

[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0175] The historical moment with the largest value of the sowing quality parameter is selected from various historical moments as the reference moment.

[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0177] If the target transition angle is not the same as the current motor angle, the angle difference between the target transition angle and the current motor angle is determined;

[0178] According to the angle difference, the current motor angle is corrected.

[0179] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0180] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0181] Obtain the motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0182] According to each historical motor angle, determine the target transition angle at the current moment;

[0183] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0185] According to the motor angles at multiple adjacent historical moments, first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments are determined; wherein the first-order angle parameter represents the angle change at the latest historical moment among the multiple adjacent historical moments; the second-order angle parameter represents the angle change stability at the latest historical moment;

[0186] The target transition angle at the current moment is determined according to the motor angle acquisition cycle, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment.

[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0188] Select any historical moment as the reference moment;

[0189] The target transition angle at the current moment is determined according to the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0191] Perform quality inspection on the sowing quality of the target seeder at each historical moment to obtain the sowing quality parameters at each historical moment;

[0192] According to the sowing quality parameters at each historical moment, a reference moment is selected from each historical moment.

[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0194] The historical moment with the largest value of the sowing quality parameter is selected from various historical moments as the reference moment.

[0195] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0196] If the target transition angle is not the same as the current motor angle, the angle difference between the target transition angle and the current motor angle is determined;

[0197] According to the angle difference, the current motor angle is corrected.

[0198] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0199] Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment;

[0200] Obtain the motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles;

[0201] According to each historical motor angle, determine the target transition angle at the current moment;

[0202] The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0204] According to the motor angles at multiple adjacent historical moments, first-order angle parameters and second-order angle parameters corresponding to multiple adjacent historical moments are determined; wherein the first-order angle parameter represents the angle change at the latest historical moment among the multiple adjacent historical moments; the second-order angle parameter represents the angle change stability at the latest historical moment;

[0205] The target transition angle at the current moment is determined according to the motor angle acquisition cycle, the first-order angle parameters, the second-order angle parameters and the historical motor angle at the latest historical moment.

[0206] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0207] Select any historical moment as the reference moment;

[0208] The target transition angle at the current moment is determined according to the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0210] Perform quality inspection on the sowing quality of the target seeder at each historical moment to obtain the sowing quality parameters at each historical moment;

[0211] According to the sowing quality parameters at each historical moment, a reference moment is selected from each historical moment.

[0212] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0213] The historical moment with the largest value of the sowing quality parameter is selected from various historical moments as the reference moment.

[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0215] If the target transition angle is not the same as the current motor angle, the angle difference between the target transition angle and the current motor angle is determined;

[0216] According to the angle difference, the current motor angle is corrected.

[0217] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0218] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0219] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0220] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A motor control method, characterized in that: The method comprises: Obtain the current motor angle of the sowing drive motor of the target seeder collected at the current moment; Obtaining motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles; Determining the target transition angle at the current moment according to each of the historical motor angles; The current motor angle is corrected according to the target transition angle, and the sowing drive motor is controlled to rotate according to the correction result.

2. The method according to claim 1, characterized in that Determining the target transition angle at the current moment according to each of the historical motor angles includes: According to the motor angles at the multiple adjacent historical moments, determine the first-order angle parameters and second-order angle parameters corresponding to the multiple adjacent historical moments; wherein the first-order angle parameter represents the angle change at the latest historical moment among the multiple adjacent historical moments; and the second-order angle parameter represents the angle change stability at the latest historical moment; The target transition angle at the current moment is determined according to the motor angle acquisition cycle, the first-order angle parameter, the second-order angle parameter and the historical motor angle at the latest historical moment.

3. The method according to claim 1, characterized in that Determining the target transition angle at the current moment according to each of the historical motor angles includes: Select any historical moment as the reference moment; The target transition angle at the current moment is determined based on the historical motor angle at the reference moment and the historical motor angle at the neighborhood historical moment corresponding to the reference moment.

4. The method according to claim 3, characterized in that The selecting any historical moment as the reference moment includes: Performing quality inspection on the sowing quality of the target seeding machine at each of the historical moments to obtain the sowing quality parameters at each of the historical moments; A reference moment is selected from each of the historical moments according to the sowing quality parameters at each of the historical moments.

5. The method according to claim 4, characterized in that The step of selecting a reference moment from each of the historical moments according to the sowing quality parameters at each of the historical moments comprises: The historical moment at which the value of the sowing quality parameter is the largest is selected from the historical moments as the reference moment.

6. The method according to claim 1, characterized in that The correcting the current motor angle according to the target transition angle includes: If the target transition angle is different from the current motor angle, determining the angle difference between the target transition angle and the current motor angle; The current motor angle is corrected according to the angle difference.

7. A motor control device, characterized in that: The device comprises: The first acquisition module is used to acquire the current motor angle of the sowing drive motor of the target seeding machine collected at the current moment; A second acquisition module is used to acquire the motor angles at multiple adjacent historical moments corresponding to the current moment as historical motor angles; A determination module, used to determine the target transition angle at the current moment according to each of the historical motor angles; The correction module is used to correct the current motor angle according to the target transition angle, and control the rotation of the sowing drive motor according to the correction result.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.