A method and device for simulating motor vibration effect

Through the simulation method of motor vibration effect, the simulation waveform library and model parameter calculation are used to solve the problem of low operation efficiency in the existing technology, and the effect of rapid design and efficient debugging is achieved.

CN116384031BActive Publication Date: 2024-11-15WUHAN JUXIN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111601374.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-11-15
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In the prior art, the operation efficiency is low in the way of real driving motor adjusting the driving signal to achieve tactile feedback, and it is difficult to find a driving waveform that meets the expected vibration effect.

Method used

Provide a simulation method for motor vibration effect. By simulated observation of the designed waveform, first perform simulation vibration data calculation to form a design closed loop, and then perform actual driving debugging to save debugging time. The method includes selecting waveforms from a pre-designed structured waveform library, performing component analysis and synthesis, calculating vibration data of the motor under each component driving waveform, and determining accurate simulated vibration data through model parameters.

Benefits of technology

Through simulation observation of vibration effects, the debugging time is saved, the reliability of vibration state simulation data is improved, and the driving waveform that meets the expected effect is quickly designed, and the operation efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116384031B_ABST
    Figure CN116384031B_ABST
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a method and device for simulating motor vibration effects. Background Art

[0002] With the development and popularization of various electronic devices such as smart phones and wearable devices, people's requirements for tactile experience are becoming increasingly rich. At present, tactile feedback technology is generally achieved through motor vibration. A specific driving waveform is used to stimulate the vibration motor inside the device. The vibration of the vibrator inside the motor is sensed by people to produce a tactile effect.

[0003] 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 / equipment tooling does not meet the requirements, the driving signal is changed or the parameters are adjusted to drive again until the output tactile effect meets the requirements. However, this method has low operating efficiency and it is difficult to find a driving waveform that meets the expected vibration effect. Summary of the invention

[0004] In order to solve the above technical problems in the prior art, the present application is proposed. The embodiment of the present application provides a simulation method and a simulation device for the vibration effect of a motor, which can simulate and observe the designed waveform first, and then perform actual drive debugging after obtaining the expected results, thereby saving debugging time.

[0005] According to one aspect of the present application, a method for simulating the vibration effect of a motor is provided, the method comprising: providing a driving waveform for simulating the vibration of the motor; performing component analysis on the driving waveform to decompose the driving waveform into one or more component driving waveforms; calculating the vibration data of the motor under each component driving waveform; and synthesizing the calculated vibration data to obtain the simulated vibration data of the motor under the driving waveform.

[0006] In some embodiments, providing a driving waveform for simulating vibration of a motor includes: selecting 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; and superimposing the one or more structured waveforms to obtain the driving waveform.

[0007] In some embodiments, calculating the vibration data of the motor under each component driving waveform includes: obtaining the model parameters of the motor; and calculating the vibration data of the motor under each component driving waveform based on the motor vibration model, wherein the motor vibration model is associated with the model parameters of the motor.

[0008] In some embodiments, determining the model parameters of the motor includes: using a pre-generated drive signal to drive the motor to vibrate, the drive signal being associated with more than two frequencies; obtaining response data of the motor under the drive signal; and determining the model parameters of the motor based on the response data.

[0009] In some embodiments, the vibration data includes at least one of a motor vibrator displacement, a motor vibrator movement speed, and a motor vibrator acceleration.

[0010] In some embodiments, the method may further include: calculating tooling vibration data of the motor tooling under each component driving waveform; synthesizing each calculated tooling vibration data to obtain tooling simulation vibration data of the tooling under the driving waveform.

[0011] Another aspect of the present application provides a simulation device for the vibration effect of a motor, comprising: a providing unit, which is used to provide a driving waveform for simulating the vibration of the motor; an analyzing 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 calculating unit, which is used to calculate the vibration data of the motor under each component driving waveform; and a synthesizing unit, which is used to synthesize the calculated vibration data to obtain the simulated vibration data of the motor under the driving waveform.

