[go: up one dir, main page]

CN116384031B - Simulation method and device for motor vibration effect - Google Patents

Simulation method and device for motor vibration effect Download PDF

Info

Publication number
CN116384031B
CN116384031B CN202111601374.5A CN202111601374A CN116384031B CN 116384031 B CN116384031 B CN 116384031B CN 202111601374 A CN202111601374 A CN 202111601374A CN 116384031 B CN116384031 B CN 116384031B
Authority
CN
China
Prior art keywords
motor
waveform
driving waveform
vibration
driving
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111601374.5A
Other languages
Chinese (zh)
Other versions
CN116384031A (en
Inventor
柳慧芬
何亮
彭参镇
郑天驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Silicon Integrated Co Ltd
Original Assignee
Wuhan Silicon Integrated Co Ltd
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 Wuhan Silicon Integrated Co Ltd filed Critical Wuhan Silicon Integrated Co Ltd
Priority to CN202111601374.5A priority Critical patent/CN116384031B/en
Publication of CN116384031A publication Critical patent/CN116384031A/en
Application granted granted Critical
Publication of CN116384031B publication Critical patent/CN116384031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

公开了一种马达振动效果的仿真方法及装置,根据一实施例,一种马达振动效果的仿真方法可包括:提供用于对马达进行仿真振动的驱动波形;对所述驱动波形进行成分解析,将所述驱动波形分解为一个或多个分量驱动波形;计算出马达在各个分量驱动波形下的振动数据;将计算得到的各个振动数据进行合成,获得马达在所述驱动波形下的仿真振动数据。本发明能够对设计的波形先进行仿真观察,在得到预期的结果后再进行实际驱动调试,从而可节省调试时间。

Disclosed is a simulation method and device for motor vibration effect. According to one embodiment, a simulation method for motor vibration effect may include: providing a driving waveform for simulating vibration of a motor; performing component analysis on the driving waveform to decompose the driving waveform into one or more component driving waveforms; calculating vibration data of the motor under each component driving waveform; synthesizing each calculated vibration data to obtain simulated vibration data of the motor under the driving waveform. The present invention can simulate and observe the designed waveform first, and then perform actual drive debugging after obtaining the expected result, thereby saving debugging time.

Description

Simulation method and device for motor vibration effect
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for simulating a motor vibration effect.
Background
With the development and popularization of various electronic devices such as smart phones and wearable devices, the requirements of people on haptic experiences are increasingly abundant. Currently, haptic feedback techniques are generally implemented by motor vibration, which excites a vibration motor inside a device with a specific driving waveform, and vibrator vibration inside the motor is perceived by people to generate haptic effects.
In the prior art, the driving signal is generally adjusted by actually driving the motor to obtain the motor vibration effect. For example, when the response of the actual motor/tool is not satisfactory, the driving signal or the adjustment parameter is changed to drive again until the output haptic effect is satisfactory, however, this method is inefficient in operation, and it is difficult to find a driving waveform that meets the expected vibration effect.
Disclosure of Invention
The present application has been made to solve the above-mentioned technical problems occurring in the prior art. The embodiment of the application provides a simulation method and a simulation device for motor vibration effect, which can simulate and observe a designed waveform, and then carry out actual driving and debugging after obtaining an expected result, thereby saving debugging time.
According to an aspect of the present application, there is provided a simulation method of a motor vibration effect, the simulation method including: providing a driving waveform for performing simulated vibration on the motor; performing component analysis on the driving waveform, and decomposing the driving waveform into one or more component driving waveforms; calculating vibration data of the motor under each component driving waveform; and synthesizing the calculated vibration data to obtain simulation vibration data of the motor under the driving waveform.
In some embodiments, providing a drive waveform for simulated vibration of a motor includes: selecting one or more structured waveforms from a library of pre-designed structured waveforms, each structured waveform being determined by at least a waveform type, a waveform voltage, and a waveform frequency; and superposing the one or more structured waveforms to obtain the driving waveform.
In some embodiments, calculating vibration data of the motor at each component drive waveform includes: obtaining model parameters of the motor; vibration data of the motor under each component drive waveform is calculated based on a motor vibration model associated with model parameters of the motor.
In some embodiments, determining model parameters of the motor includes: driving the motor to vibrate using a pre-generated drive signal, the drive signal being associated with more than two frequencies; acquiring response data of the motor under the driving signal; and determining model parameters of the motor according to the response data.
In some embodiments, the vibration data includes at least one of motor vibrator displacement, motor vibrator movement speed, motor vibrator acceleration.
In some embodiments, the method may further comprise: calculating tool vibration data of the motor tool under each component driving waveform; and synthesizing the calculated tool vibration data to obtain tool simulation vibration data of the tool under the driving waveform.
Another aspect of the present application provides a motor vibration effect simulation apparatus, including: a providing unit for providing a driving waveform for performing simulated vibration on the motor; an analysis unit for performing component analysis on the driving waveform, and decomposing the driving waveform into one or more component driving waveforms; a calculation unit for calculating vibration data of the motor under the respective component driving waveforms; and a synthesizing unit for synthesizing the calculated vibration data to obtain the simulated vibration data of the motor under the driving waveform.
In some embodiments, the simulation apparatus further comprises: and the display unit is used for displaying the simulated vibration data.
Another aspect of the application also provides an electronic device comprising a memory, a processor, and instructions stored on the memory and executable on the processor, which when executed by the processor, cause the processor to perform the simulation method described above.
Another aspect of the application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the simulation method described above.
Compared with the prior art, the motor vibration effect simulation method and the motor vibration effect simulation device can observe the vibration effect through simulation after the waveform is designed, so that a design closed loop is formed, actual driving is not needed for each design waveform, and debugging time is saved. Further, by obtaining the motor model parameters with high accuracy, the reliability of the vibration state simulation data can be improved, and the driving waveform meeting the expected effect can be quickly designed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing embodiments of the present application in more detail with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 is a flow chart illustrating a method of simulating motor vibration effects provided in accordance with an embodiment of the present application;
FIG. 2 shows a schematic diagram of a structured drive waveform provided in accordance with an embodiment of the present application;
FIG. 3 shows a schematic diagram of output simulated vibration data provided in accordance with an embodiment of the present application;
FIG. 4 is a flow chart of a method for calculating vibration data of a motor under each component driving waveform according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating the calculation of motor parameters according to an embodiment of the present application;
FIG. 6 is a block diagram showing a motor vibration effect simulation apparatus according to an embodiment of the present application;
fig. 7 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. It will be apparent that the described embodiments are only some of the embodiments of the present application and not all of the embodiments of the present application. Also, not all of the above advantages need be achieved at the same time to practice any of the examples of embodiments of the application. It should be understood that the application should not be limited to the specific details of these example embodiments. Rather, embodiments of the application may be practiced without these specific details or in other alternative ways, without departing from the spirit and principles of the application, which are defined by the claims.
Fig. 1 is a flowchart illustrating a method for simulating the vibration effect of a motor according to an embodiment of the present application, and as shown in fig. 1, the method 100 may begin with step S110, where a driving waveform for simulating the vibration of the motor is provided.
For example, a signal for simulating vibration of the driving motor can be generated at a computer terminal, a digital signal of the driving waveform can be directly subjected to a subsequent simulation step, or can be actually subjected to digital-to-analog conversion after the simulation step and then loaded to two ends of the linear motor for actual measurement so as to verify the simulation accuracy.
In an embodiment, one or more structured waveforms may be selected from a pre-designed structured waveform library, and the one or more structured waveforms are superimposed, thereby obtaining the driving waveform. The structured waveform library may also be referred to as a waveform dataset, which may be stored in a memory, and each structured waveform may be determined by a waveform type, a waveform voltage, a waveform frequency, and the like, where the waveform type may include a sine wave, a square wave, a rounded square wave, and the like, the waveform voltage may be characterized by a peak voltage or an average value, the peak voltage or the average value may be equivalently scaled, and the waveform frequency may be selected to be equal to or close to a resonant frequency f0 of the motor, such that the motor generates a higher vibration level, for example, between 100 Hz and 200 Hz.
In addition, the driving waveform can also have data dimensions such as waveform time length, waveform initial phase, waveform data sampling rate and the like, the waveform time length is the duration of the driving waveform, the waveform time length can be represented by duration (unit ms) or waveform period number, the change curve of motor vibration data in the time domain can be determined through simulation by the parameter, the waveform initial phase can be any value between 0 pi and 2 pi, and the waveform data sampling rate can correspond to the sampling rate in the driving chip.
By structurally characterizing the drive waveform with multiple parameter dimensions, several structured drive waveforms can be pre-designed, each corresponding to a different combination of parameters. Fig. 2 shows a schematic diagram of some structured driving waveforms, as shown in fig. 2, which specifically shows three waveforms (time on the abscissa and voltage on the ordinate), each of which may have the following parameters:
Waveform ID Type(s) Duration of time Peak value Phase of Frequency of Sampling frequency
1 Sine wave 2 127 0 119.5 24k
2 Round corner square wave 2 127 0 119.5 24k
3 Square wave 2 127 0 119.5 24k
In the above table, the waveform duration is characterized by a number of cycles, the peak value is characterized by a digital quantized value, the waveform frequency, the sampling frequency are in Hz, it is understood that the parameters in the table are merely examples and not limitations. In actual design of the drive waveforms, one or more waveforms may be selected from these structured drive waveforms for timing stitching or waveform stacking, so that any waveform may be designed as desired.
Returning to fig. 1, after designing the motor driving waveform, the simulation method of the present embodiment may proceed to step 120 to perform component analysis on the driving waveform, and decompose the driving waveform into one or more component driving waveforms.
Because the designed driving waveform may be any waveform, in order to achieve the simulation of the vibration effect of the waveform, the embodiment can firstly analyze the component of the waveform to convert the component into the combination of component driving waveforms which can be suitable for the linear motor model, that is, each component driving waveform can be calculated by using a uniform linear motor model.
In one embodiment, the designed drive waveform may be fourier decomposed such that it is decomposed into a linear combination of one or more harmonics, each of which may be considered a component drive waveform, the voltage value and frequency of which may be determined by the coefficients and harmonic angular frequencies of the corresponding series obtained by the fourier decomposition. As a well-known numerical analysis tool, the present embodiment does not describe the fourier transform process in detail.
Thereafter, step 130 may be performed to calculate vibration data of the motor at each component driving waveform.
The calculation process may be to simulate at least part of the driving waveforms of the respective component driving waveforms obtained by analysis applied to both ends of the motor unit to obtain vibration data, and the vibration data may include at least one of motor vibrator displacement, motor vibrator moving speed, and motor vibrator acceleration, for example. In practical applications, the motor unit is generally fixedly disposed on the tool, and applying a driving waveform to the motor unit to generate vibration will also drive the tool to perform reverse vibration.
For example, in the case of fourier decomposition of the driving waveform, the linear motor will move in a mode of similar simple harmonic vibration under the driving of each component driving waveform, specifically, the vibrator displacement, the vibrator moving speed, and the vibrator acceleration of the obtained motor can be calculated by the following formulas (1) to (3) in the case of obtaining the motor model parameters:
Wherein x (ω) is a vibrator displacement under the component driving waveform, u (ω) is a vibrator moving speed under the component driving waveform, and a (ω) is a motor vibrator acceleration under the component driving waveform; v vc is the peak voltage of the component drive waveform, which can be determined by designing coefficients of the voltage and the corresponding progression of the component drive waveform, ω is the angular frequency of the component drive waveform signal, which is typically a multiple of the fundamental frequency obtained by fourier decomposition; bl is the motor electromagnetic force coefficient, R e is the motor resistance, M ms is the motor mass, ω 0 is the resonant angular frequency of the motor, Q ts is the motor system Q factor, these parameters are motor intrinsic parameters, which can be obtained by modeling calculations, as will be described in more detail below.
In an embodiment, the calculation of this step may be selected for a part of the n component driving waveforms obtained by fourier decomposition, for example, the above-described analog calculation may be performed for only the component driving waveforms corresponding to the first 10 or less decomposition levels obtained by fourier decomposition, so that the calculation amount of the analog simulation may be reduced.
After performing simulation calculation on each component driving waveform to obtain corresponding vibration data, the simulation method of the embodiment may proceed to step 140, and synthesize each calculated vibration data to obtain simulated vibration data of the motor under the driving waveform.
For a linear motor, the mass block of the linear motor generally moves uniaxially under the driving waveform, so that the calculated vibration data can be linearly superimposed to obtain the final simulated vibration data of the motor. The vibration data may include motor vibrator displacement x ms, motor vibrator moving speed u ms, motor vibrator acceleration a ms. According to the method of the present embodiment, even when there is no actual motor and driving apparatus, the vibration effect of the motor can be simulated and observed after designing the driving waveform.
Fig. 3 shows a schematic diagram of output simulated vibration data provided according to an embodiment of the present application. Wherein, motor model parameters are: motor mass M ms = 0.004768, motor resistance R e = 8.1832, motor resonant frequency f0=119.5, mechanical quality factor Q ms = 8.8084, circuit quality factor Q es = 17.8745, motor inductance l= 0.00010763, tooling mass M tool =0.178, driving voltage V vc =1. The three curves respectively represent the data changes of the displacement, the speed and the acceleration of the motor vibrator obtained by simulation calculation on time sequence, and the vibration effect of the driving waveform is observed through simulation to form a design closed loop, for example, the motor can be subjected to amplitude protection based on the obtained motor vibrator displacement and vibrator displacement speed, and the vibration effect of the motor can be estimated based on the simulated motor acceleration data. Only after the expected result is met, the actual driving debugging is performed, so that the debugging time is saved.
In an embodiment, after the vibrator acceleration of the motor is obtained by calculation, the vibration level of the motor tool may also be calculated. For example, tool vibration data of the motor tool under each component driving waveform may be calculated first, and the vibration level of the motor tool may be acceleration at a predetermined position of the tool, which may be calculated by the following formula:
Wherein a tool (ω) is the acceleration of the motor tooling at the predetermined position in response to the component drive waveform, M ms is the motor mass, a (ω) is the motor vibration acceleration under the component drive waveform, and M tool is the tooling equivalent mass.
After the tool data driven by each component are obtained, the calculated tool vibration data can be synthesized, so that tool simulation vibration data of the motor tool under the driving waveform is obtained. For example, the calculated vibration data of each tool may be linearly superimposed to obtain the final simulated vibration data of the motor tool.
Alternatively, the vibration level of the motor tool may be calculated by the following formula after the final simulation obtains the vibrator acceleration of the motor:
Wherein a tool is the acceleration of the motor tool at a preset position in response to the driving waveform, M ms is the motor mass, a ms is the motor vibration acceleration under the driving waveform, and M tool is the tool equivalent mass. Through the calculation mode of the embodiment, the vibration level of the tool can be obtained without additionally arranging the vibration sensor on the tool, and whether the haptic effect accords with the expectation can be estimated based on the vibration level, so that the operation convenience is improved.
Fig. 4 is a flowchart of a method for calculating vibration data of a motor under each component driving waveform according to an embodiment of the present application, and as shown in fig. 4, obtaining motor response data of the motor under the component driving signal may include the following steps:
at step 310, model parameters of the motor are determined.
In one embodiment, for calculation according to the foregoing formulas (1) - (3), the model parameters include at least motor mass, motor resistance, motor resonant angular frequency, and the like, and may further include a motor electromagnetic force coefficient Bl and/or Q factor.
In an embodiment, the partial model parameters of the motor may be determined based on the response data of the motor to the preset driving signal, for example, the resonant frequency and the angular frequency of the motor may be determined based on the frequency point corresponding to the maximum measured value of the vibration acceleration, and the motor resistance, inductance, etc. parameters may be determined based on the motor calculation model for the voltage and the current.
In an embodiment, the frequency impedance curve of the motor may be obtained based on the voltage and current response data of the motor under the driving signal having a plurality of frequency points, and the motor parameter may be directly calculated based on a motor modeling formula, which will be described later in detail.
At step 320, vibration data of the motor at each component drive waveform is calculated based on a motor vibration model associated with model parameters of the motor.
In the case of knowing the motor model parameters, the response data of the motor to the component driving waveform after the analysis of the arbitrary driving waveform can be obtained through calculation of the motor vibration model (formula 1-3) described above, and will not be described here.
Fig. 5 is a schematic flow chart of calculating parameters of a motor model according to an embodiment of the application. As shown in fig. 5, calculating motor model parameters may be accomplished by:
in step 310, the motor is driven to vibrate using a pre-generated drive signal, the drive signal being associated with more than two frequencies.
Unlike the simulation described above, the actual driving of the motor is required in the process of determining the motor model parameters. For example, a digital signal may be generated at the host computer, and the digital signal may be converted into a driving analog signal by digital-to-analog conversion and power amplification, and then the driving analog signal may be applied to both ends of the linear motor, and the applied voltage may be preset. The motor will drive the tool to vibrate together under the drive signal.
In an embodiment, the driving signal is associated with more than two frequencies, i.e. the driving waveform driving the motor has a plurality of frequency bins, e.g. may have more than 10 or more frequency bins, which may provide a basis for subsequent acquisition of motor model parameters. The frequency range of the drive signal may be between 20-6000Hz, the waveform of the drive signal may take the form of a sine wave, a square wave, a rounded square wave, etc., for example, in response to a modeling enable signal, the waveform type may be selected and a waveform or set of waveforms having a plurality of predetermined frequency points may be generated, driving the motor a single time or multiple times. Specifically, the upper computer can transmit waveform data to a data exchange device such as a microcontroller, the data exchange device can buffer part or whole waveform data, the data exchange device can transmit the data to a digital-to-analog conversion device for digital-to-analog conversion and signal amplification processing, and then the amplified driving waveform is provided to the linear motor to drive the motor to vibrate.
Specifically, in an embodiment, more than two frequency points may be selected within a predetermined frequency range, and a driving waveform of a fixed period may be generated for each frequency. For example, the predetermined frequency range may be 20-6000Hz, within which n frequency points are selected, n may be an integer above 10, and driving waveforms having corresponding frequencies are generated, i.e. n driving waveforms are generated, each of which may last for several cycles, e.g. 3-5 cycles. The n driving waveforms may be sent to driving circuits connected to the motor, respectively, which drives the motor n times.
In another embodiment, the start frequency and the end frequency may be selected within a predetermined frequency range, and a continuous driving waveform having two or more frequencies may be generated in preset frequency steps. For example, the predetermined frequency range may be 20-6000Hz, i.e. 20Hz may be selected as the starting frequency and 6000Hz as the ending frequency, and a preset frequency step may be set, which step may be for example 1-20Hz, whereby a set of frequency values may be determined in the preset frequency range. Then, a waveform of several cycles is generated for each frequency bin in the set of frequency values, and waveforms of all frequency bins are connected end to end in time sequence to generate a continuous driving waveform having a plurality of frequency bins. It can be seen that the fabrication of the driving waveforms in this embodiment generates only one driving waveform. The drive waveform may be sent to a motor drive circuit that drives the motor a single time.
Step 320, obtaining response data of the motor under the driving signal.
For example, the response data of the motor, such as an electric signal, a vibration level and the like generated in the vibration process can be collected through the sensors arranged at the two ends of the motor or on the tooling, the corresponding response data is collected for the driving signals of all the frequency points, and the collected response data is also related to the two or more frequencies when the driving signals have the two or more frequency points.
In one embodiment, the response data includes voltage data and current data, for example, voltage and current sensors may be provided across the motor so that the voltage across the motor, as well as the current flowing through the motor coils, may be monitored in real time.
In an embodiment, the response data may further include vibration data such as acceleration of the motor, and the vibration of the linear motor drives the tool to vibrate reversely, so that the vibration acceleration of the motor can be obtained through measurement of a sensor such as a triaxial accelerometer attached to the tool near the motor.
Although described separately above with respect to steps 310 and 320, it is understood that driving the motor to vibrate and collecting response data of the vibration may be performed simultaneously, i.e., response data of the driving waveform at corresponding frequency points may be collected simultaneously during vibration of the motor. The collected data such as voltage, current and acceleration can be transmitted to an upper computer for smoothing and the like to obtain response data so as to calculate the subsequent motor model parameters.
And 330, determining the parameters of the motor according to the response data.
In one embodiment, as shown in FIG. 5, the parameters of the motor may be determined by:
and step 331, calculating the impedance value of the motor at each frequency point according to the response data.
In one embodiment, when the motor is sequentially driven to vibrate by n driving waveforms, the upper computer can calculate the impedance Z at the kth frequency point based on the voltage and current data acquired by the motor vibrating under the driving waveforms for the kth (1-n) waveform data, for exampleWherein the method comprises the steps ofVoltage and current data, respectively. And, after obtaining the corresponding impedance values at each of all n frequency points, correlating the calculated impedance values with the corresponding frequency values, thereby obtaining the frequency impedance curve of the motor in the set frequency range.
In another embodiment, when the motor is driven to vibrate by a single continuous driving waveform, the upper computer can calculate the impedance Z at each frequency point based on the voltage and current data collected by the motor vibrating under the driving waveform, for exampleWherein the method comprises the steps ofVoltage and current data, respectively. After the driving waveform of the driving motor for vibration is played, a continuous curve of the impedance value in the time domain can be calculated and obtained, and then a frequency impedance curve of the motor in a set frequency range can be obtained through operations such as DFT.
Step 332, calculating model parameters of the motor by using the motor impedance model based on the obtained frequency impedance curve.
In one embodiment, the obtained frequency impedance curve may be used to perform a numerical fit to calculate motor model parameters, including: motor resistance R e, angular frequency ω, motor inductance L e, motor electromagnetic force coefficient Bl, damping coefficient R ms, motor mass M ms, motor force transient C ms, motor impedance model may have the following expression:
wherein Z vc is impedance, and angular frequency ω=2pi f, f is the frequency of the driving waveform.
The motor mass M ms in the above model may be the overall mass of the motor, which may be obtained by weighing, so that the fitting calculation may be reduced. Alternatively, the motor mass M ms may also be a motor vibrator mass, which may be obtained by the model fitting calculation described above.
In numerical fitting using the above model, constraints can be added, in the above formulaWhen equal to 0, ω will be the motor resonant angular frequency ω 0 =2pi_f0 (f 0 is the motor resonant frequency), i.e. the resonant angular frequency ω 0 of the motor can be obtained on the basis of fitting the calculated M ms、Cms:
in addition, the Q factor and the elastic stiffness coefficient K of the motor can also be calculated based on the following formula:
Wherein, Q es、Qms represents the circuit quality factor and the mechanical quality factor of the motor, respectively, and the Q ts of the motor system can be obtained by the following formula based on Q es、Qms:
As can be seen, the present embodiment can directly calculate and obtain motor parameters including the motor electromagnetic force coefficient Bl, the resonant angular frequency ω 0, the motor mass M ms, the motor resistance R e, the motor inductance L e, the system Q factor Q ts, and the like based on the measured frequency impedance curve, and can directly calculate and obtain the vibrator displacement, the speed and the acceleration of the motor under the driving waveform signal of any design based on the formulas (1) - (3) described above according to the obtained motor parameters, so as to obtain the acceleration evaluation value of the motor tool for the arbitrary driving waveform based on formulas (4) - (5). After the vibration data is calculated, the relevant simulated vibration data may be displayed, for example, in the form of a data graph of fig. 3, using an information display tool of a host computer.
According to the embodiment of the application, the vibration effect can be observed through simulation after the waveform is designed, and the actual driving debugging is performed after the expected result is obtained, so that the waveform design flow can be simplified, and the debugging time can be saved.
The embodiment of the application also provides a simulation device for the motor vibration effect. As shown in fig. 6, the simulation apparatus 400 of the motor vibration effect according to the embodiment of the present application may include: a providing unit 410 for providing a driving waveform for performing a simulated vibration of the motor; an analysis unit 420 for performing component analysis on the driving waveform, and decomposing the driving waveform into one or more component driving waveforms; a calculation unit 430 for calculating vibration data of the motor at the respective component driving waveforms; and a synthesizing unit 440 for synthesizing the calculated respective vibration data to obtain simulated vibration data of the motor under the driving waveform. The above units or modules may be integrated into a host computer, such as a processor with data processing capabilities, and the host computer may further include other functional modules such as digital-to-analog conversion.
In an embodiment, the simulation device 400 may also include a display unit 450 for presenting the simulated vibration data.
In an embodiment, the providing unit 410 is configured to provide a driving waveform for simulating vibration of the motor in the following manner: selecting one or more structured waveforms from a preset structured waveform library, wherein each structured waveform is at least determined by a waveform type, a waveform voltage and a waveform frequency; and superposing the one or more structured waveforms to obtain the driving waveform.
In one embodiment, the calculating unit 430 is configured to calculate vibration data of the motor under each component driving waveform as follows: obtaining model parameters of the motor; vibration data of the motor under each component drive waveform is calculated based on a motor vibration model associated with model parameters of the motor.
In an embodiment, the computing unit 430 may receive model parameters of the motor; alternatively, the computing unit 430 may be configured to determine model parameters of the motor in the following manner including: driving the motor to vibrate using a pre-generated drive signal, the drive signal being associated with more than two frequencies; acquiring response data of the motor under the driving signal; and determining model parameters of the motor according to the response data.
In an embodiment, the vibration data includes at least one of motor vibrator displacement, motor vibrator moving speed, motor vibrator acceleration.
In an embodiment, the calculating unit may be further configured to calculate vibration data of the motor fixture, which may be performed in the following manner: calculating tool vibration data of the motor tool under each component driving waveform; and synthesizing the calculated tool vibration data to obtain tool simulation vibration data of the motor tool under the driving waveform.
The specific functions and operations of the respective units and modules in the above-described simulation apparatus 400 have been described in detail in the evaluation methods described above with reference to fig. 1 to 5, and thus are only briefly described herein, and unnecessary repetitive descriptions are omitted.
Also provided herein is a computer-readable storage medium having stored thereon a simulation program of a motor vibration effect, which when executed by a processor performs the steps of the simulation method of a motor vibration effect as described above, and the simulation calculation method may be specifically implemented with reference to fig. 1 to 5, which will not be described herein.
Embodiments herein may also be an electronic device including a memory, a processor, and instructions stored on the memory and executable on the processor, wherein the instructions, when executed by the processor, cause the processor to perform steps of a method of simulating motor vibration effects as described above, and a specific implementation of the method of simulating calculation may be described with reference to fig. 1-5, which is not repeated herein.
Fig. 7 illustrates a block diagram of an electronic device according to an embodiment of the application. As shown in fig. 7, the electronic device 500 includes a processor 510 and a memory 520.
The processor 510 may be a Central Processing Unit (CPU), microprocessor, or other form of processing chip having data processing and/or instruction execution capabilities, and may control other components in the electronic device 500 to perform desired functions.
Memory 520 may be an internal storage unit of an electronic device, such as non-volatile and/or volatile memory, and the like. The memory 520 may have various types of data, such as motor model parameters, stored thereon, and may comprise one or more computer program products, which may comprise various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 510 to perform the above-described simulation of the vibration effect of the motor under a pre-designed drive waveform and/or other desired functions.
In one example, the electronic device 500 may further include: an input device 530 and an output device 540, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown). The input means 530 may be, for example, a camera, an antenna or a microphone device. In addition, the input device 530 may also include, for example, a keyboard, a mouse, and the like. The output device 540 may output various information to the outside. The output device 540 may include, for example, a display, speakers, and a communication network and its connected remote output devices, among others.
Of course, only some of the components of the electronic device 500 that are relevant to the present application are shown in fig. 7 for simplicity, components such as buses, input/output interfaces, etc. are omitted. In addition, the electronic device 500 may include any other suitable components depending on the particular application.
The basic principles of the present application have been described above in connection with specific embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be construed as necessarily possessed by the various embodiments of the application. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the application is not necessarily limited to practice with the above described specific details.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (9)

