WO2022134219A1 - Motor vibration signal generation method and apparatus, computer device, and storage medium - Google Patents

Motor vibration signal generation method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2022134219A1
WO2022134219A1 PCT/CN2021/070540 CN2021070540W WO2022134219A1 WO 2022134219 A1 WO2022134219 A1 WO 2022134219A1 CN 2021070540 W CN2021070540 W CN 2021070540W WO 2022134219 A1 WO2022134219 A1 WO 2022134219A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
displacement
target
nonlinear
signal
Prior art date
Application number
PCT/CN2021/070540
Other languages
French (fr)
Chinese (zh)
Inventor
郑亚军
Original Assignee
瑞声声学科技(深圳)有限公司
瑞声光电科技(常州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 瑞声声学科技(深圳)有限公司, 瑞声光电科技(常州)有限公司 filed Critical 瑞声声学科技(深圳)有限公司
Publication of WO2022134219A1 publication Critical patent/WO2022134219A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display

Definitions

  • the present invention relates to the technical field of vibration motors and signal processing, and in particular, to a method, device, computer equipment and storage medium for generating a motor vibration signal.
  • the present invention provides a method, device, computer equipment and storage medium for generating a motor vibration signal, so that the motor can automatically generate short signals with different frequencies and strong vibration, so as to improve the haptic effect.
  • an embodiment of the present invention provides a method for generating a motor vibration signal, including:
  • the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
  • the target displacement signal of the motor is calculated by using the motor nonlinear positive model
  • a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
  • the target displacement signal of the motor is calculated by using the motor nonlinear positive model, including:
  • the nonlinear parameter, the i-th displacement starting point and the i-th displacement end point use the preset displacement and voltage transformation formula and the motor nonlinear positive model to calculate the i-th segment of the motor
  • the N segments of the displacement half-waveforms are spliced according to a preset rule to obtain the target displacement signal.
  • the ideal voltage half-waveform of the ith segment is adjusted to obtain the displacement half-waveform of the ith segment and the adjusted displacement end point, including:
  • the displacement waveform corresponding to the ideal voltage half-waveform of the i-th segment is determined as the displacement half-waveform of the i-th segment, and the i-th displacement end point is determined as the displacement waveform of the i-th segment. is the ith displacement end point after adjustment.
  • the method also includes:
  • the i-th displacement end point is reduced according to the preset reduction ratio rule to obtain the adjusted i-th displacement end point;
  • the determining of the i+1th displacement starting point and the i+1th displacement end point according to the displacement end point and the maximum limit displacement includes:
  • the displacement half-waveform of the i-th segment is a rising waveform
  • the negative value of the maximum limit displacement is taken as the i+1-th displacement end point
  • the displacement half-waveform of the i-th segment is a falling waveform
  • the The maximum limit displacement takes a positive value as the end point of the i+1th displacement.
  • Low-pass filtering is performed on the target displacement signal.
  • the nonlinear parameters include the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient, the damping coefficient of the motion of the motor vibrator, the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient of the motor, the mass of the motor vibrator and the value of the motor voice coil.
  • the resistance value; the target excitation voltage signal of the motor is obtained by calculating the non-linear inverse model of the motor based on the target displacement signal and the nonlinear parameter, including:
  • u is the target excitation voltage signal
  • x is the target displacement signal
  • y is the target displacement signal
  • i is the motor voice coil current
  • p_BL1 represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x
  • p kdx represents the spring elasticity coefficient when the displacement of the motor vibrator is x
  • p cdx represents The damping coefficient of the motion of the motor vibrator when the displacement of the motor vibrator is x
  • p BLx represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x
  • p md represents the mass of the motor vibrator
  • p Re represents the motor voice coil resistance value
  • an apparatus for generating a motor vibration signal including:
  • an acquisition module configured to acquire initial data of the motor, where the initial data includes the target center frequency of the motor vibrator, boundary condition values and nonlinear parameters, wherein the boundary condition value is the segmental displacement signal of the motor vibrator
  • the boundary condition value is the segmental displacement signal of the motor vibrator
  • the initial displacement starting point and the initial displacement end point of , and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor
  • a first calculation module configured to calculate the target displacement signal of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameter;
  • the second calculation module is configured to calculate the target excitation voltage signal of the motor by using the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter.
  • an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program Implement the steps of the motor vibration signal generating method as described above.
  • an embodiment of the present invention further provides a computer-readable storage medium, including computer instructions, which, when the computer instructions are executed on the computer, cause the computer to execute the steps of the motor vibration signal generating method as described above.
  • the initial data of the motor is obtained, and the initial data includes the target center frequency of the motor oscillator, boundary condition values and nonlinear parameters, wherein all the The boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator, and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor; according to the target center frequency, the The initial displacement starting point, the initial displacement end point, and the nonlinear parameters are used to calculate the target displacement signal of the motor by using the motor nonlinear positive model; based on the target displacement signal and the nonlinear parameters, the motor nonlinear inverse model is used.
  • the target excitation voltage signal of the motor is obtained by calculation. Since the target excitation voltage signal is based on the target center frequency, it is calculated through the non-linear inverse model of the motor, which ensures the accuracy of the calculation of the target excitation voltage signal.
  • the motor is driven to make the motor vibrate at the target center frequency, so that the motor vibration signal is short, the vibration sense is strong, and the frequency is diversified, which improves the haptic effect of the motor and realizes the precise control of the motor vibration.
  • FIG. 1 is a schematic flowchart of a method for generating a motor vibration signal in one embodiment
  • FIG. 2 is a schematic diagram of the calculation principle of the non-linear positive model of the motor in one embodiment
  • 3 is a schematic diagram of the calculation principle of the non-linear inverse model of the motor in one embodiment
  • FIG. 4 is a schematic diagram of the spring coefficient of the motor as a function of displacement in one embodiment
  • 5 is a waveform diagram of the target displacement half-waveform in one embodiment
  • FIG. 6 is a schematic diagram of a calculation process of the target displacement signal in one embodiment
  • FIG. 7 is a schematic diagram of the calculation process of the target excitation voltage signal in one embodiment
  • FIG. 8 is a schematic waveform diagram of the waveform of the target excitation voltage in one embodiment
  • FIG. 9 is a schematic structural diagram of the motor vibration signal generating device in one embodiment.
  • FIG. 10 is a schematic diagram of the internal structure of a computer device running the above-mentioned method for generating a motor vibration signal in one embodiment.
  • the motor vibration signal has a long time, weak vibration and a single frequency, which makes the motor vibration signal ineffective and reduces the frequency. Haptic effect.
  • a method for generating a motor vibration signal is proposed.
  • the implementation of the method can rely on a computer program that can run on a computer system based on the von Neumann architecture.
  • the method for generating a motor vibration signal in this embodiment is applicable to a motor, and the method for generating a motor vibration signal specifically includes the following steps:
  • Step 102 Obtain the initial data of the motor, the initial data includes the target center frequency of the motor oscillator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator, and the non-
  • the linear parameters are the coefficients of the nonlinear structural parameters in the electromechanical coupling equation of the motor.
  • the target center frequency refers to the center frequency of the vibration signal designed by the designer and expecting to produce the ideal haptic effect.
  • the boundary condition values are the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor vibrator.
  • the displacement waveform of the motor vibrator is composed of multiple waveforms with different amplitudes, that is, it is divided into multiple displacement signals.
  • the initial displacement starting point and the initial displacement ending point respectively refer to the initial value and the ending value of the first segment of the displacement signal. Since the signal is designed so that the motor vibrator starts to move from a static state, the initial displacement starting point is usually 0, and the initial displacement The end point is the maximum limit displacement of the motor oscillator.
  • the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor, such as the spring elastic coefficient of the motor, the mass of the motor vibrator, and the resistance value of the motor voice coil.
  • Step 104 Calculate the target displacement signal of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameters.
  • the motor nonlinear positive model in this embodiment is a mathematical model for determining the displacement signal based on the voltage signal
  • the motor nonlinear positive model includes the motor electromechanical coupling equation, as shown in FIG. Schematic diagram of the calculation principle of the linear positive model. Specifically, the displacement signals of the initial displacement starting point and the initial displacement ending point are converted into voltage signals by using the preset displacement and voltage transformation expressions, and then the converted voltage signals and nonlinear parameters are used as the input of the motor electromechanical coupling equation to solve Then, a displacement signal is obtained, that is, the target displacement signal in this embodiment. It is understandable that the target displacement signal is calculated based on the target center frequency through the nonlinear positive model of the motor, which ensures the accuracy of the calculation of the target displacement signal.
  • Step 106 Based on the target displacement signal and the nonlinear parameters, the target excitation voltage signal of the motor is obtained by calculating the motor nonlinear inverse model.
  • the non-linear inverse model of the motor is a mathematical model opposite to the non-linear positive model of the motor
  • the non-linear inverse model of the motor includes the electromechanical coupling equation of the motor, that is, the non-linear inverse model of the motor is a mathematical model that determines the voltage signal based on the displacement signal, such as Figure 3 is a schematic diagram of the calculation principle of the non-linear inverse model of the motor.
  • the target displacement signal and the nonlinear parameter in step 104 are used as the input of the motor electromechanical coupling equation to be solved to obtain a voltage signal, that is, the target excitation voltage signal in this embodiment.
  • the voltage signal is based on the target center frequency and is calculated by the non-linear inverse model of the motor, which ensures the accuracy of the target excitation voltage signal calculation.
  • the target excitation voltage signal is used to drive the motor, so that the motor vibrates at the target center frequency, so that The motor vibration signal is short, the vibration sense is strong and the frequency is diverse, which improves the motor haptic effect and realizes the precise control of the motor vibration.
  • the initial data of the motor is obtained, and the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator. and the initial displacement end point, the nonlinear parameters are the coefficients of the nonlinear structural parameters in the electromechanical coupling equation of the motor; according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameters, use the motor nonlinear positive model to calculate the target displacement signal of the motor ; Based on the target displacement signal and nonlinear parameters, the target excitation voltage signal of the motor is obtained by calculating the nonlinear inverse model of the motor.
  • the target excitation voltage signal is based on the target center frequency and is calculated by the non-linear inverse model of the motor, the accuracy of the calculation of the target excitation voltage signal is ensured. Vibration makes the motor vibration signal short, the vibration sense is strong and the frequency is diversified, the tactile effect of the motor is improved, and the precise control of the motor vibration is realized.
  • the target displacement signal of the motor is calculated by using the motor nonlinear positive model, including: according to the target center frequency, the nonlinear parameter, the ith
  • the displacement starting point and the ith displacement end point are used to calculate the ideal voltage half-waveform of the ith segment of the motor by using the preset displacement and voltage transformation formula and the non-linear positive model of the motor.
  • the preset displacement and voltage transformation formula is based on the motor oscillator.
  • the step of the half-waveform is to obtain N-segment displacement half-waveforms, where i and N are both natural numbers, i ⁇ [1,N]; the N-segment displacement half-waveforms are splice
  • the preset displacement-voltage conversion formula is obtained based on the response characteristics of the motor oscillator.
  • the preset displacement-voltage conversion formula is as follows:
  • p ct1 p cd1 2 +p BL1 2 /p Re1 ;
  • X 0 represents the initial displacement start point,
  • X 1 represents the initial displacement end point,
  • Fn represents the target center frequency,
  • u represents the converted voltage signal, and
  • x represents the motor oscillator at the current moment.
  • p_BL1 represents the electromagnetic coupling coefficient value when the displacement of the motor vibrator is X1
  • p_kd1 represents the spring elastic coefficient when the displacement of the motor vibrator is X1, as shown in Figure 4, it is a schematic diagram of the change of the spring elastic coefficient of the motor with the displacement.
  • p_cd1 represents the damping coefficient of the motor oscillator motion when the motor oscillator displacement is X1
  • p_BL0 represents the electromagnetic coupling coefficient value when the motor oscillator displacement is X0
  • p_kd0 represents the spring elastic coefficient when the motor oscillator displacement is X0
  • p_md represents the motor oscillator mass
  • p_Re represents the resistance value of the motor voice coil.
  • the ideal voltage half-waveform refers to the ideal voltage waveform of the motor in a half cycle
  • the desired displacement half-waveform refers to the ideal displacement waveform of the motor in a half cycle
  • N refers to the number of segments of the displacement half-waveform participating in the splicing, and the size of N is specifically determined according to the duration of the desired displacement signal. The more segments, the longer the duration of the displacement signal, and vice versa.
  • the electromechanical coupling equation calculates the ideal voltage half-waveform of each segment of the motor, that is, the ideal voltage half-waveform of the first segment, the ideal voltage half-waveform of the second segment...the ideal voltage half-waveform of the N segment; and then based on the preset maximum limit voltage and The voltage signals corresponding to the ideal voltage half-waveforms of each segment are compared, and the i-th displacement starting point and the i-th displacement end point in the boundary condition value are updated according to the comparison results, and then the ideal voltage half-waveform of the i-th segment is adjusted.
  • the splicing rule can be directly splicing the N-segment displacement half-waveforms to obtain the acceleration displacement waveform; then inverting the acceleration displacement waveform to obtain the deceleration displacement waveform; finally, splicing the acceleration displacement waveform and the deceleration displacement waveform to obtain the target displacement signal.
  • adjusting the ideal voltage half-waveform of the i-th segment according to the preset maximum limit voltage to obtain the displacement half-waveform of the i-th segment and the adjusted displacement end point including: judging the ideal voltage half-waveform of the i-th segment Whether the ideal voltage maximum value is less than or equal to the maximum limit voltage; if the ideal voltage maximum value is less than or equal to the maximum limit voltage, determine the displacement waveform corresponding to the ideal voltage half-waveform of the i-th segment is the displacement half-waveform of the i-th segment, and the i-th The displacement end point is the ith displacement end point after adjustment.
  • the ideal voltage maximum value refers to the amplitude in the ideal voltage waveform of the ith segment.
  • the displacement waveform corresponding to the ideal voltage half-waveform of the ith segment is determined to be the ith segment.
  • the i-th displacement half-waveform, and the i-th displacement end point is the i-th displacement end point after adjustment.
  • the adjustment of the ideal voltage half-waveform of the i-th segment is stopped, and the corresponding displacement half-waveform of the i-th segment is directly determined according to the ideal voltage half-waveform of the i-th segment, so as to obtain the i-segment half-waveform.
  • the displacement half-waveform is used to subsequently determine the target displacement half-waveform based on the i-segment displacement half-waveform.
  • the motor vibration signal generating method further includes: if the maximum ideal voltage is greater than the maximum limit voltage, reducing the ith displacement end point according to a preset reduction ratio rule to obtain the adjusted ith displacement end point ; Return to execute the calculation of the ideal voltage half-waveform of the ith segment of the motor using the preset displacement and voltage transformation formula and the motor nonlinear positive model according to the target center frequency, nonlinear parameters, the ith displacement starting point and the ith displacement end point. step.
  • the preset reduction ratio rule refers to the reduction according to a preset ratio.
  • Xmax represents the maximum limit displacement
  • the maximum ideal voltage is greater than the maximum limit voltage
  • After reducing X 1 to 0.9 ⁇ Xmax if the maximum ideal voltage is greater than the maximum limit voltage, reduce X 1 to 0.8 ⁇ Xmax, and reduce in this way to obtain the adjusted i-th displacement end point.
  • determining the i+1th displacement start point and the i+1th displacement end point according to the displacement end point and the maximum limit displacement includes: using the ith displacement end point as the i+1th displacement start point; If the displacement half-waveform of the segment is a rising waveform, the negative value of the maximum limit displacement is taken as the end point of the i+1th displacement; if the displacement half-waveform of the i-th segment is a falling waveform, the positive value of the maximum limit displacement is taken as the i+1th displacement end point. displacement end point.
  • the boundary condition value is corrected, specifically, the i-th displacement end point is taken as the i+1-th displacement starting point; if the i-th displacement half-waveform is rising waveform, take the negative value of the maximum limit displacement as the i+1th displacement end point; if the displacement half-waveform of the i-th segment is a falling waveform, take the positive value of the maximum limit displacement as the i+1th displacement end point. That is, the corrected displacement end point is always the value corresponding to the opposite sign of the previous displacement end point. As shown in FIG. 6 , it is a schematic diagram of the calculation process of the target displacement signal.
  • the method for generating a motor vibration signal further includes: before obtaining the target excitation voltage signal of the motor by using the non-linear inverse model of the motor based on the target displacement signal and the nonlinear parameters, further comprising: performing a low-level operation on the target displacement signal. pass filtering.
  • low-pass filtering is performed on the target displacement signal E, so as to realize the optimization of the target displacement signal, thereby ensuring the rationality of the motion of the motor oscillator.
  • the cut-off frequency of the low-pass frequency wave is 4 times the fixed frequency of the motor, that is, if the natural frequency of the motor is 150 Hz, the cut-off frequency of the low-pass filter is 600 Hz.
  • the nonlinear parameters include the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient, the damping coefficient of the motion of the motor vibrator, the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient of the motor, the mass of the motor vibrator, and the resistance of the motor voice coil value; based on the target displacement signal and nonlinear parameters, the target excitation voltage signal of the motor is calculated by using the non-linear inverse model of the motor, including: the formula of the non-linear inverse model of the motor is: Among them, u is the target excitation voltage signal, x is the target displacement signal, is the speed of the motor oscillator, is the acceleration of the motor vibrator, i is the motor voice coil current, p_BL1 represents the electromagnetic coupling coefficient value when the displacement of the motor vibrator is x, p kdx represents the spring elastic coefficient when the displacement of the motor vibrator is x, and p cdx means when the displacement of the motor vibrator is x
  • FIG. 7 it is a schematic diagram of the calculation process of the target excitation voltage signal.
  • the nonlinear parameter is a set constant value. Therefore, input the nonlinear parameter and the target displacement signal into the formula of the nonlinear inverse model of the motor to solve the equation, and the obtained u value is the target excitation voltage.
  • FIG. 8 is a schematic waveform diagram of the waveform of the target excitation voltage. It is understandable that the accurate calculation of the target excitation voltage signal is achieved through the formula of the non-linear inverse model of the motor. Therefore, the designer only needs to determine the target center frequency to generate the vibration signal corresponding to each target center frequency, which improves the vibration signal. frequency diversity.
  • an embodiment of the present invention provides an apparatus 900 for generating a motor vibration signal, as shown in FIG. 9 , including: an acquisition module 902 for acquiring initial data of the motor, where the initial data includes the target of the motor vibrator Center frequency, boundary condition value and nonlinear parameter, wherein, the boundary condition value is the initial displacement starting point and initial displacement end point of the segmental displacement signal of the motor vibrator, and the nonlinear parameter is the nonlinearity in the electromechanical coupling equation of the motor The coefficient of the structural parameter; the first calculation module 904 is used for calculating the target of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter Displacement signal; the second calculation module 906 is configured to calculate the target excitation voltage signal of the motor by using the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter.
  • the apparatus 900 for generating a motor vibration signal in the embodiment of the present invention includes: an acquisition module 902, configured to acquire initial data of the motor, where the initial data includes the target center frequency and boundary of the motor oscillator.
  • the boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator
  • the nonlinear parameter is the coefficient of the nonlinear structural parameter in the motor electromechanical coupling equation
  • the first calculation module 904 is used to calculate the target displacement signal of the motor using the motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameter
  • the first The second calculation module 906 is configured to calculate and obtain the target excitation voltage signal of the motor based on the target displacement signal and the nonlinear parameter by using the non-linear inverse model of the motor.
  • the target excitation voltage signal is based on the target center frequency, through The nonlinear inverse model of the motor is calculated, which ensures the accuracy of the calculation of the target excitation voltage signal.
  • the motor is driven by the target excitation voltage signal, so that the motor vibrates at the target center frequency, so that the motor vibration signal is short, the vibration sense is strong and the frequency is high. Diversified, improved motor haptic effect, and achieved precise control of motor vibration.
  • Figure 10 shows an internal structure diagram of a computer device in one embodiment.
  • the computer device may be a server or a terminal.
  • the computer device 600 includes a processor 610, a memory 620 and a network interface 630 connected through a system bus.
  • the memory 620 includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system, and also stores a computer program, which, when executed by the processor, enables the processor to implement the method for generating a motor vibration signal.
  • a computer program may also be stored in the internal memory, and when the computer program is executed by the processor, the processor may execute the method for generating the motor vibration signal.
  • FIG. 10 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than those shown in Figure 10, or combine certain components, or have a different arrangement of components.
  • the method for generating a motor vibration signal provided by the present application may be implemented in the form of a computer program, and the computer program may be executed on a computer device as shown in FIG. 10 .
  • Various program modules constituting the means for generating the motor vibration signal may be stored in the memory of the computer device.
  • the acquisition module 902 , the first calculation acquisition module 904 , and the second calculation module 906 may be stored in the memory of the computer device.
  • a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the following steps:
  • the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
  • the target displacement signal of the motor is calculated by using the motor nonlinear positive model
  • a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
  • a computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, the following steps are implemented:
  • the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
  • the target displacement signal of the motor is calculated by using the motor nonlinear positive model
  • a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

Disclosed in embodiments of the present invention is a motor vibration signal generation method, comprising: acquiring initial data of a motor, the initial data comprising target center frequency, boundary condition values and nonlinear parameters of a motor vibrator; calculating a target displacement signal of the motor by using a motor nonlinear positive model according to the target center frequency, an initial displacement starting point, an initial displacement end point, and the nonlinear parameters; and performing, on the basis of the target displacement signal and the nonlinear parameters, calculation by using a motor nonlinear inverse model, to obtain a target excitation voltage signal of the motor. Since the target excitation voltage signal is obtained by calculation by means of the motor nonlinear inverse model on the basis of the target center frequency, the calculation accuracy of the target excitation voltage signal is ensured, and the motor is driven using the target excitation voltage signal so that the motor vibrates at the target center frequency. Therefore, the motor vibration signal is short, the vibration sense is strong, the frequency is diversified, the tactile effect of the motor is improved, and the precise control of motor vibration is achieved.

Description

马达振动信号生成方法、装置、计算机设备及存储介质Motor vibration signal generation method, device, computer equipment and storage medium 【技术领域】【Technical field】
本发明涉及振动马达与信号处理技术领域,尤其涉及一种马达振动信号生成方法、装置、计算机设备及存储介质。The present invention relates to the technical field of vibration motors and signal processing, and in particular, to a method, device, computer equipment and storage medium for generating a motor vibration signal.
【背景技术】【Background technique】
随着各种智能设备和电子触摸屏的广泛使用,触觉反馈在电子产品中的应用也是越来越受到重视,例如,应用场景的多样性,需要丰富的触觉效果来区分不同的场景,从而对触觉效果的设计提出了很大的挑战,特别是时间短,震感强,频率多样的短信号在电子产品中备受好评。如何设计出不同频率的强震感短信号,也是设计师们不断追求的目标。With the wide use of various smart devices and electronic touch screens, the application of tactile feedback in electronic products has also received more and more attention. For example, the diversity of application scenarios requires rich tactile effects to distinguish different scenarios, so that the haptic feedback The design of the effect poses a great challenge, especially the short signal with short time, strong vibration and various frequencies is highly praised in electronic products. How to design a short signal with different frequencies of strong seismic sensation is also the goal that designers are constantly pursuing.
然而,马达在追求成本低与性能高的过程中,导致马达的非线性越来越高,且受限于马达能力的与电压输出能力的约束,导致马达振动信号时间长、震感弱、频率单一,使得马达振动信号效果差,降低了触觉效果。However, in the pursuit of low cost and high performance, the non-linearity of the motor is getting higher and higher, and it is limited by the motor capacity and voltage output capability, resulting in a long vibration signal time, weak vibration, and single frequency. , so that the motor vibration signal effect is poor, reducing the haptic effect.
【发明内容】[Content of the invention]
有鉴于此,本发明提供了一种马达振动信号生成方法、装置、计算机设备及存储介质,以使马达自动生成不同频率,强震感的短信号,提高触觉效果。In view of this, the present invention provides a method, device, computer equipment and storage medium for generating a motor vibration signal, so that the motor can automatically generate short signals with different frequencies and strong vibration, so as to improve the haptic effect.
本发明实施例的具体技术方案为:The specific technical scheme of the embodiment of the present invention is:
第一方面,本发明实施例提供一种马达振动信号生成方法,包括:In a first aspect, an embodiment of the present invention provides a method for generating a motor vibration signal, including:
获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;Obtain the initial data of the motor, the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;According to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter, the target displacement signal of the motor is calculated by using the motor nonlinear positive model;
基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。Based on the target displacement signal and the nonlinear parameter, a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
进一步地,所述根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号,包括:Further, according to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter, the target displacement signal of the motor is calculated by using the motor nonlinear positive model, including:
根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形,其中,所述预设的位移与电压变换公式是基于所述马达振子的响应特征得到,所述i的初始值为1,且第1个位移起点为所述初始位移起点,所述第1个位移终点为所述初始位移终点且为所述马达振子的最大限制位移;According to the target center frequency, the nonlinear parameter, the i-th displacement starting point and the i-th displacement end point, use the preset displacement and voltage transformation formula and the motor nonlinear positive model to calculate the i-th segment of the motor The ideal voltage half-waveform, wherein the preset displacement and voltage transformation formula is obtained based on the response characteristics of the motor oscillator, the initial value of i is 1, and the first displacement starting point is the initial displacement starting point, The first displacement end point is the initial displacement end point and is the maximum limit displacement of the motor oscillator;
根据预设的最大限制电压,对所述第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点;According to the preset maximum limit voltage, adjusting the ideal voltage half-waveform of the i-th segment to obtain the displacement half-waveform of the i-th segment and the adjusted displacement end point;
根据所述位移终点及所述最大限制位移确定第i+1个位移起点及第i+1个位移终点,令i=i+1,返回执行所述根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形的步骤,获取N段所述位移半波形,所述i和所述N均为自然数,i∈[1,N];Determine the i+1 th displacement starting point and the i+1 th displacement end point according to the displacement end point and the maximum limit displacement, let i=i+1, and return to executing the above according to the target center frequency, the nonlinear parameters, i-th displacement starting point and i-th displacement end point, using the preset displacement and voltage transformation formula and the non-linear positive model of the motor to calculate the step of the ideal voltage half-waveform of the i-th segment of the motor, to obtain the N-th segment of the ideal voltage half-waveform. the displacement half-waveform, the i and the N are both natural numbers, i∈[1,N];
将N段所述位移半波形按照预设的规则进行拼接,得到所述目标位移信号。The N segments of the displacement half-waveforms are spliced according to a preset rule to obtain the target displacement signal.
进一步地,所述根据预设的最大限制电压,对第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点,包括:Further, according to the preset maximum limit voltage, the ideal voltage half-waveform of the ith segment is adjusted to obtain the displacement half-waveform of the ith segment and the adjusted displacement end point, including:
判断所述第i段理想电压半波形的理想电压最大值是否小于或等于所述最大限制电压;Determine whether the ideal voltage maximum value of the i-th ideal voltage half-waveform is less than or equal to the maximum limit voltage;
若所述理想电压最大值小于或等于所述最大限制电压,则确定与所述第i段理想电压半波形对应的位移波形为所述第i段位移半波形,且所述第i个位移终点为调整后的第i个位移终点。If the maximum value of the ideal voltage is less than or equal to the maximum limit voltage, the displacement waveform corresponding to the ideal voltage half-waveform of the i-th segment is determined as the displacement half-waveform of the i-th segment, and the i-th displacement end point is determined as the displacement waveform of the i-th segment. is the ith displacement end point after adjustment.
进一步地,所述方法还包括:Further, the method also includes:
若所述理想电压最大值大于所述最大限制电压,则按照预设缩小比例规则对所述第i个位移终点进行缩小,得到调整后的第i个位移终点;If the maximum value of the ideal voltage is greater than the maximum limit voltage, the i-th displacement end point is reduced according to the preset reduction ratio rule to obtain the adjusted i-th displacement end point;
返回执行所述根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形的步骤。Return to execute the calculation of the motor according to the target center frequency, the nonlinear parameter, the i-th displacement starting point and the i-th displacement end point, using the preset displacement and voltage transformation formula and the motor nonlinear positive model The step of the ideal voltage half-waveform of the ith segment.
进一步地,所述根据所述位移终点及所述最大限制位移确定第i+1个位移起点及第i+1个位移终点,包括:Further, the determining of the i+1th displacement starting point and the i+1th displacement end point according to the displacement end point and the maximum limit displacement includes:
将所述第i个位移终点作为第i+1个位移起点;Taking the i-th displacement end point as the i+1-th displacement start point;
若所述第i段位移半波形为上升波形,则将所述最大限制位移取负值作为所述第i+1个位移终点,若所述第i段位移半波形为下降波形,则将所述最大限制位移取正值作为所述第i+1个位移终点。If the displacement half-waveform of the i-th segment is a rising waveform, the negative value of the maximum limit displacement is taken as the i+1-th displacement end point; if the displacement half-waveform of the i-th segment is a falling waveform, the The maximum limit displacement takes a positive value as the end point of the i+1th displacement.
进一步地,在基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号之前,还包括:Further, before obtaining the target excitation voltage signal of the motor based on the target displacement signal and the nonlinear parameter, using the non-linear inverse model of the motor to calculate, further comprising:
对所述目标位移信号进行低通滤波处理。Low-pass filtering is performed on the target displacement signal.
进一步地,所述非线性参数包括所述马达的电磁耦合系数值、弹簧弹性系数、马达振子运动的阻尼系数、马达的电磁耦合系数值、马达的弹簧弹性系数、马达振子质量及马达音圈的电阻值;所述基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号,包括:Further, the nonlinear parameters include the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient, the damping coefficient of the motion of the motor vibrator, the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient of the motor, the mass of the motor vibrator and the value of the motor voice coil. The resistance value; the target excitation voltage signal of the motor is obtained by calculating the non-linear inverse model of the motor based on the target displacement signal and the nonlinear parameter, including:
所述马达非线性逆模型的公式为:The formula of the non-linear inverse model of the motor is:
Figure PCTCN2021070540-appb-000001
其中,u为所述目标激励电压信号,x为所述目标位移信号,
Figure PCTCN2021070540-appb-000002
为马达振子的速度,
Figure PCTCN2021070540-appb-000003
为马达振子的加速度,i为马达音圈电流,p_BL1所述表示马达振子位移为x时的所述电磁耦合系数值,p kdx表示马达振子位移为x时的所述弹簧弹性系数,p cdx表示马达振子位移为x时的所述马达振子运动的阻尼系数,p BLx表示马达振子位移为x时的所述电磁耦合系数值,p md表示所述马达振子质量,p Re表示所述马达音圈的电阻值;
Figure PCTCN2021070540-appb-000001
Wherein, u is the target excitation voltage signal, x is the target displacement signal,
Figure PCTCN2021070540-appb-000002
is the speed of the motor oscillator,
Figure PCTCN2021070540-appb-000003
is the acceleration of the motor vibrator, i is the motor voice coil current, p_BL1 represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x, p kdx represents the spring elasticity coefficient when the displacement of the motor vibrator is x, and p cdx represents The damping coefficient of the motion of the motor vibrator when the displacement of the motor vibrator is x, p BLx represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x, p md represents the mass of the motor vibrator, and p Re represents the motor voice coil resistance value;
将所述目标位移信号及所述非线性参数代入所述马达非线性逆模型的公式中进行解算,得到所述目标激励电压信号。Substitute the target displacement signal and the nonlinear parameter into the formula of the non-linear inverse model of the motor for calculation to obtain the target excitation voltage signal.
第二方面,本发明实施例提供一种马达振动信号生成装置,包括:In a second aspect, an embodiment of the present invention provides an apparatus for generating a motor vibration signal, including:
获取模块,用于获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子 的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;an acquisition module, configured to acquire initial data of the motor, where the initial data includes the target center frequency of the motor vibrator, boundary condition values and nonlinear parameters, wherein the boundary condition value is the segmental displacement signal of the motor vibrator The initial displacement starting point and the initial displacement end point of , and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
第一计算模块,用于根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;a first calculation module, configured to calculate the target displacement signal of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameter;
第二计算模块,用于基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。The second calculation module is configured to calculate the target excitation voltage signal of the motor by using the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter.
第三方面,本发明实施例还提供一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述马达振动信号生成方法的步骤。In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program Implement the steps of the motor vibration signal generating method as described above.
第四方面,本发明实施例还提供一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如上所述马达振动信号生成方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, including computer instructions, which, when the computer instructions are executed on the computer, cause the computer to execute the steps of the motor vibration signal generating method as described above.
实施本发明实施例,将具有如下有益效果:Implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述马达振动信号生成方法、装置、计算机设备及存储介质之后,通过获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号,由于该目标激励电压信号是基于目标中心频率,通过马达非线性逆模型计算得到,保证了目标激励电压信号计算的准确性,以该目标激励电压信号对马达进行驱动,以使马达以目标中心频率进行振动,使得马达振动信号短、震感强且频率多样化,提高了马达触觉效果,实现了对马达振动的精确控制。After adopting the above-mentioned motor vibration signal generating method, device, computer equipment and storage medium, the initial data of the motor is obtained, and the initial data includes the target center frequency of the motor oscillator, boundary condition values and nonlinear parameters, wherein all the The boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator, and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor; according to the target center frequency, the The initial displacement starting point, the initial displacement end point, and the nonlinear parameters are used to calculate the target displacement signal of the motor by using the motor nonlinear positive model; based on the target displacement signal and the nonlinear parameters, the motor nonlinear inverse model is used. The target excitation voltage signal of the motor is obtained by calculation. Since the target excitation voltage signal is based on the target center frequency, it is calculated through the non-linear inverse model of the motor, which ensures the accuracy of the calculation of the target excitation voltage signal. The motor is driven to make the motor vibrate at the target center frequency, so that the motor vibration signal is short, the vibration sense is strong, and the frequency is diversified, which improves the haptic effect of the motor and realizes the precise control of the motor vibration.
【附图说明】【Description of drawings】
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
其中:in:
图1为一个实施例中所述马达振动信号生成方法的流程示意图;1 is a schematic flowchart of a method for generating a motor vibration signal in one embodiment;
图2为一个实施例中所述马达非线性正模型计算原理示意图;FIG. 2 is a schematic diagram of the calculation principle of the non-linear positive model of the motor in one embodiment;
图3为一个实施例中所述马达非线性逆模型计算原理示意图;3 is a schematic diagram of the calculation principle of the non-linear inverse model of the motor in one embodiment;
图4为一个实施例中所述马达的弹簧弹性系数随位移变化的示意图;FIG. 4 is a schematic diagram of the spring coefficient of the motor as a function of displacement in one embodiment;
图5为一个实施例中所述目标位移半波形的波形示意图;5 is a waveform diagram of the target displacement half-waveform in one embodiment;
图6为一个实施例中所述目标位移信号计算过程的示意图;6 is a schematic diagram of a calculation process of the target displacement signal in one embodiment;
图7为一个实施例中所述目标激励电压信号计算过程的示意图;7 is a schematic diagram of the calculation process of the target excitation voltage signal in one embodiment;
图8为一个实施例中所述目标激励电压的波形的波形示意图;8 is a schematic waveform diagram of the waveform of the target excitation voltage in one embodiment;
图9为一个实施例中所述马达振动信号生成装置的结构示意图;9 is a schematic structural diagram of the motor vibration signal generating device in one embodiment;
图10为一个实施例中运行上述马达振动信号生成方法的计算机设备的内部结构示意图。FIG. 10 is a schematic diagram of the internal structure of a computer device running the above-mentioned method for generating a motor vibration signal in one embodiment.
【具体实施方式】【Detailed ways】
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为解决传统技术中由于对马达振动信号的波形设计不合理,而出现驱动马达进行振动的激励电压信号不准确,导致马达振动信号时间长、震感弱、频率单一,使得马达振动信号效果差,降低触觉效果。In order to solve the problem of inaccurate excitation voltage signal driving the motor to vibrate due to the unreasonable waveform design of the motor vibration signal in the traditional technology, the motor vibration signal has a long time, weak vibration and a single frequency, which makes the motor vibration signal ineffective and reduces the frequency. Haptic effect.
基于上述问题,在本实施例中,特提出了一种马达振动信号生成方法。该方法的实现可依赖于计算机程序,该计算机程序可运行于基于冯诺依曼体系的计算机系统之上。Based on the above problem, in this embodiment, a method for generating a motor vibration signal is proposed. The implementation of the method can rely on a computer program that can run on a computer system based on the von Neumann architecture.
如图1所示,本实施例的马达振动信号生成方法适用于马达,该马达振动信号生成方法具体包括以下步骤:As shown in FIG. 1 , the method for generating a motor vibration signal in this embodiment is applicable to a motor, and the method for generating a motor vibration signal specifically includes the following steps:
步骤102:获取马达的初始数据,初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,边界条件值为马达振子的分段位移信号的初始位移起点与初始位移终点,非线性参数为马达机电耦合方程中非线性结构参数的系数。Step 102: Obtain the initial data of the motor, the initial data includes the target center frequency of the motor oscillator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator, and the non- The linear parameters are the coefficients of the nonlinear structural parameters in the electromechanical coupling equation of the motor.
其中,目标中心频率是指设计人员设计的期望产生理想触觉效果的振动信号的中心频率。边界条件值为马达振子的分段位移信号的初始位移起点与初始位移终点,马达振子的位移波形是多段振幅不同的波形组成的,也即被分成多段位移信号。本实施例中的初始位移起点与初始位移终点分别是指第一段位移信号的初始值和终止值,由于信号设计为马达振子从静止状态开始运动,因此,初始位移起点通常为0,初始位移终点为马达振子的最大限制位移。非线性参数为非线性参数为马达机电耦合方程中非线性结构参数的系数,如马达的弹簧弹性系数、马达振子质量及马达音圈的电阻值等。Among them, the target center frequency refers to the center frequency of the vibration signal designed by the designer and expecting to produce the ideal haptic effect. The boundary condition values are the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor vibrator. The displacement waveform of the motor vibrator is composed of multiple waveforms with different amplitudes, that is, it is divided into multiple displacement signals. In this embodiment, the initial displacement starting point and the initial displacement ending point respectively refer to the initial value and the ending value of the first segment of the displacement signal. Since the signal is designed so that the motor vibrator starts to move from a static state, the initial displacement starting point is usually 0, and the initial displacement The end point is the maximum limit displacement of the motor oscillator. The nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor, such as the spring elastic coefficient of the motor, the mass of the motor vibrator, and the resistance value of the motor voice coil.
步骤104:根据目标中心频率、初始位移起点、初始位移终点及非线性参数,利用马达非线性正模型计算马达的目标位移信号。Step 104: Calculate the target displacement signal of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameters.
其中,本实施例中的马达非线性正模型是一种用于基于电压信号确定位移信号的数学模型,且该马达非线性正模型中包括马达机电耦合方程,如图2所示,为马达非线性正模型计算原理示意图。具体地,利用预设的位移与电压变换表达式将初始位移起点和初始位移终点的位移信号转换为电压信号,接着,将转换后的电压信号和非线性参数作为马达机电耦合方程的输入进行解算,得到位移信号,也即本实施例中的目标位移信号。可以理解地,该目标位移信号是基于目标中心频率,通过马达非线性正模型计算得到,保证了目标位移信号计算的准确性。Wherein, the motor nonlinear positive model in this embodiment is a mathematical model for determining the displacement signal based on the voltage signal, and the motor nonlinear positive model includes the motor electromechanical coupling equation, as shown in FIG. Schematic diagram of the calculation principle of the linear positive model. Specifically, the displacement signals of the initial displacement starting point and the initial displacement ending point are converted into voltage signals by using the preset displacement and voltage transformation expressions, and then the converted voltage signals and nonlinear parameters are used as the input of the motor electromechanical coupling equation to solve Then, a displacement signal is obtained, that is, the target displacement signal in this embodiment. It is understandable that the target displacement signal is calculated based on the target center frequency through the nonlinear positive model of the motor, which ensures the accuracy of the calculation of the target displacement signal.
步骤106:基于目标位移信号及非线性参数,利用马达非线性逆模型计算得到马达的目标激励电压信号。Step 106: Based on the target displacement signal and the nonlinear parameters, the target excitation voltage signal of the motor is obtained by calculating the motor nonlinear inverse model.
其中,马达非线性逆模型是与马达非线性正模型相反的数学模型,该马达非线性逆模型包括马达机电耦合方程,也即马达非线性逆模型是基于位移信号确定电压信号的数学模型,如图3所示,为马达非线性逆模型计算原理示意图。具体 地,将步骤104中的目标位移信号和非线性参数作为马达机电耦合方程的输入进行解算,得到电压信号,也即本实施例中的目标激励电压信号,可以理解地,由于该目标激励电压信号是基于目标中心频率,通过马达非线性逆模型计算得到,保证了目标激励电压信号计算的准确性,以该目标激励电压信号对马达进行驱动,以使马达以目标中心频率进行振动,使得马达振动信号短、震感强且频率多样化,提高了马达触觉效果,实现了对马达振动的精确控制。Among them, the non-linear inverse model of the motor is a mathematical model opposite to the non-linear positive model of the motor, and the non-linear inverse model of the motor includes the electromechanical coupling equation of the motor, that is, the non-linear inverse model of the motor is a mathematical model that determines the voltage signal based on the displacement signal, such as Figure 3 is a schematic diagram of the calculation principle of the non-linear inverse model of the motor. Specifically, the target displacement signal and the nonlinear parameter in step 104 are used as the input of the motor electromechanical coupling equation to be solved to obtain a voltage signal, that is, the target excitation voltage signal in this embodiment. The voltage signal is based on the target center frequency and is calculated by the non-linear inverse model of the motor, which ensures the accuracy of the target excitation voltage signal calculation. The target excitation voltage signal is used to drive the motor, so that the motor vibrates at the target center frequency, so that The motor vibration signal is short, the vibration sense is strong and the frequency is diverse, which improves the motor haptic effect and realizes the precise control of the motor vibration.
上述马达振动信号生成方法中,通过获取马达的初始数据,初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,边界条件值为马达振子的分段位移信号的初始位移起点与初始位移终点,非线性参数为马达机电耦合方程中非线性结构参数的系数;根据目标中心频率、初始位移起点、初始位移终点及非线性参数,利用马达非线性正模型计算马达的目标位移信号;基于目标位移信号及非线性参数,利用马达非线性逆模型计算得到马达的目标激励电压信号。由于该目标激励电压信号是基于目标中心频率,通过马达非线性逆模型计算得到,保证了目标激励电压信号计算的准确性,以该目标激励电压信号对马达进行驱动,以使马达以目标中心频率进行振动,使得马达振动信号短、震感强且频率多样化,提高了马达触觉效果,实现了对马达振动的精确控制。In the above method for generating a motor vibration signal, the initial data of the motor is obtained, and the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator. and the initial displacement end point, the nonlinear parameters are the coefficients of the nonlinear structural parameters in the electromechanical coupling equation of the motor; according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameters, use the motor nonlinear positive model to calculate the target displacement signal of the motor ; Based on the target displacement signal and nonlinear parameters, the target excitation voltage signal of the motor is obtained by calculating the nonlinear inverse model of the motor. Since the target excitation voltage signal is based on the target center frequency and is calculated by the non-linear inverse model of the motor, the accuracy of the calculation of the target excitation voltage signal is ensured. Vibration makes the motor vibration signal short, the vibration sense is strong and the frequency is diversified, the tactile effect of the motor is improved, and the precise control of the motor vibration is realized.
在一个实施例中,根据目标中心频率、初始位移起点、初始位移终点及非线性参数,利用马达非线性正模型计算马达的目标位移信号,包括:根据目标中心频率、非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及马达非线性正模型计算马达的第i段理想电压半波形,其中,预设的位移与电压变换公式是基于马达振子的响应特征得到,i的初始值为1,且第1个位移起点为初始位移起点,第1个位移终点为初始位移终点且为马达振子的最大限制位移;根据预设的最大限制电压,对第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点;根据位移终点及最大限制位移确定第i+1个位移起点及第i+1个位移终点,令i=i+1,返回执行根据目标中心频率、非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及马达非线性正模型计算马达的第i段理想电压半波形的步骤,获取N段位移半波形,i和N均为自然数,i∈[1,N];将N段位移半波形按照预设的规则进行拼 接,得到目标位移信号。In one embodiment, according to the target center frequency, the initial displacement starting point, the initial displacement end point, and the nonlinear parameters, the target displacement signal of the motor is calculated by using the motor nonlinear positive model, including: according to the target center frequency, the nonlinear parameter, the ith The displacement starting point and the ith displacement end point are used to calculate the ideal voltage half-waveform of the ith segment of the motor by using the preset displacement and voltage transformation formula and the non-linear positive model of the motor. The preset displacement and voltage transformation formula is based on the motor oscillator. The response characteristics are obtained, the initial value of i is 1, and the first displacement starting point is the initial displacement starting point, and the first displacement end point is the initial displacement ending point and is the maximum limit displacement of the motor oscillator; according to the preset maximum limit voltage, for the first Adjust the ideal voltage half-waveform of segment i to obtain the displacement half-waveform of segment i and the adjusted displacement end point; determine the i+1th displacement starting point and the i+1th displacement end point according to the displacement end point and the maximum limit displacement, let i= i+1, return to execute According to the target center frequency, nonlinear parameters, the ith displacement starting point and the ith displacement end point, use the preset displacement and voltage transformation formula and the motor nonlinear positive model to calculate the ideal voltage of the ith segment of the motor The step of the half-waveform is to obtain N-segment displacement half-waveforms, where i and N are both natural numbers, i∈[1,N]; the N-segment displacement half-waveforms are spliced according to preset rules to obtain the target displacement signal.
在这个实施例中,预设的位移与电压变换公式是基于马达振子的响应特征得到,可选的,预设的位移-电压变换公式如下:In this embodiment, the preset displacement-voltage conversion formula is obtained based on the response characteristics of the motor oscillator. Optionally, the preset displacement-voltage conversion formula is as follows:
u=αx+β;u=αx+β;
其中,
Figure PCTCN2021070540-appb-000004
in,
Figure PCTCN2021070540-appb-000004
Figure PCTCN2021070540-appb-000005
p ct1=p cd1 2+p BL1 2/p Re1;X 0表示初始位移起点,X 1表示初始位移终点,Fn表示目标中心频率,u表示转换后的电压信号,x表示马达振子在当前时刻的位移;p_BL1表示马达振子位移为X1时的电磁耦合系数值,p_kd1表示马达振子位移为X1时的弹簧弹性系数,如图4所示,为马达的弹簧弹性系数随位移变化的示意图。p_cd1表示马达振子位移为X1时的马达振子运动的阻尼系数,p_BL0表示马达振子位移为X0时的电磁耦合系数值,p_kd0表示马达振子位移为X0时的所述弹簧弹性系数,p_md表示马达振子质量,p_Re表示马达音圈的电阻值。理想电压半波形是指马达在半个周期内的理想电压的波形,想位移半波形是指马达在半个周期内的理想位移的波形,且各段位移半波形与各段理想电压半波形是一一对应的,具体可通过该公式u=αx+β进行反变换计算得到。N是指参与拼接的位移半波形的段数,且N的大小具体根据期望位移信号的时长决定,段数越多,位移信号的时长越长,反之亦然。
Figure PCTCN2021070540-appb-000005
p ct1 =p cd1 2 +p BL1 2 /p Re1 ; X 0 represents the initial displacement start point, X 1 represents the initial displacement end point, Fn represents the target center frequency, u represents the converted voltage signal, and x represents the motor oscillator at the current moment. Displacement; p_BL1 represents the electromagnetic coupling coefficient value when the displacement of the motor vibrator is X1, p_kd1 represents the spring elastic coefficient when the displacement of the motor vibrator is X1, as shown in Figure 4, it is a schematic diagram of the change of the spring elastic coefficient of the motor with the displacement. p_cd1 represents the damping coefficient of the motor oscillator motion when the motor oscillator displacement is X1, p_BL0 represents the electromagnetic coupling coefficient value when the motor oscillator displacement is X0, p_kd0 represents the spring elastic coefficient when the motor oscillator displacement is X0, p_md represents the motor oscillator mass , p_Re represents the resistance value of the motor voice coil. The ideal voltage half-waveform refers to the ideal voltage waveform of the motor in a half cycle, and the desired displacement half-waveform refers to the ideal displacement waveform of the motor in a half cycle, and the displacement half-waveform of each segment and the ideal voltage half-waveform of each segment are One-to-one correspondence, which can be calculated by inverse transformation of the formula u=αx+β. N refers to the number of segments of the displacement half-waveform participating in the splicing, and the size of N is specifically determined according to the duration of the desired displacement signal. The more segments, the longer the duration of the displacement signal, and vice versa.
具体地,首先根据初始位移起点、初始位移终点,利用u=αx+β计算得到由位移信号变换后得到电压信号,将该电压信号以及非线性参数作为输入,结合马达非线性正模型中的马达机电耦合方程,计算马达的各段理想电压半波形,也即第1段理想电压半波形、第2段理想电压半波形……第N段理想电压半波形;然后根据预设的最大限制电压与各段理想电压半波形对应的电压信号进行比较,根据比较结果对边界条件值中的第i个位移起点和第i个位移终点进行更新,继而实现对第i段理想电压半波形进行调整,根据调整后的第i段理想电压半波形及公式u=αx+β计算得到第i段位移半波形及调整后的位移终点;接着根据位移终点及最大限制位移确定第i+1个位移起点及第i+1个位移终点,令i=i+1,返回执行根据目标中心频率、非线性参数,第i个位移起点及第i个位移终点, 利用预设的位移与电压变换公式及马达非线性正模型计算马达的第i段理想电压半波形的步骤;最后获取N段位移半波形,i和N均为自然数,i∈[1,N];将N段位移半波形按照预设的规则进行拼接,得到目标位移信号。其中的拼接规则可以是将N段位移半波形直接拼接,得到加速位移波形;然后将加速位移波形进行反转得到减速位移波形;最后将加速位移波形与减速位移波形进行拼接,得到目标位移信号。例如,N段位移半波形分别为D 1、D 2、…、Dn,进行拼接获取加速位移波形A=[D 1,D 2,…,Dn],将加速度波形进行反转获取减速位移波形B=flip(A),再将A与B进行拼接,即可获得目标位移信号E=[A,B]。例如,N=3时,如图5所示,为目标位移半波形的波形示意图。D 1=(a 1,a 2,a 3,a 4),D 2=(a 5,a 6,a 7,a 8),D 3=(a 9,a 10,a 11,a 12),拼接获得A=[a 1,a 2,a 3,a 4,a 5,a 6,a 7,a 8,a 9,a 10,a 11,a 12],分别对D 1,D 2和D 3进行反转,得到F 3=(a 12,a 11,a 10,a 9),F 2=(a 8,a 7,a 6,a 5)和F 1=(a 4,a 3,a 2,a 1),B=[F 1,F 2,F 3]=[a 12,a 11,a 10,a 9,a 8,a 7,a 6,a 5,a 4,a 3,a 2,a 1],最终获得目标E=[a 1,a 2,a 3,a 4,a 5,a 6,a 7,a 8,a 9,a 10,a 11,a 12,a 12,a 11,a 10,a 9,a 8,a 7,a 6,a 5,a 4,a 3,a 2,a 1]。 Specifically, firstly, according to the initial displacement starting point and the initial displacement end point, use u=αx+β to calculate the voltage signal obtained by transforming the displacement signal, and use the voltage signal and nonlinear parameters as input to combine the motor in the nonlinear positive model of the motor. The electromechanical coupling equation calculates the ideal voltage half-waveform of each segment of the motor, that is, the ideal voltage half-waveform of the first segment, the ideal voltage half-waveform of the second segment...the ideal voltage half-waveform of the N segment; and then based on the preset maximum limit voltage and The voltage signals corresponding to the ideal voltage half-waveforms of each segment are compared, and the i-th displacement starting point and the i-th displacement end point in the boundary condition value are updated according to the comparison results, and then the ideal voltage half-waveform of the i-th segment is adjusted. The adjusted ideal voltage half-waveform of the i-th segment and the formula u=αx+β are calculated to obtain the displacement half-waveform of the i-th segment and the adjusted displacement end point; then determine the i+1th displacement starting point and the first displacement according to the displacement end point and the maximum limit displacement. i+1 displacement end points, let i=i+1, return to execute according to the target center frequency, nonlinear parameters, the i-th displacement starting point and the i-th displacement end point, using the preset displacement and voltage transformation formula and motor nonlinearity The step of calculating the ideal voltage half-waveform of the ith segment of the motor by the positive model; finally, the N-segment displacement half-waveform is obtained, where i and N are both natural numbers, i∈[1,N]; the N-segment displacement half-waveform is performed according to the preset rules Splicing to obtain the target displacement signal. The splicing rule can be directly splicing the N-segment displacement half-waveforms to obtain the acceleration displacement waveform; then inverting the acceleration displacement waveform to obtain the deceleration displacement waveform; finally, splicing the acceleration displacement waveform and the deceleration displacement waveform to obtain the target displacement signal. For example, the displacement half-waveforms of N segments are D 1 , D 2 , ..., Dn respectively, and splicing to obtain acceleration displacement waveform A=[D 1 , D 2 , ..., Dn], and inverting the acceleration waveform to obtain deceleration displacement waveform B =flip(A), and then splicing A and B to obtain the target displacement signal E=[A,B]. For example, when N=3, as shown in FIG. 5 , it is a schematic diagram of the waveform of the half-waveform of the target displacement. D 1 =(a 1 ,a 2 ,a 3 ,a 4 ), D 2 =(a 5 ,a 6 ,a 7 ,a 8 ),D 3 =(a 9 ,a 10 ,a 11 ,a 12 ) , splicing to obtain A=[a 1 , a 2 , a 3 , a 4 , a 5 , a 6 , a 7 , a 8 , a 9 , a 10 , a 11 , a 12 ], respectively for D 1 , D 2 Invert with D 3 to get F 3 =(a 12 ,a 11 ,a 10 ,a 9 ),F 2 =(a 8 ,a 7 ,a 6 ,a 5 ) and F 1 =(a 4 ,a 3 ,a 2 ,a 1 ), B=[F 1 ,F 2 ,F 3 ]=[a 12 ,a 11 ,a 10 ,a 9 ,a 8 ,a 7 ,a 6 ,a 5 ,a 4 , a 3 ,a 2 ,a 1 ], and finally obtain the target E=[a 1 ,a 2 ,a 3 ,a 4 ,a 5 ,a 6 ,a 7 ,a 8 ,a 9 ,a 10 ,a 11 ,a 12 ,a 12 ,a 11 ,a 10 ,a 9 ,a 8 ,a 7 ,a 6 ,a 5 ,a 4 ,a 3 ,a 2 ,a 1 ].
在一个实施例中,根据预设的最大限制电压,对第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点,包括:判断第i段理想电压半波形的理想电压最大值是否小于或等于最大限制电压;若理想电压最大值小于或等于最大限制电压,则确定与第i段理想电压半波形对应的位移波形为第i段位移半波形,且第i个位移终点为调整后的第i个位移终点。In one embodiment, adjusting the ideal voltage half-waveform of the i-th segment according to the preset maximum limit voltage to obtain the displacement half-waveform of the i-th segment and the adjusted displacement end point, including: judging the ideal voltage half-waveform of the i-th segment Whether the ideal voltage maximum value is less than or equal to the maximum limit voltage; if the ideal voltage maximum value is less than or equal to the maximum limit voltage, determine the displacement waveform corresponding to the ideal voltage half-waveform of the i-th segment is the displacement half-waveform of the i-th segment, and the i-th The displacement end point is the ith displacement end point after adjustment.
在这个实施例中,理想电压最大值是指第i段理想电压波形中的振幅,当理想电压最大值小于或等于最大限制电压时,确定与第i段理想电压半波形对应的位移波形为第i段位移半波形,且第i个位移终点为调整后的第i个位移终点。也即在理想电压最大值小于或等于最大限制电压时,停止对第i段理想电压半波形进行调整,直接根据第i段理想电压半波形确定对应的第i段位移半波形,从而得到i段位移半波形,以便后续基于该i段位移半波形确定目标位移半波形。In this embodiment, the ideal voltage maximum value refers to the amplitude in the ideal voltage waveform of the ith segment. When the ideal voltage maximum value is less than or equal to the maximum limit voltage, the displacement waveform corresponding to the ideal voltage half-waveform of the ith segment is determined to be the ith segment. The i-th displacement half-waveform, and the i-th displacement end point is the i-th displacement end point after adjustment. That is to say, when the maximum ideal voltage is less than or equal to the maximum limit voltage, the adjustment of the ideal voltage half-waveform of the i-th segment is stopped, and the corresponding displacement half-waveform of the i-th segment is directly determined according to the ideal voltage half-waveform of the i-th segment, so as to obtain the i-segment half-waveform. The displacement half-waveform is used to subsequently determine the target displacement half-waveform based on the i-segment displacement half-waveform.
在一个实施例中,该马达振动信号生成方法还包括:若理想电压最大值大于最大限制电压,则按照预设缩小比例规则对第i个位移终点进行缩小,得到调整后的第i个位移终点;返回执行根据目标中心频率、非线性参数,第i个位移起 点及第i个位移终点,利用预设的位移与电压变换公式及马达非线性正模型计算马达的第i段理想电压半波形的步骤。In one embodiment, the motor vibration signal generating method further includes: if the maximum ideal voltage is greater than the maximum limit voltage, reducing the ith displacement end point according to a preset reduction ratio rule to obtain the adjusted ith displacement end point ; Return to execute the calculation of the ideal voltage half-waveform of the ith segment of the motor using the preset displacement and voltage transformation formula and the motor nonlinear positive model according to the target center frequency, nonlinear parameters, the ith displacement starting point and the ith displacement end point. step.
在这个实施例中,预设缩小比例规则是指按照预设的比例进行缩小,例如,Xmax表示为最大限制位移,第1个位移终点为X 1=Xmax,理想电压最大值大于最大限制电压,将X 1缩小至0.9·Xmax后,若理想电压最大值大于最大限制电压,将X 1缩小至0.8·Xmax,如此方式进行缩小,得到调整后的第i个位移终点。返回执行根据目标中心频率、非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及马达非线性正模型计算马达的第i段理想电压半波形的步骤。 In this embodiment, the preset reduction ratio rule refers to the reduction according to a preset ratio. For example, Xmax represents the maximum limit displacement, the first displacement end point is X 1 =Xmax, and the maximum ideal voltage is greater than the maximum limit voltage, After reducing X 1 to 0.9·Xmax, if the maximum ideal voltage is greater than the maximum limit voltage, reduce X 1 to 0.8·Xmax, and reduce in this way to obtain the adjusted i-th displacement end point. Return to the step of calculating the ideal voltage half-waveform of the ith segment of the motor according to the target center frequency, nonlinear parameters, the ith displacement starting point and the ith displacement end point, using the preset displacement and voltage transformation formula and the nonlinear positive model of the motor .
在一个实施例中,根据位移终点及最大限制位移确定第i+1个位移起点及第i+1个位移终点,包括:将第i个位移终点作为第i+1个位移起点;若第i段位移半波形为上升波形,则将最大限制位移取负值作为第i+1个位移终点,若第i段位移半波形为下降波形,则将最大限制位移取正值作为第i+1个位移终点。In one embodiment, determining the i+1th displacement start point and the i+1th displacement end point according to the displacement end point and the maximum limit displacement includes: using the ith displacement end point as the i+1th displacement start point; If the displacement half-waveform of the segment is a rising waveform, the negative value of the maximum limit displacement is taken as the end point of the i+1th displacement; if the displacement half-waveform of the i-th segment is a falling waveform, the positive value of the maximum limit displacement is taken as the i+1th displacement end point. displacement end point.
在这个实施例中,为了保证各个位移半波形的波形衔接,对边界条件值进行修正,具体地,将第i个位移终点作为第i+1个位移起点;若第i段位移半波形为上升波形,则将最大限制位移取负值作为第i+1个位移终点,若第i段位移半波形为下降波形,则将最大限制位移取正值作为第i+1个位移终点。也即,修正后的为位移终点始终是取其上一个位移终点的相反符号对应的值。如图6所示,为目标位移信号计算过程的示意图。In this embodiment, in order to ensure the waveform connection of each displacement half-waveform, the boundary condition value is corrected, specifically, the i-th displacement end point is taken as the i+1-th displacement starting point; if the i-th displacement half-waveform is rising waveform, take the negative value of the maximum limit displacement as the i+1th displacement end point; if the displacement half-waveform of the i-th segment is a falling waveform, take the positive value of the maximum limit displacement as the i+1th displacement end point. That is, the corrected displacement end point is always the value corresponding to the opposite sign of the previous displacement end point. As shown in FIG. 6 , it is a schematic diagram of the calculation process of the target displacement signal.
在一个实施例中,该马达振动信号生成方法还包括:在基于目标位移信号及非线性参数,利用马达非线性逆模型计算得到马达的目标激励电压信号之前,还包括:对目标位移信号进行低通滤波处理。In one embodiment, the method for generating a motor vibration signal further includes: before obtaining the target excitation voltage signal of the motor by using the non-linear inverse model of the motor based on the target displacement signal and the nonlinear parameters, further comprising: performing a low-level operation on the target displacement signal. pass filtering.
在这个实施例中,对目标位移信号E进行低通滤波,实现了对目标位移信号的优化,从而保证了马达振子的运动合理性。优选地,低通率波的截至频率为马达固定频率的4倍,即如果马达固有频率为150Hz,则低通滤波的截至频率为600Hz。In this embodiment, low-pass filtering is performed on the target displacement signal E, so as to realize the optimization of the target displacement signal, thereby ensuring the rationality of the motion of the motor oscillator. Preferably, the cut-off frequency of the low-pass frequency wave is 4 times the fixed frequency of the motor, that is, if the natural frequency of the motor is 150 Hz, the cut-off frequency of the low-pass filter is 600 Hz.
在一个实施例中,非线性参数包括马达的电磁耦合系数值、弹簧弹性系数、马达振子运动的阻尼系数、马达的电磁耦合系数值、马达的弹簧弹性系数、马达 振子质量及马达音圈的电阻值;基于目标位移信号及非线性参数,利用马达非线性逆模型计算得到马达的目标激励电压信号,包括:马达非线性逆模型的公式为:
Figure PCTCN2021070540-appb-000006
其中,u为目标激励电压信号,x为目标位移信号,
Figure PCTCN2021070540-appb-000007
为马达振子的速度,
Figure PCTCN2021070540-appb-000008
为马达振子的加速度,i为马达音圈电流,p_BL1表示马达振子位移为x时的电磁耦合系数值,p kdx表示马达振子位移为x时的弹簧弹性系数,p cdx表示马达振子位移为x时的马达振子运动的阻尼系数,p BLx表示马达振子位移为x时的电磁耦合系数值,p md表示马达振子质量,p Re表示马达音圈的电阻值;将目标位移信号及非线性参数代入马达非线性逆模型的公式中进行解算,得到目标激励电压信号。
In one embodiment, the nonlinear parameters include the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient, the damping coefficient of the motion of the motor vibrator, the value of the electromagnetic coupling coefficient of the motor, the spring elasticity coefficient of the motor, the mass of the motor vibrator, and the resistance of the motor voice coil value; based on the target displacement signal and nonlinear parameters, the target excitation voltage signal of the motor is calculated by using the non-linear inverse model of the motor, including: the formula of the non-linear inverse model of the motor is:
Figure PCTCN2021070540-appb-000006
Among them, u is the target excitation voltage signal, x is the target displacement signal,
Figure PCTCN2021070540-appb-000007
is the speed of the motor oscillator,
Figure PCTCN2021070540-appb-000008
is the acceleration of the motor vibrator, i is the motor voice coil current, p_BL1 represents the electromagnetic coupling coefficient value when the displacement of the motor vibrator is x, p kdx represents the spring elastic coefficient when the displacement of the motor vibrator is x, and p cdx means when the displacement of the motor vibrator is x The damping coefficient of the motor vibrator motion, p BLx represents the electromagnetic coupling coefficient value when the motor vibrator displacement is x, p md represents the motor vibrator mass, p Re represents the resistance value of the motor voice coil; Substitute the target displacement signal and nonlinear parameters into the motor Solve in the formula of the nonlinear inverse model to obtain the target excitation voltage signal.
在这个实施例中,如图7所示,为目标激励电压信号计算过程的示意图。非线性参数为设定的常数值,因此,将该非线性参数和目标位移信号输入到马达非线性逆模型的公式中进行方程解算,得到的u值即为目标激励电压。如图8所示为目标激励电压的波形的波形示意图。可以理解地,通过马达非线性逆模型的公式实现了对目标激励电压信号准确计算,因此,设计人员只需要确定目标中心频率,即可生成与各个目标中心频率对应的震动信号,提高了振动信号的频率多样性。In this embodiment, as shown in FIG. 7 , it is a schematic diagram of the calculation process of the target excitation voltage signal. The nonlinear parameter is a set constant value. Therefore, input the nonlinear parameter and the target displacement signal into the formula of the nonlinear inverse model of the motor to solve the equation, and the obtained u value is the target excitation voltage. FIG. 8 is a schematic waveform diagram of the waveform of the target excitation voltage. It is understandable that the accurate calculation of the target excitation voltage signal is achieved through the formula of the non-linear inverse model of the motor. Therefore, the designer only needs to determine the target center frequency to generate the vibration signal corresponding to each target center frequency, which improves the vibration signal. frequency diversity.
基于同一发明构思,本发明实施例提供一种马达振动信号生成装置900,如图9所示,包括:获取模块902,用于获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;第一计算模块904,用于根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;第二计算模块906,用于基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。Based on the same inventive concept, an embodiment of the present invention provides an apparatus 900 for generating a motor vibration signal, as shown in FIG. 9 , including: an acquisition module 902 for acquiring initial data of the motor, where the initial data includes the target of the motor vibrator Center frequency, boundary condition value and nonlinear parameter, wherein, the boundary condition value is the initial displacement starting point and initial displacement end point of the segmental displacement signal of the motor vibrator, and the nonlinear parameter is the nonlinearity in the electromechanical coupling equation of the motor The coefficient of the structural parameter; the first calculation module 904 is used for calculating the target of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter Displacement signal; the second calculation module 906 is configured to calculate the target excitation voltage signal of the motor by using the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter.
具体地,本发明实施例中马达振动信号生成装置900,如图9所示,包括:获取模块902,用于获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子 的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;第一计算模块904,用于根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;第二计算模块906,用于基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号,由于该目标激励电压信号是基于目标中心频率,通过马达非线性逆模型计算得到,保证了目标激励电压信号计算的准确性,以该目标激励电压信号对马达进行驱动,以使马达以目标中心频率进行振动,使得马达振动信号短、震感强且频率多样化,提高了马达触觉效果,实现了对马达振动的精确控制。Specifically, the apparatus 900 for generating a motor vibration signal in the embodiment of the present invention, as shown in FIG. 9 , includes: an acquisition module 902, configured to acquire initial data of the motor, where the initial data includes the target center frequency and boundary of the motor oscillator. Condition value and nonlinear parameter, wherein, the boundary condition value is the initial displacement starting point and the initial displacement end point of the segmental displacement signal of the motor oscillator, and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the motor electromechanical coupling equation ; The first calculation module 904 is used to calculate the target displacement signal of the motor using the motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameter; the first The second calculation module 906 is configured to calculate and obtain the target excitation voltage signal of the motor based on the target displacement signal and the nonlinear parameter by using the non-linear inverse model of the motor. Since the target excitation voltage signal is based on the target center frequency, through The nonlinear inverse model of the motor is calculated, which ensures the accuracy of the calculation of the target excitation voltage signal. The motor is driven by the target excitation voltage signal, so that the motor vibrates at the target center frequency, so that the motor vibration signal is short, the vibration sense is strong and the frequency is high. Diversified, improved motor haptic effect, and achieved precise control of motor vibration.
需要说明的是,本实施例中马达振动信号生成的装置的实现与上述马达振动信号生成的方法的实现思想一致,其实现原理在此不再进行赘述,可具体参阅上述方法中对应内容。It should be noted that the implementation of the device for generating motor vibration signals in this embodiment is consistent with the implementation idea of the above-mentioned method for generating motor vibration signals, and the implementation principle will not be repeated here.
图10示出了一个实施例中计算机设备的内部结构图。该计算机设备具体可以是服务器,也可以是终端。如图10所示,该计算机设备600包括通过系统总线连接的处理器610、存储器620和网络接口630。其中,存储器620包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现马达振动信号生成的方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行马达振动信号生成的方法。本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图10中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 10 shows an internal structure diagram of a computer device in one embodiment. Specifically, the computer device may be a server or a terminal. As shown in FIG. 10, the computer device 600 includes a processor 610, a memory 620 and a network interface 630 connected through a system bus. Among them, the memory 620 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and also stores a computer program, which, when executed by the processor, enables the processor to implement the method for generating a motor vibration signal. A computer program may also be stored in the internal memory, and when the computer program is executed by the processor, the processor may execute the method for generating the motor vibration signal. Those skilled in the art can understand that the structure shown in FIG. 10 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than those shown in Figure 10, or combine certain components, or have a different arrangement of components.
在一个实施例中,本申请提供的马达振动信号生成的方法可以实现为一种计算机程序的形式,计算机程序可在如图10所示的计算机设备上运行。计算机设备的存储器中可存储组成所述马达振动信号生成的装置的各个程序模块。比如,获取模块902,第一计算获取模块904,第二计算模块906。In one embodiment, the method for generating a motor vibration signal provided by the present application may be implemented in the form of a computer program, and the computer program may be executed on a computer device as shown in FIG. 10 . Various program modules constituting the means for generating the motor vibration signal may be stored in the memory of the computer device. For example, the acquisition module 902 , the first calculation acquisition module 904 , and the second calculation module 906 .
在一个实施例中,提出了一种计算机设备,包括存储器和处理器,所述存储 器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:In one embodiment, a computer device is proposed, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the following steps:
获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;Obtain the initial data of the motor, the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;According to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter, the target displacement signal of the motor is calculated by using the motor nonlinear positive model;
基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。Based on the target displacement signal and the nonlinear parameter, a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
在一个实施例中,提出了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如下步骤:In one embodiment, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, the following steps are implemented:
获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;Obtain the initial data of the motor, the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;According to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter, the target displacement signal of the motor is calculated by using the motor nonlinear positive model;
基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。Based on the target displacement signal and the nonlinear parameter, a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者 外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种马达振动信号生成方法,其特征在于,包括:A method for generating a motor vibration signal, comprising:
    获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;Obtain the initial data of the motor, the initial data includes the target center frequency of the motor vibrator, the boundary condition value and the nonlinear parameter, wherein the boundary condition value is the initial displacement starting point of the segmental displacement signal of the motor vibrator and the The initial displacement end point, the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
    根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;According to the target center frequency, the initial displacement start point, the initial displacement end point and the nonlinear parameter, the target displacement signal of the motor is calculated by using the motor nonlinear positive model;
    基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。Based on the target displacement signal and the nonlinear parameter, a target excitation voltage signal of the motor is obtained by calculating a nonlinear inverse model of the motor.
  2. 如权利要求1所述马达振动信号生成方法,其特征在于,所述根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号,包括:The method for generating a motor vibration signal according to claim 1, wherein the calculation is performed using a motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement ending point, and the nonlinear parameter. The target displacement signal of the motor, including:
    根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形,其中,所述预设的位移与电压变换公式是基于所述马达振子的响应特征得到,所述i的初始值为1,且第1个位移起点为所述初始位移起点,所述第1个位移终点为所述初始位移终点且为所述马达振子的最大限制位移;According to the target center frequency, the nonlinear parameter, the i-th displacement starting point and the i-th displacement end point, use the preset displacement and voltage transformation formula and the motor nonlinear positive model to calculate the i-th segment of the motor The ideal voltage half-waveform, wherein the preset displacement and voltage transformation formula is obtained based on the response characteristics of the motor oscillator, the initial value of i is 1, and the first displacement starting point is the initial displacement starting point, The first displacement end point is the initial displacement end point and is the maximum limit displacement of the motor oscillator;
    根据预设的最大限制电压,对所述第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点;According to the preset maximum limit voltage, adjusting the ideal voltage half-waveform of the i-th segment to obtain the displacement half-waveform of the i-th segment and the adjusted displacement end point;
    根据所述位移终点及所述最大限制位移确定第i+1个位移起点及第i+1个位移终点,令i=i+1,返回执行所述根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形的步骤,获取N段所述位移半波形,所述i和所述N均为自然数,i∈[1,N];Determine the i+1 th displacement starting point and the i+1 th displacement end point according to the displacement end point and the maximum limit displacement, let i=i+1, and return to executing the above according to the target center frequency, the nonlinear parameters, i-th displacement starting point and i-th displacement end point, using the preset displacement and voltage transformation formula and the non-linear positive model of the motor to calculate the step of the ideal voltage half-waveform of the i-th segment of the motor, to obtain the N-th segment of the ideal voltage half-waveform. the displacement half-waveform, the i and the N are both natural numbers, i∈[1,N];
    将N段所述位移半波形按照预设的规则进行拼接,得到所述目标位移信号。The N segments of the displacement half-waveforms are spliced according to a preset rule to obtain the target displacement signal.
  3. 根据权利要求2所述马达振动信号生成方法,所述根据预设的最大限制 电压,对第i段理想电压半波形进行调整,得到第i段位移半波形及调整后的位移终点,包括:According to the described motor vibration signal generation method of claim 2, described according to the preset maximum limit voltage, the ideal voltage half-waveform of the ith section is adjusted to obtain the displacement half-waveform of the ith section and the adjusted displacement end point, including:
    判断所述第i段理想电压半波形的理想电压最大值是否小于或等于所述最大限制电压;Determine whether the ideal voltage maximum value of the i-th ideal voltage half-waveform is less than or equal to the maximum limit voltage;
    若所述理想电压最大值小于或等于所述最大限制电压,则确定与所述第i段理想电压半波形对应的位移波形为所述第i段位移半波形,且所述第i个位移终点为调整后的第i个位移终点。If the maximum value of the ideal voltage is less than or equal to the maximum limit voltage, the displacement waveform corresponding to the ideal voltage half-waveform of the i-th segment is determined as the displacement half-waveform of the i-th segment, and the i-th displacement end point is determined as the displacement waveform of the i-th segment. is the ith displacement end point after adjustment.
  4. 根据权利要求3所述马达振动信号生成方法,其特征在于,所述方法还包括:The method for generating a motor vibration signal according to claim 3, wherein the method further comprises:
    若所述理想电压最大值大于所述最大限制电压,则按照预设缩小比例规则对所述第i个位移终点进行缩小,得到调整后的第i个位移终点;If the maximum value of the ideal voltage is greater than the maximum limit voltage, the i-th displacement end point is reduced according to the preset reduction ratio rule to obtain the adjusted i-th displacement end point;
    返回执行所述根据所述目标中心频率、所述非线性参数,第i个位移起点及第i个位移终点,利用预设的位移与电压变换公式及所述马达非线性正模型计算所述马达的第i段理想电压半波形的步骤。Return to execute the calculation of the motor according to the target center frequency, the nonlinear parameter, the i-th displacement starting point and the i-th displacement end point, using the preset displacement and voltage transformation formula and the motor nonlinear positive model The step of the ideal voltage half-waveform of the ith segment.
  5. 根据权利要求2所述马达振动信号生成方法,其特征在于,所述根据所述位移终点及所述最大限制位移确定第i+1个位移起点及第i+1个位移终点,包括:The method for generating a motor vibration signal according to claim 2, wherein the determining the i+1 th displacement starting point and the i+1 th displacement end point according to the displacement end point and the maximum limit displacement comprises:
    将所述第i个位移终点作为第i+1个位移起点;Taking the i-th displacement end point as the i+1-th displacement start point;
    若所述第i段位移半波形为上升波形,则将所述最大限制位移取负值作为所述第i+1个位移终点,若所述第i段位移半波形为下降波形,则将所述最大限制位移取正值作为所述第i+1个位移终点。If the displacement half-waveform of the i-th segment is a rising waveform, the negative value of the maximum limit displacement is taken as the i+1-th displacement end point; if the displacement half-waveform of the i-th segment is a falling waveform, the The maximum limit displacement takes a positive value as the end point of the i+1th displacement.
  6. 如权利要求1所述马达振动信号生成方法,其特征在于,在基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号之前,还包括:The method for generating a motor vibration signal according to claim 1, characterized in that, before obtaining the target excitation voltage signal of the motor based on the target displacement signal and the nonlinear parameter by using the motor nonlinear inverse model, the method further comprises: :
    对所述目标位移信号进行低通滤波处理。Low-pass filtering is performed on the target displacement signal.
  7. 如权利要求1所述马达振动信号生成方法,其特征在于,所述非线性参数包括所述马达的电磁耦合系数值、弹簧弹性系数、马达振子运动的阻尼系数、马达的电磁耦合系数值、马达的弹簧弹性系数、马达振子质量及马达音圈的电阻值; 所述基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号,包括:The method for generating a motor vibration signal according to claim 1, wherein the nonlinear parameters include an electromagnetic coupling coefficient value of the motor, a spring elastic coefficient, a damping coefficient of the motion of the motor oscillator, an electromagnetic coupling coefficient value of the motor, a motor The spring elastic coefficient, the quality of the motor vibrator and the resistance value of the motor voice coil; The target excitation voltage signal of the motor is obtained by calculating the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter, including:
    所述马达非线性逆模型的公式为:The formula of the non-linear inverse model of the motor is:
    Figure PCTCN2021070540-appb-100001
    其中,u为所述目标激励电压信号,x为所述目标位移信号,
    Figure PCTCN2021070540-appb-100002
    为马达振子的速度,
    Figure PCTCN2021070540-appb-100003
    为马达振子的加速度,i为马达音圈电流,p_BL1所述表示马达振子位移为x时的所述电磁耦合系数值,p kdx表示马达振子位移为x时的所述弹簧弹性系数,p cdx表示马达振子位移为x时的所述马达振子运动的阻尼系数,p BLx表示马达振子位移为x时的所述电磁耦合系数值,p md表示所述马达振子质量,p Re表示所述马达音圈的电阻值;
    Figure PCTCN2021070540-appb-100001
    Wherein, u is the target excitation voltage signal, x is the target displacement signal,
    Figure PCTCN2021070540-appb-100002
    is the speed of the motor oscillator,
    Figure PCTCN2021070540-appb-100003
    is the acceleration of the motor vibrator, i is the motor voice coil current, p_BL1 represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x, p kdx represents the spring elasticity coefficient when the displacement of the motor vibrator is x, and p cdx represents The damping coefficient of the motion of the motor vibrator when the displacement of the motor vibrator is x, p BLx represents the value of the electromagnetic coupling coefficient when the displacement of the motor vibrator is x, p md represents the mass of the motor vibrator, and p Re represents the motor voice coil resistance value;
    将所述目标位移信号及所述非线性参数代入所述马达非线性逆模型的公式中进行解算,得到所述目标激励电压信号。Substitute the target displacement signal and the nonlinear parameter into the formula of the non-linear inverse model of the motor for calculation to obtain the target excitation voltage signal.
  8. 一种马达振动信号生成装置,其特征在于,包括:A device for generating a motor vibration signal, comprising:
    获取模块,用于获取所述马达的初始数据,所述初始数据包括马达振子的目标中心频率、边界条件值及非线性参数,其中,所述边界条件值为所述马达振子的分段位移信号的初始位移起点与初始位移终点,所述非线性参数为马达机电耦合方程中非线性结构参数的系数;an acquisition module, configured to acquire initial data of the motor, where the initial data includes the target center frequency of the motor vibrator, boundary condition values and nonlinear parameters, wherein the boundary condition value is the segmental displacement signal of the motor vibrator The initial displacement starting point and the initial displacement end point of , and the nonlinear parameter is the coefficient of the nonlinear structural parameter in the electromechanical coupling equation of the motor;
    第一计算模块,用于根据所述目标中心频率、所述初始位移起点、所述初始位移终点及所述非线性参数,利用马达非线性正模型计算所述马达的目标位移信号;a first calculation module, configured to calculate the target displacement signal of the motor by using the motor nonlinear positive model according to the target center frequency, the initial displacement starting point, the initial displacement end point and the nonlinear parameter;
    第二计算模块,用于基于所述目标位移信号及所述非线性参数,利用马达非线性逆模型计算得到所述马达的目标激励电压信号。The second calculation module is configured to calculate the target excitation voltage signal of the motor by using the motor nonlinear inverse model based on the target displacement signal and the nonlinear parameter.
  9. 一种计算机设备,其特征在于,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述马达振动信号生成方法的步骤。A computer device, characterized in that it includes a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the rights when executing the computer program The steps of the motor vibration signal generating method according to any one of claims 1 to 7.
  10. 一种计算机可读存储介质,包括计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求1至7中任一项所述的马达振动信号生成方法的步骤。A computer-readable storage medium comprising computer instructions that, when executed on a computer, cause the computer to perform the steps of the motor vibration signal generating method according to any one of claims 1 to 7.
PCT/CN2021/070540 2020-12-22 2021-01-07 Motor vibration signal generation method and apparatus, computer device, and storage medium WO2022134219A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011524996.8 2020-12-22
CN202011524996.8A CN112650388B (en) 2020-12-22 2020-12-22 Motor vibration signal generation method and device, computer equipment and storage medium

Publications (1)

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

Family

ID=75358868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/070540 WO2022134219A1 (en) 2020-12-22 2021-01-07 Motor vibration signal generation method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN112650388B (en)
WO (1) WO2022134219A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115483865A (en) * 2022-08-31 2022-12-16 歌尔股份有限公司 Collision protection method and device for motor oscillator, terminal device and storage medium
CN115622475A (en) * 2022-11-07 2023-01-17 歌尔股份有限公司 Protection method of linear motor, terminal device and computer readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114167975B (en) * 2021-10-29 2023-10-13 歌尔股份有限公司 Method and device for constructing and adjusting directional vibration waveform
CN114221596B (en) * 2021-12-22 2023-12-22 歌尔股份有限公司 Method, apparatus and computer readable storage medium for adjusting vibration feeling based on motor
CN114500729B (en) * 2022-02-14 2023-12-19 Tcl通讯科技(成都)有限公司 Vibration control method, vibration control device, terminal and computer readable storage medium
CN115632592A (en) * 2022-11-07 2023-01-20 歌尔股份有限公司 Displacement control method and device for linear motor oscillator, terminal device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010169500A (en) * 2009-01-22 2010-08-05 Toyota Central R&D Labs Inc Apparatus, method, and program for stress-strain curve calculation
CN104317195A (en) * 2014-09-28 2015-01-28 重庆邮电大学 Improved extreme learning machine-based nonlinear inverse model control method
CN110346720A (en) * 2019-06-28 2019-10-18 瑞声科技(新加坡)有限公司 A kind of test method and device of motor nonlinear parameter
CN111486779A (en) * 2020-04-14 2020-08-04 瑞声科技(新加坡)有限公司 Signal processing method and device and electronic equipment
CN111679735A (en) * 2020-05-20 2020-09-18 瑞声科技(新加坡)有限公司 Excitation signal generation method, device, terminal and storage medium
CN111796669A (en) * 2020-05-15 2020-10-20 欧菲微电子技术有限公司 Piezoelectric touch device, feedback vibration control method and device thereof, and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110887652B (en) * 2019-12-04 2021-06-29 武汉大学 Interactive multi-model detection method for vibration detection and displacement extraction of accelerometer
CN111552379B (en) * 2020-04-17 2023-05-26 瑞声科技(新加坡)有限公司 Method and device for rapidly stopping vibration system, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010169500A (en) * 2009-01-22 2010-08-05 Toyota Central R&D Labs Inc Apparatus, method, and program for stress-strain curve calculation
CN104317195A (en) * 2014-09-28 2015-01-28 重庆邮电大学 Improved extreme learning machine-based nonlinear inverse model control method
CN110346720A (en) * 2019-06-28 2019-10-18 瑞声科技(新加坡)有限公司 A kind of test method and device of motor nonlinear parameter
CN111486779A (en) * 2020-04-14 2020-08-04 瑞声科技(新加坡)有限公司 Signal processing method and device and electronic equipment
CN111796669A (en) * 2020-05-15 2020-10-20 欧菲微电子技术有限公司 Piezoelectric touch device, feedback vibration control method and device thereof, and electronic equipment
CN111679735A (en) * 2020-05-20 2020-09-18 瑞声科技(新加坡)有限公司 Excitation signal generation method, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115483865A (en) * 2022-08-31 2022-12-16 歌尔股份有限公司 Collision protection method and device for motor oscillator, terminal device and storage medium
CN115622475A (en) * 2022-11-07 2023-01-17 歌尔股份有限公司 Protection method of linear motor, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN112650388B (en) 2022-06-28
CN112650388A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
WO2022134219A1 (en) Motor vibration signal generation method and apparatus, computer device, and storage medium
WO2021232472A1 (en) Excitation signal generation method and apparatus, terminal, and storage medium
US20210025940A1 (en) Method And Apparatus For Testing Nonlinear Parameter of Motor
CN110995079B (en) Method, device, terminal and storage medium for generating motor vibration signal
WO2021000178A1 (en) Excitation signal generation method and device for motor, and computer apparatus
CN111552371B (en) Excitation voltage generation method, device, equipment and medium, test method and system
WO2022041346A1 (en) Determination method for vibration amount for linear motor touch control apparatus, and related device
Reisinger et al. An adaptive Euler–Maruyama scheme for McKean–Vlasov SDEs with super-linear growth and application to the mean-field FitzHugh–Nagumo model
CN111159623B (en) Method, device, terminal and storage medium for calculating motor vibration signal
CN103346692A (en) Frequency domain compensation method for piezoelectric actuator hysteresis nonlinearity in vibration active control
CN107577146B (en) Neural network self-adaptive control method of servo system based on friction integral approximation
CN104199294A (en) Motor servo system bilateral neural network friction compensation and limited time coordination control method
WO2023071641A1 (en) Control method and apparatus for linear resonant actuator, and device and medium
CN111552379B (en) Method and device for rapidly stopping vibration system, computer equipment and storage medium
CN108170032B (en) Method for improving positioning accuracy of piezoelectric stack type driver
CN114492094A (en) Soil body state data calculation method and device based on boundary surface plastic model
Laila et al. Nonlinear output feedback and periodic disturbance attenuation for setpoint tracking of a combustion engine test bench
CN112198795B (en) Electromechanical servo control method, electromechanical servo control system, terminal equipment and storage medium
CN111399376A (en) Two-dimensional repetitive controller design optimization method of T-S fuzzy system
CN113949325B (en) Control method, control device, equipment and medium for linear motor
CN110347253B (en) Actuator excitation signal processing method, actuator excitation signal processing device, computer equipment and storage medium
Efe ADALINE based robust control in robotics: a Riemann-Liouville fractional differintegration based learning scheme
CN113553771A (en) Dynamic X parameter kernel calculation method based on RNN (radio network)
WO2022104876A1 (en) Haptic optimization method, device and apparatus, and medium
WO2021119932A1 (en) Vibration signal generation method and device for motor, terminal, and storage medium

Legal Events

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

Ref document number: 21908238

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908238

Country of ref document: EP

Kind code of ref document: A1