[0012] In some embodiments, the simulation device further includes: a display unit, which is used to display the simulated vibration data.

[0013] Another aspect of the present application provides an electronic device, which includes 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 described above.

[0014] Another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is enabled to execute each step in the above-mentioned simulation method.

[0015] Compared with the prior art, the motor vibration effect simulation method and simulation device of the embodiment of the present application can form a design closed loop by observing the vibration effect through simulation after designing the waveform, without the need to actually drive each designed waveform, thus saving debugging time. Furthermore, by obtaining motor model parameters with high accuracy, the reliability of vibration state simulation data can be improved, making it easier to quickly design a drive waveform that meets the expected effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0017] Figure 1 A flow chart showing a method for simulating motor vibration effects according to an embodiment of the present application;

[0018] Figure 2 A schematic diagram showing a structured driving waveform provided according to an embodiment of the present application;

[0019] Figure 3 A schematic diagram showing output simulation vibration data provided according to an embodiment of the present application;

[0020] Figure 4 A schematic flow chart of a method for calculating vibration data of a motor under each component driving waveform provided in accordance with an embodiment of the present application is shown;

[0021] Figure 5 A schematic diagram showing a flow chart of calculating motor parameters according to an embodiment of the present application is shown;

[0022] Figure 6 A structural block diagram of a device for simulating motor vibration effects provided according to an embodiment of the present application is shown;

[0023] Figure 7 A structural block diagram of an electronic device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] Below, the example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. At the same time, it is not necessary to realize all the above advantages at the same time to implement any example of the embodiments of the present application. It should be understood that the present application should not be limited to the specific details of these example embodiments. Instead, the embodiments of the present application can be implemented without these specific details or by adopting other alternatives, without departing from the ideas and principles of the present application defined in the claims.

[0025] Figure 1 A flow chart of a method for simulating motor vibration effect provided by an embodiment of the present application is shown. Figure 1 As shown, the method 100 may start at step S110 , providing a driving waveform for simulating vibration of a motor.

[0026] For example, a signal for driving a motor to simulate vibration can be generated on a computer terminal. The digital signal of the driving waveform can be used directly for subsequent simulation steps, or it can be converted from digital to analog after the simulation step and loaded onto both ends of the linear motor for actual measurement to verify the accuracy of the simulation.

[0027] In one embodiment, one or more structured waveforms can be selected from a pre-designed structured waveform library, and the one or more structured waveforms can be superimposed to obtain the driving waveform. The structured waveform library can also be called a waveform data set, which can be stored in a memory, and each structured waveform can be determined by data dimensions such as waveform type, waveform voltage, and waveform frequency, wherein the waveform type can include sine waves, square waves, rounded square waves, etc. The waveform voltage can be characterized by peak voltage or mean value, and the two can be equivalently converted. The waveform frequency can be selected to be equal to or close to the resonant frequency f0 of the motor, so that the motor produces a higher vibration level, for example, between 100-200Hz.

[0028] In addition, the driving waveform may also have data dimensions such as waveform time length, waveform starting phase, and waveform data sampling rate. The waveform time length is the duration of the driving waveform. The waveform time length can be characterized by time length (unit: ms) or number of waveform cycles. This parameter can be used to simulate and determine the change curve of the motor vibration data in the time domain. The waveform starting phase can be any value between 0-2π, and the waveform data sampling rate can correspond to the sampling rate in the driver chip.

[0029] By structurally characterizing the driving waveform using multiple parameter dimensions, a number of structured driving waveforms can be pre-designed, each driving waveform corresponding to a different parameter combination. Figure 2 Schematic diagrams showing some structured drive waveforms, such as Figure 2 As shown, three waveforms are specifically shown (the horizontal axis is time, the vertical axis is voltage), and each waveform may have the following parameters:

[0030] Waveform ID type Duration Peak Phase frequency Sampling frequency 1 Sine Wave 2 127 0 119.5 24k 2 Rounded Square Wave 2 127 0 119.5 24k 3 Square Wave 2 127 0 119.5 24k