1.一种马达振动效果的仿真方法,包括:1. A method for simulating motor vibration effect, comprising: 提供用于对马达进行仿真振动的驱动波形,所述马达包括马达振子;Providing a driving waveform for simulating vibration of a motor, wherein the motor includes a motor vibrator; 对所述驱动波形进行成分解析,将所述驱动波形分解为一个或多个分量驱动波形;Performing component analysis on the driving waveform to decompose the driving waveform into one or more component driving waveforms; 计算出所述马达振子在各个分量驱动波形下的振动数据;Calculating vibration data of the motor vibrator under each component driving waveform; 将计算得到的各个振动数据进行合成,获得马达在所述驱动波形下的仿真振动数据;以及synthesizing the calculated vibration data to obtain simulated vibration data of the motor under the driving waveform; and 基于所述仿真振动数据评估马达的振动效果是否满足预期结果,在满足预期结果后,所述驱动波形用于实际的驱动调试,Based on the simulated vibration data, it is evaluated whether the vibration effect of the motor meets the expected result. After meeting the expected result, the driving waveform is used for actual driving debugging. 其中,提供用于对马达进行仿真振动的驱动波形包括:The driving waveform provided for simulating vibration of the motor includes: 从预设计的结构化波形库中选择一个或多个结构化波形,每个结构化波形至少由波形类型、波形电压、波形频率确定;Select one or more structured waveforms from a pre-designed structured waveform library, each structured waveform being determined by at least a waveform type, a waveform voltage, and a waveform frequency; 将所述一个或多个结构化波形进行叠加,获得所述驱动波形,superimposing the one or more structured waveforms to obtain the driving waveform, 其中,对所述驱动波形进行成分解析,将所述驱动波形分解为一个或多个分量驱动波形包括:The step of performing component analysis on the driving waveform to decompose the driving waveform into one or more component driving waveforms includes: 将所述驱动波形分解为一个或多个谐波的线性组合,decomposing the driving waveform into a linear combination of one or more harmonics, 其中,将计算得到的各个振动数据进行合成,获得马达在所述驱动波形下的仿真振动数据包括:The steps of synthesizing the calculated vibration data to obtain the simulated vibration data of the motor under the driving waveform include: 对计算得到的各个振动数据进行线性叠加获得所述仿真振动数据。The simulated vibration data is obtained by linearly superimposing the calculated vibration data. 2.根据权利要求1所述的仿真方法,其中,计算出马达在各个分量驱动波形下的振动数据包括:2. The simulation method according to claim 1, wherein calculating the vibration data of the motor under each component driving waveform comprises: 获取所述马达的模型参数;Obtaining model parameters of the motor; 基于马达振动模型,计算出马达在各个分量驱动波形下的振动数据,所述马达振动模型与所述马达的模型参数相关。Based on a motor vibration model, vibration data of the motor under each component driving waveform is calculated, and the motor vibration model is related to the model parameters of the motor. 3.根据权利要求2所述的仿真方法,其中,确定马达的模型参数包括:3. The simulation method according to claim 2, wherein determining the model parameters of the motor comprises: 采用预生成的驱动信号驱动马达进行振动,所述驱动信号与两个以上的频率相关联;Using a pre-generated drive signal to drive the motor to vibrate, the drive signal being associated with more than two frequencies; 获取马达在所述驱动信号下的响应数据;以及Acquiring response data of the motor under the driving signal; and 根据所述响应数据确定出马达的模型参数。Model parameters of the motor are determined based on the response data. 4.根据权利要求1所述的仿真方法,其中,所述振动数据包括马达振子位移、马达振子移动速度、马达振子加速度中的至少一项。4 . The simulation method according to claim 1 , wherein the vibration data comprises at least one of a motor vibrator displacement, a motor vibrator moving speed, and a motor vibrator acceleration. 5.根据权利要求1所述的仿真方法,还包括:5. The simulation method according to claim 1, further comprising: 计算出马达工装在各个分量驱动波形下的工装振动数据;Calculate the vibration data of the motor tooling under each component driving waveform; 将计算得到的各个工装振动数据进行合成,获得马达工装在所述驱动波形下的工装仿真振动数据。The calculated vibration data of each tooling are synthesized to obtain tooling simulation vibration data of the motor tooling under the driving waveform. 6.一种马达振动效果的仿真装置,包括:6. A device for simulating motor vibration effects, comprising: 提供单元,其用于提供用于对马达进行仿真振动的驱动波形,所述马达包括马达振子;providing a unit for providing a driving waveform for simulating vibration of a motor, the motor comprising a motor vibrator; 解析单元,其用于对所述驱动波形进行成分解析,将所述驱动波形分解为一个或多个分量驱动波形;An analysis unit, which is used to perform component analysis on the driving waveform, and decompose the driving waveform into one or more component driving waveforms; 计算单元,其用于计算出所述马达振子在各个分量驱动波形下的振动数据;A calculation unit, which is used to calculate the vibration data of the motor vibrator under each component driving waveform; 合成单元,其用于将计算得到的各个振动数据进行合成,获得马达在所述驱动波形下的仿真振动数据;以及A synthesis unit, which is used to synthesize the various vibration data obtained by calculation to obtain simulated vibration data of the motor under the driving waveform; and 闭环单元,其用于基于所述仿真振动数据评估马达的振动效果是否满足预期结果,在满足预期结果后,所述驱动波形用于实际的驱动调试,A closed-loop unit is used to evaluate whether the vibration effect of the motor meets the expected result based on the simulated vibration data. After the expected result is met, the drive waveform is used for actual drive debugging. 其中,所述提供单元配置为以如下方式提供用于对马达进行仿真振动的驱动波形包括:The providing unit is configured to provide a driving waveform for simulating vibration of the motor in the following manner: 从预设计的结构化波形库中选择一个或多个结构化波形,每个结构化波形至少由波形类型、波形电压、波形频率确定;Select one or more structured waveforms from a pre-designed structured waveform library, each structured waveform being determined by at least a waveform type, a waveform voltage, and a waveform frequency; 将所述一个或多个结构化波形进行叠加,获得所述驱动波形,superimposing the one or more structured waveforms to obtain the driving waveform, 其中,所述解析单元配置为以如下方式对所述驱动波形进行成分解析,将所述驱动波形分解为一个或多个分量驱动波形包括:The analyzing unit is configured to perform component analysis on the driving waveform in the following manner, and decomposing the driving waveform into one or more component driving waveforms includes: 将所述驱动波形分解为一个或多个谐波的线性组合,decomposing the driving waveform into a linear combination of one or more harmonics, 其中,所述合成单元配置为以如下方式将计算得到的各个振动数据进行合成,获得马达在所述驱动波形下的仿真振动数据包括:The synthesis unit is configured to synthesize the calculated vibration data in the following manner to obtain the simulated vibration data of the motor under the driving waveform, including: 对计算得到的各个振动数据进行线性叠加获得所述仿真振动数据。The simulated vibration data is obtained by linearly superimposing the calculated vibration data. 7.根据权利要求6所述的仿真装置,还包括:7. The simulation device according to claim 6, further comprising: 显示单元,其用于将所述仿真振动数据进行展示。A display unit is used to display the simulated vibration data. 8.一种电子设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的指令,所述指令在被所述处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述的仿真方法。8. An electronic device comprising a memory, a processor, and instructions stored in the memory and executable on the processor, wherein when the instructions are executed by the processor, the processor executes the simulation method according to any one of claims 1 to 5. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现权利要求1至5中任一项所述的仿真方法。9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the simulation method according to any one of claims 1 to 5 is implemented.
CN202111601374.5A 2021-12-24 2021-12-24 Simulation method and device for motor vibration effect Active CN116384031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111601374.5A CN116384031B (en) 2021-12-24 2021-12-24 Simulation method and device for motor vibration effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111601374.5A CN116384031B (en) 2021-12-24 2021-12-24 Simulation method and device for motor vibration effect

