WO2022134237A1 - Method and apparatus for measuring parameters of motor model, electronic device, and medium - Google Patents

Method and apparatus for measuring parameters of motor model, electronic device, and medium Download PDF

Info

Publication number
WO2022134237A1
WO2022134237A1 PCT/CN2021/071348 CN2021071348W WO2022134237A1 WO 2022134237 A1 WO2022134237 A1 WO 2022134237A1 CN 2021071348 W CN2021071348 W CN 2021071348W WO 2022134237 A1 WO2022134237 A1 WO 2022134237A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
current
voltage
mapping relationship
spectral impedance
Prior art date
Application number
PCT/CN2021/071348
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 WO2022134237A1 publication Critical patent/WO2022134237A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer

Definitions

  • the present invention relates to the technical field of tactile perception, and in particular, to a method, device, electronic device and medium for detecting parameters of a motor model.
  • tactile actuators based on motors can obtain customized tactile experiences by designing their specific signal waveforms.
  • the most used motors are linear motor models based on motion in a certain direction.
  • the bandwidth and vibration direction of unidirectional motors limit the richness of perception, and a linear motor design with single vibrator and two directions appears.
  • the vibrator of the motor can generate vibration in two directions, and can generate a vibration system that moves in two directions.
  • the accuracy and integrity of the technical parameters of the motor are crucial to the accuracy of the model establishment, which directly determines the performance of the motor.
  • the control error of the motor model based on unidirectional vibration is large, and the expected effect cannot be achieved.
  • a method for detecting parameters of a motor model including:
  • spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
  • the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
  • a motor model parameter detection device including an acquisition module, an acquisition module, a calculation module and a fitting module, wherein:
  • the acquisition module is used to acquire the voltage signal and the current signal of the motor in a working state, and the vibrator of the motor vibrates in two directions;
  • the acquisition module is configured to acquire the spectral impedance expression of the preset motor model, and the spectral impedance expression is based on the mapping relationship of the dynamic parameters of the motor in two directions and the relationship between the voltage and the current of the motor. The mapping relationship is determined;
  • the calculation module configured to respectively substitute the voltage signal and the current signal into the spectral impedance expression, and obtain a plurality of spectral impedance values of the motor by calculation;
  • the fitting module is configured to perform fitting calculation on the spectral impedance values of the motor by using the least squares method according to the plurality of spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
  • a motor model parameter detection system which is characterized by comprising a motor to be detected, a voltage and current acquisition device, a driving device, and a motor model parameter detection device, wherein:
  • the voltage and current collection device is connected to the motor to be detected, the motor model parameter detection device is connected to the drive device, and the drive device is connected to the motor to be detected;
  • the voltage and current collection device is used to collect the working voltage value and the working current value of the motor to be detected, and feed them back to the motor model parameter detection device;
  • the drive device is used for the control of the motor model parameter detection device
  • a preset frequency sweep signal is output to drive the motor to be detected;
  • the motor model parameter detection device is configured to perform the steps of the first aspect and any possible implementations thereof.
  • an electronic device comprising a memory and a processor
  • the memory stores a computer program
  • the processor causes the processor to perform the above-mentioned first aspect and the same. Steps for any possible implementation.
  • a storage medium which stores a computer instruction program, and when the computer instruction program is executed by a processor, causes the processor to execute the above-mentioned first aspect and any possible implementation manners thereof. step.
  • the beneficial effects of the present invention are: obtaining the voltage signal and the current signal of the motor in the working state, the vibrator of the motor vibrates in two directions, and obtaining the spectral impedance expression of the preset motor model, the above-mentioned spectral impedance expression Determined according to the mapping relationship between the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and current of the motor, and then substitute the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of The spectral impedance value of the motor is then calculated by fitting the spectral impedance value of the motor by the least squares method according to the plurality of spectral impedance values of the motor, so as to obtain the target spectral impedance parameter of the motor model.
  • the spectral impedance expression of the bidirectional motor can be accurately deduced according to the mapping relationship of its dynamic parameters in the two directions and the mapping relationship between the voltage and current of the motor, and then through the collected data and curve fitting
  • the parameters of the motor model are determined by the method, and a complete and accurate model suitable for the bidirectional motor is established to improve the control accuracy and application effect of the motor.
  • FIG. 1 is a schematic flowchart of a motor model parameter detection method provided by the present invention
  • FIG. 2 is a schematic diagram of a frequency sweep signal provided by the present invention.
  • FIG. 3 is a schematic diagram of an impedance spectrum provided by the present invention.
  • FIG. 4 is a schematic structural diagram of a motor model parameter detection device provided by the present invention.
  • FIG. 5 is a schematic structural diagram of a motor model parameter detection system provided by the present invention.
  • the motor is an electric motor and an engine.
  • the working principle is that the energized coil is forced to rotate in a magnetic field to drive the starter rotor to rotate, and the pinion on the rotor drives the engine flywheel to rotate.
  • haptic actuators based on motors can obtain customized haptic experiences by designing their specific waveforms.
  • the most commonly used motors are linear motor models based on unidirectional motion.
  • FIG. 1 is a schematic flowchart of a method for detecting parameters of a motor model provided by an embodiment of the present invention.
  • the method may include:
  • the execution body of the embodiment of the present invention may be a motor model parameter detection device, and the device can detect the model parameters of the motor.
  • the motor in the embodiment of the present invention may be a single vibrator bidirectional motor, that is, the vibrator of the motor may vibrate in two directions, thereby generating a vibration system that moves in two directions.
  • the motor model parameter detection device can obtain the working voltage and corresponding working current of the motor, and specifically can collect the voltage signal and current signal output by the motor in the working state.
  • the above step 101 may specifically include:
  • the frequency sweep signal involved in the embodiment of the present invention refers to a constant amplitude signal whose frequency changes periodically within a certain range.
  • the frequency sweep is designed for testing, so the sweep signal is for testing. It is mainly used to test components and the frequency characteristics of the whole machine.
  • the preset frequency sweep signal may be a logarithmic frequency sweep signal x(t), wherein the voltage signal value u changes periodically with time t, which can be specifically set as required.
  • the preset frequency sweep signal can be generated by equipment such as frequency sweeper and input to the motor.
  • the above parameters can be set as required, which is not limited in this embodiment of the present invention.
  • the voltage amplitude of the frequency sweep signal is 0.4V, and the frequency changes periodically within a certain range according to the setting.
  • the motor model parameter detection device can collect the output voltage signal u(t) and current signal i(t) of the motor through the data acquisition card.
  • spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor.
  • the spectral impedance expression of the preset motor model may be determined according to the dynamic model and the electrical model of the motor.
  • its dynamic model includes the above-mentioned mapping relationship of the dynamic parameters in the two directions.
  • the method for obtaining the spectral impedance expression of the above-mentioned preset motor model includes:
  • the mapping relationship between the dynamic parameters of the motor model in two directions, and the mapping relationship between the voltage and current of the motor can be manually predetermined according to the specific structure of the motor model, and can be specifically expressed as the corresponding dynamic equation and electrical equation. Furthermore, through the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current, the spectral impedance expression of the motor can be deduced, that is, the spectral impedance expression of the above-mentioned preset motor model. There are unknown parameters in the expression obtained at this time.
  • the two directions mentioned in the above steps 21 and 22 may include a first direction x and a second direction y; the mapping relationship between the voltage and current of the motor specifically includes:
  • mapping relationship between the voltage and current of the motor can be expressed as the following electrical equation:
  • u is the voltage passing through the motor unit
  • i is the current passing through the motor unit
  • Re is the resistance of the motor unit
  • Le is the motor coil inductance
  • Bl(x, y) is the motor unit in the first direction x
  • the electromagnetic force coefficient function in the second direction y, v(x, y) is a function of the speed of the motor unit in the first direction x and the second direction y.
  • mapping relationship of the dynamic parameters in the first direction x includes:
  • mapping relationship of the dynamic parameters in the second direction y includes:
  • the vibrator mass m of the motor, the speed vy of the motor alone in the second direction y, the acceleration a y in the second direction y, the damping cy in the second direction y , and the second The mapping relationship between the electromagnetic force coefficient Bly in the direction y and the current i passing through the above-mentioned motor unit.
  • mapping relationship of the dynamic parameters of the motor in the first direction x can be expressed as the following dynamic equation:
  • m is the vibrator mass of the motor
  • vx , ax , cx, Blx are the speed of the motor in the first direction x , the acceleration in the first direction x, and the damping in the first direction x, respectively , the electromagnetic force coefficient in the first direction x;
  • i is the current passing through the motor unit.
  • mapping relationship of the dynamic parameters of the motor in the second direction y can be expressed as the following dynamic equation:
  • m is the vibrator mass of the motor
  • v y , a y , cy , and Bly are the speed of the motor in the second direction y , the acceleration in the second direction y, and the damping in the second direction y, respectively.
  • the electromagnetic force coefficient in the second direction y; i is the current passing through the motor unit.
  • the method before acquiring the mapping relationship between the voltage and current of the motor, the method further includes:
  • the mapping relationship between the voltage and current of the motor is obtained.
  • the above-mentioned preset frequency sweep signal provides voltage for the motor in the test system, so the motor voltage in the above mapping relationship can be determined according to the expression of the preset frequency sweep signal, and substituted into the formula to obtain the specific motor voltage The mapping relationship between voltage and current.
  • mapping relationship between the above voltage, current and spectral impedance can be expressed as the formula of the above-mentioned impedance Laplace transform parameter model, and the specific spectral impedance expression can be solved by substituting the above formula.
  • the collected voltage signal and current signal can be substituted into the above-mentioned spectral impedance expression for calculation, and a plurality of corresponding spectral impedance values can be obtained.
  • the least squares method to perform fitting and calculation on the spectral impedance values of the motor to obtain the target spectral impedance parameter of the motor model.
  • the least squares method (also known as the least squares method) involved in the embodiments of the present invention is a mathematical tool that is widely used in many disciplines such as error estimation, uncertainty, system identification and data processing, and forecasting. optimization techniques. It finds the best functional match for the data by minimizing the sum of squared errors.
  • the unknown motor spectral impedance can be simply obtained by using the least squares method, and the sum of squares of errors between the obtained spectral impedance values and the actual spectral impedance values can be minimized.
  • the spectral impedance value curve can be obtained by fitting through the least squares method, and the target spectral impedance parameter of the above motor model is also obtained, wherein the target spectral impedance parameter can be is the spectral impedance expression, which can be the mapping relationship between the frequency and the impedance of the motor.
  • the frequency sweep is performed according to the aforementioned frequency sweep signal, and a corresponding impedance curve can be obtained.
  • a schematic diagram of an impedance spectrum shown in Fig. 3 wherein, as shown in Fig. 3-1, the abscissa represents the frequency, and the ordinate represents the impedance amplitude
  • the abscissa represents the frequency, and the ordinate represents the impedance phase (R(k)).
  • the frequency sweep signal x(t) can be generated and fed back to the motor, and the voltage signal u(t) and the current signal i(t) output by the motor can be collected to obtain the complex expression of the spectral impedance curve, and then according to the frequency sweep
  • the signal x(t) calculates the impedance curve and the limited range of the actual physical parameters, sets the initial value of the motor model parameter fitting, solves the model impedance, then calculates the error, uses the least squares method to calculate the fitting, and obtains the linear parameter target value of the bidirectional motor .
  • the embodiment of the present invention is aimed at a bidirectional motor.
  • the spectral impedance expression of the bidirectional motor can be accurately deduced, and then the spectral impedance expression of the bidirectional motor can be accurately derived.
  • the parameters of the motor model are determined by means of curve fitting and a complete and accurate model suitable for bidirectional motors is established, which can be applied to the control and configuration of the motor to improve the control accuracy and application effect of the motor.
  • the embodiment of the present invention further discloses a motor model parameter detection device.
  • the motor model parameter detection device 400 includes an acquisition module 410, an acquisition module 420, a calculation module 430 and a fitting module 440, wherein:
  • the above-mentioned acquisition module 410 is used to acquire the voltage signal and the current signal of the motor in the working state, and the vibrator of the above-mentioned motor vibrates in two directions;
  • the obtaining module 420 is configured to obtain the spectral impedance expression of the preset motor model, and the spectral impedance expression is determined according to the mapping relationship between the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor. ;
  • the above-mentioned calculation module 430 is used for substituting the above-mentioned voltage signal and current signal into the above-mentioned spectral impedance expression, respectively, to calculate and obtain a plurality of spectral impedance values of the above-mentioned motor;
  • the fitting module 440 is configured to perform fitting calculation on the spectral impedance values of the motor by using the least squares method according to a plurality of spectral impedance values of the motor, so as to obtain the target spectral impedance parameter of the motor model.
  • each step involved in the method shown in FIG. 1 may be performed by each module in the motor model parameter detection apparatus 400 shown in FIG. 4 , and details are not repeated here.
  • the motor model parameter detection device 400 in the embodiment of the present invention can obtain the voltage signal and the current signal of the motor in the working state, the vibrator of the motor vibrates in two directions, and obtain the spectral impedance expression of the preset motor model formula, the above spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and current of the motor, and then the above voltage signal and current signal are respectively substituted into the above spectral impedance expression, The multiple spectral impedance values of the motor are obtained by calculation, and then the least squares method is used to fit the spectral impedance values of the motor according to the multiple spectral impedance values of the motor, and the target spectral impedance parameters of the motor model can be obtained.
  • the spectral impedance expression of the bidirectional motor can be accurately deduced according to the mapping relationship of its dynamic parameters in the two directions and the mapping relationship between the voltage and current of the motor, and then through the collected data and curve fitting
  • the parameters of the motor model are determined by the method, and a complete and accurate model suitable for the bidirectional motor is established to improve the control accuracy and application effect of the motor.
  • FIG. 5 is a schematic structural diagram of a motor model parameter detection system according to an embodiment of the present invention.
  • a motor model parameter detection system 500 may include a motor to be detected 510, a voltage and current collection device 520, Drive device 530 and motor model parameter detection device 540; wherein:
  • the above-mentioned voltage and current collecting device 520 is connected to the above-mentioned motor 510 to be detected, the above-mentioned motor model parameter detection device 540 is connected to the above-mentioned driving device 530, and the above-mentioned driving device 530 is connected to the above-mentioned motor to be detected 510;
  • the above-mentioned voltage and current collecting device 520 is used to collect the working voltage value and working current value of the above-mentioned motor 510 to be detected, and feed them back to the above-mentioned motor model parameter detecting device 540;
  • the above-mentioned driving device 530 is configured to output a preset frequency sweep signal under the control of the above-mentioned motor model parameter detection device 540 to drive the above-mentioned motor 510 to be detected;
  • the above-mentioned motor model parameter detection device 540 may be the structure of the motor model parameter detection device 400 in the embodiment shown in FIG. 4 , and is used to perform various steps involved in the method shown in FIG. 1 , which will not be repeated here.
  • the motor 510 to be detected may be pasted on a fixed surface, so as to fix the motor 510 to be detected so as not to move.
  • the above-mentioned driving device 530 can be a power amplifier;
  • the above-mentioned voltage and current acquisition device 520 can be a data acquisition card having the ability to collect voltage signals and current signals;
  • the above-mentioned motor model parameter detection device 540 can be a kind of terminal equipment , such as a computer.
  • an embodiment of the present invention further provides an electronic device.
  • the electronic device includes at least a processor and a memory, and the memory stores a computer storage medium.
  • the computer storage medium may be stored in the memory of the electronic device, and the computer storage medium is used for storing a computer program, and the computer program includes program instructions, and the processor is used for executing the program instructions stored in the computer storage medium.
  • a processor or CPU (Central Processing Unit, Central Processing Unit)
  • CPU Central Processing Unit
  • a processor is the computing core and control core of an electronic device, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to achieve the corresponding Method flow or corresponding function; in one embodiment, the above-mentioned processor in the embodiment of the present invention can be used to perform a series of processing, including any steps of the method in the embodiment shown in FIG. 1 and so on.
  • Embodiments of the present invention further provide a computer storage medium (Memory), where the computer storage medium is a memory device in an electronic device, used to store programs and data.
  • the computer storage medium here may include both the built-in storage medium in the electronic device, and certainly also the extended storage medium supported by the electronic device.
  • Computer storage media provide storage space in which an electronic device's operating system is stored.
  • one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes).
  • the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one memory located far away from the aforementioned processor. computer storage media.
  • one or more instructions stored in the computer storage medium can be loaded and executed by the processor to implement the corresponding steps in the foregoing embodiment; in specific implementation, one or more instructions in the computer storage medium can be configured by The processor loads and executes any steps of the method in FIG. 1 , which will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other manners.
  • the division of the module is only for one logical function division.
  • multiple modules or components may be combined or integrated into another system, or some features may be ignored or not implement.
  • the shown or discussed mutual coupling, or direct coupling, or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.
  • Modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer instructions can be sent from one website site, computer, server, or data center to another by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.)
  • wire e.g. coaxial cable, fiber optic, digital subscriber line (DSL)
  • wireless e.g., infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc., that includes one or more available media integrated.
  • the available media may be read-only memory (ROM), or random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, such as, A digital versatile disc (DVD), or a semiconductor medium, for example, a solid state disk (SSD) and the like.
  • ROM read-only memory
  • RAM random access memory
  • magnetic media such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, such as, A digital versatile disc (DVD), or a semiconductor medium, for example, a solid state disk (SSD) and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A method and apparatus for measuring parameters of a motor model, an electronic device, and a medium. The method comprises: obtaining a voltage signal and a current signal of a motor in a working state, a vibrator of the motor vibrating in two directions (101); obtaining a preset frequency spectrum impedance expression of a motor model, the frequency spectrum impedance expression being determined according to the mapping relationship between kinetic parameters of the motor in the two directions and the mapping relationship between the voltage and current of the motor (102); respectively substituting the voltage signal and the current signal into the frequency spectrum impedance expression to calculate and obtain a plurality of frequency spectrum impedance values of the motor (103); and according to the plurality of frequency spectrum impedance values of the motor, performing fitting calculation on the frequency spectrum impedance values of the motor by using a method of least squares to obtain target frequency spectrum impedance parameters of the motor model (104).

