Collision protection methods, devices, terminal equipment and storage media for motor oscillators

By predicting the displacement and energy of linear motor oscillators and adjusting the driving voltage to avoid collision between the vibrator and the shell, the collision problem of linear motor oscillators is solved, and the motor performance and vibration sensing output stability are improved.

CN115483865BActive Publication Date: 2024-11-05GOERTEK INC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202211062357.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-11-05
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

The vibrator of a linear motor is prone to collide with the motor housing during movement, resulting in reduced performance, abnormal vibration sense, large vibration noise and motor damage, and it is difficult for game developers to accurately construct the driving voltage waveform to avoid such problems.

Method used

By predicting the maximum displacement of a single-frame oscillator and the corresponding energy of a linear motor oscillator, the driving voltage is adjusted to prevent the oscillator displacement from exceeding the allowable range, and the displacement prediction module, energy determination module, voltage adjustment module and collision protection module are used to achieve collision protection.

Benefits of technology

It effectively avoids collision between the motor vibrator and the shell, ensures stable motor performance, reduces vibration noise, prevents motor damage, and improves the controllability of the vibration sensing output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115483865B_ABST
    Figure CN115483865B_ABST
Patent Text Reader

Abstract

The present invention discloses a collision protection method, device, terminal device and computer-readable storage medium for a motor vibrator. The method predicts the maximum single-frame vibrator displacement of the vibrator of the linear motor according to the pre-drive voltage of the linear motor through a terminal device equipped with a linear motor; determines the vibrator energy corresponding to the time when the maximum single-frame vibrator displacement occurs; adjusts the pre-drive voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted drive voltage; and drives the linear motor according to the adjusted drive voltage to perform collision protection on the vibrator. The technical solution of the present invention can ensure that the motor vibrator will not collide with the motor housing during the voltage-driven movement, thereby effectively avoiding the problems of motor performance degradation, abnormal vibration, high vibration noise, motor damage, etc. caused by the above.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of linear motors, and in particular, relates to a collision protection method, device, terminal equipment and computer-readable storage medium for a motor vibrator. Background Art

[0002] Linear Resonant Actuator (LRA) has been widely used in various vibration occasions of consumer electronics, especially games and AR (Augmented Reality) / VR (Virtual Reality) products due to its advantages such as strong, rich, crisp vibration and low energy consumption.

[0003] Linear motors mainly achieve very rich, realistic, and strong vibration feedback by constructing diverse driving voltage waveforms. However, when constructing the driving voltage waveform, game developers do not accurately know the specific physical characteristics and control algorithms of the motor, so it is difficult to ensure that the vibrator displacement corresponding to the driving voltage is always within the maximum displacement range allowed by the motor hardware design. Especially in some situations where large vibration is required, the vibration is generally improved by increasing the driving voltage amplitude, but the large voltage amplitude increases the probability of vibrator displacement exceeding the limit. In this way, once the vibrator displacement exceeds the spatial range allowed by the motor, the vibrator will produce a mechanical collision with the motor housing, which will reduce the motor performance, generate vibration noise and affect the normal vibration output, or directly cause damage to the motor. Summary of the invention

[0004] The main purpose of the present invention is to provide a collision protection method, device, terminal device and computer-readable storage medium for a motor vibrator, aiming to avoid the problems of motor performance degradation, abnormal vibration, high vibration noise and motor damage caused by the collision of the vibrator of the linear motor with the motor housing during movement.

[0005] In order to achieve the above object, the present invention provides a collision protection method for a motor vibrator, the collision protection method for a motor vibrator is applied to a terminal device equipped with a linear motor, and the collision protection method for a motor vibrator comprises:

[0006] Predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor;

[0007] Determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs;

[0008] Adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage;

[0009] The linear motor is driven according to the adjusted driving voltage to protect the vibrator from collision.

[0010] Optionally, the step of predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor comprises:

[0011] Obtaining a pre-driving voltage of the linear motor;

[0012] Predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator of each single frame;

[0013] A single-frame vibrator displacement maximum value of the vibrator is determined from each of the single-frame vibrator displacement data.

[0014] Optionally, the vibrator energy is a single-frame vibrator energy, and the step of determining the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs includes:

[0015] In the process of predicting the maximum value of the single-frame vibrator displacement, detecting the time when the maximum value of the single-frame vibrator displacement occurs;

[0016] The single-frame vibrator energy of the vibrator at the occurrence time is obtained.

[0017] Optionally, the method further comprises:

[0018] Obtaining a preset maximum allowable displacement of a vibrator of the linear motor;

[0019] The preset maximum allowable energy of the vibrator is determined according to the preset maximum allowable displacement and various configuration parameters of the linear motor.

[0020] Optionally, the step of adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage includes:

[0021] Determining a voltage adjustment coefficient according to the vibrator energy and a preset maximum allowable energy of the vibrator;

[0022] The pre-driving voltage is multiplied by the voltage adjustment coefficient frame by frame to obtain a driving voltage adjusted frame by frame.

[0023] Optionally, the step of driving the linear motor according to the adjusted driving voltage includes:

[0024] Performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage;

[0025] The smoothed and filtered driving voltage is power-amplified to drive the linear motor.

[0026] Optionally, the step of performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage includes:

[0027] Determining a cutoff frequency of a preset low-pass filter according to the frequency sweeping characteristics of the linear motor;

[0028] The adjusted driving voltage is smoothed and filtered by the preset low-pass filter according to the cut-off frequency to obtain a smoothed and filtered driving voltage.