[0031] In the above table, the waveform duration is represented by the number of cycles, the peak value is represented by a digital quantization value, and the unit of the waveform frequency and the sampling frequency is Hz. It can be understood that the parameters in the table are only examples and not limitations. When actually designing a driving waveform, one or more waveforms can be selected from these structured driving waveforms for timing splicing or waveform superposition, so that any waveform can be designed according to the needs.

[0032] return Figure 1 After designing the motor driving waveform, the simulation method of this 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.

[0033] Since the designed driving waveform may be an arbitrary waveform, in order to simulate the vibration effect of the waveform, the present embodiment may first perform component analysis on it to convert it into a combination of component driving waveforms that can be applicable to the linear motor model, that is, each component driving waveform can be calculated and processed using a unified linear motor model.

[0034] In one embodiment, the designed driving waveform can be subjected to Fourier decomposition, so that the driving waveform can be decomposed into a linear combination of one or more harmonics, each harmonic can be regarded as a component driving waveform, and its voltage value and frequency can be determined by the coefficients of the corresponding series obtained by Fourier decomposition and the harmonic angular frequency. As a well-known numerical analysis tool, this embodiment does not specifically describe the Fourier transform process.

[0035] Afterwards, step 130 may be performed to calculate vibration data of the motor under each component driving waveform.

[0036] The calculation process may refer to simulating applying at least part of the analytically obtained component drive waveforms to both ends of the motor unit to obtain vibration data. For example, the vibration data may include at least one of the motor vibrator displacement, the motor vibrator movement speed, and the motor vibrator acceleration. In actual applications, the motor unit is generally fixed on the tooling. Applying the drive waveform to the motor unit to generate vibration will also drive the tooling to vibrate in the opposite direction. In one embodiment, the vibration data may also include the acceleration of the tooling.

[0037] For example, when the driving waveform is subjected to Fourier decomposition, the linear motor will move in a quasi-simple harmonic vibration mode under the drive of each component driving waveform. Specifically, the motor's vibrator displacement, vibrator moving speed, and vibrator acceleration can be calculated by the following formulas (1)-(3) when the motor model parameters are obtained:

[0038]

[0039]

[0040]

[0041] Wherein, x(ω) is the displacement of the vibrator under the component driving waveform, u(ω) is the moving speed of the vibrator under the component driving waveform, and a(ω) is the acceleration of the motor vibrator under the component driving waveform; V vc is the peak voltage of the component drive waveform, which can be determined by designing the coefficients of the corresponding series of the voltage and the component drive waveform, ω is the angular frequency of the component drive waveform signal, which is generally a multiple of the fundamental frequency obtained by Fourier decomposition; Bl is the motor electromagnetic force coefficient, R e is the motor resistance, Mms is the motor mass, ω0 is the resonant angular frequency of the motor, Q ts is the Q factor of the motor system. These parameters are inherent parameters of the motor and can be obtained through modeling calculation, which will be described in detail below.

[0042] In one embodiment, among the n component driving waveforms obtained by Fourier decomposition, some of the component driving waveforms can be selected to perform the calculation in this step, for example, only the component driving waveforms corresponding to the decomposition levels below the first 10 items obtained by Fourier decomposition are subjected to the above simulation calculation, thereby reducing the amount of simulation calculation.

[0043] After simulating and calculating each component driving waveform to obtain corresponding vibration data, the simulation method of this embodiment may proceed to step 140 to synthesize each calculated vibration data to obtain simulated vibration data of the motor under the driving waveform.

[0044] For a linear motor, its mass block generally performs uniaxial motion under the driving waveform, so the calculated vibration data can be linearly superimposed to obtain the final simulated vibration data of the motor. The vibration data may include the motor vibrator displacement x ms 、Motor vibrator moving speed u ms 、Motor vibrator acceleration a ms According to the method of this embodiment, even when there is no actual motor and driving device, the vibration effect of the motor can be simulated and observed after the driving waveform is designed.