Description

一种马达模型参数检测方法、装置、电子设备和介质A motor model parameter detection method, device, electronic device and medium 技术领域technical field
本发明涉及触觉感知技术领域,尤其涉及一种马达模型参数检测方法、装置、电子设备和介质。The present invention relates to the technical field of tactile perception, and in particular, to a method, device, electronic device and medium for detecting parameters of a motor model.
背景技术Background technique
随着触觉感知技术的发展,在智能手机、智能手表和平板电脑等电子设备中,以马达为载体的触觉致动器,通过设计其特定的信号波形,可以获得定制的触觉体验。目前使用较多的马达是基于某一方向运动的线性马达模型,但是随着体验需求的提升,单方向马达的带宽和振动方向局限了感知的丰富性,出现了单振子双方向的线性马达设计和应用,即马达的振子在可以在两个方向上产生振动,可以产生两个方向运动的振动系统。With the development of tactile sensing technology, in electronic devices such as smart phones, smart watches, and tablet computers, tactile actuators based on motors can obtain customized tactile experiences by designing their specific signal waveforms. At present, the most used motors are linear motor models based on motion in a certain direction. However, with the improvement of experience requirements, the bandwidth and vibration direction of unidirectional motors limit the richness of perception, and a linear motor design with single vibrator and two directions appears. And applications, that is, the vibrator of the motor can generate vibration in two directions, and can generate a vibration system that moves in two directions.
马达的技术参数的准确、完整性,对模型建立的准确性至关重要,直接决定着马达的性能,再采用基于单方向振动的马达模型控制误差较大,无法达到预期效果。The accuracy and integrity of the technical parameters of the motor are crucial to the accuracy of the model establishment, which directly determines the performance of the motor. The control error of the motor model based on unidirectional vibration is large, and the expected effect cannot be achieved.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述问题,提供一种马达模型参数检测方法、装置和介质,用于解决如何检测双方向振动马达模型的参数检测,提高马达的控制精度和应用性能的问题。Based on this, it is necessary to provide a motor model parameter detection method, device and medium to solve the problem of how to detect the parameters of the bidirectional vibration motor model and improve the control accuracy and application performance of the motor.
本发明的技术方案如下:The technical scheme of the present invention is as follows:
一方面,提供了一种马达模型参数检测方法,包括:In one aspect, a method for detecting parameters of a motor model is provided, including:
获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;Obtain the voltage signal and the current signal of the motor in working state, and the vibrator of the motor vibrates in two directions;
获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;obtaining a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
将所述电压信号和所述电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;Substituting the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of spectral impedance values of the motor;
根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。According to the plurality of spectral impedance values of the motor, the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
另一方面,提供了一种马达模型参数检测装置,包括采集模块、获取模块、计算模块和拟合模块,其中:In another aspect, a motor model parameter detection device is provided, including an acquisition module, an acquisition module, a calculation module and a fitting module, wherein:
所述采集模块,用于获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;The acquisition module is used to acquire the voltage signal and the current signal of the motor in a working state, and the vibrator of the motor vibrates in two directions;
所述获取模块,用于获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;The acquisition module is configured to acquire the spectral impedance expression of the preset motor model, and the spectral impedance expression is based on the mapping relationship of the dynamic parameters of the motor in two directions and the relationship between the voltage and the current of the motor. The mapping relationship is determined;
所述计算模块,用于将所述电压信号和电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;the calculation module, configured to respectively substitute the voltage signal and the current signal into the spectral impedance expression, and obtain a plurality of spectral impedance values of the motor by calculation;
所述拟合模块,用于根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。The fitting module is configured to perform fitting calculation on the spectral impedance values of the motor by using the least squares method according to the plurality of spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
另一方面,提供了一种马达模型参数检测系统,其特征在于,包括待检测马达、电压电流采集装置、驱动装置和马达模型参数检测装置,其中:In another aspect, a motor model parameter detection system is provided, which is characterized by comprising a motor to be detected, a voltage and current acquisition device, a driving device, and a motor model parameter detection device, wherein:
所述电压电流采集装置与所述待检测马达连接,所述马达模型参数检测装置与所述驱动装置连接,所述驱动装置与所述待检测马达连接;The voltage and current collection device is connected to the motor to be detected, the motor model parameter detection device is connected to the drive device, and the drive device is connected to the motor to be detected;
所述电压电流采集装置用于采集所述待检测马达的工作电压值和工作电流值,并反馈给所述马达模型参数检测装置;所述驱动装置用于在所述马达模型参数检测装置的控制下输出预设的扫频信号驱动所述待检测马达;所述马达模型参数检测装置用于执行如上述第一方面及其任一种可能的实现方式的步骤。The voltage and current collection device is used to collect the working voltage value and the working current value of the motor to be detected, and feed them back to the motor model parameter detection device; the drive device is used for the control of the motor model parameter detection device A preset frequency sweep signal is output to drive the motor to be detected; the motor model parameter detection device is configured to perform the steps of the first aspect and any possible implementations thereof.
另一方面,提供了一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述第一方面及其任一种可能的实现方式的步骤。In another aspect, an electronic device is provided, comprising a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the above-mentioned first aspect and the same. Steps for any possible implementation.
另一方面,提供了一种存储介质,储有计算机指令程序,所述计算机指令程序被处理器执行时,使得所述处理器执行如上所述第一方面及其任一种可能的实现方式的步骤。In another aspect, a storage medium is provided, which stores a computer instruction program, and when the computer instruction program is executed by a processor, causes the processor to execute the above-mentioned first aspect and any possible implementation manners thereof. step.
本发明的有益效果在于:获取处于工作状态下的马达的电压信号和电流信 号,上述马达的振子在两个方向上产生振动,获取预设的马达模型的频谱阻抗表达式,上述频谱阻抗表达式根据上述马达在两个方向上的动力学参数的映射关系以及上述马达的电压与电流的映射关系确定,再将上述电压信号和电流信号分别代入上述频谱阻抗表达式,计算获得上述马达的多个频谱阻抗值,然后根据上述马达的多个频谱阻抗值,采用最小二乘法对上述马达的频谱阻抗值进行拟合计算,可以获得上述马达模型的目标频谱阻抗参数。针对双方向马达,根据其在两个方向上的动力学参数的映射关系以及马达的电压与电流的映射关系,可以准确推导出双方向马达的频谱阻抗表达式,进而通过采集数据和曲线拟合的方式确定马达模型参数,建立完整准确的适用于双方向马达的模型,提高马达的控制精度和应用效果。The beneficial effects of the present invention are: obtaining the voltage signal and the current signal of the motor in the working state, the vibrator of the motor vibrates in two directions, and obtaining the spectral impedance expression of the preset motor model, the above-mentioned spectral impedance expression Determined according to the mapping relationship between the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and current of the motor, and then substitute the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of The spectral impedance value of the motor is then calculated by fitting the spectral impedance value of the motor by the least squares method according to the plurality of spectral impedance values of the motor, so as to obtain the target spectral impedance parameter of the motor model. For a bidirectional motor, the spectral impedance expression of the bidirectional motor can be accurately deduced according to the mapping relationship of its dynamic parameters in the two directions and the mapping relationship between the voltage and current of the motor, and then through the collected data and curve fitting The parameters of the motor model are determined by the method, and a complete and accurate model suitable for the bidirectional motor is established to improve the control accuracy and application effect of the motor.
附图说明Description of drawings
图1为本发明提供的一种马达模型参数检测方法的流程示意图;1 is a schematic flowchart of a motor model parameter detection method provided by the present invention;
图2为本发明提供的一种扫频信号示意图;2 is a schematic diagram of a frequency sweep signal provided by the present invention;
图3为本发明提供的一种阻抗频谱示意图;3 is a schematic diagram of an impedance spectrum provided by the present invention;
图4为本发明提供的一种马达模型参数检测装置的结构示意图;4 is a schematic structural diagram of a motor model parameter detection device provided by the present invention;
图5为本发明提供的一种马达模型参数检测系统的结构示意图。FIG. 5 is a schematic structural diagram of a motor model parameter detection system provided by the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或 设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
马达即为电动机、发动机,工作原理为通过通电线圈在磁场中受力转动带动起动机转子旋转,转子上的小齿轮带动发动机飞轮旋转。随着触觉技术的发展,在智能手机、智能手表和平板电脑等电子设备中,以马达为载体的触觉致动器,通过设计其特定波形,可以获得定制的触觉体验。目前使用较多的马达是基于单方向运动的线性马达模型。The motor is an electric motor and an engine. The working principle is that the energized coil is forced to rotate in a magnetic field to drive the starter rotor to rotate, and the pinion on the rotor drives the engine flywheel to rotate. With the development of haptic technology, in electronic devices such as smartphones, smart watches, and tablet computers, haptic actuators based on motors can obtain customized haptic experiences by designing their specific waveforms. The most commonly used motors are linear motor models based on unidirectional motion.
下面结合本发明实施例中的附图对本发明实施例进行描述。The embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
请参阅图1,图1是本发明实施例提供的一种马达模型参数检测方法的流程示意图。该方法可包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for detecting parameters of a motor model provided by an embodiment of the present invention. The method may include:
101、获取处于工作状态下的马达的电压信号和电流信号,上述马达的振子在两个方向上产生振动。101. Acquire a voltage signal and a current signal of a motor in a working state, and the vibrator of the motor vibrates in two directions.
本发明实施例的执行主体可以为一种马达模型参数检测装置,该装置可以对马达的模型参数进行检测。本发明实施例中的马达可以是单振子双方向马达,即该马达的振子可以在两个方向上产生振动,从而可以产生两个方向运动的振动系统。The execution body of the embodiment of the present invention may be a motor model parameter detection device, and the device can detect the model parameters of the motor. The motor in the embodiment of the present invention may be a single vibrator bidirectional motor, that is, the vibrator of the motor may vibrate in two directions, thereby generating a vibration system that moves in two directions.
在马达处于正常工作状态的情况下,马达模型参数检测装置可以获取该马达的工作电压和对应的工作电流,具体可以是采集工作状态下的马达输出的电压信号和电流信号。When the motor is in a normal working state, the motor model parameter detection device can obtain the working voltage and corresponding working current of the motor, and specifically can collect the voltage signal and current signal output by the motor in the working state.
在一种实施方式中,上述步骤101具体可包括:In one embodiment, the above step 101 may specifically include:
上述马达接入预设的扫频信号进行驱动的情况下,采集处于上述马达的电压信号和电流信号。When the motor is driven by a preset frequency sweep signal, the voltage signal and the current signal in the motor are collected.
本发明实施例中涉及到的扫频信号,是指频率在一定范围内周期变化的等幅信号。扫频是为了测试而设计的,因此扫频信号就是为了测试,它主要用来测试元器件,以及整机的频率特性。The frequency sweep signal involved in the embodiment of the present invention refers to a constant amplitude signal whose frequency changes periodically within a certain range. The frequency sweep is designed for testing, so the sweep signal is for testing. It is mainly used to test components and the frequency characteristics of the whole machine.
具体的,上述预设的扫频信号可以为一种对数扫频信号x(t),其中该电压信号值u随时间t周期性变化,具体可以根据需要设置。预设的扫频信号可以由扫频仪等设备生成,输入马达。Specifically, the preset frequency sweep signal may be a logarithmic frequency sweep signal x(t), wherein the voltage signal value u changes periodically with time t, which can be specifically set as required. The preset frequency sweep signal can be generated by equipment such as frequency sweeper and input to the motor.
设电压幅值V,初始频率f 0,终止频率f 1,扫频时长t 1,来生成对应的扫频信号信号,以上参数可根据需要进行设置,本发明实施例对此不作限制。比如具体的,可以参见图2所示的一种扫频信号示意图,如图2所示,其中扫频信号的电压幅值为0.4V,频率根据设置在一定范围内周期性变化。 Set the voltage amplitude V, the initial frequency f 0 , the termination frequency f 1 , and the frequency sweep duration t 1 to generate the corresponding frequency sweep signal signal. The above parameters can be set as required, which is not limited in this embodiment of the present invention. For example, for a specific example, refer to a schematic diagram of a frequency sweep signal shown in FIG. 2 . As shown in FIG. 2 , the voltage amplitude of the frequency sweep signal is 0.4V, and the frequency changes periodically within a certain range according to the setting.
马达模型参数检测装置可以通过数据采集卡,采集马达的输出电压信号u(t)和电流信号i(t)。The motor model parameter detection device can collect the output voltage signal u(t) and current signal i(t) of the motor through the data acquisition card.
102、获取预设的马达模型的频谱阻抗表达式,上述频谱阻抗表达式根据上述马达在两个方向上的动力学参数的映射关系以及上述马达的电压与电流的映射关系确定。102. Obtain a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor.
其中,上述预设的马达模型的频谱阻抗表达式,可以是根据马达的动力学模型和电学模型确定的。该马达为双方向马达时,其动力学模型包括上述在两个方向上的动力学参数的映射关系。Wherein, the spectral impedance expression of the preset motor model may be determined according to the dynamic model and the electrical model of the motor. When the motor is a bidirectional motor, its dynamic model includes the above-mentioned mapping relationship of the dynamic parameters in the two directions.
在一种实施方式中,上述预设的马达模型的频谱阻抗表达式的获得方法包括:In one embodiment, the method for obtaining the spectral impedance expression of the above-mentioned preset motor model includes:
21、获取上述马达模型在两个方向上的动力学参数的映射关系,以及上述马达的电压与电流的映射关系;21. Obtain the mapping relationship between the dynamic parameters of the motor model in two directions, and the mapping relationship between the voltage and current of the motor;
22、根据上述马达模型的两个方向上的动力学参数的映射关系和上述电压与电流的映射关系,确定上述预设的马达模型的频谱阻抗表达式。22. Determine the spectral impedance expression of the preset motor model according to the mapping relationship of the dynamic parameters in the two directions of the motor model and the mapping relationship between the voltage and the current.
上述马达模型在两个方向上的动力学参数的映射关系,以及上述马达的电压与电流的映射关系可以是根据马达模型具体构造由人工预先确定的,具体可以表示为对应的动力学方程和电学方程。进而通过马达在两个方向上的动力学参数的映射关系以及电压与电流的映射关系,可以推导出马达的频谱阻抗表达式,即上述预设的马达模型的频谱阻抗表达式。此时获得的表达式中有未知的参数。The mapping relationship between the dynamic parameters of the motor model in two directions, and the mapping relationship between the voltage and current of the motor can be manually predetermined according to the specific structure of the motor model, and can be specifically expressed as the corresponding dynamic equation and electrical equation. Furthermore, through the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current, the spectral impedance expression of the motor can be deduced, that is, the spectral impedance expression of the above-mentioned preset motor model. There are unknown parameters in the expression obtained at this time.
在一种可选的实施方式中,上述步骤21和步骤22中所提到的两个方向可包括第一方向x和第二方向y;上述马达的电压与电流的映射关系具体包括:In an optional implementation manner, the two directions mentioned in the above steps 21 and 22 may include a first direction x and a second direction y; the mapping relationship between the voltage and current of the motor specifically includes:
通过马达单体的电压u、上述马达单体的电阻Re、上述马达线圈电感Le、上述马达单体在上述第一方向x和上述第二方向y上的电磁力系数函数Bl(x,y)、在上述第一方向x和上述第二方向y上的速度的函数v(x,y),以及通过上述马达单体的电流i的映射关系。The voltage u of the motor unit, the resistance Re of the motor unit, the motor coil inductance Le, the electromagnetic force coefficient function B1(x, y) of the motor unit in the first direction x and the second direction y , the function v(x, y) of the speed in the above-mentioned first direction x and the above-mentioned second direction y, and the mapping relationship of the current i through the above-mentioned motor unit.
具体的,上述马达的电压与电流的映射关系可以可以表示为以下电学方程:Specifically, the mapping relationship between the voltage and current of the motor can be expressed as the following electrical equation:
Figure PCTCN2021071348-appb-000001
Figure PCTCN2021071348-appb-000001
其中,u为通过马达单体的电压,i为通过马达单体的电流;Re为马达单体的电阻,Le为马达线圈电感,Bl(x,y)为马达单体在第一方向x和第二方向y上的电磁力系数函数,v(x,y)为马达单体在所述第一方向x和所述第二方向y上的速度的函数。Among them, u is the voltage passing through the motor unit, i is the current passing through the motor unit; Re is the resistance of the motor unit, Le is the motor coil inductance, and Bl(x, y) is the motor unit in the first direction x and The electromagnetic force coefficient function in the second direction y, v(x, y) is a function of the speed of the motor unit in the first direction x and the second direction y.
进一步可选的,上述第一方向x上的动力学参数的映射关系包括:Further optionally, the mapping relationship of the dynamic parameters in the first direction x includes:
上述马达的振子质量m、上述马达单体在上述第一方向x上的速度v x、在上述第一方向x的加速度a x、在上述第一方向x上的阻尼c x、在上述第一方向x上的电磁力系数Bl x和通过上述马达单体的电流i的映射关系; The vibrator mass m of the motor, the velocity v x of the motor alone in the first direction x, the acceleration a x in the first direction x, the damping c x in the first direction x, the The mapping relationship between the electromagnetic force coefficient Bl x in the direction x and the current i passing through the above-mentioned motor unit;
上述第二方向y上的动力学参数的映射关系包括:The mapping relationship of the dynamic parameters in the second direction y includes:
上述马达的振子质量m、上述马达单体在上述第二方向y上的速度v y、在上述第二方向y的加速度a y、在上述第二方向y上的阻尼c y、在上述第二方向y上的电磁力系数Bl y和通过上述马达单体的电流i的映射关系。 The vibrator mass m of the motor, the speed vy of the motor alone in the second direction y, the acceleration a y in the second direction y, the damping cy in the second direction y , and the second The mapping relationship between the electromagnetic force coefficient Bly in the direction y and the current i passing through the above-mentioned motor unit.
具体的,上述马达在第一方向x上的动力学参数的映射关系可以表示为以下动力学方程:Specifically, the mapping relationship of the dynamic parameters of the motor in the first direction x can be expressed as the following dynamic equation:
m*a x+c x*v x+k x*x=Bl x*i, m*a x +c x *v x +k x *x=Bl x *i,
其中,m为马达的振子质量,v x、a x、c x、Bl x分别为马达单体在第一方向x上的速度、在第一方向x的加速度、在第一方向x上的阻尼、在第一方向x上的电磁力系数;i为通过马达单体的电流。 Among them, m is the vibrator mass of the motor, vx , ax , cx, Blx are the speed of the motor in the first direction x , the acceleration in the first direction x, and the damping in the first direction x, respectively , the electromagnetic force coefficient in the first direction x; i is the current passing through the motor unit.
具体的,上述马达在第二方向y上的动力学参数的映射关系可以表示为以下动力学方程:Specifically, the mapping relationship of the dynamic parameters of the motor in the second direction y can be expressed as the following dynamic equation:
m*a y+c y*v y+k y*y=Bl y*i, m*a y + c y *v y + k y *y=Bl y *i,
其中,m为马达的振子质量,v y、a y、c y、Bl y分别为马达单体在第二方向y上的速度、在第二方向y的加速度、在第二方向y上的阻尼、在第二方向y上的电磁力系数;i为通过马达单体的电流。 Among them, m is the vibrator mass of the motor, v y , a y , cy , and Bly are the speed of the motor in the second direction y , the acceleration in the second direction y, and the damping in the second direction y, respectively. , the electromagnetic force coefficient in the second direction y; i is the current passing through the motor unit.
可选的,在获取上述马达的电压与电流的映射关系之前,上述方法还包括:Optionally, before acquiring the mapping relationship between the voltage and current of the motor, the method further includes:
根据上述预设的扫频信号的表达式,和电压、电流与频谱阻抗的映射关系,获得上述马达的电压与电流的映射关系。According to the preset expression of the frequency sweep signal and the mapping relationship between voltage, current and spectral impedance, the mapping relationship between the voltage and current of the motor is obtained.
具体可以理解为,上述预设的扫频信号在该测试系统中为马达提供电压,因此可以根据预设的扫频信号的表达式确定上述映射关系中的马达电压,代入公式以获得具体的马达的电压与电流的映射关系。Specifically, it can be understood that the above-mentioned preset frequency sweep signal provides voltage for the motor in the test system, so the motor voltage in the above mapping relationship can be determined according to the expression of the preset frequency sweep signal, and substituted into the formula to obtain the specific motor voltage The mapping relationship between voltage and current.
通过上述电学方程和动力学方程,可以解得阻抗拉氏变换参数模型:Through the above electrical equations and dynamic equations, the impedance Laplace transform parameter model can be solved:
Figure PCTCN2021071348-appb-000002
Figure PCTCN2021071348-appb-000002
即上述电压、电流与频谱阻抗的映射关系可以表示为上述阻抗拉氏变换参数模型的公式,代入前述公式即可解得具体的频谱阻抗表达式。That is, the mapping relationship between the above voltage, current and spectral impedance can be expressed as the formula of the above-mentioned impedance Laplace transform parameter model, and the specific spectral impedance expression can be solved by substituting the above formula.
103、将上述电压信号和电流信号分别代入上述频谱阻抗表达式,计算获得上述马达的多个频谱阻抗值。103. Substitute the voltage signal and the current signal into the spectral impedance expression, respectively, and calculate and obtain a plurality of spectral impedance values of the motor.
具体的,可以将采集的电压信号和电流信号代入上述频谱阻抗表达式进行计算,可以获得对应的多个频谱阻抗值。Specifically, the collected voltage signal and current signal can be substituted into the above-mentioned spectral impedance expression for calculation, and a plurality of corresponding spectral impedance values can be obtained.
104、根据上述马达的多个频谱阻抗值,采用最小二乘法对上述马达的频 谱阻抗值进行拟合计算,获得上述马达模型的目标频谱阻抗参数。104. According to the plurality of spectral impedance values of the motor, use the least squares method to perform fitting and calculation on the spectral impedance values of the motor to obtain the target spectral impedance parameter of the motor model.
本发明实施例涉及到的最小二乘法(又称最小平方法)是一种在误差估计、不确定度、系统辨识及预测、预报等数据处理诸多学科领域得到广泛应用的数学工具是一种数学优化技术。它通过最小化误差的平方和寻找数据的最佳函数匹配。The least squares method (also known as the least squares method) involved in the embodiments of the present invention is a mathematical tool that is widely used in many disciplines such as error estimation, uncertainty, system identification and data processing, and forecasting. optimization techniques. It finds the best functional match for the data by minimizing the sum of squared errors.
本发明实施例中利用最小二乘法可以简便地求得未知的马达频谱阻抗,并使得这些求得的频谱阻抗值与实际频谱阻抗值之间误差的平方和为最小。即具体的,可以计算每个频谱阻抗值Z对应的误差:Err(k)=R-Z,其中R为预设的表示实际频谱阻抗值的参数,在拟合后R即为最终的频谱阻抗表达。In the embodiment of the present invention, the unknown motor spectral impedance can be simply obtained by using the least squares method, and the sum of squares of errors between the obtained spectral impedance values and the actual spectral impedance values can be minimized. Specifically, the error corresponding to each spectral impedance value Z can be calculated: Err(k)=R-Z, where R is a preset parameter representing the actual spectral impedance value, and R is the final spectral impedance expression after fitting.
将上述多个频谱阻抗值看作坐标系中的多个点,通过最小二乘法进行拟合可以获得频谱阻抗值曲线,也获得了上述马达模型的目标频谱阻抗参数,其中该目标频谱阻抗参数可以为频谱阻抗表达式,可以是马达的频率与阻抗的映射关系。Considering the above multiple spectral impedance values as multiple points in the coordinate system, the spectral impedance value curve can be obtained by fitting through the least squares method, and the target spectral impedance parameter of the above motor model is also obtained, wherein the target spectral impedance parameter can be is the spectral impedance expression, which can be the mapping relationship between the frequency and the impedance of the motor.
综上,本发明实施例中根据前述所述的扫频信号进行扫频,可以获得可以对应的阻抗曲线。具体的,可以参见图3所示的一种阻抗频谱示意图,其中,如图3-1所示,横坐标表示频率,纵坐标表示阻抗幅值|R(k)|。如图3-2所示,其中,横坐标表示频率,纵坐标表示阻抗相位phase(R(k))。To sum up, in the embodiment of the present invention, the frequency sweep is performed according to the aforementioned frequency sweep signal, and a corresponding impedance curve can be obtained. Specifically, please refer to a schematic diagram of an impedance spectrum shown in Fig. 3, wherein, as shown in Fig. 3-1, the abscissa represents the frequency, and the ordinate represents the impedance amplitude |R(k)|. As shown in Figure 3-2, the abscissa represents the frequency, and the ordinate represents the impedance phase (R(k)).
本发明实施例中可以生成扫频信号x(t),反馈给马达,并采集马达输出的电压信号u(t)和电流信号i(t),获得频谱阻抗曲线的复数表达,再根据扫频信号x(t)计算阻抗曲线和实际物理参数限定范围,设定马达模型参数拟合的初始值,求解模型阻抗,再计算误差,采用最小二乘法计算拟合,得到双向马达的线性参数目标值。In the embodiment of the present invention, the frequency sweep signal x(t) can be generated and fed back to the motor, and the voltage signal u(t) and the current signal i(t) output by the motor can be collected to obtain the complex expression of the spectral impedance curve, and then according to the frequency sweep The signal x(t) calculates the impedance curve and the limited range of the actual physical parameters, sets the initial value of the motor model parameter fitting, solves the model impedance, then calculates the error, uses the least squares method to calculate the fitting, and obtains the linear parameter target value of the bidirectional motor .
本发明实施例针对双方向马达,根据其在两个方向上的动力学参数的映射关系以及马达的电压与电流的映射关系,可以准确推导出双方向马达的频谱阻抗表达式,进而通过采集数据和曲线拟合的方式确定马达模型参数,建立完整准确的适用于双方向马达的模型,可应用于马达的控制和配置,提高马达的控制精度和应用效果。The embodiment of the present invention is aimed at a bidirectional motor. According to the mapping relationship of its dynamic parameters in the two directions and the mapping relationship between the voltage and the current of the motor, the spectral impedance expression of the bidirectional motor can be accurately deduced, and then the spectral impedance expression of the bidirectional motor can be accurately derived. The parameters of the motor model are determined by means of curve fitting and a complete and accurate model suitable for bidirectional motors is established, which can be applied to the control and configuration of the motor to improve the control accuracy and application effect of the motor.
基于上述马达模型参数检测方法实施例的描述,本发明实施例还公开了一种马达模型参数检测装置。请参见图4,马达模型参数检测装置400包括采集 模块410、获取模块420、计算模块430和拟合模块440,其中:Based on the description of the above embodiments of the motor model parameter detection method, the embodiment of the present invention further discloses a motor model parameter detection device. Referring to Fig. 4 , the motor model parameter detection device 400 includes an acquisition module 410, an acquisition module 420, a calculation module 430 and a fitting module 440, wherein:
上述采集模块410,用于获取处于工作状态下的马达的电压信号和电流信号,上述马达的振子在两个方向上产生振动;The above-mentioned acquisition module 410 is used to acquire the voltage signal and the current signal of the motor in the working state, and the vibrator of the above-mentioned motor vibrates in two directions;
上述获取模块420,用于获取预设的马达模型的频谱阻抗表达式,上述频谱阻抗表达式根据上述马达在两个方向上的动力学参数的映射关系以及上述马达的电压与电流的映射关系确定;The obtaining module 420 is configured to obtain the spectral impedance expression of the preset motor model, and the spectral impedance expression is determined according to the mapping relationship between the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor. ;
上述计算模块430,用于将上述电压信号和电流信号分别代入上述频谱阻抗表达式,计算获得上述马达的多个频谱阻抗值;The above-mentioned calculation module 430 is used for substituting the above-mentioned voltage signal and current signal into the above-mentioned spectral impedance expression, respectively, to calculate and obtain a plurality of spectral impedance values of the above-mentioned motor;
上述拟合模块440,用于根据上述马达的多个频谱阻抗值,采用最小二乘法对上述马达的频谱阻抗值进行拟合计算,获得上述马达模型的目标频谱阻抗参数。The fitting module 440 is configured to perform fitting calculation on the spectral impedance values of the motor by using the least squares method according to a plurality of spectral impedance values of the motor, so as to obtain the target spectral impedance parameter of the motor model.
跟据本发明的一个实施例,图1所示的方法所涉及的各个步骤均可以是由图4所示的马达模型参数检测装置400中的各个模块执行的,此处不再赘述。According to an embodiment of the present invention, each step involved in the method shown in FIG. 1 may be performed by each module in the motor model parameter detection apparatus 400 shown in FIG. 4 , and details are not repeated here.
本发明实施例中的马达模型参数检测装置400,可以获取处于工作状态下的马达的电压信号和电流信号,上述马达的振子在两个方向上产生振动,获取预设的马达模型的频谱阻抗表达式,上述频谱阻抗表达式根据上述马达在两个方向上的动力学参数的映射关系以及上述马达的电压与电流的映射关系确定,再将上述电压信号和电流信号分别代入上述频谱阻抗表达式,计算获得上述马达的多个频谱阻抗值,然后根据上述马达的多个频谱阻抗值,采用最小二乘法对上述马达的频谱阻抗值进行拟合计算,可以获得上述马达模型的目标频谱阻抗参数。针对双方向马达,根据其在两个方向上的动力学参数的映射关系以及马达的电压与电流的映射关系,可以准确推导出双方向马达的频谱阻抗表达式,进而通过采集数据和曲线拟合的方式确定马达模型参数,建立完整准确的适用于双方向马达的模型,提高马达的控制精度和应用效果。The motor model parameter detection device 400 in the embodiment of the present invention can obtain the voltage signal and the current signal of the motor in the working state, the vibrator of the motor vibrates in two directions, and obtain the spectral impedance expression of the preset motor model formula, the above spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and current of the motor, and then the above voltage signal and current signal are respectively substituted into the above spectral impedance expression, The multiple spectral impedance values of the motor are obtained by calculation, and then the least squares method is used to fit the spectral impedance values of the motor according to the multiple spectral impedance values of the motor, and the target spectral impedance parameters of the motor model can be obtained. For a bidirectional motor, the spectral impedance expression of the bidirectional motor can be accurately deduced according to the mapping relationship of its dynamic parameters in the two directions and the mapping relationship between the voltage and current of the motor, and then through the collected data and curve fitting The parameters of the motor model are determined by the method, and a complete and accurate model suitable for the bidirectional motor is established to improve the control accuracy and application effect of the motor.
请参见图5,图5为本发明实施例提供的一种马达模型参数检测系统的结构示意图,如图5所示,马达模型参数检测系统500可包括待检测马达510、电压电流采集装置520、驱动装置530和马达模型参数检测装置540;其中:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a motor model parameter detection system according to an embodiment of the present invention. As shown in FIG. 5, a motor model parameter detection system 500 may include a motor to be detected 510, a voltage and current collection device 520, Drive device 530 and motor model parameter detection device 540; wherein:
上述电压电流采集装置520与上述待检测马达510连接,上述马达模型参数检测装置540与上述驱动装置530连接,上述驱动装置530与上述待检测马达510连接;The above-mentioned voltage and current collecting device 520 is connected to the above-mentioned motor 510 to be detected, the above-mentioned motor model parameter detection device 540 is connected to the above-mentioned driving device 530, and the above-mentioned driving device 530 is connected to the above-mentioned motor to be detected 510;
上述电压电流采集装置520,用于采集上述待检测马达510的工作电压值和工作电流值,并反馈给上述马达模型参数检测装置540;The above-mentioned voltage and current collecting device 520 is used to collect the working voltage value and working current value of the above-mentioned motor 510 to be detected, and feed them back to the above-mentioned motor model parameter detecting device 540;
上述驱动装置530,用于在上述马达模型参数检测装置540的控制下输出预设的扫频信号驱动上述待检测马达510;The above-mentioned driving device 530 is configured to output a preset frequency sweep signal under the control of the above-mentioned motor model parameter detection device 540 to drive the above-mentioned motor 510 to be detected;
上述马达模型参数检测装置540,可以为上述图4所示实施例中的马达模型参数检测装置400的结构,用于执行如图1所示的方法所涉及的各个步骤,此处不再赘述。The above-mentioned motor model parameter detection device 540 may be the structure of the motor model parameter detection device 400 in the embodiment shown in FIG. 4 , and is used to perform various steps involved in the method shown in FIG. 1 , which will not be repeated here.
可选的,在进行马达模型参数检测时,上述待检测马达510可以粘贴在一个固定面上,以便固定待检测马达510不发生移动。在具体的实施方式中,上述驱动装置530可以为一种功放;上述电压电流采集装置520可以为具有采集电压信号和电流信号的数据采集卡;上述马达模型参数检测装置540可以为一种终端设备,比如计算机。Optionally, when the motor model parameters are detected, the motor 510 to be detected may be pasted on a fixed surface, so as to fix the motor 510 to be detected so as not to move. In a specific implementation manner, the above-mentioned driving device 530 can be a power amplifier; the above-mentioned voltage and current acquisition device 520 can be a data acquisition card having the ability to collect voltage signals and current signals; the above-mentioned motor model parameter detection device 540 can be a kind of terminal equipment , such as a computer.
基于上述方法实施例以及装置实施例的描述,本发明实施例还提供一种电子设备。该电子设备至少包括处理器和存储器,上述存储器存储有计算机存储介质。Based on the descriptions of the foregoing method embodiments and apparatus embodiments, an embodiment of the present invention further provides an electronic device. The electronic device includes at least a processor and a memory, and the memory stores a computer storage medium.
计算机存储介质可以存储在电子设备的存储器中,上述计算机存储介质用于存储计算机程序,上述计算机程序包括程序指令,上述处理器用于执行上述计算机存储介质存储的程序指令。处理器(或称CPU(Central Processing Unit,中央处理器))是电子设备的计算核心以及控制核心,其适于实现一条或多条指令,具体适于加载并执行一条或多条指令从而实现相应方法流程或相应功能;在一个实施例中,本发明实施例上述的处理器可以用于进行一系列的处理,包括如图1所示实施例中方法的任意步骤等等。The computer storage medium may be stored in the memory of the electronic device, and the computer storage medium is used for storing a computer program, and the computer program includes program instructions, and the processor is used for executing the program instructions stored in the computer storage medium. A processor (or CPU (Central Processing Unit, Central Processing Unit)) is the computing core and control core of an electronic device, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to achieve the corresponding Method flow or corresponding function; in one embodiment, the above-mentioned processor in the embodiment of the present invention can be used to perform a series of processing, including any steps of the method in the embodiment shown in FIG. 1 and so on.
本发明实施例还提供了一种计算机存储介质(Memory),上述计算机存储介质是电子设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机存储介质既可以包括电子设备中的内置存储介质,当然也可以包括电子设备所支持的扩展存储介质。计算机存储介质提供存储空间,该存储空间存储了电子设备的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或多条的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存 储器;可选的还可以是至少一个位于远离前述处理器的计算机存储介质。Embodiments of the present invention further provide a computer storage medium (Memory), where the computer storage medium is a memory device in an electronic device, used to store programs and data. It can be understood that, the computer storage medium here may include both the built-in storage medium in the electronic device, and certainly also the extended storage medium supported by the electronic device. Computer storage media provide storage space in which an electronic device's operating system is stored. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one memory located far away from the aforementioned processor. computer storage media.
在一个实施例中,可由处理器加载并执行计算机存储介质中存放的一条或多条指令,以实现上述实施例中的相应步骤;具体实现中,计算机存储介质中的一条或多条指令可以由处理器加载并执行图1中方法的任意步骤,此处不再赘述。In one embodiment, one or more instructions stored in the computer storage medium can be loaded and executed by the processor to implement the corresponding steps in the foregoing embodiment; in specific implementation, one or more instructions in the computer storage medium can be configured by The processor loads and executes any steps of the method in FIG. 1 , which will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。所显示或讨论的相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods may be implemented in other manners. For example, the division of the module is only for one logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not implement. The shown or discussed mutual coupling, or direct coupling, or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。Modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者通过该计算机可读存储介质进行传输。该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设 备。该可用介质可以是只读存储器(read-only memory,ROM),或随机存储存储器(random access memory,RAM),或磁性介质,例如,软盘、硬盘、磁带、磁碟、或光介质,例如,数字通用光盘(digital versatile disc,DVD)、或者半导体介质,例如,固态硬盘(solid state disk,SSD)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server, or data center to another by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) A website site, computer, server or data center for transmission. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc., that includes one or more available media integrated. The available media may be read-only memory (ROM), or random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, such as, A digital versatile disc (DVD), or a semiconductor medium, for example, a solid state disk (SSD) and the like.

Claims (9)

  1. 一种马达模型参数检测方法,其特征在于,包括:A method for detecting parameters of a motor model, comprising:
    获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;Obtain the voltage signal and the current signal of the motor in working state, and the vibrator of the motor vibrates in two directions;
    获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;obtaining a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
    将所述电压信号和所述电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;Substituting the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of spectral impedance values of the motor;
    根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。According to the plurality of spectral impedance values of the motor, the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
  2. 根据权利要求1所述的马达模型参数检测方法,其特征在于,所述获取处于工作状态下的马达的电压信号和电流信号,包括:The method for detecting parameters of a motor model according to claim 1, wherein the acquiring the voltage signal and the current signal of the motor in a working state comprises:
    所述马达接入预设的扫频信号进行驱动的情况下,采集处于所述马达的电压信号和电流信号。When the motor is driven by a preset frequency sweep signal, the voltage signal and the current signal in the motor are collected.
  3. 根据权利要求2所述的马达模型参数检测方法,其特征在于,所述预设的马达模型的频谱阻抗表达式的获得方法包括:The method for detecting parameters of a motor model according to claim 2, wherein the method for obtaining the spectral impedance expression of the preset motor model comprises:
    获取所述马达模型在两个方向上的动力学参数的映射关系,以及所述马达的电压与电流的映射关系;obtaining the mapping relationship of the dynamic parameters of the motor model in two directions, and the mapping relationship between the voltage and the current of the motor;
    根据所述马达模型的两个方向上的动力学参数的映射关系和所述电压与电流的映射关系,确定所述预设的马达模型的频谱阻抗表达式。The spectral impedance expression of the preset motor model is determined according to the mapping relationship of the dynamic parameters in the two directions of the motor model and the mapping relationship between the voltage and the current.
  4. 根据权利要求3所述的马达模型参数检测方法,其特征在于,在获取所述马达的电压与电流的映射关系之前,所述方法还包括:The method for detecting motor model parameters according to claim 3, wherein before acquiring the mapping relationship between the voltage and current of the motor, the method further comprises:
    根据所述预设的扫频信号的表达式,和电压、电流与频谱阻抗的映射关系,获得所述马达的电压与电流的映射关系。According to the expression of the preset frequency sweep signal and the mapping relationship between voltage, current and spectral impedance, the mapping relationship between the voltage and the current of the motor is obtained.
  5. 根据权利要求3所述的马达模型参数检测方法,其特征在于,所述两个方向包括第一方向x和第二方向y;所述马达的电压与电流的映射关系具体 包括:The motor model parameter detection method according to claim 3, wherein the two directions include a first direction x and a second direction y; the mapping relationship between the voltage and the current of the motor specifically includes:
    通过马达单体的电压u、所述马达单体的电阻Re、所述马达线圈电感Le、所述马达单体在所述第一方向x和所述第二方向y上的电磁力系数函数Bl(x,y)、在所述第一方向x和所述第二方向y上的速度的函数v(x,y),以及通过所述马达单体的电流i的映射关系。Through the voltage u of the motor unit, the resistance Re of the motor unit, the motor coil inductance Le, the electromagnetic force coefficient function B1 of the motor unit in the first direction x and the second direction y (x, y), the function v(x, y) of the speed in the first direction x and the second direction y, and the mapping relationship of the current i through the motor unit.
  6. 根据权利要求5所述的马达模型参数检测方法,其特征在于,所述第一方向x上的动力学参数的映射关系包括:The motor model parameter detection method according to claim 5, wherein the mapping relationship of the dynamic parameters in the first direction x comprises:
    所述马达的振子质量m、所述马达单体在所述第一方向x上的速度v x、在所述第一方向x的加速度a x、在所述第一方向x上的阻尼c x、在所述第一方向x上的电磁力系数Bl x和通过所述马达单体的电流i的映射关系; The vibrator mass m of the motor, the speed v x of the motor unit in the first direction x, the acceleration a x in the first direction x, the damping c x in the first direction x , the mapping relationship between the electromagnetic force coefficient Bl x in the first direction x and the current i passing through the motor unit;
    所述第二方向y上的动力学参数的映射关系包括:The mapping relationship of the dynamic parameters in the second direction y includes:
    所述马达的振子质量m、所述马达单体在所述第二方向y上的速度v y、在所述第二方向y的加速度a y、在所述第二方向y上的阻尼c y、在所述第二方向y上的电磁力系数Bl y和通过所述马达单体的电流i的映射关系。 The vibrator mass m of the motor, the speed vy of the motor unit in the second direction y, the acceleration a y in the second direction y, the damping cy in the second direction y , the mapping relationship between the electromagnetic force coefficient Bly in the second direction y and the current i passing through the motor unit.
  7. 一种马达模型参数检测系统,其特征在于,包括待检测马达、电压电流采集装置、驱动装置和马达模型参数检测装置,其中:A motor model parameter detection system, characterized in that it includes a motor to be detected, a voltage and current acquisition device, a driving device, and a motor model parameter detection device, wherein:
    所述电压电流采集装置与所述待检测马达连接,所述马达模型参数检测装置与所述驱动装置连接,所述驱动装置与所述待检测马达连接;The voltage and current collection device is connected to the motor to be detected, the motor model parameter detection device is connected to the drive device, and the drive device is connected to the motor to be detected;
    所述电压电流采集装置用于采集所述待检测马达的工作电压值和工作电流值,并反馈给所述马达模型参数检测装置;所述驱动装置用于在所述马达模型参数检测装置的控制下输出预设的扫频信号驱动所述待检测马达;所述马达模型参数检测装置用于执行以下步骤:The voltage and current collection device is used to collect the working voltage value and the working current value of the motor to be detected, and feed them back to the motor model parameter detection device; the drive device is used for the control of the motor model parameter detection device and outputting a preset frequency sweep signal to drive the motor to be detected; the motor model parameter detection device is used to perform the following steps:
    获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;Obtain the voltage signal and the current signal of the motor in working state, and the vibrator of the motor vibrates in two directions;
    获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;obtaining a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
    将所述电压信号和所述电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;Substituting the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of spectral impedance values of the motor;
    根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。According to the plurality of spectral impedance values of the motor, the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
  8. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:An electronic device, characterized in that it includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the following steps:
    获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;Obtain the voltage signal and the current signal of the motor in working state, and the vibrator of the motor vibrates in two directions;
    获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;obtaining a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
    将所述电压信号和所述电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;Substituting the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of spectral impedance values of the motor;
    根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。According to the plurality of spectral impedance values of the motor, the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
  9. 一种存储介质,存储有计算机指令程序,其特征在于,所述计算机指令程序被处理器执行时,使得所述处理器执行以下步骤:A storage medium storing a computer instruction program, characterized in that, when the computer instruction program is executed by a processor, the processor is caused to perform the following steps:
    获取处于工作状态下的马达的电压信号和电流信号,所述马达的振子在两个方向上产生振动;Obtain the voltage signal and the current signal of the motor in working state, and the vibrator of the motor vibrates in two directions;
    获取预设的马达模型的频谱阻抗表达式,所述频谱阻抗表达式根据所述马达在两个方向上的动力学参数的映射关系以及所述马达的电压与电流的映射关系确定;obtaining a spectral impedance expression of a preset motor model, where the spectral impedance expression is determined according to the mapping relationship of the dynamic parameters of the motor in two directions and the mapping relationship between the voltage and the current of the motor;
    将所述电压信号和所述电流信号分别代入所述频谱阻抗表达式,计算获得所述马达的多个频谱阻抗值;Substituting the voltage signal and the current signal into the spectral impedance expression, respectively, to obtain a plurality of spectral impedance values of the motor;
    根据所述马达的多个频谱阻抗值,采用最小二乘法对所述马达的频谱阻抗值进行拟合计算,获得所述马达模型的目标频谱阻抗参数。According to the plurality of spectral impedance values of the motor, the least squares method is used to fit and calculate the spectral impedance values of the motor to obtain target spectral impedance parameters of the motor model.
