Electric motor operation information estimation method and related apparatus
By implementing the phase-locked loop system in software in the motor system, judging its stable state and using the estimated speed output by the PID subsystem, the problem of accurate estimation of the motor's operating angle and speed is solved, and the control accuracy of the laser radar is improved.
Patent Information
- Application Number
- PCT/CN2023/102382
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-06-26
- Publication Date
- 2024-08-29
AI Technical Summary
It is difficult to accurately estimate the operating angle and speed of the motor with existing technology, which affects the precise control of lidar.
In the motor system, the software implements the phase-locked loop system, and by judging the stable state of the phase-locked loop system, the estimated speed output by the PID subsystem is used to estimate the motor operation information.
It achieves accurate estimation of the motor's operating angle and speed, improving the control accuracy and fine-grainedness of the lidar.
Smart Images

Figure CN2023102382_29082024_PF_FP_ABST
Abstract
Description
Motor operation information estimation method and related device Technical Field
[0001] The present invention relates to the field of motor technology, and in particular to a method for estimating motor operation information and a related device. Background Art
[0002] LiDAR is a radar system that emits laser beams to detect the angular position and distance of a target. Its basic operating principle is to transmit a laser beam signal toward a target and then analyze, compare, and process the reflected signal with the transmitted signal to obtain information such as the target's distance, angle, height, posture, and shape.
[0003] The motor is an important scanning component in the lidar. Accurately estimating the angle and speed of the motor is crucial for the precise control of the lidar.
[0004] Summary of the Invention
[0005] The object of the present invention is to provide a method and a related device for estimating motor operation information, which can accurately estimate the angle and speed of the motor.
[0006] The embodiments of the present invention can be implemented as follows:
[0007] In a first aspect, the present invention provides a method for estimating motor operation information, which is applied to a motor system including a motor local area, wherein the motor system runs a phase-locked loop system, and the phase-locked loop system includes a PID subsystem. The method comprises:
[0008] Obtaining the estimated speed of the motor body output by the PID subsystem;
[0009] determining whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed;
[0010] If the phase-locked loop system is in a stable state, the motor operation information is estimated according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
[0011] In an optional embodiment, the step of determining whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed includes:
[0012] If the difference between the estimated speed and the preset speed is less than or equal to a preset value, determining that the phase-locked loop system is in a stable state;
[0013] If the difference between the estimated speed and the preset speed is greater than the preset value, it is determined that the phase-locked loop system is not in a stable state.
[0014] In an optional embodiment, the motor operation information includes a motor operation speed, and the step of estimating the motor operation information based on the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state includes:
[0015] When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is used as the estimated value of the motor operating speed.
[0016] In an optional embodiment, the motor operation information further includes a motor operation angle, and the step of estimating the motor operation information based on the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state further includes:
[0017] When the phase-locked loop system is in a stable state, an estimated speed output by the PID subsystem is integrated to obtain an estimated value of the motor operating angle.
[0018] In an optional embodiment, the motor system further includes a position encoder, and the method further includes:
[0019] Obtaining a position feedback angle of the motor body using the position encoder;
[0020] Obtaining a reference angle, where the reference angle is an angle obtained by integrating the estimated speed most recently output by the PID subsystem;
[0021] Calculating an error value between the position feedback angle and the reference angle;
[0022] The error value and the preset parameters of the PID subsystem are input into the PID subsystem, so that the PID subsystem operates according to the error value and the preset parameters.
[0023] In an optional embodiment, the step of calculating the error value between the position feedback angle and the reference angle includes:
[0024] Calculating an angle difference between the position feedback angle and the reference angle;
[0025] Perform trigonometric function calculation on the angle difference to obtain the error value.
[0026] In an optional embodiment, the trigonometric function is a sine function.
[0027] In a second aspect, the present invention provides a motor operation information estimation device, which is applied to a motor system including a motor body, wherein the motor system operates a phase-locked loop system, wherein the phase-locked loop system includes a PID subsystem, and the device includes:
[0028] an acquisition module, configured to acquire the estimated speed of the motor body output by the PID subsystem;
[0029] a judging module, configured to judge whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed;
[0030] The estimation module is used to estimate the motor operation information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
[0031] In an optional implementation manner, the judgment module is specifically configured to:
[0032] If the difference between the estimated speed and the preset speed is less than or equal to a preset value, determining that the phase-locked loop system is in a stable state;
[0033] If the difference between the estimated speed and the preset speed is greater than the preset value, it is determined that the phase-locked loop system is not in a stable state.
[0034] In an optional embodiment, the motor operation information includes a motor operation speed, and the estimation module is specifically configured to:
[0035] When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is used as the estimated value of the motor operating speed.
[0036] In an optional implementation manner, the motor operation information further includes a motor operation angle, and the estimation module is further configured to:
[0037] When the phase-locked loop system is in a stable state, an estimated speed output by the PID subsystem is integrated to obtain an estimated value of the motor operating angle.
[0038] In a third aspect, the present invention provides a motor system, comprising a motor body, a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the motor operation information estimation method described in any one of the aforementioned embodiments when executing the program.
[0039] In a fourth aspect, the present invention provides a laser radar comprising a motor system as described in the aforementioned embodiment.
[0040] In a fifth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the motor operation information estimation method as described in any one of the aforementioned embodiments.
[0041] Compared with the existing technology, the present invention is based on the idea of a phase-locked loop, implements a phase-locked loop system in the motor in a software manner, and judges the state of the phase-locked loop system. The motor operation information is estimated based on the estimated speed output by the PID subsystem of the phase-locked loop when the phase-locked loop system is in a stable state, thereby accurately estimating the running angle and speed of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0043] FIG1 is a structural diagram illustrating a phase-locked loop according to an embodiment of the present invention.
[0044] FIG2 is an exemplary diagram of a phase-locked loop system implemented by software in a motor system provided by an embodiment of the present invention.
[0045] FIG3 is an exemplary diagram of an improved phase-locked loop system in FIG2 provided by an embodiment of the present invention.
[0046] FIG4 is a block diagram of an exemplary motor system according to an embodiment of the present invention.
[0047] FIG5 is a flowchart illustrating an example of a method for estimating motor operation information provided by an embodiment of the present invention.
[0048] FIG6 is a comparative example diagram of speed estimation by the prior art and the method of this embodiment provided by an embodiment of the present invention.
[0049] FIG7 is a block diagram of a motor operation information estimation device provided by an embodiment of the present invention.
[0050] Icons: 10 - motor system; 11 - processor; 12 - memory; 13 - bus; 14 - position sensor; 15 - motor body; 100 - motor operation information estimation device; 110 - acquisition module; 120 - judgment module; 130 - estimation module. DETAILED DESCRIPTION
[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0052] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.
[0053] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0054] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the accompanying drawings, or is the orientation or position relationship in which the product of the invention is usually placed when in use. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present invention.
[0055] In addition, the terms "first", "second", etc., if used, are merely used to distinguish and describe, and should not be understood as indicating or implying relative importance.
[0056] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0057] The prism motor in a LiDAR uses a position encoder to obtain position information, which is then differentiated to obtain the theoretical speed. The encoder provides feedback pulse signals, which can be used to determine both position and speed. Typical methods for measuring speed based on encoder feedback pulse signals include the M method, the T method, and the M / T method.
[0058] The M method calculates the prism motor's rotational speed by measuring the number of pulses M1 output by the position encoder within a specified time period Tc. Dividing the number of pulses by the time period gives the frequency f1 of the position encoder's output pulses. Therefore, the M method is also called the frequency method: f1 = M1 / Tc.
[0059] The T method, also known as the period method, measures the time interval between two position encoder pulses to calculate the prism motor's rotational speed. In practice, the time interval between two position encoder pulses is calculated by counting the number of high-frequency clock pulses, M2.
[0060] The speed of the prism motor is measured by simultaneously measuring the detection time and the number of pulses emitted by the pulse generator during this time, which is called the M / T method of speed measurement.
[0061] Among the three speed measurement methods mentioned above, the M method is suitable for measuring higher speeds and can obtain higher resolution. However, the M method will affect the speed measurement accuracy at low speeds due to the small number of pulses. The T method is suitable for measuring lower speeds and can obtain higher resolution. However, the T method has low accuracy at high speeds due to the short pulse interval. The M / T method is suitable for measurement at both high and low speeds. Although it overcomes the shortcomings of the first two methods, it still has problems such as uncertain sampling timing at low speeds and low accuracy.
[0062] In order to improve the accuracy of estimating motor speed and angle, and thus achieve precise control of the lidar, the inventors conducted in-depth research on the implementation principle of the phase-locked loop and proposed a technical solution for estimating motor operation information based on the phase-locked loop concept, which will be introduced in detail below.
[0063] In order to facilitate the understanding of this solution, the embodiment of this application first introduces the working principle of the phase-locked loop. Please refer to Figure 1. Figure 1 is a structural example diagram of the phase-locked loop provided by the embodiment of the present invention. In Figure 1, the phase-locked loop mainly includes three parts: a phase detector PD (Phase Detector, PD), a loop filter LF (Loop Filter, LF) and a voltage-controlled oscillator VCO (Voltage Controlled Oscillator, VCO). It is a negative feedback control system that uses the voltage generated by phase synchronization to tune the voltage-controlled oscillator to generate the target frequency. The working principle of the phase-locked loop is: detect the phase difference between the input signal and the output signal, and convert the detected phase difference signal into a voltage signal U through the phase detector. PD Output, after filtering by low-pass filter, forms the control voltage U of the voltage-controlled oscillator LF , control the frequency of the oscillator output signal, and then adjust the frequency phase of the oscillator output signal through the feedback path Feedback to the phase detector. During the operation of the phase-locked loop, when the frequency of the output signal proportionally reflects the frequency of the input signal, the output voltage and the input voltage maintain a fixed phase difference, so the phase of the output voltage and the input voltage is locked.
[0064] Based on the working principle of the phase-locked loop, the inventors discovered that if a phase-locked loop system is implemented in software in the motor, the phase angle information in the input signal is subtracted from the estimated phase angle transmitted to the input end through feedback, and the phase difference angle information is output. The loop filter processes the phase difference (the phase difference can represent the angle information) and adjusts the phase angle error to 0 through feedback. At this time, the phase information of the input signal and the output signal are the same, and the phase lock is successful. When the phase lock is successful, the output phase difference angle information is relatively accurate angle information, which can well solve the problem of accurately estimating the motor speed and angle.
[0065] Please refer to Figure 2, which is an example diagram of a software-implemented phase-locked loop (PID) system in a motor system according to an embodiment of the present invention. In Figure 2, the PLL system includes a proportional, integral, and derivative (PID) subsystem. This system performs control based on the proportional, integral, and differential errors generated by comparing the real-time data collected from the controlled object with a given value. In Figure 2, the phase detector converts the phase difference between the detected position feedback angle and the estimated angle fed back by the feedback path, then performs a trigonometric function (using a sine function as an example in Figure 2) on the phase difference (equivalent to the loop filter in the PLL). The trigonometric function result is input into the PID subsystem. The PID subsystem, operating according to the set PID parameters, outputs an estimated speed. The speed is integrated to obtain an estimated angle, which is then fed back to the phase detector via the feedback path. During PLL operation, when the output estimated angle proportionally reflects the input position feedback angle, the estimated angle and the position feedback angle maintain a fixed phase difference, thus locking the phases of the estimated angle and the position feedback angle.
[0066] In order to accurately estimate the running angle and speed of the motor body based on Figure 2, an embodiment of the present invention adds a state judgment process of the phase-locked loop system on the basis of Figure 2, and estimates the motor running information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state, thereby obtaining a more accurate running angle and speed of the motor body. Please refer to Figure 3, Figure 3 is an example diagram of the improved phase-locked loop system in Figure 2 provided by an embodiment of the present invention. Figure 3 adds a phase-locked state judgment module on the basis of Figure 2. The input of the phase-locked state judgment module is the estimated speed and preset speed output by the PID subsystem, and the output is the state of the phase-locked loop system. The state of the phase-locked loop system includes a stable state and an unstable state. The estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state is the estimated value of the running speed of the motor body. The estimated value of the running speed of the motor body is integrated to obtain the estimated value of the motor running angle.
[0067] Based on FIG3 , this embodiment further provides a block diagram of a motor system 10 that runs software implementing the phase-locked loop system in FIG3 . Referring to FIG4 , FIG4 is a block diagram of a motor provided by an embodiment of the present invention. In FIG4 , the motor system 10 includes a processor 11, a memory 12, a bus 13, a position sensor 14, and a motor body 15. The processor 11, the memory 12, the position sensor 14, and the motor body 15 are connected via a bus 13.
[0068] The processor 11 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 11 or by software instructions. The above-mentioned processor 11 can be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it can also be a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0069] The memory 12 is used to store programs, such as the motor operation information estimation device in the embodiment of the present invention. The motor operation information estimation device 100 includes at least one software function module that can be stored in the memory 12 in the form of software or firmware. After receiving the execution instruction, the processor 11 executes the program to implement the motor operation information estimation method in the embodiment of the present invention.
[0070] The memory 12 may include RAM (Random Access Memory) or non-volatile memory. Alternatively, the memory 12 may be a storage device built into the processor 11 or a storage device independent of the processor 11.
[0071] The bus 13 may be an ISA bus, a PCI bus or an EISA bus, etc. FIG3 is represented by only one bidirectional arrow, but does not mean that there is only one bus or one type of bus.
[0072] The position sensor 14 can be one of a variety of position sensors such as an incremental position sensor, an absolute position sensor, an optical encoder, a resolver, a magnetic encoder, an optical grating, a magnetic grating, etc. Different position sensors have different accuracy in obtaining the position feedback angle of the motor.
[0073] The motor body 15 includes a rotor, a stator, and the like.
[0074] This embodiment also provides a laser radar, including the motor system shown in FIG4 .
[0075] Based on Figures 3 and 4, this embodiment provides a method for estimating motor operation information. The method implements the phase-locked loop system in Figure 3 and is applied to the motor system in Figure 4. Please refer to Figure 5, which is an example flow chart of the motor operation information estimation method provided by an embodiment of the present invention. The method includes the following steps:
[0076] Step S101 : obtaining the estimated speed of the motor body output by the PID subsystem.
[0077] Step S102 , determining whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed.
[0078] In this embodiment, the preset speed can be adaptively set according to actual needs or the accuracy of the position sensor actually used.
[0079] In this embodiment, the state of the phase-locked loop system includes a stable state and an unstable state. A phase-locked loop system in a stable state means that there is a fixed phase difference between the estimated angle output by the phase-locked loop system and the position feedback angle input to the phase-locked loop system.
[0080] Step S103 : If the phase-locked loop system is in a stable state, the motor operation information is estimated according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
[0081] In this embodiment, the motor operation information includes at least one of the motor operation speed and the motor operation angle. The motor operation angle can be obtained by performing an integration operation on the motor operation speed.
[0082] In this embodiment, if the phase-locked loop system is not in a stable state, one implementation method is: repeat steps S101 to S102 until the phase-locked loop system is in a stable state. If the phase-locked loop system is still not in a stable state within the preset time, the parameters of the PID subsystem can be readjusted, and after the adjustment, steps S101 to S102 are repeated until the phase-locked loop system is in a stable state.
[0083] The above method provided in this embodiment judges the state of the phase-locked loop system, and estimates the motor operation information based on the estimated speed output by the PID subsystem of the phase-locked loop when the phase-locked loop system is in a stable state, thereby accurately estimating the operating angle and speed of the motor body.
[0084] In an optional implementation manner, this embodiment further provides an implementation method for determining whether the phase-locked loop system is in a stable state based on the estimated speed and the preset speed:
[0085] If the difference between the estimated speed and the preset speed is less than or equal to the preset value, it is determined that the phase-locked loop system is in a stable state;
[0086] If the difference between the estimated speed and the preset speed is greater than a preset value, it is determined that the phase-locked loop system is not in a stable state.
[0087] In this embodiment, there are many situations that cause the phase-locked loop system to be unstable, such as when the speed of the motor body suddenly drops from 6000 rpm to 5000 rpm. When the speed of the motor body is unstable, in order to allow the motor body to operate normally, the phase-locked loop will automatically exit. The phase-locked loop system can only enter the locked state (i.e., stable state) when specific conditions are met. For example, when the speed of the motor body is stable at 5999-6001 rpm, using the phase-locked loop system at this time can improve the speed control accuracy.
[0088] If the phase-locked loop system should enter the locked state but does not, you can adjust the parameters of the PID subsystem. The PID subsystem parameters include P parameter, I parameter, and D parameter. Increase or decrease the P parameter, I parameter, and D parameter according to the actual situation until the phase-locked loop system enters the locked state.
[0089] In an optional embodiment, when the motor operation information includes the motor operation speed, the motor operation speed may be estimated in the following manner:
[0090] When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is used as the estimated value of the motor operating speed.
[0091] In an optional implementation manner, when the motor operation information also includes the motor operation angle, the motor operation angle may be estimated by:
[0092] When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is integrated to obtain an estimated value of the motor operating angle.
[0093] By using the motor operation information estimation method provided in this embodiment, it is possible to obtain only an estimated value of the motor operation speed, or only an estimated value of the motor operation angle, or both estimated values simultaneously.
[0094] In this embodiment, in order to run the PID subsystem normally, this embodiment also provides an implementation method:
[0095] First, the position encoder is used to obtain the position feedback angle of the motor body;
[0096] In this embodiment, the position encoder can be implemented by the position sensor 14 .
[0097] Secondly, obtain the reference angle, which is the angle obtained by integrating the estimated speed output by the PID subsystem most recently.
[0098] Third, calculate the error value between the position feedback angle and the reference angle;
[0099] In an optional embodiment, the error value is obtained by calculating the angle difference between the feedback angle and the reference angle. One way to calculate the error value between the position feedback angle and the reference angle can be: calculating the angle difference between the position feedback angle and the reference angle; and performing trigonometric function calculation on the angle difference to obtain the error value.
[0100] In this embodiment, the trigonometric function may be a sine function, or may be other trigonometric functions or other mathematical functions, the purpose of which is to convert an angle value into a numerical value.
[0101] Fourth, the error value and the preset parameters of the PID subsystem are input into the PID subsystem, so that the PID subsystem operates according to the error value and the preset parameters.
[0102] In this embodiment, the preset parameters of the PID subsystem can be set as needed, and can also be adjusted during the actual operation of the PID subsystem to ensure that the phase-locked loop system can reach a stable state within a preset time.
[0103] In this embodiment, since the method provided in the embodiment of the present invention can make a more accurate estimate of the angle and speed of the motor body, the speed of the motor body can be controlled in a finer granularity based on the accurate estimate. In order to illustrate the technical effect of accurately controlling the motor by using the angle and speed estimated by the method in this embodiment, please refer to Figure 6. Figure 6 is a comparative example diagram of the speed estimated by the prior art and the method of this embodiment provided in the embodiment of the present invention. It can be seen from Figure 6 that the granularity of the speed control of the prior art is relatively coarse, and the granularity of the speed control of the method in this embodiment is relatively fine.
[0104] To implement the corresponding steps in the above embodiment and various possible implementations, an implementation of a motor operation information estimation device 100 is provided below. Please refer to Figure 7, which is a block diagram of the motor operation information estimation device 100 provided in accordance with an embodiment of the present invention. It should be noted that the basic principles and technical effects of the motor operation information estimation device 100 provided in this embodiment are the same as those in the above embodiment and are not mentioned in this embodiment for the sake of brevity.
[0105] The motor operation information estimation device 100 includes an acquisition module 110 , a determination module 120 and an estimation module 130 .
[0106] An acquisition module 110 is used to acquire the estimated speed of the motor body output by the PID subsystem;
[0107] A determination module 120 is configured to determine whether the phase-locked loop system is in a stable state based on the estimated speed and the preset speed;
[0108] The estimation module 130 estimates the motor operation information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
[0109] In an optional embodiment, the judgment module 120 is specifically used to: if the difference between the estimated speed and the preset speed is less than or equal to the preset value, determine that the phase-locked loop system is in a stable state; if the difference between the estimated speed and the preset speed is greater than the preset value, determine that the phase-locked loop system is not in a stable state.
[0110] In an optional embodiment, the motor operation information includes the motor operation speed, and the estimation module 130 is specifically configured to use the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state as the estimated value of the motor operation speed.
[0111] In an optional embodiment, the motor operation information also includes the motor operation angle, and the estimation module 130 is specifically used to: perform an integration operation on the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state to obtain an estimated value of the motor operation angle.
[0112] In an optional embodiment, the motor system also includes a position encoder, and the estimation module is further used to: obtain the position feedback angle of the motor body using the position encoder; obtain a reference angle, the reference angle being the angle obtained by integrating the estimated speed most recently output by the PID subsystem; calculate the error value between the position feedback angle and the reference angle; and input the error value and preset parameters of the PID subsystem into the PID subsystem so that the PID subsystem operates according to the error value and the preset parameters.
[0113] In an optional embodiment, when the estimation module 130 is used to calculate the error value between the position feedback angle and the reference angle, it is specifically used to: calculate the angle difference between the position feedback angle and the reference angle; and perform trigonometric function calculation on the angle difference to obtain the error value.
[0114] In an optional embodiment, the trigonometric function in the estimation module 130 is a sine function.
[0115] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned motor operation information estimation method is implemented.
[0116] In summary, an embodiment of the present invention provides a method and related apparatus for estimating motor operation information, which are applied to a motor system, wherein the motor system operates with a phase-locked loop system, the phase-locked loop system including a PID subsystem, and the method includes: obtaining an estimated speed of the motor body output by the PID subsystem; judging whether the phase-locked loop system is in a stable state based on the estimated speed and a preset speed; if the phase-locked loop system is in a stable state, estimating the motor operation information based on the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state. Compared with the prior art, an embodiment of the present invention judges the state of the phase-locked loop system and estimates the motor operation information based on the estimated speed output by the PID subsystem of the phase-locked loop when the phase-locked loop system is in a stable state, thereby achieving accurate estimation of the operating angle and speed of the motor body, and based on the accurate angle and speed estimation, achieving more fine-grained control of the motor body.
[0117] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for estimating motor operation information, characterized in that: Applied to a motor system including a motor body, the motor system running a phase-locked loop system, the phase-locked loop system including a PID subsystem, the method comprising: Obtaining the estimated speed of the motor body output by the PID subsystem; Determining whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed; If the phase-locked loop system is in a stable state, the motor operation information is estimated according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
2. The motor operation information estimation method according to claim 1, characterized in that: The step of judging whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed comprises: If the difference between the estimated speed and the preset speed is less than or equal to a preset value, it is determined that the phase-locked loop system is in a stable state; If the difference between the estimated speed and the preset speed is greater than the preset value, it is determined that the phase-locked loop system is not in a stable state.
3. The motor operation information estimation method according to claim 1, characterized in that: The motor operation information includes the motor operation speed, and the step of estimating the motor operation information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state includes: When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is used as the estimated value of the motor running speed.
4. The motor operation information estimation method according to claim 1 or 3, characterized in that: The motor operation information also includes a motor operation angle, and the step of estimating the motor operation information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state further includes: When the phase-locked loop system is in a stable state, an estimated speed output by the PID subsystem is integrated to obtain an estimated value of the motor operating angle.
5. The motor operation information estimation method according to claim 1, characterized in that: The motor system further includes a position encoder, and the method further includes: Using the position encoder to obtain the position feedback angle of the motor body; Obtaining a reference angle, where the reference angle is an angle obtained by integrating the estimated speed most recently output by the PID subsystem; Calculating an error value between the position feedback angle and the reference angle; The error value and the preset parameters of the PID subsystem are input into the PID subsystem, so that the PID subsystem operates according to the error value and the preset parameters.
6. The motor operation information estimation method according to claim 5, characterized in that: The step of calculating the error value between the position feedback angle and the reference angle comprises: Calculating an angle difference between the position feedback angle and the reference angle; A trigonometric function calculation is performed on the angle difference to obtain the error value.
7. The motor operation information estimation method according to claim 6, characterized in that: The trigonometric function is a sine function.
8. A motor operation information estimation device, characterized in that: Applied to a motor system including a motor body, the motor system running a phase-locked loop system, the phase-locked loop system including a PID subsystem, the device comprising: An acquisition module, used for acquiring the estimated speed of the motor body output by the PID subsystem; A judging module, used for judging whether the phase-locked loop system is in a stable state according to the estimated speed and the preset speed; The estimation module is used to estimate the motor operation information according to the estimated speed output by the PID subsystem when the phase-locked loop system is in a stable state.
9. The motor operation information estimation device according to claim 8, characterized in that: The judgment module is specifically used for: If the difference between the estimated speed and the preset speed is less than or equal to a preset value, it is determined that the phase-locked loop system is in a stable state; If the difference between the estimated speed and the preset speed is greater than the preset value, it is determined that the phase-locked loop system is not in a stable state.
10. The motor operation information estimation device according to claim 8, characterized in that: The motor operation information includes the motor operation speed, and the estimation module is specifically used for: When the phase-locked loop system is in a stable state, the estimated speed output by the PID subsystem is used as the estimated value of the motor running speed.
11. The motor operation information estimation device according to claim 8 or 10, characterized in that: The motor operation information also includes the motor operation angle, and the estimation module is specifically used for: When the phase-locked loop system is in a stable state, an estimated speed output by the PID subsystem is integrated to obtain an estimated value of the motor operating angle.
12. A motor system, characterized in that: The method comprises a motor body, a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the motor operation information estimation method according to any one of claims 1 to 7 when executing the program.
13. A laser radar, characterized in that: Comprising the motor system of claim 12.
14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for estimating motor operation information as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Measuring device with phase-locked loop
CN104660253A
Permanent magnet synchronous motor rotor position and speed detection method based on orthogonal phase-locked loop
CN114826064A
Detection device and method based on rotating speed of vehicle permanent magnet synchronous motor
CN115327155A
Motor operation information estimation method and related device
CN116317787A
Rotor position estimation system and method for synchronous motor using a pll(phase locked loop) based incorporation of two sensorless algorithms
KR1020110112995A