[0045] Figure 3 A schematic diagram of output simulation vibration data provided according to an embodiment of the present application is shown. The motor model parameters are: motor mass M ms =0.004768, motor resistance R e =8.1832, motor resonance 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 displacement, velocity and acceleration of the motor vibrator obtained by simulation calculation in the time series data change. By observing the vibration effect of the drive waveform through simulation, a design closed loop is formed. For example, based on the obtained motor vibrator displacement and vibrator displacement velocity, the motor amplitude protection can be realized, and based on the simulated motor acceleration data, the vibration effect of the motor can be evaluated. Only after meeting the expected results, the actual drive debugging is carried out, thus saving debugging time.

[0046] In one embodiment, after calculating the acceleration of the vibrator of the motor, the vibration level of the motor fixture can also be calculated. For example, the vibration data of the motor fixture under each component driving waveform can be calculated first, and the vibration level of the motor fixture can be the acceleration at a predetermined position of the fixture, which can be calculated by the following formula:

[0047]

[0048] Among them, a tool (ω) is the acceleration of the motor fixture at a 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, M tool is the equivalent mass of the tooling.

[0049] After obtaining the tooling data under each component drive, the calculated vibration data of each tooling can be synthesized to obtain the tooling simulation vibration data of the motor tooling under the driving waveform. For example, the calculated vibration data of each tooling can be linearly superimposed to obtain the final simulation vibration data of the motor tooling.

[0050] Alternatively, after the motor vibrator acceleration is finally simulated, the vibration level of the motor fixture can be calculated using the following formula:

[0051]

[0052] Among them, a tool is the acceleration of the motor fixture at a predetermined position in response to the driving waveform, M ms is the motor mass, a ms is the motor vibration acceleration under the driving waveform, M tool By using the calculation method of this embodiment, the vibration level of the tooling can be obtained without setting a vibration sensor on the tooling, and whether the tactile effect meets expectations can be evaluated based on the vibration level, thereby improving the convenience of operation.

[0053] Figure 4 FIG. 1 is a flow chart of a method for calculating vibration data of a motor under each component driving waveform provided by an embodiment of the present application. Figure 4 As shown, obtaining the motor response data of the motor under the component drive signal may include the following steps:

[0054] Step 310, determining the model parameters of the motor.

[0055] In one embodiment, in order to perform calculations according to the above equations (1)-(3), the model parameters include at least the motor mass, the motor resistance, and the motor resonant angular frequency, etc., and may also include the motor electromagnetic force coefficient Bl and / or Q factor.

[0056] In one embodiment, some model parameters of the motor can be determined based on the response data of the motor to a preset drive signal. For example, the resonant frequency and angular frequency of the motor can be determined based on the frequency point corresponding to the maximum measured value of the vibration acceleration. At the same time, the motor resistance, inductance and other parameters can be determined based on the motor calculation model of voltage and current.

[0057] In one embodiment, the frequency impedance curve of the motor can be obtained based on the voltage and current response data of the motor under a driving signal with multiple frequency points, and then the motor parameters can be directly calculated based on the motor modeling formula, which will be described in detail later.

[0058] Step 320 , based on the motor vibration model, calculate the vibration data of the motor under each component driving waveform, wherein the motor vibration model is associated with the model parameters of the motor.

[0059] When the motor model parameters are known, the response data of the motor component driving waveform after analysis of any driving waveform can be calculated by the motor vibration model described above (Formula 1-3), which will not be repeated here.

[0060] Figure 5 FIG. 2 is a flow chart showing a method for calculating motor model parameters according to an embodiment of the present application. Figure 5 As shown, the calculation of motor model parameters can be achieved through the following steps:

[0061] Step 310: Use a pre-generated drive signal to drive the motor to vibrate, where the drive signal is associated with more than two frequencies.

[0062] Different from the above simulation, the motor needs to be actually driven in the process of determining the motor model parameters. For example, a digital signal can be generated on the host computer, which is converted into a driving analog signal after digital-to-analog conversion and power amplification and loaded to both ends of the linear motor. The applied voltage can be preset. Under the driving signal, the motor will drive the tooling to vibrate together.

