WO2022110413A1 - Method and apparatus for determining nonlinear parameter of motor, and device and storage medium - Google Patents

Method and apparatus for determining nonlinear parameter of motor, and device and storage medium Download PDF

Info

Publication number
WO2022110413A1
WO2022110413A1 PCT/CN2020/138329 CN2020138329W WO2022110413A1 WO 2022110413 A1 WO2022110413 A1 WO 2022110413A1 CN 2020138329 W CN2020138329 W CN 2020138329W WO 2022110413 A1 WO2022110413 A1 WO 2022110413A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
vibrator
measurement value
acceleration
nonlinear
Prior art date
Application number
PCT/CN2020/138329
Other languages
French (fr)
Chinese (zh)
Inventor
郭璇
向征
Original Assignee
瑞声声学科技(深圳)有限公司
瑞声光电科技(常州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 瑞声声学科技(深圳)有限公司, 瑞声光电科技(常州)有限公司 filed Critical 瑞声声学科技(深圳)有限公司
Publication of WO2022110413A1 publication Critical patent/WO2022110413A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems

Definitions

  • the present invention relates to the field of microelectromechanical technology, and in particular, to a method, an apparatus, a computer device and a non-volatile computer-readable storage medium for determining a non-linear parameter of a motor.
  • motors are widely used as haptic feedback actuators in electronic devices such as smartphones, watches, and tablet computers.
  • the classical second-order model of the motor can meet the design requirements of the application and haptic feedback effect.
  • the classical second-order model-based model is often used.
  • the application cannot meet the demand.
  • the solutions for obtaining the nonlinear parameters of the motor provided in the current technology mainly use the excitation signal to excite the motor to vibrate and then collect the voltage and current measurement values.
  • the target value of the nonlinear parameters of the motor is obtained by adaptive filtering, but this method is still difficult to accurately estimate the nonlinear parameters of the motor in the nonlinear model.
  • a method of determining a non-linear parameter of a motor comprising:
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
  • Rm (v) Rm0 + Rm1v + Rm2v2 .
  • An apparatus for determining non-linear parameters of a motor comprising:
  • a model construction module for constructing a nonlinear model containing the nonlinear parameters of the motor
  • a measurement value acquisition module configured to drive the motor to vibrate by using the excitation signal, and acquire the measurement value of the voltage at both ends of the motor, the measurement value of the motor current and the measurement value of the acceleration of the motor vibrator under the vibration state;
  • a velocity and displacement obtaining module configured to obtain the velocity and displacement of the vibrator of the motor based on the measured value of the acceleration of the vibrator of the motor
  • a system of equations building module for building an overdetermined system of equations associated with the nonlinear model based on the nonlinear model
  • a nonlinear parameter obtaining module configured to fit the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the nonlinear parameter
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
  • Rm (v) Rm0 + Rm1v + Rm2v2 .
  • a 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:
  • a nonlinear model including the nonlinear parameters of the motor; use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state; based on the measurement of the acceleration of the motor vibrator obtain the vibrator velocity and displacement of the motor; construct an overdetermined equation system associated with the nonlinear model based on the nonlinear model; Fit the overdetermined equation system to obtain the nonlinear parameters; wherein, the nonlinear model is expressed as:
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
  • Rm (v) Rm0 + Rm1v + Rm2v2 .
  • a nonlinear model including the nonlinear parameters of the motor; use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state; based on the measurement of the acceleration of the motor vibrator obtain the vibrator velocity and displacement of the motor; construct an overdetermined equation system associated with the nonlinear model based on the nonlinear model; Fit the overdetermined equation system to obtain the nonlinear parameters; wherein, the nonlinear model is expressed as:
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
  • Rm (v) Rm0 + Rm1v + Rm2v2 .
  • the above-mentioned method, device, computer equipment and storage medium for determining the nonlinear parameters of a motor construct a nonlinear model of the nonlinear parameters of the motor, use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor and the motor current under the vibration state.
  • the measured value and the measured value of the acceleration of the motor oscillator, and then the oscillator speed and the oscillator displacement of the motor are obtained based on the measured value of the acceleration of the motor oscillator, and then the overdetermined equations associated with the nonlinear model are constructed based on the nonlinear model.
  • the measured current value and the measured value of the acceleration of the motor vibrator are fitted to the overdetermined equation system to obtain the aforementioned nonlinear parameters.
  • the excitation signal can be used to drive the motor to vibrate
  • the voltage, current and acceleration at both ends of the motor in the vibration state can be obtained, and the measured value of the acceleration can be obtained.
  • the speed and displacement of the vibrator of the motor are obtained, and the overdetermined equations associated with the nonlinear model are fitted to obtain the nonlinear parameters of the motor, which improves the accuracy and efficiency of determining the nonlinear parameters of the motor during the motor test.
  • FIG. 1 is an application environment diagram of a method for determining a non-linear parameter of a motor in one embodiment
  • FIG. 2 is a schematic flowchart of a method for determining a non-linear parameter of a motor in one embodiment
  • FIG. 3 is a structural block diagram of an apparatus for determining a non-linear parameter of a motor in one embodiment
  • FIG. 4 is a diagram of the internal structure of a computer device in one embodiment.
  • the method for determining the nonlinear parameters of a motor can be applied to the application environment shown in FIG. 1 , and the application environment may include a computer device 140 , a capture card 150 , a power amplifier 160 , a signal amplifier 170 , and a motor to be tested 110 .
  • the computer device 140 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc.;
  • the motor 110 can include LRA (Linear Resonance Actuator, linear motor), which belongs to a kind of linear motor applied to smart phones .
  • the motor 110 can be placed on the sponge 130 to improve the testing accuracy of the motor 110 .
  • a tool 120 can be placed between the motor 110 and the sponge 130 , so that the tool 120 can be used to support the motor 110 , and the motor vibrator acceleration data can be collected during the motor 110 test.
  • the tester can generate the excitation signal of the motor 110 in the computer device 140, the excitation signal is generally a digital signal, the excitation signal is converted from the digital signal to the analog signal through the acquisition card 150, and then the The power amplifier 160 loads the excitation signal to the two ends of the motor 110 for excitation to drive the motor 110 to vibrate.
  • the measured value of the voltage at both ends of the motor 110, the measured value of the motor current and the measured value of the acceleration of the motor vibrator can be obtained.
  • the computer device 140 may obtain the vibrator velocity and the vibrator displacement of the motor 110 based on the motor vibrator acceleration measurement value, and based on the constructed nonlinear model including the motor non-linear parameters, construct a non-linear
  • the overdetermined equations associated with the model fit the overdetermined equations according to the measured voltage, motor current and acceleration of the motor oscillator to obtain nonlinear parameters.
  • the method for determining the nonlinear parameters of the motor provided by the present invention can be implemented, so that after driving the motor 110 to vibrate with the excitation signal on the computer device 140, the voltage, current and acceleration at both ends of the motor 110 in the vibration state can be obtained, and the acceleration can be obtained by using the acceleration signal.
  • the measured value obtains the vibrator speed and the vibrator displacement of the motor 110, so as to fit the overdetermined equations associated with the nonlinear model to obtain the motor nonlinear parameters, and improve the accuracy and accuracy of determining the nonlinear parameters of the motor 110 during the testing process of the motor 110.
  • Efficiency helps to shorten the test time of the nonlinear parameters of the motor.
  • Using the nonlinear model for signal design can improve the similarity between the simulated signal and the measured signal, and provide support for the design of accurate haptic feedback effects.
  • a method of determining a non-linear parameter of a motor is provided, the method may be performed by the computer device 140 in FIG. 1, the method includes the following steps:
  • Step S201 constructing a nonlinear model including the nonlinear parameters of the motor.
  • Part of the parameters in the classical second-order model of the motor 110 are expressed as nonlinear parameters (that is, not constant during the motion of the motor oscillator) to constitute the nonlinear model of the motor 110 .
  • all the nonlinear parameters included in the nonlinear model can be used as the nonlinear parameters to be estimated.
  • the nonlinear parameters may be represented by polynomials.
  • the computer device 140 may construct a nonlinear model including the nonlinear parameters of the motor, and obtain the polynomial representation corresponding to the nonlinear parameters.
  • the nonlinear parameters can be approximated by polynomials that vary with one or some variables, and the polynomials have corresponding coefficients of each order.
  • the classical second-order model of the motor 110 can be represented by the following equations (1) and (2):
  • the formula (1) is an electrical equation
  • the formula (2) is a mechanical equation.
  • u is the voltage across the motor
  • i is the motor current
  • x is the displacement of the motor vibrator
  • v is the speed of the motor vibrator
  • a is the acceleration of the motor vibrator
  • Re is the motor resistance
  • L e is the motor inductance
  • Bl is the motor electromagnetic force coefficient
  • m represents the mass of the motor vibrator
  • K m represents the motor spring stiffness coefficient
  • R m represents the motor damping.
  • nonlinear parameters Le, Bl , Rm and Km .
  • These nonlinear parameters can be approximated as polynomial forms with variables such as oscillator displacement, oscillator velocity, and oscillator acceleration. In some engineering applications, some nonlinear parameters with less influence can be ignored.
  • the present invention ignores the neglected influence of the motor inductance L e in the above formula (1), and uses the displacement x and the speed v to calculate the motor electromagnetic force coefficient Bl, the motor spring stiffness coefficient K m and the motor damping R m through polynomials.
  • the nonlinear model of the motor 110 can be expressed by the following equations (3) and (4):
  • equations (3) and (4) are nonlinear expressions of electrical equations and mechanical equations, respectively, that is, the nonlinear model of the motor 110 may include electrical equations and mechanical equations; wherein, the nonlinear parameters include the motor electromagnetic force coefficient B1 , the motor spring stiffness coefficient K m and the motor damping R m , respectively expressed as:
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4 (6)
  • Rm (v) Rm0 + Rm1v + Rm2v2 (7)
  • the above equations (5) to (7) are respectively the polynomial representation of the motor electromagnetic force coefficient B1, the motor spring stiffness coefficient K m and the motor damping R m , and B1 0 to B1 4 are the coefficients of each order of the motor electromagnetic force coefficient B1 , the vibrator displacement x is the variable corresponding to the motor electromagnetic force coefficient B1, and similarly, K m0 to K m4 are the coefficients of each order of the motor spring stiffness coefficient K m , and the vibrator displacement x is the variable corresponding to the motor spring stiffness coefficient K m , R m0 to R m2 are the coefficients of each order of the motor damping R m , and the speed v is the variable corresponding to the motor damping R m .
  • the computer device 140 can obtain the nonlinear model represented by the above equations (3) and (4), and the nonlinear parameters included in the nonlinear model are represented by the above equations (5) to (7).
  • Step S202 using the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current, and the measured value of the acceleration of the motor vibrator in the vibration state.
  • the computer device 140 can use the excitation signal to drive the motor 110 to vibrate, the motor 110 is in a vibrating state by the drive, and the computer device 140 obtains the measured value of the voltage at both ends of the motor 110 under the vibration state, the measured value of the motor current and the acceleration of the motor vibrator Measurements.
  • the excitation signal may be generated by the computer device 140 , and the excitation signal may have various specific forms.
  • the excitation signal may include a single frequency signal, a broadband signal, or a white noise signal at the rated voltage resonance frequency of the motor 110 .
  • Step S203 obtaining the speed and displacement of the motor's vibrator based on the measured value of the motor's vibrator's acceleration.
  • the computer device 140 may calculate the speed of the vibrator of the motor and the displacement of the vibrator of the motor respectively based on the measured value of the acceleration of the motor vibrator according to the relationship between the acceleration, the speed and the displacement.
  • the computer device 140 may perform integration processing on the measured value of the acceleration of the motor vibrator to obtain the vibrator velocity and the vibrator displacement, respectively.
  • the computer device 140 can integrate the acceleration of the motor vibrator once in time to obtain the vibrator speed of the motor, and integrate the acceleration of the motor vibrator twice in time to obtain the vibrator of the motor In this way, the measurement complexity of the vibrator speed and the vibrator displacement of the motor 110 can be simplified.
  • the computer device 140 can collect the acceleration measurement values of the motor vibrator of the motor 110 in a vibrating state at multiple time collection points, and then the computer device 140 can use the relationship between the speed and the acceleration to collect the motor values collected at the multiple time collection points
  • the vibrator acceleration measurement value is integrated once in time to obtain the vibrator speed of the motor 110; the motor vibrator acceleration measurement value collected from multiple time collection points is integrated twice in time to obtain the vibrator displacement of the motor 110, and the motor vibrator displacement is completed.
  • the acceleration is converted to the vibrator velocity and the vibrator displacement, respectively, and the vibrator velocity and the vibrator displacement data can be obtained without the need for additional velocity and displacement measurement equipment.
  • Step S204 constructing an overdetermined equation system associated with the nonlinear model based on the nonlinear model.
  • the overdetermined equation system refers to the equation system whose number of equations is greater than the number of unknowns.
  • the computer device 140 constructs a system of overdetermined equations associated with the nonlinear model. Specifically, the computer device 140 can use the above equations (5) to (7) to express the nonlinear parameters in the nonlinear model represented by the above equations (3) and (4), so as to construct a relationship with the nonlinear model The overdetermined system of equations.
  • [ ] is used to represent the th sampling point, and n represents the total number of sampling points.
  • Step S205 fitting an overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor vibrator acceleration measurement value to obtain nonlinear parameters.
  • the computer device 140 can solve the overdetermined equations (8) and the overdetermined equations (12) above.
  • the least squares method can be used based on the known voltage measurement value of the motor 110, motor current measurement value, The motor oscillator acceleration measurements as well as the oscillator velocity and oscillator displacement fit the overdetermined equations (8) and (12) above.
  • the least squares solution (16) for the nonlinear parameter coefficient matrix C e of the overdetermined equation system (8) is:
  • the computer device 140 After the computer device 140 obtains the coefficients corresponding to each nonlinear parameter in the nonlinear model of the motor 110 through the above solution, the estimation process of the nonlinear parameter of the motor 110 is completed, thereby accurately and efficiently determining the coefficients in the nonlinear model.
  • the nonlinear model of the motor 110 For each nonlinear parameter expressed by a polynomial, the nonlinear model of the motor 110 is used for signal design, which can improve the similarity between the simulated signal and the measured signal, and provide support for the design of precise haptic feedback effects to meet the precise haptic feedback effects. design requirements.
  • the computer device 140 can obtain the constructed nonlinear model of the nonlinear parameters of the motor, use the excitation signal to drive the motor 110 to vibrate, and obtain the measured value of the voltage at both ends of the motor 110 and the motor current under the vibration state. measurement value and the motor vibrator acceleration measurement value, then the computer device 140 obtains the motor's vibrator velocity and the vibrator displacement based on the motor vibrator acceleration measurement value, and then the computer device 140 constructs an overdetermined equation system associated with the nonlinear model based on the nonlinear model, and The overdetermined equations are fitted according to the aforementioned voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the aforementioned nonlinear parameters.
  • the use of the excitation signal to drive the motor to vibrate in the above step S202 to obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator in the vibration state may include:
  • the motor is supported by the tool, and the measured value of the acceleration of the motor oscillator is calculated by measuring the measured value of the acceleration of the tool.
  • the motor 110 can be supported by the tool 120 , so that the computer device 140 can calculate the acceleration measurement value of the motor vibrator by measuring the acceleration measurement value of the tool 120 .
  • the acceleration measurement value of the tooling piece 120 and the motor vibrator acceleration measurement value satisfy the following relationship:
  • a f is the acceleration of the fixture 120
  • m f is the mass of the fixture 120
  • m is the mass of the motor vibrator
  • a is the acceleration of the motor vibrator.
  • the above method may further include the following steps:
  • a signal amplifier is used to amplify the acceleration measurement value of the tooling piece 120 .
  • the magnification of the signal amplifier is generally 1-10 times, etc., the purpose is to reduce the data quantization error of the analog-to-digital conversion at the acquisition card.
  • the acceleration measurement value collected from the fixture 120 can be transmitted to the computer device 140 through the signal amplifier 170 and the acquisition card 150.
  • the acceleration measurement value received by the signal amplifier 170 is the acceleration measurement value of the fixture 120, while What the computer device 140 needs is a measurement of the motor vibrator acceleration.
  • the signal amplifier 170 can be used to complete the conversion from the acceleration measurement value of the tool 120 to the motor vibrator acceleration measurement value, that is, the signal amplifier 170 is used to amplify the acceleration measurement value of the tool 120, and the signal amplifier 170 amplifies the The multiple can be set to 1-10 times to reduce the data quantization error of analog-to-digital conversion at the acquisition card.
  • steps in the above flow chart are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution sequence of these steps or stages It is also not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of a step or phase within the other steps.
  • an apparatus for determining a non-linear parameter of a motor is provided, and the apparatus 300 may include:
  • a model construction module 301 configured to construct a nonlinear model including the nonlinear parameters of the motor
  • the measurement value acquisition module 302 is used to drive the motor to vibrate by using the excitation signal, and acquire the measurement value of the voltage at both ends of the motor, the measurement value of the motor current and the measurement value of the acceleration of the motor vibrator under the vibration state;
  • a velocity displacement obtaining module 303 configured to obtain the velocity and displacement of the vibrator of the motor based on the measured value of the acceleration of the vibrator of the motor;
  • an equation system building module 304 for building an overdetermined equation system associated with the nonlinear model based on the nonlinear model
  • a nonlinear parameter obtaining module 305 configured to fit the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value, to obtain the nonlinear parameter;
  • K m (x) K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
  • Rm (v) Rm0 + Rm1v + Rm2v2 .
  • the velocity displacement obtaining module 303 is further configured to perform integration processing on the acceleration measurement value of the motor vibrator to obtain the vibrator velocity and the vibrator displacement, respectively.
  • the excitation signal is a single frequency signal or a white noise signal.
  • the nonlinear parameter obtaining module 305 is further configured to fit the overdetermined system of equations using the least squares method.
  • the measurement value acquisition module 302 is further configured to support the motor by a tool, and calculate the acceleration measurement value of the motor vibrator by measuring the acceleration measurement value of the tool, and the acceleration measurement value of the tool
  • the above-mentioned apparatus 300 further includes: an amplification processing module, configured to perform amplification processing on the acceleration measurement value of the tooling by using a signal amplifier, and the amplification factor of the signal amplifier is 1-10 times.
  • each module in the above-mentioned apparatus for determining non-linear parameters of a motor may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided, the internal structure of which can be shown in FIG. 4 .
  • the computer device 400 includes a processor 401, a memory, a communication interface 402, a display screen 403, and an input device 404 connected by a system bus.
  • the processor 401 of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium 405 and an internal memory 406 .
  • the nonvolatile storage medium 405 stores an operating system 4051 and a computer program 4052 .
  • the internal memory 406 provides an environment for the execution of the operating system 4051 and the computer program 4052 in the non-volatile storage medium.
  • the communication interface 402 of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the computer program 4052 when executed by the processor 401, implements a method of determining non-linear parameters of a motor.
  • the display screen 403 of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device 404 of the computer equipment may be a touch layer covered on the display screen 403 , or a button or a trackball provided on the shell of the computer equipment 400 . Or a trackpad, or an external keyboard, trackpad, or mouse, etc.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 400 to which the solution of the present invention is applied.
  • the specific computer device 400 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.
  • a non-volatile computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.
  • any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include at least one of non-volatile and volatile memory.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Geometry (AREA)
  • Operations Research (AREA)
  • Evolutionary Computation (AREA)
  • Algebra (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A method and apparatus for determining a nonlinear parameter of a motor, and a computer device and a computer-readable storage medium, which can improve the precision and efficiency of determining a nonlinear parameter of a motor during a motor test process. The method comprises: constructing a nonlinear model including a nonlinear parameter of a motor (S201); using an excitation signal to drive the motor to vibrate, and acquiring, in a vibration state, voltage measurement values at two ends of the motor, a motor current measurement value and a motor vibrator acceleration measurement value (S202); then, obtaining a vibrator speed and a vibration displacement of the motor on the basis of the motor vibrator acceleration measurement value (S203); next, on the basis of the nonlinear model, constructing an overdetermined equation set associated with the nonlinear model (S204); and performing fitting on the overdetermined equation set according to the voltage measurement values, the motor current measurement value and the motor vibrator acceleration measurement value, so as to obtain the nonlinear parameter (S205).

Description

确定马达非线性参数的方法、装置、设备和存储介质Method, apparatus, device and storage medium for determining non-linear parameters of a motor 技术领域technical field
本发明涉及微机电技术领域,特别是涉及一种确定马达非线性参数的方法、装置、计算机设备和非易失性计算机可读存储介质。The present invention relates to the field of microelectromechanical technology, and in particular, to a method, an apparatus, a computer device and a non-volatile computer-readable storage medium for determining a non-linear parameter of a motor.
背景技术Background technique
随着电子设备的迅速发展,马达作为一种触觉反馈的激励器,在例如智能手机、手表和平板电脑等电子设备上得到广泛应用。With the rapid development of electronic devices, motors are widely used as haptic feedback actuators in electronic devices such as smartphones, watches, and tablet computers.
在实际应用中,马达的经典二阶模型可以满足应用和触觉反馈效果的设计需求,但是在需要精确触觉反馈效果的场景下,由于马达所固有的非线性特性,往往使得基于经典二阶模型的应用无法满足需求。目前技术中提供的获取马达非线性参数的方案,主要是采用激励信号激励马达振动后采集电压、电流测量值,根据电压、电流测量值结合马达的线参数初始值和非线性参数初始值采用自适应滤波计算得到马达的非线性参数目标值,然而这种方式仍难以对非线性模型中的马达非线性参数进行精确估计。In practical applications, the classical second-order model of the motor can meet the design requirements of the application and haptic feedback effect. However, in scenarios that require precise haptic feedback effects, due to the inherent nonlinear characteristics of the motor, the classical second-order model-based model is often used. The application cannot meet the demand. The solutions for obtaining the nonlinear parameters of the motor provided in the current technology mainly use the excitation signal to excite the motor to vibrate and then collect the voltage and current measurement values. The target value of the nonlinear parameters of the motor is obtained by adaptive filtering, but this method is still difficult to accurately estimate the nonlinear parameters of the motor in the nonlinear model.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种确定马达非线性参数的方法、装置、计算机设备和非易失性计算机可读存储介质。Based on this, it is necessary to provide a method, an apparatus, a computer device and a non-volatile computer-readable storage medium for determining the non-linear parameters of a motor in response to the above technical problems.
一种确定马达非线性参数的方法,所述方法包括:A method of determining a non-linear parameter of a motor, the method comprising:
构造包含马达非线性参数的非线性模型;Construct a nonlinear model containing the nonlinear parameters of the motor;
利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;Use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state;
基于所述马达振子加速度测量值获得所述马达的振子速度与位移;Obtaining the vibrator velocity and displacement of the motor based on the motor vibrator acceleration measurements;
基于所述非线性模型构建与所述非线性模型关联的超定方程组;constructing an overdetermined system of equations associated with the nonlinear model based on the nonlinear model;
根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;Fitting the set of overdetermined equations according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the nonlinear parameter;
其中,所述非线性模型表示为:Wherein, the nonlinear model is expressed as:
u=R ei+Bl(x)v u= Re i+Bl(x)v
Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
所述非线性参数表示为:The nonlinear parameters are expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
一种确定马达非线性参数的装置,包括:An apparatus for determining non-linear parameters of a motor, comprising:
模型构造模块,用于构造包含马达非线性参数的非线性模型;A model construction module for constructing a nonlinear model containing the nonlinear parameters of the motor;
测量值获取模块,用于利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;a measurement value acquisition module, configured to drive the motor to vibrate by using the excitation signal, and acquire the measurement value of the voltage at both ends of the motor, the measurement value of the motor current and the measurement value of the acceleration of the motor vibrator under the vibration state;
速度位移获得模块,用于基于所述马达振子加速度测量值获得所述马达的振子速度与位移;a velocity and displacement obtaining module, configured to obtain the velocity and displacement of the vibrator of the motor based on the measured value of the acceleration of the vibrator of the motor;
方程组构建模块,用于基于所述非线性模型构建与所述非线性模型关联的超定方程组;a system of equations building module for building an overdetermined system of equations associated with the nonlinear model based on the nonlinear model;
非线性参数获得模块,用于根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;a nonlinear parameter obtaining module, configured to fit the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the nonlinear parameter;
其中,所述非线性模型表示为:Wherein, the nonlinear model is expressed as:
u=R ei+Bl(x)v u= Re i+Bl(x)v
Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
所述非线性参数表示为:The nonlinear parameters are expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A 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:
构造包含马达非线性参数的非线性模型;利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;基于所述马达振子加速度测量值获得所述马达的振子速度与位移;基于所述非线性模型构建与所述非线性模型关联的超定方程组;根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;其中,所述非线性模型表示为:Construct a nonlinear model including the nonlinear parameters of the motor; use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state; based on the measurement of the acceleration of the motor vibrator obtain the vibrator velocity and displacement of the motor; construct an overdetermined equation system associated with the nonlinear model based on the nonlinear model; Fit the overdetermined equation system to obtain the nonlinear parameters; wherein, the nonlinear model is expressed as:
u=R ei+Bl(x)v u= Re i+Bl(x)v
Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
所述非线性参数表示为:The nonlinear parameters are expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
一种非易失性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A non-volatile computer-readable storage medium on which a computer program is stored, the computer program implementing the following steps when executed by a processor:
构造包含马达非线性参数的非线性模型;利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;基于所述马达振子加速度测量值获得所述马达的振子速度与位移;基于所述非线性模型构建与所述非线性模型关联的超定方程组;根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;其中,所述非线性模型表示为:Construct a nonlinear model including the nonlinear parameters of the motor; use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state; based on the measurement of the acceleration of the motor vibrator obtain the vibrator velocity and displacement of the motor; construct an overdetermined equation system associated with the nonlinear model based on the nonlinear model; Fit the overdetermined equation system to obtain the nonlinear parameters; wherein, the nonlinear model is expressed as:
u=R ei+Bl(x)v u= Re i+Bl(x)v
Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
所述非线性参数表示为:The nonlinear parameters are expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
上述确定马达非线性参数的方法、装置、计算机设备和存储介质,构造出马达非线性参数的非线性模型,利用激励信号驱动马达振动,获取振动状态下该马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值,然后基于马达振子加速度测量值获得马达的振子速度与振子位移,接着基于非线性模型构建与该非线性模型关联的超定方程组,根据前述电压测量值、马达电流测量值以及马达振子加速度测量值拟合该超定方程组,获得前述非线性参数,能够利用激励信号驱动马达振动后,获取振动状态下马达两端电压、电流和加速度,并利用加速度测量值获得马达的振子速度与振子位移,以此对与非线性模型关联的超定方程组进行拟合从而获得马达非线性参数,提高马达测试过程中确定马达非线性参数的精度和效率。The above-mentioned method, device, computer equipment and storage medium for determining the nonlinear parameters of a motor, construct a nonlinear model of the nonlinear parameters of the motor, use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor and the motor current under the vibration state. The measured value and the measured value of the acceleration of the motor oscillator, and then the oscillator speed and the oscillator displacement of the motor are obtained based on the measured value of the acceleration of the motor oscillator, and then the overdetermined equations associated with the nonlinear model are constructed based on the nonlinear model. The measured current value and the measured value of the acceleration of the motor vibrator are fitted to the overdetermined equation system to obtain the aforementioned nonlinear parameters. After the excitation signal can be used to drive the motor to vibrate, the voltage, current and acceleration at both ends of the motor in the vibration state can be obtained, and the measured value of the acceleration can be obtained. The speed and displacement of the vibrator of the motor are obtained, and the overdetermined equations associated with the nonlinear model are fitted to obtain the nonlinear parameters of the motor, which improves the accuracy and efficiency of determining the nonlinear parameters of the motor during the motor test.
附图说明Description of drawings
图1为一个实施例中确定马达非线性参数的方法的应用环境图;FIG. 1 is an application environment diagram of a method for determining a non-linear parameter of a motor in one embodiment;
图2为一个实施例中确定马达非线性参数的方法的流程示意图;2 is a schematic flowchart of a method for determining a non-linear parameter of a motor in one embodiment;
图3为一个实施例中确定马达非线性参数的装置的结构框图;3 is a structural block diagram of an apparatus for determining a non-linear parameter of a motor in one embodiment;
图4为一个实施例中计算机设备的内部结构图。FIG. 4 is a diagram of the internal structure of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明提供的确定马达非线性参数的方法,可以应用于如图1所示的应用环境,该应用环境可以包括计算机设备140、采集卡150、功率放大器160、信号放大器170、待测试的马达110。其中,计算机设备140可以但不限于是各种个人计算机、笔记本电脑、智能手机和平板电脑等;马达110可以包括LRA(Linear Resonance Actuator,线性马达),LRA属于一种应用于智能手机的线性马达。该马达110可以放置于海绵130上以提高对马达110的测试精度。在一些测试场景中,马达110和海绵130间可以放置工装件120,从而可以利用该工装件120支撑马达110,在马达110测试过程中采集马达振子加速度数据。The method for determining the nonlinear parameters of a motor provided by the present invention can be applied to the application environment shown in FIG. 1 , and the application environment may include a computer device 140 , a capture card 150 , a power amplifier 160 , a signal amplifier 170 , and a motor to be tested 110 . Wherein, the computer device 140 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc.; the motor 110 can include LRA (Linear Resonance Actuator, linear motor), which belongs to a kind of linear motor applied to smart phones . The motor 110 can be placed on the sponge 130 to improve the testing accuracy of the motor 110 . In some test scenarios, a tool 120 can be placed between the motor 110 and the sponge 130 , so that the tool 120 can be used to support the motor 110 , and the motor vibrator acceleration data can be collected during the motor 110 test.
具体的,基于上述场景,测试人员可在计算机设备140生成马达110的激励信号,该激励信号一般是数字信号,通过采集卡150将激励信号从数字信号的形式转化为模拟信号的形式,接着通过功率放大器160将激励信号加载到马达110两端进行激励以驱动马达110振动,在振动状态下可获取马达110的两端电压测量值、马达电流测量值以及马达振子加速度测量值。在得到马达振子加速度测量值后,计算机设备140可基于该马达振子加速度测量值获得马达110的振子速度与振子位移,以及基于所构造的包含马达非线性参数的非线性模型,构建与该非线性模型关联的超定方程组,根据电压测量值、马达电流测量值以及马达振子加速度测量值拟合超定方程组,获得非线性参数。Specifically, based on the above scenario, the tester can generate the excitation signal of the motor 110 in the computer device 140, the excitation signal is generally a digital signal, the excitation signal is converted from the digital signal to the analog signal through the acquisition card 150, and then the The power amplifier 160 loads the excitation signal to the two ends of the motor 110 for excitation to drive the motor 110 to vibrate. In the vibration state, the measured value of the voltage at both ends of the motor 110, the measured value of the motor current and the measured value of the acceleration of the motor vibrator can be obtained. After obtaining the motor vibrator acceleration measurement value, the computer device 140 may obtain the vibrator velocity and the vibrator displacement of the motor 110 based on the motor vibrator acceleration measurement value, and based on the constructed nonlinear model including the motor non-linear parameters, construct a non-linear The overdetermined equations associated with the model fit the overdetermined equations according to the measured voltage, motor current and acceleration of the motor oscillator to obtain nonlinear parameters.
基于如上场景可实施本发明提供的确定马达非线性参数的方法,从而能够在计算机设备140上利用激励信号驱动马达110振动后,获取振动状态下马达110两端电压、电流和加速度,并利用加速度测量值获得马达110的振子速度与振子位移,以此对与非线性模型关联的超定方程组进行拟合从而获得马达非线性参数,提高马达110测试过程中确定马达110非线性参数的精度和效率,有助于缩短马达非线性参数的测试时间,使用该非线性模型进行信号设计,可提升仿真信号和实测信号的相似度,为精确触觉反馈效果设计提供了支撑。Based on the above scenario, the method for determining the nonlinear parameters of the motor provided by the present invention can be implemented, so that after driving the motor 110 to vibrate with the excitation signal on the computer device 140, the voltage, current and acceleration at both ends of the motor 110 in the vibration state can be obtained, and the acceleration can be obtained by using the acceleration signal. The measured value obtains the vibrator speed and the vibrator displacement of the motor 110, so as to fit the overdetermined equations associated with the nonlinear model to obtain the motor nonlinear parameters, and improve the accuracy and accuracy of determining the nonlinear parameters of the motor 110 during the testing process of the motor 110. Efficiency helps to shorten the test time of the nonlinear parameters of the motor. Using the nonlinear model for signal design can improve the similarity between the simulated signal and the measured signal, and provide support for the design of accurate haptic feedback effects.
下面结合实施例和附图对本发明提供的确定马达非线性参数的方法作进一 步说明。The method for determining the nonlinear parameters of a motor provided by the present invention will be further described below with reference to the embodiments and the accompanying drawings.
在一个实施例中,如图2所示,提供了一种确定马达非线性参数的方法,该方法可以由图1中的计算机设备140执行,该方法包括以下步骤:In one embodiment, as shown in FIG. 2, a method of determining a non-linear parameter of a motor is provided, the method may be performed by the computer device 140 in FIG. 1, the method includes the following steps:
步骤S201,构造包含马达非线性参数的非线性模型。Step S201, constructing a nonlinear model including the nonlinear parameters of the motor.
将马达110的经典二阶模型中的部分参数表示为非线性参数(即在马达振子运动过程中不是常数)即构成马达110的非线性模型。在对马达110的非线性模型中的非线性参数进行估计时,该非线性模型所包含的非线性参数都可作为待估计的非线性参数。可将非线性参数通过多项式进行表示,本步骤中,计算机设备140可构造包含马达非线性参数的非线性模型,并获取非线性参数所对应的多项式表示。其中,非线性参数可以采用多项式近似表示为随某个或者某些变量变化的量,而多项式具有相应的各阶系数。Part of the parameters in the classical second-order model of the motor 110 are expressed as nonlinear parameters (that is, not constant during the motion of the motor oscillator) to constitute the nonlinear model of the motor 110 . When estimating the nonlinear parameters in the nonlinear model of the motor 110 , all the nonlinear parameters included in the nonlinear model can be used as the nonlinear parameters to be estimated. The nonlinear parameters may be represented by polynomials. In this step, the computer device 140 may construct a nonlinear model including the nonlinear parameters of the motor, and obtain the polynomial representation corresponding to the nonlinear parameters. Among them, the nonlinear parameters can be approximated by polynomials that vary with one or some variables, and the polynomials have corresponding coefficients of each order.
示例性的,马达110的经典二阶模型可以采用如下(1)和(2)式进行表示:Exemplarily, the classical second-order model of the motor 110 can be represented by the following equations (1) and (2):
Figure PCTCN2020138329-appb-000001
Figure PCTCN2020138329-appb-000001
Bli=ma+R mv+K mx     (2) Bli=ma+R m v+K m x (2)
其中,(1)式为电方程,(2)式为机械方程。其中,u表示马达两端电压、i表示马达电流、x表示马达振子位移、v表示马达振子速度、a表示马达振子加速度、R e表示马达电阻、L e表示马达电感、Bl表示马达电磁力系数、m表示马达振子质量、K m表示马达弹簧劲度系数和R m表示马达阻尼。 Among them, the formula (1) is an electrical equation, and the formula (2) is a mechanical equation. Among them, u is the voltage across the motor, i is the motor current, x is the displacement of the motor vibrator, v is the speed of the motor vibrator, a is the acceleration of the motor vibrator, Re is the motor resistance, L e is the motor inductance, and Bl is the motor electromagnetic force coefficient , m represents the mass of the motor vibrator, K m represents the motor spring stiffness coefficient and R m represents the motor damping.
在上(1)和(2)式的基础上,一般考虑将这些参数表示为非线性参数:L e、Bl、R m和K m。可以将这些非线性参数近似表示为随例如振子位移、振子速度和振子加速度等变量的多项式形式,在一些工程应用中,可以将部分影响较小的非线性参数进行忽略处理。为了便于描述,本发明将上式(1)中马达电感L e忽略的影响忽略,以位移x和速度v将马达电磁力系数Bl、马达弹簧劲度系数K m和马达阻尼R m通过多项式进行表示,具体的,马达110的非线性模型可以采用如下(3)和(4)式进行表示: On the basis of the above equations (1) and (2), these parameters are generally considered to be expressed as nonlinear parameters: Le, Bl , Rm and Km . These nonlinear parameters can be approximated as polynomial forms with variables such as oscillator displacement, oscillator velocity, and oscillator acceleration. In some engineering applications, some nonlinear parameters with less influence can be ignored. For the convenience of description, the present invention ignores the neglected influence of the motor inductance L e in the above formula (1), and uses the displacement x and the speed v to calculate the motor electromagnetic force coefficient Bl, the motor spring stiffness coefficient K m and the motor damping R m through polynomials. Specifically, the nonlinear model of the motor 110 can be expressed by the following equations (3) and (4):
u=R ei+Bl(x)v    (3) u= Re i+Bl(x)v (3)
Bl(x)i=ma+R m(v)v+K m(x)x   (4) Bl(x)i=ma+ Rm (v)v+ Km (x)x(4)
其中,(3)式和(4)式分别为电方程、机械方程的非线性表达形式,即马达110的非线性模型可以包括电方程和机械方程;其中,非线性参数包括马达电磁力系数Bl、马达弹簧劲度系数K m和马达阻尼R m,分别被表示为: Wherein, equations (3) and (4) are nonlinear expressions of electrical equations and mechanical equations, respectively, that is, the nonlinear model of the motor 110 may include electrical equations and mechanical equations; wherein, the nonlinear parameters include the motor electromagnetic force coefficient B1 , the motor spring stiffness coefficient K m and the motor damping R m , respectively expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4    (5) Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4 (5)
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4    (6) K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4 (6)
R m(v)=R m0+R m1v+R m2v 2    (7) Rm (v)= Rm0 + Rm1v + Rm2v2 (7)
其中,上式(5)至(7)分别为马达电磁力系数Bl、马达弹簧劲度系数K m和马达阻尼R m的多项式表示,Bl 0至Bl 4为马达电磁力系数Bl的各阶系数,振子位移x为马达电磁力系数Bl对应的变量,同理,K m0至K m4为马达弹簧劲度系数K m的各阶系数,振子位移x为马达弹簧劲度系数K m对应的变量,R m0至R m2为马达阻尼R m的各阶系数,速度v为马达阻尼R m对应的变量。 Wherein, the above equations (5) to (7) are respectively the polynomial representation of the motor electromagnetic force coefficient B1, the motor spring stiffness coefficient K m and the motor damping R m , and B1 0 to B1 4 are the coefficients of each order of the motor electromagnetic force coefficient B1 , the vibrator displacement x is the variable corresponding to the motor electromagnetic force coefficient B1, and similarly, K m0 to K m4 are the coefficients of each order of the motor spring stiffness coefficient K m , and the vibrator displacement x is the variable corresponding to the motor spring stiffness coefficient K m , R m0 to R m2 are the coefficients of each order of the motor damping R m , and the speed v is the variable corresponding to the motor damping R m .
本步骤中,计算机设备140可获取由上式(3)和(4)表示的非线性模型,而该非线性模式所包含的非线性参数由上式(5)至(7)表示。In this step, the computer device 140 can obtain the nonlinear model represented by the above equations (3) and (4), and the nonlinear parameters included in the nonlinear model are represented by the above equations (5) to (7).
步骤S202,利用激励信号驱动马达振动,获取振动状态下马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值。Step S202 , using the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current, and the measured value of the acceleration of the motor vibrator in the vibration state.
本步骤中,计算机设备140可利用激励信号驱动马达110振动,马达110受该驱动处于振动状态,计算机设备140获取处于振动状态下马达110的两端电压测量值、马达电流测量值以及马达振子加速度测量值。在一些实施例中,激励信号可由计算机设备140生成,激励信号的具体形式可以由多种,例如激励信号可以包括马达110的额定电压谐振频率处的单频信号、宽频信号或者白噪声信号等。In this step, the computer device 140 can use the excitation signal to drive the motor 110 to vibrate, the motor 110 is in a vibrating state by the drive, and the computer device 140 obtains the measured value of the voltage at both ends of the motor 110 under the vibration state, the measured value of the motor current and the acceleration of the motor vibrator Measurements. In some embodiments, the excitation signal may be generated by the computer device 140 , and the excitation signal may have various specific forms. For example, the excitation signal may include a single frequency signal, a broadband signal, or a white noise signal at the rated voltage resonance frequency of the motor 110 .
步骤S203,基于马达振子加速度测量值获得马达的振子速度与位移。Step S203, obtaining the speed and displacement of the motor's vibrator based on the measured value of the motor's vibrator's acceleration.
本步骤中,计算机设备140可以根据加速度、速度和位移之间的关系,基于马达振子加速度测量值分别计算出马达的振子速度与马达的振子位移。In this step, the computer device 140 may calculate the speed of the vibrator of the motor and the displacement of the vibrator of the motor respectively based on the measured value of the acceleration of the motor vibrator according to the relationship between the acceleration, the speed and the displacement.
在一些实施例中,计算机设备140可对马达振子加速度测量值进行积分处理分别获得该振子速度与振子位移。本实施例中,基于加速度、速度和位移的力 学关系,计算机设备140可将马达振子加速度在时间上进行一次积分获得马达的振子速度,将马达振子加速度在时间上进行二次积分获得马达的振子位移,通过这种方式能够简化对马达110的振子速度与振子位移的测量复杂度。具体的,计算机设备140可在多个时间采集点采集处于振动状态的马达110的马达振子加速度测量值,然后计算机设备140利用速度与加速度之间的关系,可将多个时间采集点采集的马达振子加速度测量值在时间上进行一次积分,得到马达110的振子速度;将多个时间采集点采集的马达振子加速度测量值在时间上进行二次积分,得到马达110的振子位移,完成从马达振子加速度分别到振子速度与振子位移的转换,无需另置速度、位移测量设备即可获取振子速度与振子位移数据。In some embodiments, the computer device 140 may perform integration processing on the measured value of the acceleration of the motor vibrator to obtain the vibrator velocity and the vibrator displacement, respectively. In this embodiment, based on the mechanical relationship between acceleration, velocity and displacement, the computer device 140 can integrate the acceleration of the motor vibrator once in time to obtain the vibrator speed of the motor, and integrate the acceleration of the motor vibrator twice in time to obtain the vibrator of the motor In this way, the measurement complexity of the vibrator speed and the vibrator displacement of the motor 110 can be simplified. Specifically, the computer device 140 can collect the acceleration measurement values of the motor vibrator of the motor 110 in a vibrating state at multiple time collection points, and then the computer device 140 can use the relationship between the speed and the acceleration to collect the motor values collected at the multiple time collection points The vibrator acceleration measurement value is integrated once in time to obtain the vibrator speed of the motor 110; the motor vibrator acceleration measurement value collected from multiple time collection points is integrated twice in time to obtain the vibrator displacement of the motor 110, and the motor vibrator displacement is completed. The acceleration is converted to the vibrator velocity and the vibrator displacement, respectively, and the vibrator velocity and the vibrator displacement data can be obtained without the need for additional velocity and displacement measurement equipment.
步骤S204,基于非线性模型构建与非线性模型关联的超定方程组。Step S204, constructing an overdetermined equation system associated with the nonlinear model based on the nonlinear model.
其中,超定方程组是指方程个数大于未知量个数的方程组。本步骤中,计算机设备140构建与非线性模型关联的超定方程组。具体的,计算机设备140可以在由上(3)和(4)式表示的非线性模型中将非线性参数采用上(5)至(7)式进行表示,从而可构建出与非线性模型关联的超定方程组。Among them, the overdetermined equation system refers to the equation system whose number of equations is greater than the number of unknowns. In this step, the computer device 140 constructs a system of overdetermined equations associated with the nonlinear model. Specifically, the computer device 140 can use the above equations (5) to (7) to express the nonlinear parameters in the nonlinear model represented by the above equations (3) and (4), so as to construct a relationship with the nonlinear model The overdetermined system of equations.
一方面,根据电方程(3)和马达电磁力系数Bl的多项式表示(5),可构建与电方程(3)关联的如下超定方程组(8):On the one hand, according to the electrical equation (3) and the polynomial representation (5) of the motor electromagnetic force coefficient Bl, the following overdetermined equation system (8) can be constructed related to the electrical equation (3):
A eC e=Y e     (8) A e C e =Y e (8)
其中:in:
Figure PCTCN2020138329-appb-000002
Figure PCTCN2020138329-appb-000002
Figure PCTCN2020138329-appb-000003
Figure PCTCN2020138329-appb-000003
Figure PCTCN2020138329-appb-000004
Figure PCTCN2020138329-appb-000004
另一方面,根据机械方程(4)和马达电磁力系数Bl、马达弹簧劲度系数K m和马达阻尼R m的多项式表示(5)至(7),可构建与机械方程(4)关联的如下超定方程组(12): On the other hand, from the mechanical equation (4) and the polynomial representations (5) to (7) of the motor electromagnetic force coefficient Bl, the motor spring stiffness coefficient Km , and the motor damping Rm , it is possible to construct the related mechanical equation (4) The following overdetermined system of equations (12):
A mC m=Y m    (12) A m C m = Y m (12)
其中:in:
Figure PCTCN2020138329-appb-000005
Figure PCTCN2020138329-appb-000005
Figure PCTCN2020138329-appb-000006
Figure PCTCN2020138329-appb-000006
Figure PCTCN2020138329-appb-000007
Figure PCTCN2020138329-appb-000007
其中,[·]用于表示第·个采样点,n表示总采样点数。Among them, [ ] is used to represent the th sampling point, and n represents the total number of sampling points.
步骤S205,根据电压测量值、马达电流测量值以及马达振子加速度测量值拟合超定方程组,获得非线性参数。Step S205 , fitting an overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor vibrator acceleration measurement value to obtain nonlinear parameters.
本步骤中,计算机设备140可对如上超定方程组(8)和超定方程组(12)进行求解,具体可以采用最小二乘法基于已知的马达110的电压测量值、马达电流测量值、马达振子加速度测量值以及振子速度和振子位移拟合上述超定方程组(8)和(12)。具体的,对于超定方程组(8)的非线性参数系数矩阵C e的最小二乘解(16)为: In this step, the computer device 140 can solve the overdetermined equations (8) and the overdetermined equations (12) above. Specifically, the least squares method can be used based on the known voltage measurement value of the motor 110, motor current measurement value, The motor oscillator acceleration measurements as well as the oscillator velocity and oscillator displacement fit the overdetermined equations (8) and (12) above. Specifically, the least squares solution (16) for the nonlinear parameter coefficient matrix C e of the overdetermined equation system (8) is:
C e=inv(A e TA e)·(A e TY e)   (16) C e =inv(A e T A e )·(A e T Y e ) (16)
对于超定方程组(12)的非线性参数系数矩阵C m的最小二乘解(17)为: The least squares solution (17) for the nonlinear parametric coefficient matrix C m of the overdetermined system of equations (12) is:
C m=inv(A m TA m)·(A m TY m)   (17)。 C m =inv(A m T A m )·(A m T Y m ) (17).
计算机设备140经过上述求解得到马达110的非线性模型中的各个非线性参数相应的各项系数后,对马达110的非线性参数估计过程即完成,从而也精确高效地确定出非线性模型中以多项式进行表达的每个非线性参数,使用该马达110的非线性模型进行信号设计,可提升仿真信号和实测信号的相似度,为精确触觉反馈效果设计提供了支撑,使之满足精确触觉反馈效果设计需求。After the computer device 140 obtains the coefficients corresponding to each nonlinear parameter in the nonlinear model of the motor 110 through the above solution, the estimation process of the nonlinear parameter of the motor 110 is completed, thereby accurately and efficiently determining the coefficients in the nonlinear model. For each nonlinear parameter expressed by a polynomial, the nonlinear model of the motor 110 is used for signal design, which can improve the similarity between the simulated signal and the measured signal, and provide support for the design of precise haptic feedback effects to meet the precise haptic feedback effects. design requirements.
上述确定马达非线性参数的方法,计算机设备140可获取所构造的马达非线性参数的非线性模型,利用激励信号驱动马达110振动,获取振动状态下该马达110的两端电压测量值、马达电流测量值以及马达振子加速度测量值,然后计算机设备140基于马达振子加速度测量值获得马达的振子速度与振子位移,接着计算机设备140基于非线性模型构建与该非线性模型关联的超定方程组,并根据前述电压测量值、马达电流测量值以及马达振子加速度测量值拟合该超定方程组,获得前述非线性参数,计算机设备140能够利用激励信号驱动马达110振动后,获取振动状态下马达两端电压、电流和加速度,并利用加速度测量值获 得马达110的振子速度与振子位移,以此对与非线性模型关联的超定方程组进行拟合从而获得马达非线性参数,提高马达110测试过程中确定马达非线性参数的精度和效率。In the above method for determining the nonlinear parameters of the motor, the computer device 140 can obtain the constructed nonlinear model of the nonlinear parameters of the motor, use the excitation signal to drive the motor 110 to vibrate, and obtain the measured value of the voltage at both ends of the motor 110 and the motor current under the vibration state. measurement value and the motor vibrator acceleration measurement value, then the computer device 140 obtains the motor's vibrator velocity and the vibrator displacement based on the motor vibrator acceleration measurement value, and then the computer device 140 constructs an overdetermined equation system associated with the nonlinear model based on the nonlinear model, and The overdetermined equations are fitted according to the aforementioned voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the aforementioned nonlinear parameters. voltage, current and acceleration, and use the acceleration measurement values to obtain the vibrator speed and the vibrator displacement of the motor 110, so as to fit the overdetermined equations associated with the nonlinear model to obtain the motor nonlinear parameters, and improve the motor 110 test process. Determine the accuracy and efficiency of motor nonlinear parameters.
在一些实施例中,上述步骤S202中的利用激励信号驱动马达振动,获取振动状态下马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值,可以包括:In some embodiments, the use of the excitation signal to drive the motor to vibrate in the above step S202 to obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator in the vibration state may include:
利用工装件支撑马达,通过测量工装件的加速度测量值计算马达振子加速度测量值。The motor is supported by the tool, and the measured value of the acceleration of the motor oscillator is calculated by measuring the measured value of the acceleration of the tool.
如图1所示,本实施例中,可利用工装件120支撑马达110,由此,计算机设备140可通过测量工装件120的加速度测量值计算出马达振子加速度测量值。其中,工装件120的加速度测量值与马达振子加速度测量值满足如下关系:As shown in FIG. 1 , in this embodiment, the motor 110 can be supported by the tool 120 , so that the computer device 140 can calculate the acceleration measurement value of the motor vibrator by measuring the acceleration measurement value of the tool 120 . Wherein, the acceleration measurement value of the tooling piece 120 and the motor vibrator acceleration measurement value satisfy the following relationship:
a=A fm f/m a=A f m f /m
其中,A f为工装件120的加速度,m f为工装件120的质量,m为马达振子质量,a为马达振子加速度。通过上述加速度关系,计算机设备140可根据采集的工装件120的加速度测量值转化为马达振子加速度测量值。 Among them, A f is the acceleration of the fixture 120 , m f is the mass of the fixture 120 , m is the mass of the motor vibrator, and a is the acceleration of the motor vibrator. Through the above acceleration relationship, the computer device 140 can convert the acquired acceleration measurement value of the tooling piece 120 into a motor vibrator acceleration measurement value.
进一步的,在一些实施例中,在步骤S205的根据电压测量值、马达电流测量值以及马达振子加速度测量值拟合超定方程组之前,上述方法还可以包括如下步骤:Further, in some embodiments, before fitting the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value in step S205, the above method may further include the following steps:
利用信号放大器对工装件120的加速度测量值进行放大处理。其中,该信号放大器的放大倍数一般为1-10倍等,目的是为了减小采集卡处模数转换的数据量化误差。本实施例中,从工装件120所采集的加速度测量值可以经过信号放大器170、采集卡150传输至计算机设备140,该信号放大器170所接收的加速度测量值是工装件120的加速度测量值,而计算机设备140所需要的是马达振子加速度测量值。本实施例可利用信号放大器170完成从工装件120的加速度测量值到马达振子加速度测量值的转化,即利用信号放大器170对工装件120的加速度测量值进行放大处理,且该信号放大器170的放大倍数可设为1-10倍,减小采集卡处模数转换的数据量化误差。A signal amplifier is used to amplify the acceleration measurement value of the tooling piece 120 . Among them, the magnification of the signal amplifier is generally 1-10 times, etc., the purpose is to reduce the data quantization error of the analog-to-digital conversion at the acquisition card. In this embodiment, the acceleration measurement value collected from the fixture 120 can be transmitted to the computer device 140 through the signal amplifier 170 and the acquisition card 150. The acceleration measurement value received by the signal amplifier 170 is the acceleration measurement value of the fixture 120, while What the computer device 140 needs is a measurement of the motor vibrator acceleration. In this embodiment, the signal amplifier 170 can be used to complete the conversion from the acceleration measurement value of the tool 120 to the motor vibrator acceleration measurement value, that is, the signal amplifier 170 is used to amplify the acceleration measurement value of the tool 120, and the signal amplifier 170 amplifies the The multiple can be set to 1-10 times to reduce the data quantization error of analog-to-digital conversion at the acquisition card.
应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但 是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the above flow chart are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution sequence of these steps or stages It is also not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of a step or phase within the other steps.
在一个实施例中,如图3所示,提供了一种确定马达非线性参数的装置,该装置300可以包括:In one embodiment, as shown in FIG. 3, an apparatus for determining a non-linear parameter of a motor is provided, and the apparatus 300 may include:
模型构造模块301,用于构造包含马达非线性参数的非线性模型;A model construction module 301, configured to construct a nonlinear model including the nonlinear parameters of the motor;
测量值获取模块302,用于利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;The measurement value acquisition module 302 is used to drive the motor to vibrate by using the excitation signal, and acquire the measurement value of the voltage at both ends of the motor, the measurement value of the motor current and the measurement value of the acceleration of the motor vibrator under the vibration state;
速度位移获得模块303,用于基于所述马达振子加速度测量值获得所述马达的振子速度与位移;a velocity displacement obtaining module 303, configured to obtain the velocity and displacement of the vibrator of the motor based on the measured value of the acceleration of the vibrator of the motor;
方程组构建模块304,用于基于所述非线性模型构建与所述非线性模型关联的超定方程组;an equation system building module 304 for building an overdetermined equation system associated with the nonlinear model based on the nonlinear model;
非线性参数获得模块305,用于根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;A nonlinear parameter obtaining module 305, configured to fit the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value, to obtain the nonlinear parameter;
其中,所述非线性模型表示为:Wherein, the nonlinear model is expressed as:
u=R ei+Bl(x)v u= Re i+Bl(x)v
Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
所述非线性参数表示为:The nonlinear parameters are expressed as:
Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
在一个实施例中,速度位移获得模块303,进一步用于对所述马达振子加速度测量值进行积分处理分别获得所述振子速度与振子位移。In one embodiment, the velocity displacement obtaining module 303 is further configured to perform integration processing on the acceleration measurement value of the motor vibrator to obtain the vibrator velocity and the vibrator displacement, respectively.
在一个实施例中,所述激励信号为单频信号或者白噪声信号。In one embodiment, the excitation signal is a single frequency signal or a white noise signal.
在一个实施例中,非线性参数获得模块305,进一步用于利用最小二乘法拟合所述超定方程组。In one embodiment, the nonlinear parameter obtaining module 305 is further configured to fit the overdetermined system of equations using the least squares method.
在一个实施例中,测量值获取模块302,进一步用于利用工装件支撑所述马达,通过测量所述工装件的加速度测量值计算所述马达振子加速度测量值,所述工装件的加速度测量值与所述马达振子加速度测量值满足:a=A fm f/m;其中,A f为工装加速度,m f为工装质量,m为马达振子质量,a为马达振子加速度。 In one embodiment, the measurement value acquisition module 302 is further configured to support the motor by a tool, and calculate the acceleration measurement value of the motor vibrator by measuring the acceleration measurement value of the tool, and the acceleration measurement value of the tool The measured value of the acceleration of the motor vibrator satisfies: a=A f m f /m; wherein, A f is the acceleration of the tool, m f is the mass of the tool, m is the mass of the motor vibrator, and a is the acceleration of the motor vibrator.
在一个实施例中,上述装置300还包括:放大处理模块,用于利用信号放大器对所述工装件的加速度测量值进行放大处理,所述信号放大器的放大倍数为1-10倍。In one embodiment, the above-mentioned apparatus 300 further includes: an amplification processing module, configured to perform amplification processing on the acceleration measurement value of the tooling by using a signal amplifier, and the amplification factor of the signal amplifier is 1-10 times.
关于确定马达非线性参数的装置的具体限定可以参见上文中对于确定马达非线性参数的方法的限定,在此不再赘述。上述确定马达非线性参数的装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the apparatus for determining the non-linear parameter of the motor, reference may be made to the definition of the method for determining the non-linear parameter of the motor above, which will not be repeated here. Each module in the above-mentioned apparatus for determining non-linear parameters of a motor may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,其内部结构图可以如图4所示。该计算机设备400包括通过系统总线连接的处理器401、存储器、通信接口402、显示屏403和输入装置404。其中,该计算机设备的处理器401用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质405、内存储器406。该非易失性存储介质405存储有操作系统4051和计算机程序4052。该内存储器406为非易失性存储介质中的操作系统4051和计算机程序4052的运行提供环境。该计算机设备的通信接口402用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序4052被处理器401执行时以实现一种确定马达非线性参数的方法。该计算机设备的显示屏403可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置404可以是显示屏403上覆盖的触摸层,也可以是计算机 设备400外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, the internal structure of which can be shown in FIG. 4 . The computer device 400 includes a processor 401, a memory, a communication interface 402, a display screen 403, and an input device 404 connected by a system bus. The processor 401 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 405 and an internal memory 406 . The nonvolatile storage medium 405 stores an operating system 4051 and a computer program 4052 . The internal memory 406 provides an environment for the execution of the operating system 4051 and the computer program 4052 in the non-volatile storage medium. The communication interface 402 of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies. The computer program 4052, when executed by the processor 401, implements a method of determining non-linear parameters of a motor. The display screen 403 of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device 404 of the computer equipment may be a touch layer covered on the display screen 403 , or a button or a trackball provided on the shell of the computer equipment 400 . Or a trackpad, or an external keyboard, trackpad, or mouse, etc.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的计算机设备400的限定,具体的计算机设备400可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 400 to which the solution of the present invention is applied. The specific computer device 400 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is also provided, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.
在一个实施例中,提供了一种非易失性计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a non-volatile computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求 为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are more specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be determined by the appended claims.

Claims (10)

  1. 一种确定马达非线性参数的方法,其特征在于,所述方法包括:A method for determining non-linear parameters of a motor, characterized in that the method comprises:
    构造包含马达非线性参数的非线性模型;Construct a nonlinear model containing the nonlinear parameters of the motor;
    利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;Use the excitation signal to drive the motor to vibrate, and obtain the measured value of the voltage at both ends of the motor, the measured value of the motor current and the measured value of the acceleration of the motor vibrator under the vibration state;
    基于所述马达振子加速度测量值获得所述马达的振子速度与位移;Obtaining the vibrator velocity and displacement of the motor based on the motor vibrator acceleration measurements;
    基于所述非线性模型构建与所述非线性模型关联的超定方程组;constructing an overdetermined system of equations associated with the nonlinear model based on the nonlinear model;
    根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;Fitting the set of overdetermined equations according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the nonlinear parameter;
    其中,所述非线性模型表示为:Wherein, the nonlinear model is expressed as:
    u=R ei+Bl(x)v u= Re i+Bl(x)v
    Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
    u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
    所述非线性参数表示为:The nonlinear parameters are expressed as:
    Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
    K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
    R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述马达振子加速度测量值获得所述马达的振子速度与位移,包括:对所述马达振子加速度测量值进行积分处理分别获得所述振子速度与振子位移。The method according to claim 1, wherein the obtaining the vibrator velocity and displacement of the motor based on the motor vibrator acceleration measurement value comprises: integrating the motor vibrator acceleration measurement value to obtain the motor vibrator acceleration measurement value, respectively. The oscillator velocity and oscillator displacement.
  3. 根据权利要求1所述的方法,其特征在于,所述激励信号为单频信号或者白噪声信号。The method according to claim 1, wherein the excitation signal is a single frequency signal or a white noise signal.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,包括:The method according to claim 1, wherein the fitting of the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value comprises:
    利用最小二乘法拟合所述超定方程组。The overdetermined system of equations is fitted using the least squares method.
  5. 根据权利要求1所述的方法,其特征在于,所述利用激励信号驱动马达 振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值,包括:method according to claim 1, is characterized in that, described utilizing excitation signal to drive motor to vibrate, obtain the two-terminal voltage measurement value, motor current measurement value and motor vibrator acceleration measurement value of described motor under the vibration state, comprise:
    利用工装件支撑所述马达,通过测量所述工装件的加速度测量值计算所述马达振子加速度测量值,所述工装件的加速度测量值与所述马达振子加速度测量值满足:a=A fm f/m; Use a tool to support the motor, and calculate the acceleration measurement value of the motor oscillator by measuring the acceleration measurement value of the tool. The acceleration measurement value of the tool and the motor oscillator acceleration measurement value satisfy: a=A f m f /m;
    其中,A f为工装加速度,m f为工装质量,m为马达振子质量,a为马达振子加速度。 Among them, A f is the acceleration of the tool, m f is the mass of the tool, m is the mass of the motor vibrator, and a is the acceleration of the motor vibrator.
  6. 根据权利要求5所述的方法,其特征在于,在所述根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组之前,所述方法还包括:利用信号放大器对所述工装件的加速度测量值进行放大处理。The method according to claim 5, characterized in that before fitting the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value, the method further comprises: : Use a signal amplifier to amplify the measured acceleration value of the tooling.
  7. 一种确定马达非线性参数的装置,其特征在于,包括:A device for determining non-linear parameters of a motor, comprising:
    模型构造模块,用于构造包含马达非线性参数的非线性模型;A model construction module for constructing a nonlinear model containing the nonlinear parameters of the motor;
    测量值获取模块,用于利用激励信号驱动马达振动,获取振动状态下所述马达的两端电压测量值、马达电流测量值以及马达振子加速度测量值;a measurement value acquisition module, used to drive the motor to vibrate by using the excitation signal, and acquire the measurement value of the voltage at both ends of the motor, the measurement value of the motor current and the measurement value of the acceleration of the motor vibrator under the vibration state;
    速度位移获得模块,用于基于所述马达振子加速度测量值获得所述马达的振子速度与位移;a velocity displacement obtaining module, configured to obtain the velocity and displacement of the vibrator of the motor based on the measured value of the acceleration of the vibrator of the motor;
    方程组构建模块,用于基于所述非线性模型构建与所述非线性模型关联的超定方程组;a system of equations building module for building an overdetermined system of equations associated with the nonlinear model based on the nonlinear model;
    非线性参数获得模块,用于根据所述电压测量值、马达电流测量值以及所述马达振子加速度测量值拟合所述超定方程组,获得所述非线性参数;a nonlinear parameter obtaining module, configured to fit the overdetermined equation system according to the voltage measurement value, the motor current measurement value and the motor oscillator acceleration measurement value to obtain the nonlinear parameter;
    其中,所述非线性模型表示为:Wherein, the nonlinear model is expressed as:
    u=R ei+Bl(x)v u= Re i+Bl(x)v
    Bl(x)i=ma+R m(v)v+K m(x)x Bl(x)i=ma+ Rm (v)v+ Km (x)x
    u为马达两端电压;i为马达电流;x为振子位移;v为振子速度;a为马达振子加速度;R e为马达电阻;Bl(x)为马达电磁力系数;K m(x)为马达弹簧劲度系数;R m(v)为马达阻尼;m为马达振子质量; u is the voltage across the motor; i is the motor current; x is the vibrator displacement; v is the vibrator speed; a is the motor vibrator acceleration; Re is the motor resistance; Bl(x) is the motor electromagnetic force coefficient; K m (x) is Motor spring stiffness coefficient; R m (v) is motor damping; m is motor vibrator mass;
    所述非线性参数表示为:The nonlinear parameters are expressed as:
    Bl(x)=Bl 0+Bl 1x+Bl 2x 2+Bl 3x 3+Bl 4x 4 Bl(x)=Bl 0 +Bl 1 x +Bl 2 x 2 +Bl 3 x 3 +Bl 4 x 4
    K m(x)=K m0+K m1x+K m2x 2+K m3x 3+K m4x 4 K m (x)=K m0 +K m1 x+K m2 x 2 +K m3 x 3 +K m4 x 4
    R m(v)=R m0+R m1v+R m2v 2 Rm (v)= Rm0 + Rm1v + Rm2v2 .
  8. 根据权利要求7所述的装置,其特征在于,所述速度位移获得模块,进一步用于对所述马达振子加速度测量值进行积分处理分别获得所述振子速度与振子位移。The device according to claim 7, wherein the velocity displacement obtaining module is further configured to perform integration processing on the acceleration measurement value of the motor oscillator to obtain the oscillator velocity and the oscillator displacement, respectively.
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
  10. 一种非易失性计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。A non-volatile computer-readable storage medium on which a computer program is stored, 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.
PCT/CN2020/138329 2020-11-30 2020-12-22 Method and apparatus for determining nonlinear parameter of motor, and device and storage medium WO2022110413A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011373145.8A CN112528473A (en) 2020-11-30 2020-11-30 Method, device, equipment and storage medium for determining motor non-linear parameter
CN202011373145.8 2020-11-30

Publications (1)

Publication Number Publication Date
WO2022110413A1 true WO2022110413A1 (en) 2022-06-02

Family

ID=74995104

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138329 WO2022110413A1 (en) 2020-11-30 2020-12-22 Method and apparatus for determining nonlinear parameter of motor, and device and storage medium

Country Status (2)

Country Link
CN (1) CN112528473A (en)
WO (1) WO2022110413A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113702829B (en) * 2021-08-31 2024-03-08 歌尔股份有限公司 Method and device for generating sweep frequency characteristic curve of vibration motor and storage medium
CN113739686A (en) * 2021-09-27 2021-12-03 歌尔股份有限公司 Vibration unit displacement detection method, state detection circuit, device, and medium
CN113959320A (en) * 2021-10-22 2022-01-21 歌尔股份有限公司 Vibrator displacement detection method, device, equipment and storage medium for vibration device
CN116384031A (en) * 2021-12-24 2023-07-04 武汉市聚芯微电子有限责任公司 Simulation method and device for motor vibration effect

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
US20180095132A1 (en) * 2016-10-04 2018-04-05 Dräger Safety AG & Co. KGaA Testing device and method for testing a vibration motor arranged in a device
CN109696630A (en) * 2018-12-20 2019-04-30 聚辰半导体股份有限公司 A kind of voice coil motor parameter self-sensing method
CN110146810A (en) * 2019-04-23 2019-08-20 瑞声科技(新加坡)有限公司 A kind of determination method and device of linear motor test parameter
CN110346720A (en) * 2019-06-28 2019-10-18 瑞声科技(新加坡)有限公司 A kind of test method and device of motor nonlinear parameter
CN110502111A (en) * 2019-08-09 2019-11-26 瑞声科技(新加坡)有限公司 Motor signal compensation method, electronic equipment and storage medium
CN111404438A (en) * 2020-02-25 2020-07-10 华中科技大学 Method and system for tracking and controlling resonant frequency of linear oscillation motor
CN111539089A (en) * 2019-12-30 2020-08-14 瑞声科技(新加坡)有限公司 Motor nonlinear model judgment method and system
CN111965537A (en) * 2020-06-30 2020-11-20 瑞声新能源发展(常州)有限公司科教城分公司 Motor parameter testing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10904663B2 (en) * 2019-04-25 2021-01-26 Samsung Electronics Co., Ltd. Reluctance force compensation for loudspeaker control
CN111552371B (en) * 2019-12-25 2023-11-03 瑞声科技(新加坡)有限公司 Excitation voltage generation method, device, equipment and medium, test method and system
CN111551848B (en) * 2019-12-30 2022-09-02 瑞声科技(新加坡)有限公司 Motor experience distortion index testing method, electronic equipment and storage medium
CN111679735A (en) * 2020-05-20 2020-09-18 瑞声科技(新加坡)有限公司 Excitation signal generation method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180095132A1 (en) * 2016-10-04 2018-04-05 Dräger Safety AG & Co. KGaA Testing device and method for testing a vibration motor arranged in a device
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
CN109696630A (en) * 2018-12-20 2019-04-30 聚辰半导体股份有限公司 A kind of voice coil motor parameter self-sensing method
CN110146810A (en) * 2019-04-23 2019-08-20 瑞声科技(新加坡)有限公司 A kind of determination method and device of linear motor test parameter
CN110346720A (en) * 2019-06-28 2019-10-18 瑞声科技(新加坡)有限公司 A kind of test method and device of motor nonlinear parameter
CN110502111A (en) * 2019-08-09 2019-11-26 瑞声科技(新加坡)有限公司 Motor signal compensation method, electronic equipment and storage medium
CN111539089A (en) * 2019-12-30 2020-08-14 瑞声科技(新加坡)有限公司 Motor nonlinear model judgment method and system
CN111404438A (en) * 2020-02-25 2020-07-10 华中科技大学 Method and system for tracking and controlling resonant frequency of linear oscillation motor
CN111965537A (en) * 2020-06-30 2020-11-20 瑞声新能源发展(常州)有限公司科教城分公司 Motor parameter testing method

Also Published As

Publication number Publication date
CN112528473A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
WO2022110413A1 (en) Method and apparatus for determining nonlinear parameter of motor, and device and storage medium
CN110346720B (en) Method and device for testing nonlinear parameters of motor
CN110502111B (en) Motor signal compensation method, electronic device, and storage medium
CN110146810B (en) Method and device for determining test parameters of linear motor
CN111551848B (en) Motor experience distortion index testing method, electronic equipment and storage medium
CN113486516A (en) Method, device, equipment and storage medium for determining motor non-linear parameter
WO2021232472A1 (en) Excitation signal generation method and apparatus, terminal, and storage medium
CN110907827B (en) Motor transient distortion measuring method and system
Lei et al. Modeling and inverse compensation of dynamics of base-excited ionic polymer–metal composite sensors
CN112380774B (en) Dynamic modeling method and system based on residual echo state network
Lagerblad et al. Study of a fixed-lag Kalman smoother for input and state estimation in vibrating structures
CN111797483B (en) Method and device for correcting motor equalization electric signal and computer readable storage medium
CN117147022B (en) Force sensor nonlinear compensation method and system
Csurcsia et al. Nonlinear modelling of an F16 benchmark measurement
CN117744319A (en) Thermal coupling reduced order rapid analysis method and device for aeroengine structure
JP3242260B2 (en) Vibration test apparatus for structure, vibration test method for structure, and structure
Yu et al. Nonlinear dynamic compensation of sensors using inverse-model-based neural network
RU2714612C1 (en) Method of identifying nonlinear systems
Dong et al. A user-configurable electric actuator hybrid test platform: Development and applications for viscoelastic damping system seismic testing
CN112883327A (en) High-order precision calculation method for dynamic response of offshore wind power structure
CN117421864A (en) Process determination method, process determination device, computer equipment and storage medium
CN116698324A (en) Vibration control method, device, vibration test stand and storage medium
CN111880092A (en) Chirp signal Hammerstein model system identification method
JP3240757B2 (en) Structure vibration test apparatus and method
WO2021134342A1 (en) Testing method for motor experience distortion index, electronic device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20963301

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20963301

Country of ref document: EP

Kind code of ref document: A1