Motor parameter tracking method and motor parameter tracking system
11211888 · 2021-12-28
Assignee
Inventors
Cpc classification
H02P6/12
ELECTRICITY
H02P23/14
ELECTRICITY
H02P23/0022
ELECTRICITY
International classification
H02K33/00
ELECTRICITY
H02P6/12
ELECTRICITY
H02P23/00
ELECTRICITY
H02P23/14
ELECTRICITY
H02P3/00
ELECTRICITY
Abstract
A motor parameter tracking method, which can dynamically track motor parameters includes: exciting, with a voltage excitation signal, a motor to operate, and acquiring at least one actual voltage across two terminals of the motor and an actual current flowing through the motor in an operating state; modelling a voltage error of the motor based on the at least one actual voltage and the actual current to obtain a voltage error function of the motor; and performing iteration on at least one motor parameter based on the voltage error function and a preset iterative step. With the method, the difference between different batches of motors can be adaptively adjusted, and parameter changes caused by a motor temperature, a motor posture and the like can be dynamically tracked. All motor parameters are provided with a same step, which reduces the difficulty of parameter adjustment and the sensitivity of algorithms to parameters.
Claims
1. A motor parameter tracking method, comprising: exciting, with a voltage excitation signal, a motor to operate, and acquiring at least one actual voltage across two terminals of the motor and an actual current flowing through the motor in an operating state; modelling a voltage error of the motor based on the at least one actual voltage and the actual current to obtain a voltage error function of the motor; and performing iteration on at least one motor parameter based on the voltage error function and a preset iterative step in such a manner that the at least one motor parameter is dynamically tracked; said modelling the voltage error of the motor based on the at least one actual voltage and the actual current to obtain the voltage error function of the motor comprises: obtaining the voltage error function based on a difference between one of the at least one actual voltage and a predicted voltage of each of different sampling points, wherein the predicted voltage is calculated based on the at least one motor parameter and a motor model.
2. The motor parameter tracking method as described in claim 1, wherein the voltage excitation signal is a digital signal, and said exciting, with the voltage excitation signal, the motor to operate comprises: converting, by a digital-to-analog converter, the digital signal into an analog signal; amplifying, by a power amplifier, the analog signal; and exciting, with the amplified analog signal, the motor to operate.
3. The motor parameter tracking method as described in claim 1, wherein said obtaining the voltage error function based on the difference between the one of the at least one actual voltage and the predicted voltage of each of the different sampling points comprises: calculating the voltage error function based on:
ε.sub.oev[n]=v.sub.cm[n]−v.sub.cp[n], where n represents a sampling point index, v.sub.cm represents an actual voltage, and v.sub.cp represents the predicted voltage.
4. The motor parameter tracking method as described in claim 1, wherein said calculating the predicted voltage based on the at least one motor parameter and the motor model comprises: calculating the predicted voltage based on:
5. The motor parameter tracking method as described in claim 4, wherein the vibrator speed of the motor is calculated based on:
u.sub.d[n]=σ.sub.u[n]f.sub.c.Math.p[n]−σ.sub.n[n]f.sub.c.Math.p[n−2]−a.sub.1[n]u.sub.d[n−1]−a.sub.2[n]u.sub.d[n−2], where n represents the sampling point index, σ.sub.u, a.sub.1 and a.sub.2 represent coefficients of a second-order model of the motor, respectively, and f.sub.c.Math.p is an electromagnetic force.
6. The motor parameter tracking method as described in claim 5, wherein the electromagnetic force is calculated based on:
f.sub.c.Math.p[n]=ϕ.sub.0[n]i.sub.c.Math.m[n], where n represents the sampling point index, ϕ.sub.0 represents the electromagnetic force coefficient, and icm represents the actual current.
7. The motor parameter tracking method as described in claim 1, wherein the preset iterative step is set for each of the at least one motor parameter, and said performing the iteration on the at least one motor parameter based on the voltage error function and the preset iterative step in such a manner that the at least one motor parameter is dynamically tracked comprises: performing normalized least mean square adaptive filtering on the at least one motor parameter based on the voltage error function and the preset iterative step to obtain at least one tracking result of the at least one motor parameter.
8. The motor parameter tracking method as described in claim 7, wherein the at least one motor parameter comprises a resistance, an inductance, a filter feedback coefficient and an electromagnetic force coefficient, and a tracking result of the resistance is:
9. A terminal, comprising: a motor; a motor parameter tracking system configured to control the motor; a memory; and a processor, wherein the memory stores a computer program, and the computer program, when being executed by the processor, causes the processor to execute steps of the method according to claim 1.
10. A computer-readable storage medium, storing a computer program thereon, wherein the computer program, when being executed by a processor, causes the processor to execute steps of the method according to claim 1.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DESCRIPTION OF EMBODIMENTS
(8) The present invention will be further described below with reference to the drawings and embodiments.
(9)
(10) At step 102, a motor is excited to operate using a voltage excitation signal to acquire an actual voltage across two terminals of the motor and an actual current of the motor in an operating state.
(11) The voltage excitation signal refers to an electrical signal input to an operating circuit of the motor for observing characteristics of the motor. In an embodiment, the voltage excitation signal is a digital signal, and for example, can be white noise.
(12) In an embodiment, the motor parameter tracking system includes a system control module. Through the system control module, the voltage excitation signal (a digital signal) is converted into an analog signal by a digital-to-analog converter; the analog signal is amplified by a power amplifier; and the motor is excited to operate with the amplified analog signal, and meanwhile, the actual voltage across the two terminals of the motor and the actual current of the motor in the operating state are collected.
(13) For example,
(14) At step 104, a voltage error of the motor are modeled based on the actual voltage and the actual current to acquire a voltage error function of the motor.
(15) In an embodiment, the voltage error function is obtained based on a difference between the actual voltage and a predicted voltage of each of the different sampling points. That is, the voltage error function is defined as an error between the predicted voltage and the actual voltage.
(16) In an embodiment, the voltage error function is calculated bases on:
ε.sub.oev[n]=v.sub.cm[n]−v.sub.cp[n] (1),
(17) where n represents a sampling point index, v.sub.cm represents the actual voltage, and v.sub.cp represents the predicted voltage.
(18) In an embodiment, the predicted voltage in formula (1) can be calculated according to the motor parameter and a motor model. In an embodiment, the predicted voltage can be calculated according to:
(19)
(20) where n represents a sampling point index, R.sub.eb represents a resistance of the motor, i.sub.cm represents the actual current, L.sub.eb represents an inductance of the motor, ϕ.sub.0 represents an electromagnetic force coefficient, and u.sub.d represents a vibrator speed of the motor.
(21) The derivative of current to time
(22)
in formula (2) is calculated using the formula:
(23)
(24) where n represents the sampling point index, i.sub.cm represents the actual current, and T.sub.s represents a sampling period of a digital signal.
(25) The vibrator speed of the motor u.sub.d in formula (2) is calculated using the following formula:
u.sub.d[n]=σ.sub.u[n]f.sub.c.Math.p[n]−σ.sub.u[n]f.sub.c.Math.p[n−2]−a.sub.1[n]u.sub.d[n−1]−a.sub.2[n]u.sub.d[n−2] (4),
(26) where n represents the sampling point index, σ.sub.u, a.sub.1 and a.sub.2 represent coefficients of a second-order model of the motor, and f.sub.c.Math.p represents an electromagnetic force.
(27) The electromagnetic force f.sub.c.Math.p in formula (4) is calculated using the following formula:
f.sub.c.Math.p[n]=ϕ.sub.0[n]i.sub.cm[n] (5),
(28) where n represents the sampling point index, ϕ.sub.0 represents an electromagnetic force coefficient, and i.sub.cm represents the actual current.
(29) At step 106, an iteration is performed on the motor parameter based on the voltage error function and a preset iterative step, which achieves dynamic tracking of the motor parameter.
(30) In an embodiment, the dynamic tracking of the motor parameter is performed based on the voltage error function and a normalized least mean square (NLMS) adaptive filtering algorithm. That is, the normalized least mean square adaptive filtering is performed based on an error signal of the actual voltage v.sub.an across the two terminals of the motor and the predicted voltage v.sub.cp across the two terminals of the motor.
(31) In an embodiment, a same preset iterative step is set for all motor parameters, and the iteration is performed on the motor parameters according to the iterative step of the motor parameters and a gradient of the voltage error function using the NLMS algorithm so as to obtain tracking results of the motor parameters. With the NLMS algorithm, steps of all motor parameters can be set as a same value, instead of setting different iterative steps for all motor parameters, respectively, which reduces the difficulty of parameter adjustment and the sensitivity of algorithms to parameters.
(32) In an embodiment, the motor parameters include a resistance, an inductance, a filter feedback coefficient and an electromagnetic force coefficient. During the frame-by-frame iteration of the NLMS algorithm, a definition and the calculation formula of each motor parameter are as follows.
(33) The calculation formula and the tracking result of the resistance are:
(34)
(35) where R.sub.eb represents the resistance, n represents the sampling point index, μ represents an iterative step, frame_sample represents a total number of samples in each frame, m represents a sample index of each frame, ε.sub.oev represents the voltage error function, and i.sub.cm represents the actual current. In formula (7), u[m]=−i.sub.cm[m].
(36) The calculation formula and the tracking result of the inductance are:
(37)
(38) where L.sub.eb represents the inductance, n represents the sampling point index, μ represents an iterative step, frame_sample represents the total number of samples in each frame, m represents a sample index of each frame, ε.sub.oev represents the voltage error function, i.sub.cm represents the actual current. In formula (9),
(39)
(40) The calculation formula and the tracking result of the filter feedback coefficient are:
(41)
(42) where a.sub.k represents the filter feedback coefficient and includes a.sub.1 and a.sub.2, n represents a sampling point index, μ represents an iterative step, frame_sample represents a total number of samples in each frame, m represents a sample index of each frame, ε.sub.oev represents the voltage error function, and ϕ.sub.0 represents the electromagnetic force coefficient. In formula (12), u[m]=−ϕ.sub.0[m]α.sub.k[m].
(43) The calculation formula and the tracking result of the electromagnetic force coefficient are:
(44)
(45) where ϕ.sub.0 represents the electromagnetic force coefficient, n represents a sampling point index, μ represents an iterative step, frame_sample represents a total number of samples in each frame, m represents a sample index of each frame, ε.sub.oev represents the voltage error function, u.sub.d represents the vibrator speed of the motor. In formula (15), u[m]=−u.sub.d[m]−ϕ.sub.0[n]∂.sub.ϕu[m].
(46) In the motor parameter tracking method provided by the embodiments of the present invention, the motor is excited to operate using the voltage excitation signal to acquire the actual voltage across two terminals of the motor and the actual current of the motor in the operating state, the voltage error of the motor are modeled based on the actual voltage and the actual current to acquire the voltage error function of the motor, and the iteration is performed on the motor parameter based on the voltage error function and the preset iterative step. With the above motor parameter tracking method, motor parameters can be dynamically tracked, a self-adaptive adjustment can be performed on the difference between motors produced in different batches, so that parameter changes caused by a motor temperature, a motor posture and the like can be dynamically tracked. Further, the same step is set for all motor parameters, which can reduce the difficulty of parameter adjustment and the sensitivity of algorithms to parameters.
(47) In an embodiment, an experimental device including the linear motor can perform the parameters tracking on the linear motor. For example, white noise is used as the voltage excitation signal to run the motor parameter tracking system, and the parameters of the linear motor are tracked using the NLMS algorithm in unit of frame.
(48) Some parameters in the NLMS algorithm are set as shown in Table 1 below, in which an original signal sampling rate can be understood as a sampling frequency of the excitation signal, and an NLMS signal sampling rate can be understood as a sampling frequency of the NLMS algorithm.
(49) TABLE-US-00001 TABLE 1 NLMS Algorithm Parameters Parameter Unit Set Value Original signal sampling Hz 48,000 rate NLMS signal sampling Hz 4,000 rate Frame length ms 44 Parameter step / 0.07
(50)
(51) Based on the same inventive concept, a motor parameter tracking system is provided.
(52) The system control module 710 is configured to excite a motor to operate using a voltage excitation signal to acquire an actual voltage across two terminals of the motor and an actual current of the motor in an operating state.
(53) The system recognition module 720 is configured to model a voltage error of the motor based on the actual voltage and the actual current to acquire a voltage error function of the motor.
(54) The parameter tracking module 730 is configured to perform iteration on a motor parameter based on the voltage error function and a preset iterative step, which achieves dynamic tracking of the motor parameter.
(55) The above motor parameter tracking system provided by the embodiments can self-adaptively adjust the difference between motors produced in different batches, parameter changes caused by the motor temperature, the motor posture and the like can be dynamically tracked. The same step are set for all motor parameters, which can reduce the difficulty of parameter adjustment and the sensitivity of algorithms to parameters.
(56) An embodiment of the present invention provides a terminal, the terminal includes a motor, a motor parameter tracking system configured to control the motor, a memory and processor. The memory stores a computer program which, when being executed by the processor, causes the processor to execute the motor parameter tracking method described in the above embodiments.
(57) An embodiment of the present invention provides a computer-readable storage medium. One or more non-transitory computer readable storage media including computer-executable instructions are provided. When the computer-executable instructions are executed by one or more processors, the one or more processors execute the motor parameter tracking method described in the above embodiments.
(58) An embodiment of the present invention provides a computer program product. A computer program product including instructions. When the instructions are executed by a computer, the computer executes the motor parameter tracking method described in the above embodiments.
(59) The above are just the exemplary embodiments of the present invention. It should be noted that any improvements made within the creative concepts of the present invention shall fall into the protection scope of the present invention.