[0063] In one embodiment, the driving signal is associated with more than two frequencies, that is, the driving waveform driving the motor has multiple frequency points, for example, it may have more than 10 or more frequency points, thereby providing a basis for the subsequent acquisition of motor model parameters. The frequency range of the driving signal may be between 20-6000Hz, and the waveform of the driving signal may be a sine wave, a square wave, a rounded square wave, etc. For example, in response to a modeling enable signal, a waveform type may be selected and a waveform or a waveform group having multiple predetermined frequency points may be generated to drive the motor once or multiple times. Specifically, the host computer may transmit the waveform data to a data exchange device such as a microcontroller, and the data exchange device may cache part or all of the waveform data, and then send it to a digital-to-analog conversion device for digital-to-analog conversion and signal amplification processing, and then provide the amplified driving waveform to the linear motor to drive the motor to vibrate.

[0064] Specifically, in one embodiment, more than two frequency points may be selected within a predetermined frequency range, and a driving waveform with a fixed period may be generated for each frequency. For example, the predetermined frequency range may be 20-6000 Hz, and n frequency points may be selected within the range, where n may be an integer greater than 10, and a driving waveform with a corresponding frequency may be generated, i.e., n driving waveforms may be generated, each of which may last for a number of periods, such as 3-5 periods. The n driving waveforms may be sent to a driving circuit connected to a motor, respectively, and the driving circuit drives the motor n times.

[0065] In another embodiment, the starting frequency and the ending frequency can be selected within a predetermined frequency range, and a continuous driving waveform having more than two frequencies can be generated with a preset frequency step. For example, the predetermined frequency range can be 20-6000 Hz, that is, 20 Hz can be selected as the starting frequency, 6000 Hz can be selected as the ending frequency, and a preset frequency step can be set, and the step can be, for example, 1-20 Hz, so that a set of frequency values ​​can be determined within the preset frequency range. Then, a waveform of several cycles is generated for each frequency point in the set of frequency values, and the waveforms of all frequency points are connected end to end in time sequence to generate a continuous driving waveform having multiple frequency points. It can be seen that in this embodiment, only one driving waveform is generated when making a driving waveform. The driving waveform can be sent to the motor driving circuit, and the driving circuit drives the motor once.

[0066] Step 320: Acquire response data of the motor under the driving signal.

[0067] For example, sensors installed at both ends of the motor or on the tooling can be used to collect response data such as electrical signals and vibration levels generated by the motor during vibration, and corresponding response data can be collected for the driving signal at each frequency point. When there are more than two frequency points in the driving signal, the collected response data will also be associated with the more than two frequencies.

[0068] In one embodiment, the response data includes voltage data and current data. For example, voltage and current sensors may be set at both ends of the motor so that the voltage across the motor and the current flowing through the motor coils can be monitored in real time.

[0069] In one embodiment, the response data may also include vibration data such as the acceleration of the motor. The vibration of the linear motor will drive the tooling to vibrate in the opposite direction. Therefore, the vibration acceleration of the motor can be measured by using sensors such as a three-axis accelerometer that is placed close to the tooling near the motor position.

[0070] Although steps 310 and 320 are described separately above, it is understandable that the driving motor to vibrate and the collection of vibration response data can be performed simultaneously, that is, the response data of the driving waveform at the corresponding frequency point can be collected simultaneously during the motor vibration process. The collected voltage, current, acceleration and other data can be transmitted to the host computer for smoothing processing to obtain response data for subsequent calculation of motor model parameters.

[0071] Step 330: Determine the parameters of the motor according to the response data.

[0072] In one embodiment, if Figure 5 As shown, the motor parameters can be determined by the following steps:

[0073] Step 331, calculating the impedance value of the motor at each frequency point according to the response data.