PCT/CN2021/071348 2020-12-24 2021-01-13 Method and apparatus for measuring parameters of motor model, electronic device, and medium WO2022134237A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011548932.1A CN112667077A (en) 2020-12-24 2020-12-24 Motor model parameter detection method and device, electronic equipment and medium
CN202011548932.1 2020-12-24

Publications (1)

Publication Number Publication Date
WO2022134237A1 true WO2022134237A1 (en) 2022-06-30

Family

ID=75408246

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071348 WO2022134237A1 (en) 2020-12-24 2021-01-13 Method and apparatus for measuring parameters of motor model, electronic device, and medium

Country Status (2)

Country Link
CN (1) CN112667077A (en)
WO (1) WO2022134237A1 (en)

Families Citing this family (1)

* 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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838412A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Method for providing feedback and electronic device
CN104755947A (en) * 2012-10-26 2015-07-01 Abb技术有限公司 A method for the diagnostics of electromechanical system based on impedance analysis
CN106301137A (en) * 2016-08-31 2017-01-04 歌尔股份有限公司 Actively control the method for linear motor vibrations, device, system and electronic equipment
US20170256145A1 (en) * 2014-02-13 2017-09-07 Nxp B.V. Multi-tone haptic pattern generator
CN107561367A (en) * 2017-08-15 2018-01-09 北京航空航天大学 A kind of wide spectrum impedance measurement device and method based on compressive sensing theory
CN110146810A (en) * 2019-04-23 2019-08-20 瑞声科技(新加坡)有限公司 A kind of determination method and device of linear motor test parameter
CN111722108A (en) * 2020-06-24 2020-09-29 瑞声科技(新加坡)有限公司 Motor distortion measuring method and apparatus, computer readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7218072B2 (en) * 2003-02-18 2007-05-15 Matsushita Electric Industrial Co., Ltd. Motor driving device, motor to be driven by the same device, and apparatus using the same motor
WO2005085792A1 (en) * 2004-03-10 2005-09-15 Nanyang Technological University Method and apparatus for assessing condition of motor-driven mechanical system
KR101838633B1 (en) * 2011-07-22 2018-03-14 엘지전자 주식회사 Mobile terminal and vibration power control method thereof
US20200341063A1 (en) * 2012-06-08 2020-10-29 Schneider Electric USA, Inc. Systems and methods for analyzing operation of motors
WO2015008113A1 (en) * 2013-07-18 2015-01-22 Freescale Semiconductor, Inc. Apparatus and method for determining impedance characteristics of an electrical load
TWI692931B (en) * 2013-11-13 2020-05-01 布魯克斯自動機械公司 Variable reluctance motor load mapping apparatus, method for characterizing the relationship between torque, current and position of determining motor load for a variable reluctance motor, method for characterizing the relationship between torque, current and position of a variable reluctance motor, a brushless electric machine, and a variable reluctance motor controller
CN106253742B (en) * 2015-06-12 2019-07-12 精工爱普生株式会社 Motor Piexoelectric actuator, motor, robot and pump
CN109274308B (en) * 2018-08-13 2022-06-14 瑞声科技(新加坡)有限公司 Motor parameter control system and motor parameter control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104755947A (en) * 2012-10-26 2015-07-01 Abb技术有限公司 A method for the diagnostics of electromechanical system based on impedance analysis
CN103838412A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Method for providing feedback and electronic device
US20170256145A1 (en) * 2014-02-13 2017-09-07 Nxp B.V. Multi-tone haptic pattern generator
CN106301137A (en) * 2016-08-31 2017-01-04 歌尔股份有限公司 Actively control the method for linear motor vibrations, device, system and electronic equipment
CN107561367A (en) * 2017-08-15 2018-01-09 北京航空航天大学 A kind of wide spectrum impedance measurement device and method based on compressive sensing theory
CN110146810A (en) * 2019-04-23 2019-08-20 瑞声科技(新加坡)有限公司 A kind of determination method and device of linear motor test parameter
CN111722108A (en) * 2020-06-24 2020-09-29 瑞声科技(新加坡)有限公司 Motor distortion measuring method and apparatus, computer readable storage medium