Publications (2)

Publication Number Publication Date
CN116384031A CN116384031A (en) 2023-07-04
CN116384031B true CN116384031B (en) 2024-11-15

Family

ID=86963819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111601374.5A Active CN116384031B (en) 2021-12-24 2021-12-24 Simulation method and device for motor vibration effect

Country Status (1)

Country Link
CN (1) CN116384031B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024192701A1 (en) * 2023-03-22 2024-09-26 武汉市聚芯微电子有限责任公司 Method and apparatus for simulating vibration effect of motor
CN117439487B (en) * 2023-12-21 2024-05-10 荣耀终端有限公司 Electronic equipment, resonance frequency detection method and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761669A (en) * 2012-07-24 2012-10-31 瑞声声学科技(深圳)有限公司 State detection method for mobile communication device
CN107193219A (en) * 2016-03-14 2017-09-22 欧姆龙株式会社 Simulator, emulation mode, control program and recording medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7134336B2 (en) * 2004-03-19 2006-11-14 Denso Corporation Vibration type angular velocity sensor
JP2010097092A (en) * 2008-10-20 2010-04-30 Canon Inc Oscillating body apparatus, deflection device using the same, and method of controlling the same
EP2550729A4 (en) * 2010-03-23 2017-05-03 Pelco, Inc. Voltage-controlled stepper motor driver
CN103620928A (en) * 2011-03-17 2014-03-05 联合活跃驱动公司 Asymmetric and general vibration waveforms from a plurality of synchronized vibration actuators
CN103607182B (en) * 2013-12-02 2017-02-01 哈尔滨理工大学 Multi-component composite signal generator and multi-component composite signal generating method
CN108258973B (en) * 2018-01-04 2022-01-14 瑞声科技(新加坡)有限公司 Method and device for generating motor driving signal
WO2021119929A1 (en) * 2019-12-16 2021-06-24 瑞声声学科技(深圳)有限公司 Method and apparatus for customizing vibration, computer device and storage medium
CN111124114B (en) * 2019-12-16 2023-09-29 瑞声科技(新加坡)有限公司 Method, device, computer equipment and storage medium for self-defining vibration
CN111552371B (en) * 2019-12-25 2023-11-03 瑞声科技(新加坡)有限公司 Excitation voltage generation method, device, equipment and medium, test method and system
CN111211726B (en) * 2020-01-16 2020-11-10 司宏伟 System for generating motor drive signals
CN111679735A (en) * 2020-05-20 2020-09-18 瑞声科技(新加坡)有限公司 Excitation signal generation method, device, terminal and storage medium
CN111965537B (en) * 2020-06-30 2021-10-08 瑞声新能源发展(常州)有限公司科教城分公司 Motor parameter testing method
CN112353676B (en) * 2020-09-22 2023-05-23 未来穿戴技术有限公司 Vibration massage method and device, massage equipment and storage medium
CN112528473B (en) * 2020-11-30 2025-01-17 瑞声新能源发展(常州)有限公司科教城分公司 Method, apparatus, device and storage medium for determining motor non-linearity parameter
CN113112163A (en) * 2021-04-20 2021-07-13 瑞声光电科技(常州)有限公司 Haptic effect evaluation method, apparatus, device, and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761669A (en) * 2012-07-24 2012-10-31 瑞声声学科技(深圳)有限公司 State detection method for mobile communication device
CN107193219A (en) * 2016-03-14 2017-09-22 欧姆龙株式会社 Simulator, emulation mode, control program and recording medium