[0074] In one embodiment, when the motor is driven to vibrate in sequence using n driving waveforms, the host computer can calculate the impedance value Z at the kth frequency point based on the voltage and current data collected when the motor vibrates under the driving waveform for the kth (1-n)th waveform data, for example in Furthermore, after obtaining the corresponding impedance value at each frequency point among all n frequency points, the calculated impedance value and the corresponding frequency value are associated to obtain the frequency impedance curve of the motor within the set frequency range.

[0075] In another embodiment, when a single continuous driving waveform is used to drive the motor to vibrate, the host computer can calculate the impedance value Z at each frequency point based on the voltage and current data collected when the motor vibrates under the driving waveform, for example in Furthermore, after the driving waveform that drives the motor to vibrate is played, a continuous curve of the impedance value in the time domain can be calculated, and then the frequency impedance curve of the motor within the set frequency range can be obtained through operations such as DFT.

[0076] Step 332 : Based on the obtained frequency impedance curve, the model parameters of the motor are calculated using the motor impedance model.

[0077] In one embodiment, the obtained frequency impedance curve can be used to perform numerical fitting to calculate the motor model parameters, and the modeling parameters include: 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 instant C ms , the motor impedance model can be expressed as follows:

[0078]

[0079] Among them, Z in the above formula vc is the impedance, the angular frequency ω=2πf, and f is the frequency of the driving waveform.

[0080] The motor mass M in the above model is ms It can be the overall mass of the motor, which can be obtained by weighing, thereby reducing the amount of fitting calculations. Alternatively, the motor mass M ms It can also be the mass of the motor oscillator, which can be obtained through the above model fitting calculation.

[0081] When using the above model for numerical fitting, constraints can be added. When ω is equal to 0, ω will be the motor resonant angular frequency ω0=2πf0 (f0 is the motor resonant frequency), that is, when M is calculated by fitting ms , C ms Based on this, the resonant angular frequency ω0 of the motor can be obtained:

[0082]

[0083] In addition, the motor's Q factor and elastic stiffness coefficient K can be calculated based on the following formula:

[0084]

[0085]

[0086] Among them, Q es , Q ms They represent the circuit quality factor and mechanical quality factor of the motor respectively, based on Q es , Q ms The motor system Q factor Q can be calculated by the following formula ts :

[0087]

[0088] It can be seen that the present embodiment can directly calculate the motor electromagnetic force coefficient Bl, the resonant angular frequency ω0, the motor mass M based on the measured frequency impedance curve. ms , Motor resistance R e , Motor inductance L e 、System Q factor Q ts Based on the motor parameters obtained, the motor displacement, velocity and acceleration of the motor under any designed drive waveform signal can be directly simulated and calculated based on the formulas (1)-(3) described above, and then the acceleration evaluation value of the motor tooling for the arbitrary drive waveform can be obtained based on formulas (4)-(5). After calculating the above vibration data, the relevant simulated vibration data can be displayed, for example, Figure 3 The data is displayed in the form of a curve graph using the information display tool of the host computer.

[0089] The embodiments of the present application can observe the vibration effect through simulation after designing the waveform, and then perform actual drive debugging after obtaining the expected result, thereby simplifying the waveform design process and saving debugging time.

[0090] The embodiment of the present invention also provides a device for simulating motor vibration effect. Figure 6 As shown, the simulation device 400 for the vibration effect of the motor according to the embodiment of the present application may include: a providing unit 410, which is used to provide a driving waveform for simulating the vibration of the motor; an analyzing unit 420, which is used to analyze the components of the driving waveform and decompose the driving waveform into one or more component driving waveforms; a calculating unit 430, which is used to calculate the vibration data of the motor under each component driving waveform; and a synthesizing unit 440, which is used to synthesize the calculated vibration data to obtain the simulated vibration data of the motor under the driving waveform. The above-mentioned units or modules can be integrated into a host computer, such as a processor with data processing capabilities, and the host computer can also include other functional modules such as digital-to-analog conversion.

[0091] In one embodiment, the simulation device 400 may further include a display unit 450 for displaying the simulated vibration data.