[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a collision protection device for a motor vibrator, the collision protection device for a motor vibrator is applied to a terminal device equipped with a linear motor, and the collision protection device for a motor vibrator comprises:

[0030] A displacement prediction module, used for predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor;

[0031] An energy determination module, used to determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs;

[0032] A voltage adjustment module, used for adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage;

[0033] A collision protection module is used to drive the linear motor according to the adjusted driving voltage to perform collision protection on the vibrator.

[0034] Each functional module of the collision protection device of the motor vibrator of the present invention implements the steps of the motion monitoring and motion control method of the wireless headset as described above during operation.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a collision protection program for a motor vibrator stored in the memory and run on the processor, and when the motion monitoring control program of the wireless headset is executed by the processor, the steps of the motion monitoring motion control method of the wireless headset as described above are implemented.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a collision protection program for a motor vibrator is stored. When the collision protection program for the motor vibrator is executed by a processor, the steps of the collision protection method for the motor vibrator as described above are implemented.

[0037] The embodiments of the present invention propose a collision protection method, device, terminal device and computer-readable storage medium for a motor vibrator. Through a terminal device equipped with a linear motor, the maximum single-frame vibrator displacement of the vibrator of the linear motor is first predicted based on the pre-drive voltage of the linear motor; then, the vibrator energy corresponding to the time when the maximum single-frame vibrator displacement occurs is determined; thereby, the pre-drive voltage is adjusted according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted drive voltage; finally, the linear motor is driven according to the adjusted drive voltage to perform collision protection on the vibrator.

[0038] That is, the embodiment of the present invention predicts the displacement of the motor vibrator corresponding to the driving voltage frame by frame, and determines the vibrator energy corresponding to the moment when the maximum displacement of the vibrator occurs during the predicted displacement process. When the vibrator energy exceeds the maximum energy allowed by the motor hardware, the voltage of the frame is immediately adjusted (linearly scaled) to drive the motor according to the adjusted voltage. In this way, it can be ensured that the motor vibrator will not collide with the motor housing during the voltage-driven movement, thereby effectively avoiding the resulting problems of motor performance degradation, abnormal vibration, loud vibration noise, motor damage, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present invention;

[0040] Figure 2 A schematic flow chart of the steps of the first embodiment of the motor vibrator collision protection method of the present invention;

[0041] Figure 3 A schematic diagram of a use process involved in an embodiment of a collision protection method for a motor vibrator of the present invention;

[0042] Figure 4 A schematic diagram of a hardware driving system according to an embodiment of a method for protecting a motor vibrator from collision according to the present invention;

[0043] Figure 5 A schematic diagram of a waveform of a pre-driving voltage involved in an embodiment of a collision protection method for a motor vibrator of the present invention;

[0044] Figure 6 The single-frame vibrator displacement data involved in one embodiment of the motor vibrator collision protection method of the present invention;

[0045] Figure 7 The vibrator energy involved in one embodiment of the motor vibrator collision protection method of the present invention;

[0046] Figure 8A voltage adjustment coefficient according to an embodiment of a method for protecting a motor vibrator from collision according to the present invention;

[0047] Fig. 9 The adjusted driving voltage involved in one embodiment of the collision protection method for a motor vibrator of the present invention;

[0048] Fig.10 A driving voltage after smoothing and filtering according to an embodiment of a method for protecting a motor vibrator from collision of the present invention;

[0049] Fig.11 The displacement of the motor vibrator after compression involved in one embodiment of the collision protection method for the motor vibrator of the present invention;

[0050] Fig.12 Schematic diagram of functional modules of an embodiment of a collision protection device for a motor vibrator of the present invention.

[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0053] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present invention.

[0054] The terminal device in the embodiment of the present invention is equipped with a linear motor. Specifically, the terminal device can be an electronic terminal product such as a smart phone, a gaming device, and AR / VR.

[0055] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0056] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0057] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a collision protection program for a motor vibrator.

[0058] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client and perform data communication with the client; and the processor 1001 can be used to call the collision protection program of the motor vibrator stored in the memory 1005 and perform the following operations:

[0059] Predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor;

[0060] Determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs;

[0061] Adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage;

[0062] The linear motor is driven according to the adjusted driving voltage to protect the vibrator from collision.

[0063] Optionally, the processor 1001 may also be used to call a collision protection program of a motor vibrator stored in the memory 1005, and perform the following operations:

[0064] Obtaining a pre-driving voltage of the linear motor;

[0065] Predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator of each single frame;

[0066] A single-frame vibrator displacement maximum value of the vibrator is determined from each of the single-frame vibrator displacement data.

[0067] Optionally, the vibrator energy is a single-frame vibrator energy, and the processor 1001 may also be used to call a collision protection program of the motor vibrator stored in the memory 1005, and perform the following operations:

[0068] In the process of predicting the maximum value of the single-frame vibrator displacement, detecting the time when the maximum value of the single-frame vibrator displacement occurs;

[0069] The single-frame vibrator energy of the vibrator at the occurrence time is obtained.

[0070] Optionally, the processor 1001 may also be used to call a collision protection program of a motor vibrator stored in the memory 1005, and perform the following operations:

[0071] Obtaining a preset maximum allowable displacement of a vibrator of the linear motor;

[0072] The preset maximum allowable energy of the vibrator is determined according to the preset maximum allowable displacement and various configuration parameters of the linear motor.

[0073] Optionally, the processor 1001 may also be used to call a collision protection program of a motor vibrator stored in the memory 1005, and perform the following operations:

[0074] Determining a voltage adjustment coefficient according to the vibrator energy and a preset maximum allowable energy of the vibrator;

[0075] The pre-driving voltage is multiplied by the voltage adjustment coefficient frame by frame to obtain a driving voltage adjusted frame by frame.

[0076] Optionally, the processor 1001 may also be used to call a collision protection program of a motor vibrator stored in the memory 1005, and perform the following operations:

[0077] Performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage;

[0078] The smoothed and filtered driving voltage is power-amplified to drive the linear motor.

[0079] Optionally, the terminal device has a built-in or external server, the server is connected to the mainboard, and performs the following operations:

[0080] Determining a cutoff frequency of a preset low-pass filter according to the frequency sweeping characteristics of the linear motor;

[0081] The adjusted driving voltage is smoothed and filtered by the preset low-pass filter according to the cut-off frequency to obtain a smoothed and filtered driving voltage.

[0082] Based on the above terminal device, various embodiments of the collision protection method of the motor vibrator of the present invention are proposed. In various embodiments of the collision protection method of the motor vibrator of the present invention, the collision protection method of the motor vibrator of the present invention is applied to the above terminal device equipped with a linear motor.

[0083] Please refer to Figure 2 , Figure 2It should be noted that although the logical sequence is shown in the flowchart, in some cases, the collision protection method for the motor vibrator of the present invention can certainly perform the steps shown or described in a different order than here.

[0084] In a first embodiment of the collision protection method for a motor vibrator of the present invention, the collision protection method for a motor vibrator of the present invention comprises:

[0085] Step S10, predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor;

[0086] In this embodiment, the terminal device predicts the single-frame vibrator displacement data of the vibrator of the linear motor one by one through the single-frame pre-driving voltage of the linear motor configured by itself, thereby obtaining the single-frame vibrator displacement maximum value of the vibrator.

[0087] It should be noted that, in this embodiment, the terminal device can specifically receive a broadband signal customized by a developer according to a game scenario to obtain the pre-driving voltage.

[0088] For example, Figure 3 As shown, the design and development personnel of the terminal device customize the broadband signal according to the game scenario, and then input the broadband signal into the terminal device. The terminal device can then parse the broadband signal to obtain a single frame or multiple frames of pre-drive voltage for the linear motor.

[0089] In addition, it should be understood that based on different design requirements of actual applications, in other feasible implementations, the terminal device can of course also use other different methods to obtain the driving voltage for the linear motor. For example, the design and development personnel can also perform a series of operations on the sound effects actually output by the game application to obtain a broadband signal, and the terminal device obtains the pre-driving voltage by receiving the broadband signal.

[0090] Furthermore, in a feasible embodiment, the above step S10 may include:

[0091] Step S101, obtaining a pre-driving voltage of the linear motor;

[0092] In this embodiment, the terminal device obtains a single-frame or multi-frame pre-driving voltage for the linear motor configured by itself by receiving the broadband signal pre-configured and generated by the design developer.

[0093] Step S102, predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator in each single frame;

[0094] In this embodiment, after acquiring the pre-driving voltage of the linear motor, the terminal device further uses the single-frame pre-driving voltage to predict the vibrator displacement, thereby obtaining each single-frame vibrator displacement data of the vibrator of the linear motor by prediction frame by frame.

[0095] Furthermore, in a feasible embodiment, the above step S102 may include:

[0096] Step S1021, determining the transfer characteristic between the displacement of the vibrator and the driving voltage of the linear motor according to various configuration parameters of the linear motor;

[0097] It should be noted that, in this embodiment, the configuration parameters of the linear motor configured by the terminal device may be the basic parameters of the motor, which include but are not limited to: vibrator mass m, magnetic field strength Bl, spring stiffness coefficient k, damping coefficient r, coil DC resistance Re, and the maximum displacement of the vibrator allowed by the motor hardware.

[0098] For example, Figure 3 As shown, the design and development personnel of the terminal device customize the broadband signal according to the game scenario, and input the broadband signal for the terminal device to obtain the pre-drive voltage for the linear motor. At the same time, the design and development personnel can also synchronously configure the above-mentioned vibrator mass m, magnetic field strength Bl, spring stiffness coefficient k, damping coefficient r, coil DC resistance Re, maximum vibrator displacement allowed by the motor hardware and other configuration parameters to generate a signal and input it to the terminal device. In this way, the terminal device can obtain the various configuration parameters of the linear motor while obtaining the pre-drive voltage.

[0099] In this embodiment, when the terminal device uses a single-frame pre-drive voltage to predict the displacement of the motor vibrator, it first determines the displacement of the vibrator of the linear motor and the transfer characteristics between the drive voltage of the linear motor based on the acquired configuration parameters of the linear motor.

[0100] For example, in this embodiment, after the terminal device receives the signal generated by the design developer to obtain the configuration parameters of the linear motor, it can determine the intermediate parameters shown below through the configuration parameters:

[0101]

[0102] After that, the terminal device can use each intermediate parameter to iterate the formula: To determine the transfer characteristics between the displacement of the vibrator of the linear motor and the driving voltage of the linear motor.

[0103] Step S1022: Calculate the displacement of the vibrator of the linear motor according to the transfer characteristic and the single-frame voltage data in the pre-driving voltage to obtain each single-frame vibrator displacement data.

[0104] In this embodiment, the terminal device can determine the transfer characteristics between the displacement of the vibrator of the linear motor and the driving voltage of the linear motor in advance based on the configuration parameters of the linear motor, and further construct a displacement prediction module specifically used for vibrator displacement prediction based on the transfer characteristics. After that, after obtaining the pre-driving voltage for the linear motor, the terminal device can input the single-frame pre-driving voltage into the displacement prediction module one by one, and the displacement prediction model can calculate and determine the single-frame vibrator displacement data of the vibrator of the linear motor frame by frame based on the transfer characteristics between the vibrator displacement and the driving voltage.

[0105] For example, Figure 3 As shown, the terminal device design and development personnel customize the broadband signal according to the game scene, and input the broadband signal to the terminal device to obtain the pre-driving voltage for the linear motor - u1(t). After that, the terminal device can calculate the single-frame vibrator displacement data x1(1), x1(2), ..., x1(n) of the vibrator displacement x1(t) of the corresponding linear motor based on the single-frame data u1(1), u1(2), ..., u1(n) of the pre-driving voltage u1(t) using the pre-built displacement prediction module.

[0106] Step S103: determining a single-frame vibrator displacement maximum value of the vibrator from each single-frame vibrator displacement data.

[0107] In this embodiment, after predicting the single-frame vibrator displacement data of the vibrator of the linear motor frame by frame, the terminal device can further detect the maximum value of the single-frame vibrator displacement among the single-frame vibrator displacement data by sequential comparison.

[0108] Further, in this embodiment, the above step S103 may include:

[0109] Step S1031, determining the absolute value of displacement of each single frame of vibrator displacement data;

[0110] Step S1032 , sequentially comparing the displacement absolute values ​​to obtain a maximum displacement absolute value, and determining the single-frame vibrator displacement data corresponding to the maximum displacement absolute value as a single-frame vibrator displacement maximum value.

[0111] In this embodiment, when the terminal device determines the maximum value of a single-frame vibrator displacement from each single-frame vibrator displacement data by using a sequential comparison method, it first determines the absolute value of the displacement of each single-frame vibrator displacement data, and then compares the two absolute displacement values ​​in sequence to obtain the largest absolute displacement value among the absolute displacement values. Finally, the single-frame vibrator displacement data corresponding to the largest absolute displacement value is determined as the maximum value of the single-frame vibrator displacement.

[0112] For example, Figure 3 As shown, in this embodiment, when the terminal device determines the maximum single-frame vibrator displacement of the vibrator of the linear motor from the above-mentioned single-frame vibrator displacement data x1(1), x1(2), ..., x1(n), it first takes the absolute value of the predicted single-frame vibrator displacement data x1(1), x1(2), ..., x1(n) to obtain the corresponding |x1(1)|, |x1(2)|, ..., |x1(n)|, and then, in a sequential comparison manner, first compares |x1(1)| and |x1(2)| and takes the larger value as x1(1). 1max , and then compare x 1max and |x1(3)|, take the larger value as the new x 1max , and so on, until x is compared 1max When |x1(n)| is equal to |x1(n)|, the larger value is taken as the final x 1max , the x 1max That is, it is the maximum value of the single-frame vibrator displacement among all single-frame vibrator displacement data (it can also be called the displacement peak value of the vibrator single frame).

[0113] Step S20, determining the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs;

[0114] It should be noted that, in this embodiment, the occurrence time of the maximum value of the single-frame vibrator displacement is the time when the terminal device predicts the single-frame vibrator displacement data of the vibrator of the linear motor, when predicting the maximum value of the single-frame vibrator displacement.

[0115] In addition, the vibrator energy corresponding to the time when the above-mentioned single-frame vibrator displacement maximum value occurs is: the single-frame vibrator energy of the vibrator of the linear motor at the time when it occurs predicted by the terminal device.

[0116] In this embodiment, while predicting the single-frame vibrator displacement data of the vibrator of the linear motor, the terminal device also synchronously predicts the single-frame vibrator energy of the vibrator, thereby determining the moment when the predicted maximum value of the single-frame vibrator displacement occurs as the moment when the maximum value of the single-frame vibrator displacement occurs, and determining the single-frame vibrator energy of the vibrator at that moment.

[0117] Furthermore, in a feasible embodiment, the step of performing energy prediction for the vibrator of the linear motor by the terminal device may include:

[0118] Step A, predicting single-frame vibrator displacement data and vibrator velocity of the vibrator of the linear motor according to the pre-driving voltage of the linear motor;

[0119] In this embodiment, the terminal device predicts the single-frame vibrator displacement data and vibrator velocity of the vibrator of the linear motor one by one by using the single-frame pre-driving voltage of the linear motor configured by the terminal device.

[0120] Furthermore, in this embodiment, step A may include:

[0121] Obtaining a pre-driving voltage of the linear motor;

[0122] Predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator of each single frame;

[0123] The displacement data of each single frame of the vibrator is derived to obtain the velocity of each vibrator.

[0124] In this embodiment, after the terminal device obtains the pre-drive voltage of the linear motor through the above process, it first uses a single-frame pre-drive voltage to predict the vibrator displacement, thereby obtaining each single-frame vibrator displacement data of the vibrator of the linear motor by prediction frame by frame, and then, based on the predicted each single-frame vibrator displacement data, a derivative calculation is performed to obtain the vibrator speed corresponding to each single-frame vibrator displacement data.

[0125] It should be noted that, in this embodiment, the terminal device can specifically predict the single-frame vibrator displacement data of the vibrator under the action of the single-frame pre-driving voltage based on the transfer characteristic between the displacement of the vibrator of the linear motor and the driving voltage of the linear motor. That is, the terminal device determines the transfer characteristic between the displacement of the vibrator and the driving voltage of the linear motor according to various configuration parameters of the linear motor; then, according to the transfer characteristic and the single-frame voltage data in the pre-driving voltage, the displacement of the vibrator of the linear motor is calculated to obtain each single-frame vibrator displacement data.

[0126] It should be noted that, in this embodiment, the configuration parameters of the linear motor configured by the terminal device may be the basic parameters of the motor, which include but are not limited to: vibrator mass m, magnetic field strength Bl, spring stiffness coefficient k, damping coefficient r, coil DC resistance Re, and the maximum displacement of the vibrator allowed by the motor hardware.

[0127] For example, Figure 3As shown, the design and development personnel of the terminal device customize the broadband signal according to the game scenario, and input the broadband signal for the terminal device to obtain the pre-drive voltage for the linear motor. At the same time, the design and development personnel can also synchronously configure the above-mentioned vibrator mass m, magnetic field strength Bl, spring stiffness coefficient k, damping coefficient r, coil DC resistance Re, maximum vibrator displacement allowed by the motor hardware and other configuration parameters to generate a signal and input it to the terminal device. In this way, the terminal device can obtain the various configuration parameters of the linear motor while obtaining the pre-drive voltage.

[0128] In this embodiment, when the terminal device uses a single-frame pre-drive voltage to predict the displacement of the motor vibrator, it first determines the displacement of the vibrator of the linear motor and the transfer characteristics between the drive voltage of the linear motor based on the acquired configuration parameters of the linear motor.

[0129] For example, in this embodiment, after the terminal device receives the signal generated by the design developer to obtain the configuration parameters of the linear motor, it can determine the intermediate parameters shown below through the configuration parameters:

[0130]

[0131] After that, the terminal device can use each intermediate parameter to iterate the formula: To determine the transfer characteristics between the displacement of the vibrator of the linear motor and the driving voltage of the linear motor.

[0132] In this embodiment, the terminal device can determine the transfer characteristics between the displacement of the vibrator of the linear motor and the driving voltage of the linear motor in advance based on the configuration parameters of the linear motor, and further construct a displacement prediction module specifically used for vibrator displacement prediction based on the transfer characteristics. After that, after obtaining the pre-driving voltage for the linear motor, the terminal device can input the single-frame pre-driving voltage into the displacement prediction module one by one, and the displacement prediction model can calculate and determine the single-frame vibrator displacement data of the vibrator of the linear motor frame by frame based on the transfer characteristics between the vibrator displacement and the driving voltage.

[0133] For example, Figure 3 As shown, the terminal device design and development personnel customize the broadband signal according to the game scene, and input the broadband signal to the terminal device to obtain the pre-driving voltage for the linear motor - u1(t). After that, the terminal device can calculate the single-frame vibrator displacement data x1(1), x1(2), ..., x1(n) of the vibrator displacement x1(t) of the corresponding linear motor based on the single-frame data u1(1), u1(2), ..., u1(n) of the pre-driving voltage u1(t) using the pre-built displacement prediction module.

[0134] In this embodiment, the terminal device can obtain the vibrator velocity corresponding to each single frame of vibrator displacement data by deriving the predicted vibrator displacement x1(t) of the linear motor according to the formula v1(t)=dx1(t) / dt.

[0135] Step B: determining the single-frame vibrator energy of the vibrator according to the single-frame vibrator displacement data and the vibrator velocity.

[0136] In this embodiment, after predicting each single-frame vibrator displacement data and vibrator velocity of the vibrator of the linear motor, the terminal device further uses the single-frame vibrator displacement data and vibrator velocity to perform energy conversion calculation to determine the single-frame vibrator energy of the vibrator.

[0137] In this embodiment, when the terminal device performs energy conversion calculations to determine the single-frame vibrator energy of the vibrator of the linear motor, it first combines the predicted single-frame vibrator displacement data, vibrator speed, and various configuration parameters of the linear motor that have been acquired in advance to calculate and determine the various vibrator energy values ​​of the vibrator.

[0138] For example, Figure 3 As shown in the figure, after the terminal device performs displacement prediction and velocity prediction to obtain the displacement data and velocity of each single frame of the vibrator of the linear motor, it further starts to perform energy prediction and energy peak prediction for the vibrator. That is, the terminal device uses the predicted single frame vibrator displacement data x1(t) and the corresponding vibrator velocity v1(t), combined with the vibrator mass m and spring stiffness coefficient k of the linear motor obtained in advance, to calculate the kinetic energy E of the motor vibrator. v (t)=0.5mv1(t) 2 and elastic potential energy E k (t) = 0.5kx1(t) 2 , and for the calculated kinetic energy E v (t) and elastic potential energy E k (t) is summed to obtain the vibrator energy value E1(t)=E corresponding to each single frame of vibrator displacement data. v (t)+E k (t).

[0139] Further, in a feasible embodiment, the above step S20, determining the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs, may include:

[0140] Step S201, in the process of predicting the maximum value of the single-frame vibrator displacement, detecting the occurrence time of the maximum value of the single-frame vibrator displacement;

[0141] Step S202: obtaining the single-frame vibrator energy of the vibrator at the occurrence time.

[0142] In this embodiment, during the process of predicting the single-frame vibrator displacement data of the vibrator of the linear motor, the terminal device continuously detects the time corresponding to each predicted single-frame vibrator displacement data of the vibrator, so that when the single-frame vibrator displacement maximum value of the vibrator is predicted, the time corresponding to the single-frame vibrator displacement maximum value is immediately determined as the occurrence time of the single-frame vibrator displacement maximum value. Alternatively, the occurrence time can also be used as the displacement peak time of the vibrator of the linear motor in the entire prediction process.

[0143] Afterwards, the terminal device further determines the single-frame vibrator energy corresponding to the displacement peak moment among the single-frame vibrator energies obtained in the synchronous vibrator energy prediction process.

[0144] For example, Figure 3 As shown, the terminal device predicts the maximum single-frame oscillator displacement x of the oscillator of the linear motor. 1max , and update the maximum displacement x of the single frame oscillator 1max The corresponding time (serial number) is taken as the maximum displacement x of the oscillator in the single frame. 1max The moment of occurrence, that is, the displacement peak moment t 1max (Serial number k 1max ). After that, the terminal device further detects the displacement peak time t 1max (Serial number k 1max ) corresponds to the single-frame oscillator energy E1(t 1max ) or E1(k 1max ) as the energy E at the peak displacement moment 1xmax .

[0145] Step S30, adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage;

[0146] In this embodiment, after the terminal device predicts the single-frame vibrator energy of the linear motor at the moment when the maximum single-frame vibrator displacement of the vibrator occurs through the above process, it further adjusts the above-mentioned pre-drive voltage for the linear motor based on the single-frame vibrator energy and the preset maximum allowable energy of the vibrator in the various configuration parameters of the linear motor obtained in advance, thereby obtaining the adjusted drive voltage for driving the linear motor.

[0147] It should be noted that, in this embodiment, the preset maximum allowable energy may specifically be the maximum energy that the oscillator of the linear motor configured by the terminal device is allowed to produce at the hardware level.

[0148] Furthermore, in a feasible embodiment, the collision protection method of the motor vibrator of the present invention may also include:

[0149] Obtaining a preset maximum allowable displacement of a vibrator of the linear motor;

[0150] The preset maximum allowable energy of the vibrator is determined according to the preset maximum allowable displacement and various configuration parameters of the linear motor.

[0151] In this embodiment, after determining the maximum value of the vibrator energy of the vibrator of the linear motor, or after obtaining various configuration parameters of the linear motor from the input signal generated by the design and development personnel, the terminal device can further calculate and determine the preset maximum allowable energy of the vibrator based on the preset maximum allowable displacement of the vibrator of the linear motor in the various configuration parameters and the spring stiffness coefficient in the various configuration parameters.

[0152] For example, Figure 3 As shown, after performing energy peak detection, the terminal device can further start to calculate the maximum energy of the vibrator of the linear motor to obtain the maximum allowable energy of the vibrator. That is, the terminal device uses the maximum allowable displacement x of the vibrator in each configuration parameter of the linear motor. hmax , and the spring stiffness coefficient k in the configuration parameters of the linear motor, the maximum energy E allowed by the oscillator is calculated hmax =0.5kx hmax 2 , and the maximum energy E hmax As the preset maximum permissible energy of the oscillator.

[0153] Furthermore, in a feasible embodiment, the above step S30 may include:

[0154] Step S301, determining a voltage adjustment coefficient according to the vibrator energy and a preset maximum allowable energy of the vibrator;

[0155] Step S302 , multiplying the pre-driving voltage by the voltage adjustment coefficient frame by frame to obtain a driving voltage adjusted frame by frame.

[0156] In this embodiment, when the terminal device adjusts the pre-driving voltage according to the vibrator energy of the vibrator of the linear motor at the time of the occurrence of the maximum value of the single-frame vibrator displacement and the preset maximum allowable energy of the vibrator, the terminal device first calculates and determines the voltage adjustment coefficient according to the vibrator energy and the preset maximum allowable energy. Then, the terminal device multiplies the pre-driving voltage for the linear motor obtained from the broadband signal configured and generated and input by the design developer by the voltage adjustment coefficient frame by frame to obtain the driving voltage adjusted frame by frame.

[0157] For example, Figure 3 As shown, when the terminal device adjusts the driving voltage for the pre-driving voltage, the vibrator of the linear motor is firstly used at the displacement peak time t 1max The corresponding energy E at the peak displacement moment 1xmax and the preset maximum allowable energy E of the vibrator of the above linear motor hmax , calculate the voltage regulation factor k u , the specific calculation formula is as follows:

[0158]

[0159] Afterwards, the terminal device obtains the pre-driving voltage for the linear motor from the broadband signal configured and input by the design developer according to the calculation formula: u2(t)=k u u1(t) multiplies the single frame pre-drive voltage u1(t) by the adjustment coefficient k u , thereby obtaining the adjusted driving voltage u2(t).

[0160] It should be noted that, in this embodiment, the terminal device uses the energy E at the displacement peak moment as described above. 1xmax and the preset maximum allowable energy E of the oscillator hmax The calculated adjustment factor k u When it is greater than 1, the terminal device directly takes the adjustment coefficient k u =1.

[0161] Step S40 , driving the linear motor according to the adjusted driving voltage to protect the vibrator from collision.

[0162] In this embodiment, after the terminal device adjusts the pre-drive voltage to obtain the adjusted drive voltage, it further drives the linear motor configured for itself according to the adjusted drive voltage to drive the motor to generate vibration feedback, thereby protecting the vibrator of the linear motor from collision.

[0163] Further, as a feasible embodiment, in the above step S40, “driving the linear motor according to the adjusted driving voltage” may include:

[0164] Step S401, performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage;

[0165] In this embodiment, when the terminal device drives the linear motor according to the adjusted driving voltage, a low-pass filter is first used to perform smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage.

[0166] Furthermore, in this embodiment, the above step S401 may include:

[0167] Step S4011, determining a cutoff frequency of a preset low-pass filter according to the frequency sweeping characteristics of the linear motor;

[0168] Step S4012: performing smoothing filtering on the adjusted driving voltage according to the cut-off frequency through the preset low-pass filter to obtain a smoothed driving voltage.

[0169] In this embodiment, the terminal device can determine a preset cutoff frequency of the low-pass filter according to the frequency sweeping characteristics of the configured linear motor before performing smoothing filtering on the adjusted driving voltage, so as to subsequently use the low-pass filter to perform smoothing filtering on the adjusted driving voltage according to the cutoff frequency to obtain a smoothed filtered driving voltage.

[0170] It should be noted that, in this embodiment, the frequency sweeping characteristics of the linear motor can be obtained by receiving in advance a signal configured and input by a design developer at the terminal device. Figure 3 As shown, the design and development personnel of the terminal device customize the broadband signal according to the game scene, and input the broadband signal for the terminal device to obtain the pre-driving voltage for the linear motor. At the same time, the design and development personnel can also simultaneously configure the bandwidth signal of the frequency domain response characteristics of the acceleration amplitude under the unit driving voltage, that is, [f aL ,f aH ] and input the bandwidth signal to the terminal device, so that the terminal device can obtain the sweep frequency characteristics of the linear motor while obtaining the pre-drive voltage.

[0171] Exemplarily, in this embodiment, the cutoff frequency f of the low-pass filter determined by the terminal device is LP Generally, the design is based on the upper limit frequency f of the motor's frequency sweep characteristics. aH In this way, it is possible to avoid filtering out the frequency components in the driving voltage within the bandwidth range. For example, the cutoff frequency can be f LP =2f aH .

[0172] Step S402 , power-amplifying the smoothed and filtered driving voltage to drive the linear motor.

[0173] In this embodiment, after the terminal device uses a low-pass filter to perform smoothing filtering on the adjusted driving voltage, it further performs power amplification on the driving voltage after smoothing filtering, thereby using the power-amplified driving voltage to drive the linear motor to drive the motor to generate vibration feedback.

[0174] For example, Figure 3 As shown, the terminal device adjusts the pre-driving voltage through the above process to obtain the adjusted driving voltage u2(t), and then the terminal device uses the above method to determine the cut-off frequency f LP =2f aH A low-pass filter is used to smooth the adjusted driving voltage u2(t) to obtain a smoothed driving voltage u3(t). Finally, the terminal device uses a power amplifier circuit to amplify the smoothed driving voltage u3(t), and uses the power-amplified voltage to drive the motor to generate vibration feedback and obtain the limited displacement x2(t).

[0175] In this embodiment, the collision protection method of the motor vibrator of the present invention is that the terminal device predicts the single-frame vibrator displacement data of the vibrator of the linear motor one by one through the single-frame pre-driving voltage of the linear motor configured by itself, so as to obtain the single-frame vibrator displacement maximum value of the vibrator. Afterwards, in the process of predicting the single-frame vibrator displacement data of the vibrator of the linear motor, the terminal device also synchronously predicts the single-frame vibrator energy of the vibrator, so as to determine the predicted time when the maximum value of the single-frame vibrator displacement occurs as the time when the maximum value of the single-frame vibrator displacement occurs, and determine the single-frame vibrator energy of the vibrator at the time of occurrence. Then, the terminal device further adjusts the above-mentioned pre-driving voltage for the linear motor based on the single-frame vibrator energy and the preset maximum allowable energy of the vibrator in each configuration parameter of the linear motor obtained in advance, so as to obtain the adjusted driving voltage for driving the linear motor. Finally, the terminal device drives the linear motor configured by itself according to the adjusted driving voltage to drive the motor to generate vibration feedback, so as to perform collision protection on the vibrator of the linear motor.

[0176] That is, the embodiment of the present invention predicts the displacement of the motor vibrator corresponding to the driving voltage frame by frame, and determines the vibrator energy corresponding to the moment when the maximum displacement of the vibrator occurs during the predicted displacement process. When the vibrator energy exceeds the maximum energy allowed by the motor hardware, the voltage of the frame is immediately adjusted (linearly scaled) to drive the motor according to the adjusted voltage. In this way, it can be ensured that the motor vibrator will not collide with the motor housing during the voltage-driven movement, thereby effectively avoiding the resulting problems of motor performance degradation, abnormal vibration, loud vibration noise, motor damage, etc.

[0177] Furthermore, based on the first embodiment of the collision protection method for a motor vibrator of the present invention, a second embodiment of the collision protection method for a motor vibrator of the present invention is proposed.

[0178] In this embodiment, when the collision protection method for the motor vibrator of the present invention is applied in any hardware driving system, it can be implemented through the following five process steps: input signal, algorithm processing, drive signal, power amplification and motor.

[0179] like Figure 4 As shown, the input signal 1 is divided into 3 parts;

[0180] 1) Pre-drive voltage waveform u1(t), which may be a broadband signal customized according to the game scene, or a broadband signal obtained by performing a series of operations on the sound effects actually output by the game application;

[0181] 2) The bandwidth of the motor's sweep frequency characteristic (frequency domain response characteristic of acceleration amplitude under unit driving voltage), that is, [f aL ,f aH ];

[0182] 3) Basic parameters of the motor, including vibrator mass m, magnetic field strength Bl, spring stiffness k, damping coefficient r, coil DC resistance Re, and maximum vibrator displacement x allowed by the motor hardware. hmax .

[0183] The algorithm processing 2 can be performed on the above-mentioned input signal through a specific algorithm processing module, by performing the processing of all the formula calculations involved in the above-mentioned first embodiment summarized from step S10 to step S30 to obtain an adjusted driving voltage for driving the linear motor.

[0184] The driving signal 3 is the adjusted driving voltage obtained after the algorithm processing module processes the input signal.

[0185] The power amplifier 4 is an amplifier selected by the system to perform power matching on the input signal (for example, a common class A, class B, class AB, or class D driver. The input signal can be an analog signal or a certain customized digital signal.

[0186] The motor 5 is specifically a linear motor configured for the above-mentioned terminal device. The motor is a broadband linear motor (Linear Resonant Actuator), and its sweep frequency characteristic (frequency response characteristic of acceleration amplitude under unit driving voltage) has certain broadband characteristics.

[0187] Furthermore, based on the first embodiment and / or the second embodiment of the collision protection method for a motor vibrator of the present invention, a third embodiment of the collision protection method for a motor vibrator of the present invention is proposed.

[0188] In this embodiment, the relevant waveforms involved in the collision protection method of the motor vibrator of the present invention are as follows: Figures 5 to 10As shown, 1FS means that the number 1 represents the rated amplitude (i.e. the set maximum amplitude).

[0189] also, Figure 5 Specifically, it is the waveform of the pre-driving voltage acquired by the terminal device involved in the process described in step S10 above;

[0190] Figure 6 Specifically, the single-frame vibrator displacement data obtained by the terminal device based on the single-frame pre-driving voltage u1 in the process described in the above step S10 is Figure 6 It can be seen that around t = 1.54s and t = 1.72s, the displacement of the vibrator predicted by the terminal device exceeds 1FS, that is, it exceeds the maximum displacement of the vibrator allowed by the motor hardware. At this time, the vibrator displacement needs to be compressed;

[0191] Figure 7 The waveform of the vibrator energy is calculated and determined based on the predicted vibrator displacement in the process of predicting the vibrator energy of the vibrator of the linear motor for the terminal device. Figure 7 It can be seen that during t = 1.54s and t = 1.72s, the predicted energy E1 exceeded 1FS many times, that is, it exceeded the maximum oscillator energy E allowed by the motor. hmax , needs to be compressed. In addition, Figure 6 Compared with the predicted displacement x1 shown, the time when E1 exceeds 1FS is earlier than x1, indicating that the prediction of the maximum displacement by the maximum energy has a certain time advance;

[0192] Figure 8 Specifically, it is the voltage adjustment coefficient for adjusting the pre-driving voltage involved in the process described in step S20. Figure 8 It can be seen that during t = 1.54s and t = 1.72s, the voltage adjustment coefficient is less than 1 many times, which indicates that the terminal equipment recognizes that the vibrator is about to collide after comprehensively predicting the displacement and energy information of the vibrator, and works effectively;

[0193] Fig. 9 The waveform of the driving voltage after the pre-driving voltage is adjusted in the process described in step S20. Fig. 9 and Figure 5 As shown, compared with the waveform of the pre-driving voltage, the amplitude of u2 in the period when the predicted displacement x1 and the predicted energy E1 exceed 1FS is significantly reduced, thereby preventing the vibrator from colliding after driving;

[0194] Fig.10 The waveform of the driving voltage after the adjusted driving voltage is smoothed and filtered in the process described in step S40. Fig. 9Compared with the driving voltage shown in FIG. 1 , the terminal device performs a smoothing operation on the adjusted driving voltage through a low-pass filter, specifically smoothing the voltage waveform jump problem caused by the jump of the voltage adjustment coefficient. The overall voltage waveform avoids the jump point and burrs, and avoids the generation of vibration noise.

[0195] Fig.10 The displacement of the motor vibrator after compression is obtained by driving the linear motor after power amplification of the driving voltage after smooth filtering involved in the process described in step S40. Figure 6 Compared with the displacement of the vibrator predicted based on the pre-drive voltage, the amplitude during t=1.54s and t=1.72s is effectively limited to within 1FS, which shows that the collision protection method of the motor vibrator of the present invention plays an effective role.

[0196] In addition, an embodiment of the present invention further provides a collision protection device for a motor vibrator. The collision protection device for a motor vibrator of the present invention is applied to a terminal device equipped with a linear motor.

[0197] Please refer to Fig.11 , Fig.11 FIG. 1 is a functional module diagram of an embodiment of a collision protection device for a motor vibrator of the present invention. Fig.11 As shown, the collision protection device of the motor vibrator of the present invention comprises:

[0198] A displacement prediction module 10, used for predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor;

[0199] An energy determination module 20, used to determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs;

[0200] A voltage adjustment module 30, configured to adjust the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage;

[0201] The collision protection module 40 is used to drive the linear motor according to the adjusted driving voltage to perform collision protection on the vibrator.

[0202] Optionally, the displacement prediction module 10 includes:

[0203] A voltage acquisition unit, used for acquiring a pre-driving voltage of the linear motor;

[0204] A displacement prediction unit, used for predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator of each single frame;

[0205] The comparison unit is used to determine the maximum value of the single-frame vibrator displacement of the vibrator from each single-frame vibrator displacement data.

[0206] Optionally, the vibrator energy is a single-frame vibrator energy, and the energy determination module 20 includes:

[0207] A detection unit, used for detecting the occurrence time of the maximum value of the single-frame vibrator displacement in the process of predicting the maximum value of the single-frame vibrator displacement;

[0208] The energy acquisition unit is used to acquire the single-frame vibrator energy of the vibrator at the occurrence moment.

[0209] Optionally, the displacement compression device of the motor vibrator of the present invention further includes:

[0210] The maximum energy calculation module is used to obtain the preset maximum allowable displacement of the vibrator of the linear motor; and determine the preset maximum allowable energy of the vibrator according to the preset maximum allowable displacement and various configuration parameters of the linear motor.

[0211] Optionally, the voltage adjustment module 30 includes:

[0212] A coefficient calculation unit, used to determine a voltage adjustment coefficient according to the maximum displacement of the vibrator in the single frame and a preset maximum allowable displacement of the vibrator;

[0213] The voltage adjustment unit is used to multiply the pre-driving voltage by the voltage adjustment coefficient frame by frame to obtain the driving voltage adjusted frame by frame.

[0214] Optionally, the collision protection module 40 includes:

[0215] A smoothing filter unit, used for performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage;

[0216] The driving unit is used to amplify the power of the driving voltage after smooth filtering to drive the linear motor.

[0217] Optionally, the smoothing filter unit is also used to determine the cutoff frequency of a preset low-pass filter according to the frequency sweeping characteristics of the linear motor; and to perform smoothing filtering on the adjusted driving voltage according to the cutoff frequency through the preset low-pass filter to obtain a smoothed filtered driving voltage.

[0218] The specific embodiments of the various functional modules of the collision protection device for the motor vibrator of the present invention during operation are substantially the same as the various embodiments of the collision protection method for the motor vibrator of the present invention described above, and are not described in detail herein.

[0219] The present invention also provides a computer storage medium storing a collision protection program for a motor vibrator. When the collision protection program for the motor vibrator is executed by a processor, the steps of the collision protection program method for the motor vibrator described in any of the above embodiments are implemented.

[0220] The specific embodiments of the computer storage medium of the present invention are basically the same as the above-mentioned embodiments of the collision protection program method of the motor vibrator of the present invention, and will not be described in detail here.

[0221] The present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the collision protection method for the motor vibrator of the present invention as described in any of the above embodiments are implemented, which will not be repeated here.

[0222] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0223] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0224] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a TWS headset, etc.) to execute the methods described in each embodiment of the present invention.

[0225] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A collision protection method for a motor vibrator, characterized in that: The collision protection method of the motor vibrator is applied to a terminal device equipped with a linear motor, and the collision protection method of the motor vibrator includes: Predicting a maximum single-frame vibrator displacement of a vibrator of the linear motor according to a pre-driving voltage of the linear motor; The step of predicting the maximum value of the single-frame vibrator displacement of the vibrator of the linear motor according to the pre-driving voltage of the linear motor comprises: Obtaining a pre-driving voltage of the linear motor; Predicting the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain the displacement data of the vibrator of each single frame; Determine the maximum value of the single-frame vibrator displacement of the vibrator from each of the single-frame vibrator displacement data; Determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs; The pre-driving voltage is adjusted according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage, wherein the preset maximum allowable energy is the maximum energy allowed for the vibrator by the linear motor configured by the terminal device at the hardware level; The linear motor is driven according to the adjusted driving voltage to protect the vibrator from collision.

2. The collision protection method for a motor vibrator according to claim 1, characterized in that: The vibrator energy is the vibrator energy of a single frame, and the step of determining the vibrator energy corresponding to the time when the maximum value of the vibrator displacement of the single frame occurs includes: In the process of predicting the maximum value of the single-frame vibrator displacement, detecting the time when the maximum value of the single-frame vibrator displacement occurs; The single-frame vibrator energy of the vibrator at the occurrence time is obtained.

3. The collision protection method for a motor vibrator according to claim 1, characterized in that: The method further comprises: Obtaining a preset maximum allowable displacement of a vibrator of the linear motor; The preset maximum allowable energy of the vibrator is determined according to the preset maximum allowable displacement and various configuration parameters of the linear motor.

4. The collision protection method for a motor vibrator according to any one of claims 1 to 3, characterized in that: The step of adjusting the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage comprises: Determining a voltage adjustment coefficient according to the vibrator energy and a preset maximum allowable energy of the vibrator; The pre-driving voltage is multiplied by the voltage adjustment coefficient frame by frame to obtain a driving voltage adjusted frame by frame.

5. The collision protection method for a motor vibrator according to claim 1, characterized in that: The step of driving the linear motor according to the adjusted driving voltage comprises: Performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage; The smoothed and filtered driving voltage is power-amplified to drive the linear motor.

6. The collision protection method for a motor vibrator according to claim 5, characterized in that: The step of performing smoothing filtering on the adjusted driving voltage to obtain a smoothed driving voltage comprises: Determining a cutoff frequency of a preset low-pass filter according to the frequency sweeping characteristics of the linear motor; The adjusted driving voltage is smoothed and filtered by the preset low-pass filter according to the cut-off frequency to obtain a smoothed and filtered driving voltage.

7. A collision protection device for a motor vibrator, characterized in that: The collision protection device of the motor vibrator is applied to a terminal device equipped with a linear motor, and the collision protection device of the motor vibrator includes: a displacement prediction module, used to predict the maximum single-frame vibrator displacement of the vibrator of the linear motor according to the pre-driving voltage of the linear motor, wherein the displacement prediction module specifically comprises: a voltage acquisition unit, used to acquire the pre-driving voltage of the linear motor; a displacement prediction unit, used to predict the displacement of the vibrator of the linear motor frame by frame according to the pre-driving voltage to obtain each single-frame vibrator displacement data; and a comparison unit, used to determine the maximum single-frame vibrator displacement of the vibrator from each single-frame vibrator displacement data; An energy determination module, used to determine the vibrator energy corresponding to the time when the maximum value of the single-frame vibrator displacement occurs; a voltage adjustment module, configured to adjust the pre-driving voltage according to the vibrator energy and the preset maximum allowable energy of the vibrator to obtain an adjusted driving voltage, wherein the preset maximum allowable energy is the maximum energy allowed for the vibrator by the linear motor configured by the terminal device at the hardware level; A collision protection module is used to drive the linear motor according to the adjusted driving voltage to perform collision protection on the vibrator.

8. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a collision protection program for a motor vibrator stored in the memory and executable on the processor. When the collision protection program for the motor vibrator is executed by the processor, the steps of the collision protection method for the motor vibrator as described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a collision protection program for a motor vibrator, and when the collision protection program for a motor vibrator is executed by a processor, the steps of the collision protection method for a motor vibrator according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Motor parameter tracking method and system

    CN110350828A

  • Method and device for responding to vibration event, electronic equipment and storage medium

    CN112394817A

  • Linear motor control method, control device, equipment and medium

    CN113949323A

  • Control method of linear motor, equipment and medium

    CN113949324A

  • Vibrator displacement detection method, device and equipment of vibration device and storage medium

    CN113959320A