Also Published As

Publication number Publication date
CN112667077A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US20210025940A1 (en) Method And Apparatus For Testing Nonlinear Parameter of Motor
CN110146810B (en) Method and device for determining test parameters of linear motor
US10748391B2 (en) Haptic signal conversion system
WO2016206056A1 (en) Circuit breaker detection method, device and system
WO2022134237A1 (en) Method and apparatus for measuring parameters of motor model, electronic device, and medium
CN104836713A (en) Measurement and calibration method for vehicle electronic controller, device and system
WO2023206860A1 (en) Method and apparatus for determining mechanical device fault
US11455572B2 (en) Machine learning model hardware configuration based optimization
CN109682584B (en) Robot rigidity performance testing method and device
CN112985867B (en) Steering engine testing method, device, equipment and storage medium
US20140324368A1 (en) Test method, test system and electronic device employing the same
CN111630772B (en) Servo system mechanical parameter identification method, servo control system and storage device
KR101611433B1 (en) Performance testing method, performance testing apparatus performing the same and storage media sotring the same
CN112798954B (en) Detection method and device for vibration motor
CN111601224B (en) Microphone performance testing method and device and electronic equipment
CN116415686A (en) Temperature rise model calibration method and device, ultrasonic imaging equipment and storage medium
CN116155143A (en) Method and device for acquiring motor parameters
CN113283152A (en) Method for adjusting driving electric signal, driving method, driving circuit and electronic device
CN113267247A (en) Method and device for measuring vibration frequency of electric toothbrush and measuring instrument
CN111539089A (en) Motor nonlinear model judgment method and system
US10917327B1 (en) Adaptive testing based on real-time analysis
US20130141128A1 (en) Test device and test method for testing electronic devices
CN117307516A (en) Data processing method, device, head-mounted equipment and storage medium
CN114977941B (en) Inertia identification method, device and medium for alternating current servo system
CN111693289B (en) Method and system for identifying rotating speed of aircraft engine

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: 21908256

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: 21908256

Country of ref document: EP

Kind code of ref document: A1