[0092] In one embodiment, the providing unit 410 is configured to provide a driving waveform for simulating vibration of a motor in the following manner: selecting 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; and superimposing the one or more structured waveforms to obtain the driving waveform.

[0093] In one embodiment, the calculation unit 430 is configured to calculate the vibration data of the motor under each component driving waveform in the following manner: obtain the model parameters of the motor; calculate the vibration data of the motor under each component driving waveform based on the motor vibration model, and the motor vibration model is associated with the model parameters of the motor.

[0094] In one embodiment, the computing unit 430 may receive the model parameters of the motor; alternatively, the computing unit 430 may be configured to determine the model parameters of the motor in the following manner: using a pre-generated drive signal to drive the motor to vibrate, wherein the drive signal is associated with more than two frequencies; obtaining response data of the motor under the drive signal; and determining the model parameters of the motor based on the response data.

[0095] In one embodiment, the vibration data includes at least one of a motor vibrator displacement, a motor vibrator movement speed, and a motor vibrator acceleration.

[0096] In one embodiment, the calculation unit can also be configured to calculate the vibration data of the motor tooling, which can be performed in the following manner: calculating the tooling vibration data of the motor tooling under each component driving waveform; synthesizing the calculated tooling vibration data to obtain the tooling simulation vibration data of the motor tooling under the driving waveform.

[0097] The specific functions and operations of each unit and module in the above-mentioned simulation device 400 have been described in the above reference. Figure 1-5 The evaluation method described in detail is described in , so it is only briefly introduced here and unnecessary duplication is omitted.

[0098] The present invention also provides a computer-readable storage medium, wherein a simulation program for motor vibration effect is stored on the computer-readable storage medium, and the simulation program for motor vibration effect is executed by a processor to perform the steps of the simulation method for motor vibration effect as described above, and the specific implementation can be referred to Figure 1-5 The simulation calculation method described will not be repeated here.

[0099] The embodiment of the present invention may also be an electronic device, the electronic device comprising a memory, a processor, and instructions stored in the memory and executable on the processor, wherein the instructions, when executed by the processor, cause the processor to execute the steps of the method for simulating the motor vibration effect as described above. For specific implementation, reference may be made to Figure 1-5 The simulation calculation method described will not be repeated here.

[0100] Figure 7 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present application. Figure 7As shown, the electronic device 500 includes a processor 510 and a memory 520 .

[0101] The processor 510 may be a central processing unit (CPU), a microprocessor, or other forms of processing chips having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 500 to perform desired functions.

[0102] The memory 520 may be an internal storage unit of an electronic device, such as a non-volatile and / or volatile memory. The memory 520 may store various types of data such as motor model parameters, and may include one or more computer program products, which may include 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, and the processor 510 may execute the program instructions to implement the above-mentioned simulation of the vibration effect of the motor under the pre-designed driving waveform and / or other desired functions.

[0103] In one example, the electronic device 500 may further include: an input device 530 and an output device 540, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). For example, the input device 530 may be a camera, an antenna, or a microphone device. In addition, the input device 530 may also include, for example, a keyboard, a mouse, etc. The output device 540 may output various information to the outside. The output device 540 may include, for example, a display, a speaker, a communication network, and a remote output device connected thereto, etc.

[0104] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 500 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 500 may also include any other appropriate components.

[0105] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0106] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

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; The calculated vibration data are synthesized to obtain simulated vibration data of the motor under the driving waveform; as well as 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. The simulation method according to claim 1, wherein: The vibration data of the motor under each component drive waveform is calculated including: 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. The simulation method according to claim 2, wherein: Determine the model parameters of the motor including: 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. The simulation method according to claim 1, wherein: The vibration data includes at least one of a motor vibrator displacement, a motor vibrator movement speed, and a motor vibrator acceleration.

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. 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; as well as 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. The simulation device according to claim 6, further comprising: A display unit is used to display the simulated vibration data.

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. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the simulation method according to any one of claims 1 to 5 is implemented.