Dynamic protection method and system for linear vibration electric motor, and related device
By automatically adjusting the voltage parameters, we can solve the abnormal noise problem caused by excessive voltage of linear motor vibrators, extend the service life and improve performance.
Patent Information
- Application Number
- PCT/CN2023/105798
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-09
AI Technical Summary
The oscillator movement space of linear motors is limited. If the driving voltage is too large, the oscillator is prone to abnormal noise, which will damage the performance and reliability of the device and shorten the service life.
By automatically adjusting the voltage parameters, using the preset initial gain coefficient to calculate the original voltage signal, and obtaining the driving voltage signal through the dynamic protection algorithm, collecting acceleration signals to determine the working state. If abnormal, adjust the gain coefficient to reduce the abnormal noise frequency.
Effectively extend the service life of linear vibration motors, improve device performance and reliability, and reduce abnormal noise frequency.
Smart Images

Figure CN2023105798_09012025_PF_FP_ABST
Abstract
Description
Dynamic protection method, system and related equipment for linear vibration motor Technical Field
[0001] The present invention relates to a dynamic protection method for a linear vibration motor, and in particular to a dynamic protection method, system, computer equipment and computer storage medium for a linear vibration motor. Background Art
[0002] A linear motor is a transmission device that converts electrical energy directly into linear motion without any intermediate conversion mechanism. It can be thought of as a rotating motor cut radially and flattened into a flat surface. Linear motors include linear motors, linear actuators, and push rod motors.
[0003] The linear motor in the related art consists of a rotor, stator, end cap assembly, and vibrator. The stator is fixed in the end cap assembly, the rotor is connected to the stator by a transmission, and the vibrator is installed in the end cap assembly. When powered, the vibrator is driven to vibrate and achieve linear motion. Technical issues
[0004] However, the vibrator movement space of the linear motor in the related art is limited. If the driving voltage is too large, the vibrator is easily attached to the inner wall of the device, causing abnormal noise and damaging the performance and reliability of the device, thereby reducing its service life.
[0005] Therefore, it is necessary to provide a new dynamic protection method for linear vibration motor to solve the above problems. Technical Solutions
[0006] The technical problem to be solved by the present invention is to provide a dynamic protection method for a linear vibration motor which can automatically adjust voltage parameters and reduce abnormal sound frequency to extend the life of the device.
[0007] To solve the above technical problems, the present invention provides a dynamic protection method for a linear vibration motor, the dynamic protection method comprising the following steps:
[0008] Step S1, presetting an initial gain coefficient, and calculating an original voltage signal according to the initial gain coefficient;
[0009] Step S2: Process the original voltage signal of each frame to obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through the dynamic protection algorithm; wherein, the driving voltage signal = the original voltage signal the current gain coefficient;
[0010] Step S3, applying the driving voltage signal to the linear vibration motor to drive the linear vibration motor to operate;
[0011] Step S4: collecting the acceleration signal of the linear vibration motor, and analyzing whether the acceleration signal is abnormal according to a preset rule to determine the working state of the linear vibration motor;
[0012] If yes, proceed to step S5;
[0013] If not, determining that the current gain coefficient is the gain coefficient of the current signal frame, and executing step S6;
[0014] Step S5: Adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to step S2 based on the new gain coefficient; wherein the new gain coefficient = the current gain coefficient K, 0 <K<1;
[0015] Step S6: Determine whether the current signal frame is the last signal frame;
[0016] If so, end the process;
[0017] If not, the process returns to step S2 and starts calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
[0018] Preferably, in step S4, the preset rules include a time domain judgment method and a frequency domain judgment method.
[0019] Preferably, the time domain judgment method includes the following steps:
[0020] Step S401: Statistically analyze the time domain waveform of the acceleration signal and obtain the absolute value of the positive peak value and the absolute value of the negative peak value;
[0021] Step S402: Calculate the difference between the absolute value of the positive peak and the absolute value of the negative peak;
[0022] Step S403: determine whether the difference is greater than a preset absolute value threshold;
[0023] If so, it is determined to be an abnormal state;
[0024] If not, it is determined to be in normal state.
[0025] Preferably, the time domain judgment method includes the following steps:
[0026] Step S501: performing envelope extraction on the time domain waveform of the acceleration signal;
[0027] Step S502: Calculate the first-order difference value of the extracted envelope;
[0028] Step S503: Calculate the maximum absolute value of the first-order difference value;
[0029] Step S504: determine whether the maximum value is greater than a preset threshold;
[0030] If so, it is determined to be an abnormal state;
[0031] If not, it is determined to be in normal state.
[0032] Preferably, the frequency domain judgment method specifically includes the following steps:
[0033] Step S601: performing a fast Fourier transform on the acceleration signal to obtain a frequency spectrum of the acceleration signal;
[0034] Step S602: Calculate the amplitude sum of the spectrum, and obtain a ratio based on the ratio of the amplitude sum to the maximum value of the spectrum;
[0035] Step S603: determining whether the ratio is greater than the preset ratio threshold;
[0036] If so, it is determined to be in normal state;
[0037] If not, it is determined to be an abnormal state.
[0038] Preferably, in step S5, the new gain coefficient = the current gain coefficient 0.9.
[0039] In a second aspect, an embodiment of the present invention provides a dynamic protection system for a linear vibration motor, the dynamic protection system comprising:
[0040] A first obtaining module is used to preset an initial gain coefficient and calculate an original voltage signal according to the initial gain coefficient;
[0041] The second acquisition module is used to process the original voltage signal of each frame, obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through the dynamic protection algorithm; wherein, the driving voltage signal = the original voltage signal the current gain coefficient;
[0042] A driving module, configured to apply the driving voltage signal to the linear vibration motor to drive the linear vibration motor to operate;
[0043] a first judgment module, configured to collect an acceleration signal of the linear vibration motor and analyze whether the acceleration signal is abnormal according to a preset rule, so as to judge the working state of the linear vibration motor;
[0044] If so, the adjustment module is executed;
[0045] If not, determining that the current gain coefficient is the gain coefficient of the current signal frame, and executing the second judgment module;
[0046] An adjustment module, configured to adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to the second acquisition module based on the new gain coefficient; wherein the new gain coefficient = the current gain coefficient K, 0 <K<1;
[0047] A second judgment module is used to judge whether the current signal frame is the last signal frame;
[0048] If so, end the process;
[0049] If not, the process returns to the second obtaining module and starts calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
[0050] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a dynamic protection program for a linear vibration motor stored in the memory and executable on the processor, wherein the processor implements the steps in the dynamic protection method for a linear vibration motor as described above when executing the dynamic protection program for the linear vibration motor.
[0051] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a dynamic protection program for a linear vibration motor is stored. When the dynamic protection program for a linear vibration motor is executed by a processor, the steps in the above-mentioned dynamic protection method for a linear vibration motor are implemented. Beneficial effects
[0052] Compared with the related art, the dynamic protection method for a linear vibration motor of the present invention presets an initial gain coefficient and calculates an original voltage signal based on the initial gain coefficient; processes the original voltage signal of each frame to obtain the current gain coefficient of the current signal frame, and obtains a driving voltage signal through a dynamic protection algorithm; loads the driving voltage signal to the linear vibration motor to drive the linear vibration motor; collects the acceleration signal of the linear vibration motor, analyzes the acceleration signal according to a preset rule to determine whether it is abnormal, and determines the working state of the linear vibration motor; if so, adjusts the current gain coefficient of the current signal frame to a new gain coefficient, and returns to the step of obtaining the driving signal based on the new gain coefficient to process the current signal frame; if not, determines that the current gain coefficient is the gain coefficient of the current signal frame, and determines whether the current signal frame is the last signal frame; if so, terminates the process; if not, returns to the step of obtaining the driving signal and begins calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated. Thus, through the dynamic protection algorithm, the voltage parameters are automatically adjusted, the performance and reliability of the device are automatically improved, and the abnormal sound frequency is effectively reduced to extend the life of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive work, among which:
[0054] FIG1 is a flow chart of a dynamic protection method for a linear vibration motor according to the present invention;
[0055] FIG2 is a flow chart of the time domain determination method of step S4 in FIG1 of the present invention;
[0056] FIG3 is a flow chart of another time domain determination method of step S4 in FIG1 of the present invention;
[0057] FIG4 is a flow chart of the frequency domain determination method of step S4 in FIG1 of the present invention;
[0058] FIG5 is a schematic diagram of a dynamic protection algorithm of the present invention;
[0059] FIG6 is a schematic diagram of a dynamic gain generation algorithm according to the present invention;
[0060] FIG7 is a diagram showing an acceleration waveform of the linear vibration motor of the present invention under normal operation;
[0061] FIG8 is a first acceleration waveform diagram of the linear vibration motor of the present invention under abnormal operation;
[0062] FIG9 is a second acceleration waveform diagram of the linear vibration motor of the present invention under abnormal operation;
[0063] FIG10 is a diagram showing an acceleration spectrum of a linear vibration motor of the present invention under normal operation;
[0064] FIG11 is a diagram showing an acceleration spectrum of a linear vibration motor of the present invention under abnormal operation;
[0065] FIG12 is a block diagram of a dynamic protection system for a linear vibration motor according to the present invention;
[0066] FIG13 is a module diagram of a computer device according to the present invention. Modes for Carrying Out the Invention
[0067] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0068] Example 1
[0069] Referring to FIG. 1 to FIG. 11 , a dynamic protection method for a linear vibration motor is provided. The dynamic protection method includes the following steps:
[0070] Step S1: preset an initial gain coefficient, and calculate an original voltage signal according to the initial gain coefficient.
[0071] The initial gain coefficient is 1, which is used to calculate the initial driving voltage of the first frame. This step is performed only once. The original voltage signal can be a power input voltage value, a control voltage signal, etc.
[0072] Step S2: Process the original voltage signal of each frame to obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through a dynamic protection algorithm; wherein the driving voltage signal = the original voltage signal * the current gain coefficient.
[0073] Among them, the original voltage signal contains multiple frame signals, and each frame signal has a corresponding driving voltage waveform and gain coefficient. By processing each frame signal, the corresponding driving voltage signal is obtained according to each gain coefficient and through the dynamic protection algorithm.
[0074] Specifically, a current gain coefficient is generated based on the original voltage signal using a dynamic gain generation algorithm. The dynamic gain generation algorithm typically uses a gain coefficient to adjust the original voltage signal and generates the current gain coefficient based on the original voltage signal. A driving voltage signal is obtained based on the original voltage signal and the current gain coefficient; the driving voltage signal is the product of the original voltage signal and the current gain coefficient.
[0075] As shown in Figure 5, the dynamic protection algorithm generates a gain coefficient from the received acceleration signal and the original voltage signal through a dynamic gain generation algorithm, and combines the gain coefficient with the original voltage signal to obtain an updated voltage signal. The updated voltage signal is then output to the linear vibration motor to drive the linear vibration motor to work.
[0076] Step S3: Loading the driving voltage signal to the linear vibration motor to drive the linear vibration motor to operate.
[0077] Step S4: collecting the acceleration signal of the linear vibration motor, and analyzing whether the acceleration signal is abnormal according to a preset rule to determine the working state of the linear vibration motor.
[0078] For example, if there are 10 signal frames, and the first signal frame is determined to be abnormal in step S4, the first signal frame is adjusted in step S5, and the adjusted first signal frame is returned to step S2 to recalculate the voltage signal. If step S4 determines that the first signal frame is normal, the second signal frame is analyzed and judged, and the process ends when all the tenth signal frames are normal.
[0079] If yes, execute step S5.
[0080] If not, the current gain coefficient is determined to be the gain coefficient of the current signal frame, and step S6 is executed.
[0081] Step S6: Determine whether the current signal frame is the last signal frame;
[0082] If so, the process ends.
[0083] If not, the process returns to step S2 and starts calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
[0084] Among them, the abnormal operation judgment algorithm receives the acceleration signal and makes a judgment. If so, it reads the current gain coefficient S0 and updates the new gain coefficient. The new gain coefficient is S= S0 0.9, and refresh S0 = S. If not, read the current gain coefficient S0, do not refresh S0; and output the gain coefficient.
[0085] In this embodiment, in step S4, the judgment includes both a time-domain judgment method and a frequency-domain judgment method. The linear motor's acceleration time-domain waveforms and spectra under normal and abnormal operating conditions are collected. Significant differences in both the time-domain waveforms and spectra are found between normal and abnormal operating conditions. A related algorithm is designed to capture these differences, thereby automatically identifying whether the operating state is normal and determining the motor's operating output based on whether the operating state is normal.
[0086] In this embodiment, the time domain determination method includes the following steps:
[0087] Step S401: Statistically analyze the time domain waveform of the acceleration signal and obtain the absolute value of the positive peak value and the absolute value of the negative peak value;
[0088] Step S402: Calculate the difference between the absolute value of the positive peak and the absolute value of the negative peak;
[0089] Step S403: determine whether the difference is greater than a preset absolute value threshold;
[0090] If so, it is determined to be an abnormal state;
[0091] If not, it is determined to be in normal state.
[0092] Specifically, by performing statistical analysis on the time-domain waveform of the acceleration signal, it is found that under normal operating conditions, the positive and negative values of the waveform are relatively symmetrical around the same time, while under abnormal operating conditions, the positive and negative values of the waveform vary greatly. Therefore, by calculating the absolute difference between the positive and negative peak values and comparing it with a pre-set threshold, when it is greater than the threshold, it is determined to be an abnormal state, and when it is less than the threshold, it is determined to be a normal state. The threshold is obtained differently due to the different performance of different models of linear motors. By collecting and analyzing a large amount of sample data, a relatively reasonable threshold is given. The calculated difference is compared with the absolute value threshold, and the state is determined based on the comparison result. When the state is normal, the result is output.
[0093] In this embodiment, the time domain determination method includes the following steps:
[0094] Step S501: performing envelope extraction on the time domain waveform of the acceleration signal;
[0095] Step S502: Calculate the first-order difference value of the extracted envelope;
[0096] Step S503: Calculate the maximum absolute value of the first-order difference value;
[0097] Step S504: determine whether the maximum value is greater than a preset threshold;
[0098] If so, it is determined to be an abnormal state;
[0099] If not, it is determined to be in normal state.
[0100] Specifically, by extracting the envelope of the time-domain signal waveform, under normal operating conditions, the envelope exhibits gentle and relatively smooth changes, while under abnormal operating conditions, the envelope exhibits high-frequency and drastic changes. Therefore, by taking the first-order difference of the envelope and then the maximum absolute value of the difference, if this value is greater than a set threshold, it is determined to be an abnormal state; if it is less than the threshold, it is determined to be normal.
[0101] In this embodiment, the frequency domain determination method specifically includes the following steps:
[0102] Step S601: Perform a fast Fourier transform on the acceleration signal to obtain a spectrum of the acceleration signal. Fast Fourier transform (FFT) can quickly calculate the acceleration signal, obtain the spectrum of the acceleration signal based on the calculation, and obtain the state of the acceleration signal through the spectrum.
[0103] Step S602: Calculate the amplitude sum of the spectrum, and obtain a ratio based on the ratio of the amplitude sum to the maximum value of the spectrum;
[0104] Step S603: determining whether the ratio is greater than the preset ratio threshold;
[0105] If so, it is determined to be in normal state;
[0106] If not, it is determined to be an abnormal state.
[0107] Specifically, the acceleration signal is subjected to a fast Fourier transform to obtain its spectrum. Under normal working conditions, only a few discrete frequency points have values and there is no noise interference. Under abnormal working conditions, the spectrum has values at all frequency points. By calculating the sum of the spectrum amplitudes, if the value is greater than the set threshold, it is determined to be an abnormal state; if it is less than the threshold, it is determined to be a normal state.
[0108] Preferably, when any of the determination states in step S403, step S504 and step S603 is abnormal, an abnormal signal is output. When the determination states in step S403, step S504 and step S603 are all normal, no output is performed.
[0109] Step S5: Adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to step S2 based on the new gain coefficient; wherein the new gain coefficient = the current gain coefficient K, 0 <K<1。
[0110] In this embodiment, in step S5, the new gain coefficient = the current gain coefficient 0.9.
[0111] Compared with the related art, the dynamic protection method for a linear vibration motor of the present invention presets an initial gain coefficient and calculates an original voltage signal based on the initial gain coefficient; processes the original voltage signal of each frame to obtain the current gain coefficient of the current signal frame, and obtains a driving voltage signal through a dynamic protection algorithm; loads the driving voltage signal to the linear vibration motor to drive the linear vibration motor; collects the acceleration signal of the linear vibration motor, analyzes the acceleration signal according to a preset rule to determine whether it is abnormal, and determines the working state of the linear vibration motor; if so, adjusts the current gain coefficient of the current signal frame to a new gain coefficient, and returns to the step of obtaining the driving signal based on the new gain coefficient to process the current signal frame; if not, determines that the current gain coefficient is the gain coefficient of the current signal frame, and determines whether the current signal frame is the last signal frame; if so, terminates the process; if not, returns to the step of obtaining the driving signal and begins calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated. Thus, through the dynamic protection algorithm, the voltage parameters are automatically adjusted, the performance and reliability of the device are automatically improved, and the abnormal sound frequency is effectively reduced to extend the life of the device.
[0112] Example 2
[0113] Referring to FIG. 12 , an embodiment of the present invention provides a dynamic protection system 200 for a linear vibration motor. The dynamic protection system 200 includes:
[0114] A first obtaining module 21 is configured to preset an initial gain coefficient and calculate an original voltage signal according to the initial gain coefficient;
[0115] The second acquisition module 22 is used to process the original voltage signal of each frame, obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through the dynamic protection algorithm; wherein, the driving voltage signal = the original voltage signal the current gain coefficient;
[0116] A driving module 23, configured to apply the driving voltage signal to the linear vibration motor to drive the linear vibration motor to operate;
[0117] a first judgment module 24 for collecting an acceleration signal of the linear vibration motor and analyzing whether the acceleration signal is abnormal according to a preset rule to determine the working state of the linear vibration motor;
[0118] If yes, the adjustment module is executed; if not, the current gain coefficient is determined to be the gain coefficient of the current signal frame, and the second judgment module 26 is executed;
[0119] An adjustment module 25 is configured to adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to the second acquisition module 22 based on the new gain coefficient; wherein the new gain coefficient = the current gain coefficient K, 0 <K<1。
[0120] A second judging module 26 is configured to judge whether the current signal frame is the last signal frame;
[0121] If so, end the process;
[0122] If not, the process returns to the second obtaining module 22 and starts calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
[0123] Preferably, the new gain coefficient = the current gain coefficient 0.9.
[0124] In this embodiment, the initial gain coefficient of the first obtaining module 21 is 1, which is used to calculate the initial driving voltage of the first frame. This step is performed only once. The original voltage signal can be a power input voltage value, a control voltage signal, etc.
[0125] The second acquisition module 22 generates a current gain coefficient based on the original voltage signal using a dynamic gain generation algorithm. The dynamic gain generation algorithm typically uses a gain coefficient to adjust the original voltage signal and generates the current gain coefficient based on the original voltage signal. A driving voltage signal is obtained based on the original voltage signal and the current gain coefficient; the driving voltage signal is the product of the original voltage signal and the current gain coefficient.
[0126] The first judgment module 4 includes time-domain and frequency-domain judgment methods. It collects the linear motor's acceleration time-domain waveforms and spectra under normal and abnormal operating conditions. It finds significant differences between the normal and abnormal operating conditions in both time-domain waveforms and spectra. By designing algorithms to capture these differences, it automatically identifies whether the operating state is normal and determines the motor's output based on whether the operating state is normal.
[0127] Specifically, the time domain judgment method performs statistical analysis on the time domain waveform of the acceleration signal. Under normal working conditions, the positive and negative values of the waveform are relatively symmetrical around the same time, while under abnormal working conditions, the positive and negative values of the waveform differ greatly. Therefore, by calculating the difference between the absolute values of the positive and negative peaks and comparing it with a pre-set threshold, when it is greater than the threshold, it is determined to be an abnormal state, and when it is less than the threshold, it is determined to be a normal state. The threshold is obtained differently due to the different performance of different models of linear motors. By collecting and analyzing a large amount of sample data, a relatively reasonable threshold is given. The calculated difference is compared with the absolute value threshold, and the state is determined based on the comparison result. When the state is normal, the result is output.
[0128] Specifically, the time-domain judgment method extracts the envelope of the time-domain signal waveform. Under normal operating conditions, the envelope exhibits gentle and relatively smooth changes, while under abnormal operating conditions, the envelope exhibits high-frequency and drastic changes. Therefore, the first-order difference of the envelope is calculated, and then the maximum absolute value of the difference is determined. If this value is greater than a set threshold, the state is determined to be abnormal; if it is less than the threshold, the state is determined to be normal.
[0129] Specifically, the frequency domain judgment method obtains the spectrum of the acceleration signal through fast Fourier transform. Under normal working conditions, only a few discrete frequency points have values and there is no noise interference. Under abnormal working conditions, the spectrum has values at all frequency points. By calculating the sum of the spectrum amplitudes, if the value is greater than the set threshold, it is judged as an abnormal state, and if it is less than the threshold, it is judged as a normal state.
[0130] In this embodiment, the technical effects and principles achieved by the dynamic protection system for the linear vibration motor are the same as the technical effects and principles achieved by the dynamic protection method for the linear vibration motor provided in the first embodiment of the present invention, and are not repeated here.
[0131] Example 3
[0132] 1 to 11 and 13 , an embodiment of the present invention provides a computer device 300, comprising a memory 31, a processor 32, and a dynamic protection program for a linear vibration motor stored in the memory 31 and executable on the processor 32. When the processor 32 executes the dynamic protection program for the linear vibration motor, the steps of the dynamic protection method for the linear vibration motor described above are implemented.
[0133] Step S1, presetting an initial gain coefficient, and calculating an original voltage signal according to the initial gain coefficient;
[0134] Step S2: Process the original voltage signal of each frame to obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through the dynamic protection algorithm; wherein, the driving voltage signal = the original voltage signal the current gain coefficient;
[0135] Step S3, applying the driving voltage signal to the linear vibration motor to drive the linear vibration motor to operate;
[0136] Step S4: collecting the acceleration signal of the linear vibration motor, and analyzing whether the acceleration signal is abnormal according to a preset rule to determine the working state of the linear vibration motor;
[0137] If yes, proceed to step S5;
[0138] If not, determining that the current gain coefficient is the gain coefficient of the current signal frame, and executing step S6;
[0139] Step S5: Adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to step S2 based on the new gain coefficient; wherein the new gain coefficient = the current gain coefficient K, 0 <K<1;
[0140] Step S6: Determine whether the current signal frame is the last signal frame;
[0141] If so, end the process;
[0142] If not, the process returns to step S2 and starts calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
[0143] Memory 31 can be used to store software programs and various data. Memory 31 primarily includes a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (such as sound playback or image playback). The data storage area can store data generated based on the phone's usage (such as audio data and a phone book). Memory 31 can also include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state memory device.
[0144] Processor 32 is the terminal's control center, connecting all components of the terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 31 and accessing data stored in memory 31, it performs various terminal functions and processes data, thereby providing overall terminal monitoring. Processor 32 may include one or more processing units; preferably, processor 32 integrates an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 32.
[0145] It should be noted that when the computer device 300 is in use, it can achieve the technical effects achieved by the above-mentioned method of creating tactile effects in real time through gestures. Please refer to the description of the above-mentioned method of creating tactile effects in real time through gestures, which will not be repeated here.
[0146] Example 4
[0147] An embodiment of the present invention provides a computer-readable storage medium storing a dynamic protection program for a linear vibration motor. When the dynamic protection program for a linear vibration motor is executed by a processor, the steps of the dynamic protection method for a linear vibration motor as described above are implemented.
[0148] The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0149] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0150] Through the above description of the embodiments, those skilled in the art will clearly understand that the methods of the above embodiments can be implemented using software plus the necessary general-purpose hardware platform. Of course, hardware can also be used, but in many cases the former is the more preferred implementation method. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk) and includes a number of instructions for enabling a terminal (such as a mobile phone, computer, server, air conditioner, or network device) to execute the methods described in the various embodiments of the present invention.
[0151] The above description is only an embodiment of the present invention. It should be pointed out that those skilled in the art can make improvements without departing from the creative concept of the present invention, but these improvements all fall within the scope of protection of the present invention.
Claims
1. A dynamic protection method for a linear vibration motor, characterized in that: The dynamic protection method comprises the following steps: Step S1, presetting an initial gain coefficient, and calculating an original voltage signal according to the initial gain coefficient; Step S2, processing the original voltage signal of each frame, obtaining the current gain coefficient of the current signal frame, and obtaining the driving voltage signal through the dynamic protection algorithm; wherein the driving voltage signal = the original voltage signal The current gain coefficient; Step S3, loading the driving voltage signal to the linear vibration motor to drive the linear vibration motor to work; Step S4, collecting the acceleration signal of the linear vibration motor, and analyzing whether the acceleration signal is abnormal according to a preset rule to determine the working state of the linear vibration motor; If yes, execute step S5; If not, determining that the current gain coefficient is the gain coefficient of the current signal frame, and executing step S6; Step S5, adjusting the current gain coefficient of the current signal frame to a new gain coefficient, and returning the current signal frame to the process of step S2 based on the new gain coefficient; wherein the new gain coefficient=the current gain coefficient ; Step S6, determining whether the current signal frame is the last signal frame; If yes, then end the process; If not, the process returns to step S2 to start calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
2. The dynamic protection method for a linear vibration motor according to claim 1, characterized in that: In the step S4, the preset rules include a time domain judgment method and a frequency domain judgment method.
3. The dynamic protection method for a linear vibration motor according to claim 2, characterized in that: The time domain judgment method comprises the following steps: Step S401, performing statistical analysis on the time domain waveform of the acceleration signal, and obtaining the absolute value of the positive peak value and the absolute value of the negative peak value; Step S402, calculating the difference between the absolute value of the positive peak value and the absolute value of the negative peak value; Step S403, determining whether the difference is greater than a preset absolute value threshold; If so, it is determined to be an abnormal state; If not, it is judged as a normal state.
4. The dynamic protection method for a linear vibration motor according to claim 2, characterized in that: The time domain judgment method comprises the following steps: Step S501, performing envelope extraction on the time domain waveform of the acceleration signal; Step S502, calculating the first-order difference value of the extracted envelope; Step S503, calculating the maximum absolute value of the first-order difference value; Step S504, determining whether the maximum value is greater than a preset threshold; If so, it is determined to be an abnormal state; If not, it is judged as a normal state.
5. The dynamic protection method for a linear vibration motor according to claim 2, characterized in that: The frequency domain judgment method specifically comprises the following steps: Step S601, performing fast Fourier transform on the acceleration signal to obtain a frequency spectrum of the acceleration signal; Step S602, calculating the amplitude sum of the spectrum, and obtaining a ratio according to the ratio of the amplitude sum to the maximum value of the spectrum; Step S603, determining whether the ratio is greater than the preset ratio threshold; If yes, it is judged as normal state; If not, it is determined to be an abnormal state.
6. The dynamic protection method for a linear vibration motor according to claim 1, characterized in that: In step S5, the new gain coefficient = the current gain coefficient 0.
9.
7. A dynamic protection system for a linear vibration motor, characterized in that: The dynamic protection system comprises: A first acquisition module, used for presetting an initial gain coefficient and calculating an original voltage signal according to the initial gain coefficient; The second acquisition module is used to process the original voltage signal of each frame, obtain the current gain coefficient of the current signal frame, and obtain the driving voltage signal through the dynamic protection algorithm; wherein the driving voltage signal = the original voltage signal The current gain coefficient; A driving module, used for loading the driving voltage signal to the linear vibration motor to drive the linear vibration motor to work; A first judgment module, used for collecting the acceleration signal of the linear vibration motor, analyzing whether the acceleration signal is abnormal according to a preset rule, so as to judge the working state of the linear vibration motor; If yes, the adjustment module is executed; If not, determining that the current gain coefficient is the gain coefficient of the current signal frame, and executing the second judgment module; An adjustment module, used to adjust the current gain coefficient of the current signal frame to a new gain coefficient, and return the current signal frame to the second acquisition module based on the new gain coefficient; wherein the new gain coefficient=the current gain coefficient ; A second judging module, used to judge whether the current signal frame is the last signal frame; If yes, then end the process; If not, the method returns to the second obtaining module to start calculating the gain coefficient of the next signal frame until the gain coefficients of all signal frames are calculated.
8. A computer device, characterized in that: The computer device includes a memory, a processor, and a dynamic protection program for a linear vibration motor stored in the memory and executable on the processor. When the processor executes the dynamic protection program for the linear vibration motor, the steps in the dynamic protection method for a linear vibration motor 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 dynamic protection program for a linear vibration motor, and when the dynamic protection program for a linear vibration motor is executed by a processor, the steps in the dynamic protection method for a linear vibration motor according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Real-time monitoring system and method for monitoring vibrating state of linear motor oscillator
CN106230340A
Vibration control method of linear motor and mobile terminal
CN110112984A
Linear motor overtravel control method and device, computer equipment and storage medium
CN112491323A
Driving voltage generation method of linear motor and related device
CN113965132A
Dynamic protection method and system of linear vibration motor and related equipment
CN116845826A