Also Published As

Publication number Publication date
CN116384031A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN106326594B (en) Method and circuit for obtaining output quantity of linear resonant actuator
CN111106783B (en) Signal manufacturing method, signal manufacturing device, vibration motor and touch screen equipment
CN116384031B (en) Simulation method and device for motor vibration effect
Rewienski et al. A trajectory piecewise-linear approach to model order reduction and fast simulation of nonlinear circuits and micromachined devices
CN101576432B (en) Method for generating jolting table shock response
CN111551848B (en) Motor experience distortion index testing method, electronic equipment and storage medium
CN111679735A (en) Excitation signal generation method, device, terminal and storage medium
CN110907827B (en) Motor transient distortion measuring method and system
De Jonghe et al. Characterization of analog circuits using transfer function trajectories
CN108956076B (en) Multi-input multi-output continuous sine frequency sweep vibration test method and test system
CN112487679B (en) A numerical simulation method, system, terminal and medium for acoustic characteristics of a speaker
CN112667077B (en) Motor model parameter detection method and device, electronic equipment and medium
CN113468835A (en) Electromagnetic interference prediction software for BUCK chopper
CN116341171B (en) Evaluation method and system for motor tool vibration
CN109190201A (en) A kind of piezoelectricity multi-wafer equivalent circuit model parameter extracting method
CN116155143B (en) Method and device for acquiring motor parameters
Sozański Low-Cost Hardware Analog and Digital Real-Time Circuit Simulators for Developing Power Electronics Control Circuits.
WO2024192701A1 (en) Method and apparatus for simulating vibration effect of motor
CN116341169B (en) Design method and device for motor driving waveform
CN114048643B (en) Virtual vibration system modeling method and related equipment based on composite control
CN107644134B (en) A kind of dynamics tests die worker's tool
CN115867914A (en) Method and device for determining the sensitivity of a characteristic variable of an electronic circuit
Li et al. Behavioral modeling for analog system-level simulation by wavelet collocation method
WO2024192702A1 (en) Design method and device for drive waveform of motor
Singh A Laboratory Exercise for System Identification of Passive LTI System and its Dynamic Simulation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant