Linear motor protection method, terminal device and computer readable storage medium
By calculating the oscillator motion parameters and risk contribution values of the linear motor and generating the protection driving voltage, the problem of linear motor vibrator collide with the shell during the driving process is solved, and performance improvement and noise reduction are achieved.
Patent Information
- Application Number
- CN202211389224.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-11-07
Smart Images

Figure CN115622475B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of linear motors, and in particular to a protection method for a linear motor, a terminal device, and a computer-readable storage medium. Background Art
[0002] With the development of the consumer electronics industry, linear resonant actuators (LRA) have been widely used in various occasions that require vibration feedback through consumer electronic products due to their advantages of strong, rich, crisp vibration and low energy consumption. Especially in AR (Augmented Reality) / VR (Virtual Reality) products, linear motors can achieve very rich, real and strong vibration feedback by constructing diverse driving voltage signals.
[0003] However, since technical personnel often cannot accurately know the specific physical characteristics and control algorithms of linear motors, they cannot ensure that the designed driving voltage can keep the vibrator in the linear motor within the maximum displacement range allowed by the linear motor hardware design when constructing the driving voltage signal. Especially in some application scenarios with large vibration requirements, AR / VR products often increase the driving voltage amplitude to improve the vibration feedback of the linear motor. In this way, it is easy for the vibrator in the linear motor to exceed the displacement range limited by the hardware of the linear motor itself during movement. Once the above situation occurs, the vibrator is prone to mechanical collision with the housing of the linear motor, thereby reducing the motor performance, generating vibration noise or affecting the normal vibration output of the linear motor, and even directly causing damage to the linear motor. Therefore, how to prevent the vibrator in the linear motor from colliding with the housing of the linear motor during movement has become an urgent problem to be solved in the industry. Summary of the invention
[0004] The embodiments of the present invention provide a linear motor protection method, a terminal device, and a computer-readable storage medium, so that the terminal device can perform intervention protection during the driving process of the linear motor, thereby preventing the vibrator in the linear motor from colliding with the motor housing during movement, thereby preventing the linear motor from experiencing performance degradation, abnormal vibration, loud vibration noise, or motor damage during the driving process.
[0005] To achieve the above object, the present invention provides a method for protecting a linear motor, the method comprising the following steps:
[0006] Acquire each driving voltage signal input into the target linear motor and each motor parameter of the target linear motor, and calculate the predicted value of each vibrator motion parameter in the target linear motor according to each driving voltage signal and each motor parameter;
[0007] Determine the risk contribution value corresponding to each of the predicted values of the vibrator motion parameters, and determine the target suppression level corresponding to each of the risk contribution values;
[0008] A target driving voltage corresponding to the target pressing level is determined, and the target driving voltage is processed to obtain a protection driving voltage, and the protection driving voltage is input to the target linear motor to protect the target linear motor.
[0009] Further, the predicted values of the vibrator motion parameters include a predicted value of a target vibrator velocity, a predicted value of a target vibrator displacement, and a predicted value of a target vibrator energy;
[0010] The step of calculating the predicted value of each vibrator motion parameter in the target linear motor according to each of the driving voltage signals and each of the motor parameters comprises:
[0011] Calculate the target vibrator velocity prediction value, the initial vibrator displacement prediction value and the initial vibrator energy prediction value according to each of the driving voltage signals and each of the motor parameters;
[0012] Normalizing the initial vibrator displacement prediction value according to each of the motor parameters to obtain the target vibrator displacement prediction value;
[0013] The initial vibrator energy prediction value is normalized and calculated according to each of the motor parameters to obtain the target vibrator energy prediction value.
[0014] Furthermore, the step of calculating the target vibrator velocity prediction value, the initial vibrator displacement prediction value and the initial vibrator energy prediction value according to each of the driving voltage signals and each of the motor parameters comprises:
[0015] Determining each historical driving voltage signal within the nth moment to the nmth moment and each historical vibrator displacement prediction value within the nth moment to the nmth moment in each driving voltage signal;
[0016] Calculating each of the historical driving voltage signals and each of the historical vibrator displacement prediction values based on a preset first prediction value calculation formula to obtain an initial vibrator displacement prediction value;
[0017] Calculating each of the historical vibrator displacement prediction values based on a preset second prediction value calculation formula to obtain the target vibrator velocity prediction value;
[0018] The initial vibrator displacement prediction value, the target speed displacement value and each of the motor parameters are calculated based on a preset third prediction value calculation formula to obtain an initial vibrator energy prediction value.
[0019] Furthermore, the risk contribution value includes a vibrator displacement risk contribution value and a vibrator energy risk contribution value, and the step of determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values includes:
[0020] Determine a first target numerical region corresponding to the target vibrator displacement prediction value in each preset first numerical region, and screen a preset first mapping relationship based on the first target numerical region to obtain the vibrator displacement risk contribution value; wherein the first mapping relationship is a mapping relationship between each first numerical region and each vibrator displacement risk contribution value;
[0021] A second target numerical area corresponding to the target vibrator energy prediction value is determined in each preset second numerical area, and a preset second mapping relationship is screened based on the second target numerical area to obtain the vibrator energy risk contribution value; wherein the second mapping relationship is a mapping relationship between each second numerical area and each vibrator energy risk contribution value.
[0022] Furthermore, the risk contribution value further includes a vibrator velocity risk contribution value, and the step of determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values further includes:
[0023] The target vibrator velocity prediction value and the initial vibrator displacement prediction value are multiplied and calculated to obtain a calculation result;
[0024] Based on the calculation result, a preset third mapping relationship is screened to obtain the vibrator velocity risk contribution value; wherein the third mapping relationship is a mapping relationship between each calculation result and each vibrator velocity risk contribution value.
[0025] Furthermore, the step of determining the target suppression level corresponding to each of the risk contribution values comprises:
[0026] Calculating each of the risk contribution values to obtain a target risk value;
[0027] The target suppression level corresponding to the target risk value is determined based on a preset fourth mapping relationship; wherein the fourth mapping relationship is a mapping relationship between each target risk value and each suppression level.
[0028] Furthermore, the step of determining the target driving voltage corresponding to the target suppression level includes:
[0029] Acquire a preset fifth mapping relationship; wherein the fifth mapping relationship is a mapping relationship between each suppression level and each target driving voltage;
[0030] The fifth mapping relationship is screened based on the target compression level to determine a target driving voltage corresponding to the target compression level.
[0031] Furthermore, the step of processing the target driving voltage to obtain a protection driving voltage includes:
[0032] determining, in the target driving voltage, a target frequency component that exceeds a bandwidth range corresponding to the target linear motor;
[0033] A smoothing filtering operation is performed on the target frequency component to generate a protection driving voltage.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a linear motor protection program stored in the memory and executable on the processor, and the linear motor protection program, when executed by the processor, implements the steps of the linear motor protection method as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a protection program for a linear motor is stored. When the protection program for the linear motor is executed by a processor, the steps of the linear motor protection method as described above are implemented.
[0036] The linear motor protection method, terminal device and computer-readable storage medium provided by the embodiments of the present invention obtain each driving voltage signal input into the target linear motor and each motor parameter of the target linear motor, and calculate each vibrator motion parameter prediction value in the target linear motor according to each driving voltage signal and each motor parameter; determine the risk contribution value corresponding to each vibrator motion parameter prediction value, and determine the target suppression level corresponding to each risk contribution value; determine the target driving voltage corresponding to the target suppression level, and process the target driving voltage to obtain a protection driving voltage, and input the protection driving voltage to the target linear motor to protect the target linear motor.
[0037] In this embodiment, when the terminal device is running, it first obtains each driving voltage signal input into the target linear motor. At the same time, the terminal device reads the storage device in the target linear motor to obtain each motor parameter of the target linear motor. The terminal device then inputs the obtained driving voltage signals and motor parameters into a data processing device configured in the terminal device. The data processing device calculates the predicted values of each vibrator motion parameter in the target linear motor according to each driving voltage signal and each motor parameter. Thereafter, the data processing device determines the risk contribution value corresponding to each vibrator motion parameter, and then determines the target suppression level corresponding to each risk contribution value in each preset suppression level. Thereafter, the data processing device determines the target driving voltage corresponding to the target suppression level in each preset driving voltage, and uploads the target driving voltage to the terminal device. The terminal device calls the low-pass filtering device configured in the terminal device to process the target driving voltage to obtain the corresponding protection driving voltage. The terminal device then amplifies the protection driving voltage through the built-in signal amplification device, and inputs the protection driving voltage to the target linear motor to protect the target linear motor.
[0038] In this way, the present invention adopts a method of obtaining predicted values of vibrator motion parameters according to each driving voltage signal input into the linear motor and each motor parameter of the linear motor, and then determining the target risk value corresponding to each predicted value of the vibrator motion parameter, and determining the protection driving voltage according to the target risk value. That is, the present invention adopts a method of obtaining predicted values of vibrator motion parameters by calculation, and determining the target risk value by the predicted values of each vibrator motion parameter to solve the problem of being unable to determine whether the vibrator is likely to collide with the shell during the motor driving process, and then determining different protection driving voltages according to different target risk values, and amplifying and outputting the protection driving voltage signal to reversely drive the vibrator, thereby avoiding the situation where the vibrator is likely to collide with the motor shell during movement, thereby achieving the technical effect of allowing the terminal device to intervene in the linear motor driving process for protection, thereby avoiding the vibrator in the linear motor from colliding with the motor shell during movement, and thereby avoiding the problems of performance degradation, abnormal vibration, loud vibration noise or motor damage during the driving process of the linear motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;
[0040] Figure 2 It is a schematic flow chart of a first embodiment of a method for protecting a linear motor according to the present invention;
[0041] Figure 3 A schematic diagram of a preferred embodiment of a linear motor protection method of the present invention;
[0042] Figure 4 A waveform comparison diagram of a target vibrator energy prediction value and a vibrator energy risk contribution value involved in an embodiment of a linear motor protection method of the present invention;
[0043] Figure 5 A waveform comparison diagram of a target vibrator displacement prediction value and a vibrator displacement risk contribution value involved in an embodiment of a linear motor protection method of the present invention;
[0044] Figure 6 A waveform comparison diagram of a target vibrator velocity-displacement prediction value and a vibrator velocity contribution value involved in an embodiment of a linear motor protection method of the present invention;
[0045] Figure 7 A comparison diagram of target risk value and suppression level waveform involved in an embodiment of a linear motor protection method of the present invention;
[0046] Figure 8 A driving voltage waveform comparison diagram of an embodiment of a linear motor protection method of the present invention;
[0047] Fig. 9 A comparison diagram of displacement change waveforms involved in an embodiment of a linear motor protection method of the present invention.
[0048] 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
[0049] 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.
[0050] Please refer to Figure 1 , Figure 1 A schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.
[0051] It should be noted that Figure 1 The terminal device of the embodiment of the present invention may be a device for executing the linear motor protection method of the present invention, and the terminal device may be a mobile terminal, a data storage control terminal, a PC or a portable computer.
[0052] like Figure 1As shown, the terminal device may include: a processor 1001, such as a central processing unit (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 wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0054] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a protection program for the linear motor.
[0055] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the terminal device of the present invention can be set in the terminal device, and the terminal device calls the linear motor protection program stored in the memory 1005 through the processor 1001, and executes the linear motor protection method provided in the embodiment of the present invention.
[0056] Based on the above-mentioned terminal device, various embodiments of the linear motor protection method of the present invention are provided.
[0057] Please refer to Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a method for protecting a linear motor according to the present invention.
[0058] It should be understood that although a logical sequence is shown in the flowchart, in some cases, the linear motor protection method of the present invention may also perform the steps shown or described in a sequence different from that shown here.
[0059] In this embodiment, the linear motor protection method of the present invention may include the following steps:
[0060] Step S10: acquiring each driving voltage signal input into the target linear motor and each motor parameter of the target linear motor, and calculating predicted values of each vibrator motion parameter in the target linear motor according to each driving voltage signal and each motor parameter;
[0061] It should be noted that the driving voltage signal is a broadband signal generated by an AR or VR terminal device connected to a target linear motor according to an actual application scenario, or is a broadband signal generated by processing the sound effects actually output by a game application by an AR / VR terminal device; similarly, the motor parameters can be composed of the hardware-related parameters of the motor itself and the parameter indicators corresponding to the vibrator contained in the motor. It can be understood that the motor parameters can be stored in the terminal device or the target linear motor by a technician before the terminal device leaves the factory, so that the terminal device can directly read the storage device to obtain them when needed. Of course, there are many ways to set and store motor parameters, and the present invention is not limited to this.
[0062] In this embodiment, when the terminal device is running, it first obtains each driving voltage signal input into the target linear motor. At the same time, the terminal device reads the storage device in the target linear motor to obtain each motor parameter of the target linear motor. The terminal device then inputs the obtained driving voltage signals and motor parameters into a data processing device configured in the terminal device, and the data processing device calculates the predicted values of the vibrator motion parameters in the target linear motor according to the driving voltage signals and the motor parameters.
[0063] For example, when the terminal device is running, it first obtains each driving voltage signal u1(t) emitted by the VR device connected to the terminal device. At the same time, the terminal device reads the storage device of the target linear motor to obtain each motor parameter pre-stored by the technician, and determines the bandwidth range [f aL , f aH ], the mass of the vibrator in the motor m, the magnetic field strength B1, the spring stiffness k, the damping coefficient r, the coil DC resistance Re, the maximum displacement threshold of the vibrator x hmax and the maximum output voltage u of the terminal equipment max The terminal device then obtains each driving voltage signal u1(t), bandwidth range [f aL , f aH], the mass of the vibrator in the motor m, the magnetic field strength B1, the spring stiffness k, the damping coefficient r, the coil DC resistance Re, the maximum displacement threshold of the vibrator x hmax and the maximum output voltage u of the terminal equipment max The data is input to a data processing device configured in the terminal device, and the data processing device calculates the predicted values of the motion parameters of the vibrator in the target linear motor when the vibrator is in motion based on the driving voltage signals u1(t) and the motor parameters.
[0064] Further, in a feasible embodiment, the predicted values of the vibrator motion parameters include a predicted value of a target vibrator velocity, a predicted value of a target vibrator displacement, and a predicted value of a target vibrator energy. The step of "calculating the predicted values of the vibrator motion parameters in the target linear motor according to the driving voltage signals and the motor parameters" in the above step S10 may specifically include:
[0065] Step S101: Calculating the target vibrator velocity prediction value, the initial vibrator displacement prediction value and the initial vibrator energy prediction value according to the driving voltage signals and the motor parameters;
[0066] Step S102: normalizing the initial vibrator displacement prediction value according to the motor parameters to obtain the target vibrator displacement prediction value;
[0067] Step S103: performing normalization calculation on the initial vibrator energy prediction value according to each of the motor parameters to obtain the target vibrator energy prediction value;
[0068] For example, the data processing device obtains the above-mentioned driving voltage signal u1(t), bandwidth range [f aL , f aH ], the mass of the vibrator in the motor m, the magnetic field strength B1, the spring stiffness k, the damping coefficient r, the coil DC resistance Re, the maximum displacement threshold of the vibrator x hmax and the maximum output voltage u of the terminal equipment max After that, firstly based on the preset energy calculation formula:
[0069]
[0070] The maximum displacement threshold x of the oscillator hmax The maximum energy value E of the system is calculated by using the spring stiffness coefficient k. max , then, the data processing device calculates the target vibrator velocity prediction value v1(n), the initial vibrator displacement prediction value x1(n) and the initial vibrator energy prediction value E1(n) based on the driving voltage signal u1(t) and each motor parameter, and then, the data processing device obtains the initial vibrator displacement prediction value x1(n) and the vibrator maximum displacement threshold value x1(n).hmax Substitute into the first normalization calculation formula preset by the technician:
[0071]
[0072] The target vibrator displacement prediction value x is obtained by normalizing the initial vibrator displacement prediction value x1(n). 1_1FS (n); Similarly, the data processing device obtains the initial oscillator energy prediction value E1(n) and the maximum energy value E max Substitute into the second normalization calculation formula preset by the technician:
[0073]
[0074] The initial oscillator energy prediction value E1(n) is normalized to obtain the target oscillator energy prediction value E 1_1FS ;
[0075] Furthermore, in a feasible embodiment, the above step S101 may specifically include:
[0076] Step S1011: determining each historical driving voltage signal within the nth moment to the nmth moment and each historical vibrator displacement prediction value within the nth moment to the nmth moment in each driving voltage signal;
[0077] In this embodiment, after acquiring each of the above-mentioned driving voltage signals, the terminal device first determines in each of the driving voltage signals the historical driving voltage signals at the current nth moment and at m moments before the nth moment, and determines the historical vibrator displacement prediction values corresponding to each of the historical driving voltage signals.
[0078] Step S1012: calculating each of the historical driving voltage signals and each of the historical vibrator displacement prediction values based on a preset first prediction value calculation formula to obtain an initial vibrator displacement prediction value;
[0079] In this embodiment, the terminal device inputs the acquired historical driving voltage signals and the historical vibrator displacement prediction values into the above-mentioned data processing device, and the data processing device calculates each of the historical driving voltage signals and each of the historical vibrator displacement prediction values based on an internally preset first prediction value calculation formula to obtain an initial vibrator displacement prediction value.
[0080] Step S1013: calculating each of the historical vibrator displacement prediction values based on a preset second prediction value calculation formula to obtain the target vibrator velocity prediction value;
[0081] In this embodiment, the terminal device inputs the acquired historical vibrator displacement prediction values into the data processing device, and the data processing device calculates the target vibrator speed prediction value based on the internally preset second prediction value calculation formula for each historical vibrator displacement prediction value.
[0082] Step S1014: calculating the initial vibrator displacement prediction value, the target speed displacement value and each of the motor parameters based on a preset third prediction value calculation formula to obtain an initial vibrator energy prediction value;
[0083] In this embodiment, the terminal device inputs the acquired initial vibrator displacement prediction value, the target vibrator velocity prediction value and the above-mentioned motor parameters into the above-mentioned data processing device, and the data processing device calculates the initial vibrator displacement prediction value, the target vibrator velocity prediction value and the above-mentioned motor parameters based on an internally preset third prediction value calculation formula to obtain an initial vibrator energy prediction value.
[0084] Exemplarily, for example, after the terminal device obtains each of the above-mentioned driving voltage signals u1(t) input into the target linear motor, it first determines in each of the driving voltage signals u1(t) the voltage values u corresponding to each of the historical driving voltage signals u1(t) at the current nth moment, the n-1th moment and the n-2th moment, and the historical vibrator displacement prediction values x1(n-1) and x1(n-2) corresponding to each of the historical driving voltage signals at the n-1th moment and the n-2th moment. After that, the terminal device inputs the obtained historical driving voltage signals and the historical vibrator displacement prediction values into the above-mentioned data processing device, and the data processing device calculates the first prediction value based on the first prediction value calculation formula preset by the technician:
[0085]
[0086] Calculate each historical driving voltage signal and each historical oscillator displacement prediction to obtain the initial oscillator displacement prediction value x1(n) at the current nth moment;
[0087] Similarly, after obtaining the above-mentioned initial vibrator displacement prediction value x1(n), the data processing device brings the initial vibrator displacement prediction value x1(n) and the historical vibrator displacement prediction value x1(n-1) at the n-1th moment into the second prediction value calculation formula preset by the technician:
[0088]
[0089] Thus, the target oscillator velocity prediction value v1(n) at the nth moment is obtained;
[0090] Similarly, the data processing device further brings the initial vibrator displacement prediction value x1(n), the target vibrator velocity prediction value v1(n), the motor vibrator mass value m and the spring stiffness coefficient k at the nth moment into the third prediction value calculation formula preset by the technician:
[0091]
[0092] The initial oscillator energy prediction value E1(n) at the nth moment is calculated.
[0093] It should be noted that, in this embodiment, the first prediction value calculation formula a1=(2ω c 2 T 2 -8), b0=KT 2 , b1=2KT 2 , b2=KT2, T is the sampling period of signal processing.
[0094] Step S20: determining the risk contribution value corresponding to each of the predicted values of the vibrator motion parameters, and determining the target suppression level corresponding to each of the risk contribution values;
[0095] In this embodiment, the data processing device determines the risk contribution value corresponding to each predicted value of the vibrator motion parameter, and then determines the target suppression level corresponding to each risk contribution value among the preset suppression levels.
[0096] For example, when the terminal device obtains the target vibrator displacement prediction value x 1_1FS (n), target oscillator energy prediction value E 1_1FS , after obtaining the oscillator velocity prediction value v1(n), determine the numerical interval corresponding to each oscillator motion parameter prediction value, and then determine the risk contribution value corresponding to each oscillator motion parameter prediction value according to each numerical interval. After that, the data processing device determines the target suppression level c corresponding to each risk contribution value.
[0097] Further, in a feasible embodiment, the risk contribution value includes a vibrator displacement risk contribution value and a vibrator energy risk contribution value, and the step of "determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values" in the above step S20 may specifically include:
[0098] Step S201: determining a first target numerical region corresponding to the target vibrator displacement prediction value in each preset first numerical region, and screening a preset first mapping relationship based on the first target numerical region to obtain the vibrator displacement risk contribution value; wherein the first mapping relationship is a mapping relationship between each first numerical region and each vibrator displacement risk contribution value;
[0099] In this embodiment, the data processing device obtains each first numerical area in the terminal device, and compares the obtained target vibrator displacement prediction value with each first numerical area respectively to determine the target first numerical area corresponding to the target vibrator displacement prediction value in each first numerical area. Afterwards, the data processing device determines the vibrator displacement risk contribution value corresponding to the target first numerical area based on the first mapping relationship between each first numerical area and each vibrator displacement risk contribution value preset by the technician.
[0100] Step S202: determining a second target numerical region corresponding to the target vibrator energy prediction value in each preset second numerical region, and screening a preset second mapping relationship based on the second target numerical region to obtain the vibrator energy risk contribution value; wherein the second mapping relationship is a mapping relationship between each second numerical region and each vibrator energy risk contribution value;
[0101] In this embodiment, the data processing device obtains each second numerical area in the terminal device, and compares the obtained target vibrator energy prediction value with each second numerical area respectively to determine the target second numerical area corresponding to the target vibrator energy prediction value in each second numerical area. After that, the data processing device determines the vibrator energy risk contribution value corresponding to the target second first numerical area based on the second mapping relationship between each numerical area and each vibrator energy risk contribution value preset by the technician.
[0102] Exemplarily, for example, the data processing device first obtains the first value area|x in the terminal device 1_1FS |∈[0,0.8], |x 1_1FS |∈(0.8,0.9],|x 1_1FS |∈(0.9, 1] and |x 1_1FS |∈(1,+∞], and obtain the above target vibrator displacement prediction value x 1_1FS (n) respectively comparing with each first numerical region to determine a target numerical region corresponding to the target vibrator displacement prediction value in each first numerical region, and then, the data processing device performs the following mapping based on a first mapping relationship between each first numerical region and each vibrator displacement risk contribution value preset by a technician:
[0103]
[0104] Calculate the oscillator displacement risk contribution value C corresponding to the first numerical region of the target x The data processing device further calculates the target vibrator displacement prediction value x 1_1FS (n) and the oscillator displacement risk contribution value C x Generate as Figure 5 The waveform comparison diagram of the target vibrator displacement prediction value and the vibrator displacement risk contribution value shown;
[0105] Similarly, the data processing device first obtains the second value area E in the terminal device. 1_1FS ∈[0,1], E 1_1FS ∈(1,2],E 1_1FS ∈(2,3] and E 1_1FS ∈(3,4], and obtain the above target oscillator energy prediction value E 1_1FS The energy prediction value E of the target oscillator is determined by comparing it with each second value region respectively. 1_1FS The corresponding target second numerical range, after which the data processing device is based on the second mapping relationship between each second numerical range and each oscillator energy risk contribution value preset by the technician:
[0106]
[0107] Calculate the oscillator energy risk contribution value C corresponding to the second numerical range of the target E The data processing device further calculates the target oscillator energy prediction value E 1_1FS The oscillator energy risk contribution value C E Generate as Figure 4 The waveform comparison of the target vibrator displacement prediction value and the vibrator displacement risk contribution value is shown.
[0108] It should be noted that, in the present embodiment, the selection range of each of the above-mentioned first numerical intervals and each of the above-mentioned second numerical intervals can be adjusted by technical personnel according to actual needs, and the present invention does not impose any restrictions on this; similarly, the above-mentioned first mapping relationship and the second mapping relationship are mainly used to enable the terminal device to determine the risk of the vibrator colliding with the target linear motor housing during movement according to the above-mentioned target vibrator displacement prediction value and the target vibrator energy prediction value. Therefore, the specific setting range of the first mapping relationship and the second mapping relationship can also be modified by technical personnel according to the hardware parameters or indicators of the target linear motor, and the present invention does not impose any restrictions on this.
[0109] Furthermore, in a feasible embodiment, the risk contribution value further includes a vibrator velocity risk contribution value, and the step of "determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values" in the above step S20 may also include:
[0110] Step S203: multiplying and calculating the target vibrator velocity prediction value and the initial vibrator displacement prediction value to obtain a calculation result;
[0111] Step S204: screening a preset third mapping relationship based on the calculation result to obtain the vibrator velocity risk contribution value; wherein the third mapping relationship is a mapping relationship between each calculation result and each vibrator velocity risk contribution value;
[0112] Exemplarily, for example, the data processing device multiplies and calculates the target vibrator velocity prediction value v1(n) obtained at the nth moment and the initial vibrator displacement prediction value x1(n) at the nth moment to obtain a calculation result x1·v1. At the same time, the data processing device obtains a third mapping relationship between each calculation result and each vibrator velocity risk contribution value in the terminal device:
[0113]
[0114] Afterwards, the data processing device determines whether the calculation result x1·v1 is greater than 0. When the calculation result x1·v1 is greater than 0, the data processing device determines that the target vibrator velocity prediction value v1(n) and the initial vibrator displacement prediction value x1(n) have the same sign. The data processing device further determines the vibrator velocity risk contribution value C based on the third mapping relationship. v =0. Similarly, when the calculation result x1·v1 is less than or equal to 0, the data processing device determines that the target vibrator velocity prediction value v1(n) and the initial vibrator displacement prediction value x1(n) are in a relationship of opposite signs. The data processing device further determines the vibrator velocity risk contribution value C based on the third mapping relationship. v =-1, the data processing device further calculates the target vibrator displacement prediction value x 1_1FS (n), the target oscillator velocity prediction value v1(n) and the oscillator velocity risk contribution value C v Generate as Figure 6 The target oscillator velocity-displacement prediction value and the oscillator velocity contribution value waveform comparison are shown.
[0115] It should be noted that, in another embodiment, the third mapping relationship may also be composed of a mapping relationship between each specific numerical value corresponding to the calculation result and each oscillator speed risk contribution value. It can be understood that in this embodiment, the oscillator speed risk contribution value corresponding to each calculation result in the third mapping relationship can be modified by technical personnel according to the actual application scenario, and the present invention does not limit this.
[0116] Further, in a feasible embodiment, the step of "determining a target suppression level corresponding to each risk contribution value" in the above step S20 may specifically include:
[0117] Step S206: Calculate each risk contribution value to obtain a target risk value;
[0118] In this embodiment, the data processing device obtains a preset risk value calculation formula, and calculates the obtained vibrator displacement risk contribution value, the vibrator energy risk contribution value and the vibrator velocity risk contribution value based on the risk value calculation formula to obtain a target risk value corresponding to each risk contribution value.
[0119] Step S207: determining the target suppression level corresponding to the target risk value based on a preset fourth mapping relationship; wherein the fourth mapping relationship is a mapping relationship between each target risk value and each suppression level;
[0120] In this embodiment, the data processing device obtains a fourth mapping relationship between each target risk value and each suppression level preset by a technician in the terminal device, and determines a target suppression level corresponding to the target risk value among the suppression levels based on the fourth mapping relationship.
[0121] For example, the data processing device first obtains the risk value calculation formula preset by the technician in the terminal device: a =c E +c x +c v And the fourth mapping relationship between each target risk value and each suppression level:
[0122]
[0123] Afterwards, the data processing device obtains the above-mentioned vibrator displacement risk contribution value C x , the above oscillator energy risk contribution value C E And the above oscillator velocity risk contribution value C v Substitute the risk value calculation formula to obtain the target risk value C corresponding to each risk contribution value a Then, the data processing device determines the target risk value C based on the fourth mapping relationship. a The corresponding target suppression level c, the data processing device further based on the target risk value C a The target suppression level c is generated as follows Figure 7 The target risk value and suppression level waveform comparison chart is shown.
[0124] Step S30: determining a target driving voltage corresponding to the target compression level, processing the target driving voltage to obtain a protection driving voltage, and inputting the protection driving voltage to the target linear motor to protect the target linear motor;
[0125] In this embodiment, the data processing device determines the target driving voltage corresponding to the target suppression level among the preset driving voltages, and uploads the target driving voltage to the terminal device. The terminal device calls the low-pass filtering device configured in the terminal device to process the target driving voltage to obtain the corresponding protection driving voltage. The terminal device then amplifies the protection driving voltage through the built-in signal amplification device, and inputs the protection driving voltage to the target linear motor to protect the target linear motor.
[0126] For example, after determining the target compression level c, the data processing device obtains the driving voltage values preset by the technician in the terminal device, and determines the target driving voltage u corresponding to the target compression level c from the driving voltage values. 1a (n), then the data processing device sets the target driving voltage u 1a (n) Upload to the terminal device, the terminal device calls the above-mentioned low-pass filter device, and according to the cut-off frequency f of the low-pass filter device LP The target driving voltage u 1a (n) performs filtering operation to obtain the protection driving voltage u2(n), and then the terminal device amplifies the power of the target driving voltage u2(n) through the above-mentioned signal amplification device, so that the motor vibrator produces reverse displacement during the movement to protect the target linear motor.
[0127] It should be noted that, in this embodiment, the signal amplifying device is specifically an amplifier that performs power matching on the input signal, and can specifically be a common class A, class B, class AB, or class D driver. It can be understood that the input signal can be an analog signal or a digital signal.
[0128] Further, in a feasible embodiment, the step of "determining the target driving voltage corresponding to the target suppression level" in the above step S30 may specifically include:
[0129] Step S301: obtaining a preset fifth mapping relationship; wherein the fifth mapping relationship is a mapping relationship between each suppression level and each target driving voltage;
[0130] Step S302: screening the fifth mapping relationship based on the target suppression level to determine a target driving voltage corresponding to the target suppression level;
[0131] Exemplarily, for example, the data processing device obtains a fifth mapping relationship between each compression level and each target driving voltage in the terminal device:
[0132]
[0133] Afterwards, the data processing device screens the fifth mapping relationship based on the target suppression level c, so as to determine the target driving voltage u corresponding to the target suppression level in the fifth mapping relationship. 1a (n).
[0134] It should be noted that, in this embodiment, in the above fifth mapping relationship, sign(v1) represents the sign of v1, that is, if v1>0, then sign(v1)=1; similarly, if v1<0, then sign(v1)=-1; similarly, if v1=0, then sign(v1)=0.
[0135] Further, in a feasible embodiment, the step of “processing the target driving voltage to obtain the protection driving voltage” in the above step S30 may specifically include:
[0136] Step S303: determining a target frequency component in the target driving voltage that exceeds a bandwidth range corresponding to the target linear motor;
[0137] In this embodiment, the terminal device calls the above-mentioned low-pass filtering device to determine each target frequency component in the above-mentioned target driving voltage that exceeds the motor bandwidth range in the above-mentioned motor parameters.
[0138] Step S304: performing a smoothing filter operation on the target frequency component to generate a protection driving voltage.
[0139] In this embodiment, the low-pass filter device performs a smoothing filter operation on each of the target frequency components, so that each of the target frequency components is within the bandwidth range of the linear motor.
[0140] Exemplarily, for example, the terminal device calls the low-pass filtering device at the target driving voltage u 1a (n) determines the frequency limit f that exceeds the bandwidth within the above motor parameters aH Each target frequency component, and through the smoothing filtering operation, a smoothing filtering operation is performed on each target frequency component, so that each target frequency component is within the bandwidth frequency upper limit f aH Within.
[0141] It can be understood that, in this embodiment, in order to ensure that the smooth filtering operation of the low-pass filtering device can completely protect the above-mentioned driving voltage u 1a (n) Perform smoothing filtering operation, and set the cut-off frequency f of the low-pass filter device. LP In the above linear motor bandwidth frequency upper limit f aH Above, for example, the f LP =2f aHOf course, there are many specific setting methods and setting ranges for the cutoff frequency, and the present invention does not limit this.
[0142] In addition, please refer to Figure 8 , Figure 8 FIG. 1 is a comparison diagram of driving voltage waveforms involved in an embodiment of a method for protecting a linear motor of the present invention; it should be noted that, Figure 8 In the figure, the upper image is the voltage waveform corresponding to the driving voltage of the target linear motor in each time period before the protection voltage is output by the protection method of the linear motor of the present invention. Similarly, Figure 8 The image in the middle and lower part is the voltage waveform corresponding to the driving voltage of the target linear motor in each time period after the protection voltage is output by the protection method of the linear motor of the present invention. It can be clearly seen that when the protection voltage is output by the protection method of the linear motor of the present invention, an obvious reverse voltage signal is generated in the interval of t=0.13 to t=0.18;
[0143] In addition, please refer to Fig. 9 , Fig. 9 FIG. 1 is a comparison diagram of displacement change waveforms involved in an embodiment of a linear motor protection method of the present invention. It can be understood that after the above protection voltage is output by the linear motor protection method of the present invention, as shown in FIG. Fig. 9 As shown, the portion of the vibrator in the target linear motor that exceeds -1 and 1 in the interval t=0.13 to t=0.18 will return to the interval -1 to 1.
[0144] In this embodiment, when the terminal device is running, it first obtains each driving voltage signal input into the target linear motor. At the same time, the terminal device reads the storage device in the target linear motor to obtain each motor parameter of the target linear motor. The terminal device then inputs the obtained driving voltage signals and motor parameters into a data processing device configured in the terminal device. The data processing device calculates the predicted values of each vibrator motion parameter in the target linear motor according to each driving voltage signal and each motor parameter. Thereafter, the data processing device determines the risk contribution value corresponding to each vibrator motion parameter predicted value, and then determines the target suppression level corresponding to each risk contribution value in each preset suppression level. Thereafter, the data processing device determines the target driving voltage corresponding to the target suppression level in each preset driving voltage, and uploads the target driving voltage to the terminal device. The terminal device calls the low-pass filtering device configured in the terminal device to process the target driving voltage to obtain the corresponding protection driving voltage. The terminal device then amplifies the protection driving voltage through the built-in signal amplification device, and inputs the protection driving voltage to the target linear motor to protect the target linear motor.
[0145] In this way, the present invention adopts a method of obtaining predicted values of vibrator motion parameters according to each driving voltage signal input into the linear motor and each motor parameter of the linear motor, and then determining the target risk value corresponding to each predicted value of the vibrator motion parameter, and determining the protection driving voltage according to the target risk value. That is, the present invention adopts a method of obtaining predicted values of vibrator motion parameters by calculation, and determining the target risk value by the predicted values of each vibrator motion parameter to solve the problem of being unable to determine whether the vibrator is likely to collide with the shell during the motor driving process, and then determining different protection driving voltages according to different target risk values, and amplifying and outputting the protection driving voltage signal to reversely drive the vibrator, thereby avoiding the situation where the vibrator is likely to collide with the motor shell during movement, thereby achieving the technical effect of allowing the terminal device to intervene in the linear motor driving process for protection, thereby avoiding the vibrator in the linear motor from colliding with the motor shell during movement, and thereby avoiding the problems of performance degradation, abnormal vibration, loud vibration noise or motor damage during the driving process of the linear motor.
[0146] Furthermore, based on the first embodiment of the protection method for a linear motor of the present invention, a preferred embodiment of the protection method for a linear motor of the present invention is proposed herein.
[0147] Please refer to Figure 3 , Figure 3 Schematic diagram of a preferred embodiment of a linear motor protection method of the present invention.
[0148] In this embodiment, the VR / AR device connected to the terminal device first inputs a preset driving voltage signal into the terminal device. After that, the terminal device calculates the target vibrator displacement prediction value, the target vibrator velocity prediction value and the target vibrator energy prediction value corresponding to the driving voltage point by point through an internally configured data processor, and then determines the target risk contribution value corresponding to each of the target vibrator displacement prediction value, the target vibrator velocity prediction value and the target vibrator energy prediction value, thereby determining the displacement excess risk contribution value according to each of the target risk contribution values. After that, the terminal device is based on the fourth mapping relationship preset by the technician:
[0149]
[0150] Determine the displacement suppression level corresponding to the displacement excess risk contribution value, and based on the fifth mapping relationship above:
[0151]
[0152] Determine the driving protection voltage corresponding to the displacement suppression level. Finally, the terminal device calls the above-mentioned low-pass filtering device to perform smoothing filtering operation on the driving protection voltage, and amplifies and drives the driving protection voltage after the smoothing filtering operation through the internal amplification device to protect the target linear motor.
[0153] In addition, the present invention also provides a terminal device having a linear motor protection method that can be run on a processor, and when the terminal device executes the linear motor protection method, the steps of the linear motor protection method as described in any of the above embodiments are implemented.
[0154] The specific embodiments of the terminal device of the present invention are basically the same as the embodiments of the above-mentioned linear motor protection method, and will not be described in detail here.
[0155] In addition, the present invention also provides a computer-readable storage medium, on which a linear motor protection method is stored. When the linear motor protection method is executed by a processor, the steps of the linear motor protection method described in any of the above embodiments are implemented.
[0156] The specific embodiments of the computer-readable storage medium of the present invention are basically the same as the embodiments of the above-mentioned linear motor protection method, and will not be described in detail here.
[0157] 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.
[0158] 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.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented 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, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for enabling a terminal device (which can be a device for executing the protection method of the linear motor of the present invention, and the terminal device can specifically be a mobile terminal, a data storage control terminal, a PC or a portable computer and other terminals) to execute the methods described in each embodiment of the present invention.
[0160] 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 method for protecting a linear motor, characterized in that: The protection method of the linear motor comprises the following steps: Acquire each driving voltage signal input into the target linear motor and each motor parameter of the target linear motor, and calculate each vibrator motion parameter prediction value in the target linear motor according to each driving voltage signal and each motor parameter, wherein the vibrator motion parameter prediction value includes a target vibrator velocity prediction value, a target vibrator displacement prediction value, and a target vibrator energy prediction value; The step of calculating the predicted value of each vibrator motion parameter in the target linear motor according to each of the driving voltage signals and each of the motor parameters comprises: Calculate the target vibrator velocity prediction value, the initial vibrator displacement prediction value and the initial vibrator energy prediction value according to each of the driving voltage signals and each of the motor parameters; The initial vibrator displacement prediction value is normalized and calculated according to a preset first normalization calculation formula and each of the motor parameters to obtain the target vibrator displacement prediction value, wherein the first normalization calculation formula is: x1(n) is the predicted value of the initial oscillator displacement, x 1_1FS (n) is the predicted displacement of the target vibrator, x hmax is the maximum displacement threshold of the oscillator; The initial vibrator energy prediction value is normalized and calculated according to a preset second normalization calculation formula and each of the motor parameters to obtain the target vibrator energy prediction value, wherein the second normalization calculation formula is: E1(n) is the predicted value of the initial oscillator energy, E 1_1FS is the predicted value of target oscillator energy, E max is the maximum energy value; Determine the risk contribution value corresponding to each of the predicted values of the vibrator motion parameters, and determine the target suppression level corresponding to each of the risk contribution values, wherein the risk contribution value includes a vibrator displacement risk contribution value, a vibrator energy risk contribution value, and a vibrator velocity risk contribution value; Determining a target driving voltage corresponding to the target compression level, processing the target driving voltage to obtain a protection driving voltage, and inputting the protection driving voltage to the target linear motor to protect the target linear motor; The step of processing the target driving voltage to obtain a protection driving voltage includes: determining, in the target driving voltage, a target frequency component that exceeds a bandwidth range corresponding to the target linear motor; A smoothing filtering operation is performed on the target frequency component to generate a protection driving voltage.
2. The linear motor protection method according to claim 1, characterized in that: The step of calculating the target vibrator velocity prediction value, the initial vibrator displacement prediction value and the initial vibrator energy prediction value according to each of the driving voltage signals and each of the motor parameters comprises: Determining each historical driving voltage signal within the nth moment to the nmth moment and each historical vibrator displacement prediction value within the nth moment to the nmth moment in each driving voltage signal; The initial vibrator displacement prediction value is obtained by calculating each of the historical driving voltage signals and each of the historical vibrator displacement prediction values based on a preset first prediction value calculation formula, wherein the first prediction value calculation formula is: a1=(2ω c 2 T 2 -8), b0=KT 2 b1=2KT 2 , <h2 style=";text-align:left;direction:ltr">b2=KT<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> , Bl 2 is the magnetic field strength, R e is the DC resistance of the coil, k is the spring stiffness coefficient, r is the damping coefficient, m is the mass of the motor oscillator, and T is the sampling period of signal processing; The target vibrator velocity prediction value is obtained by calculating each of the historical vibrator displacement prediction values based on a preset second prediction value calculation formula, wherein the second prediction value calculation formula is: v1(n) is the predicted value of the target oscillator velocity, x1(n) and x1(n-1) are the predicted values of the historical oscillator displacement; The initial vibrator displacement prediction value, the target vibrator velocity prediction value and each of the motor parameters are calculated based on a preset third prediction value calculation formula to obtain an initial vibrator energy prediction value, wherein the third prediction value calculation formula is: E1(n) is the predicted value of the initial oscillator energy.
3. The linear motor protection method according to claim 2, characterized in that: The risk contribution value includes a vibrator displacement risk contribution value and a vibrator energy risk contribution value, and the step of determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values comprises: A first target numerical region corresponding to the target vibrator displacement prediction value is determined in each preset first numerical region, and a preset first mapping relationship is screened based on the first target numerical region to obtain the vibrator displacement risk contribution value; wherein the first mapping relationship is a mapping relationship between each first numerical region and each vibrator displacement risk contribution value, and the first mapping relationship is C x is the oscillator displacement risk contribution value; Determine the second target numerical region corresponding to the target vibrator energy prediction value in each preset second numerical region, and screen the preset second mapping relationship based on the second target numerical region to obtain the vibrator energy risk contribution value; wherein the second mapping relationship is a mapping relationship between each second numerical region and each vibrator energy risk contribution value, and the second mapping relationship is C E Oscillator energy risk contribution value.
4. The linear motor protection method according to claim 3, characterized in that: The risk contribution value further includes a vibrator velocity risk contribution value, and the step of determining the risk contribution value corresponding to each of the vibrator motion parameter prediction values further includes: The target vibrator velocity prediction value and the initial vibrator displacement prediction value are multiplied and calculated to obtain a calculation result; Based on the calculation result, the preset third mapping relationship is screened to obtain the vibrator velocity risk contribution value; wherein the third mapping relationship is a mapping relationship between each calculation result and each vibrator velocity risk contribution value, and the third mapping relationship is c v It is the oscillator velocity risk contribution value.
5. The linear motor protection method according to claim 1, wherein: The step of determining the target suppression level corresponding to each of the risk contribution values comprises: Calculating each of the risk contribution values to obtain a target risk value; The target suppression level corresponding to the target risk value is determined based on a preset fourth mapping relationship; wherein the fourth mapping relationship is a mapping relationship between each target risk value and each suppression level, and the fourth mapping relationship is c a is the target risk value, and c is the suppression level.
6. The linear motor protection method according to claim 1, characterized in that: The step of determining the target driving voltage corresponding to the target suppression level comprises: Obtain a preset fifth mapping relationship; wherein the fifth mapping relationship is a mapping relationship between each suppression level and each target driving voltage, and the fifth mapping relationship is -sign(v1) is the sign corresponding to the predicted value of the target oscillator velocity; The fifth mapping relationship is screened based on the target compression level to determine a target driving voltage corresponding to the target compression level.
7. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a linear motor protection program stored in the memory and executable on the processor. When the linear motor protection program is executed by the processor, the steps of the linear motor protection method as described in any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a protection program for a linear motor, and when the protection program for the linear motor is executed by a processor, the steps of the protection method for a linear motor according to any one of claims 1 to 6 are implemented.
