Driving vibration method and device, intelligent device and storage medium

By acquiring the actual resonant center frequency of the vibrating components in the smart device, adjusting the preset waveform period and amplitude, and generating the target driving waveform, the problem of poor vibration effect caused by inconsistent frequencies is solved, and a better vibration effect is achieved.

CN121501129BActive Publication Date: 2026-07-21GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GOERTEK INC
Filing Date
2025-10-30
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing smart devices suffer from poor vibration performance because the actual resonant center frequency of the motor does not match the preset resonant center frequency due to manufacturing tolerances.

Method used

By obtaining the actual resonant center frequency of the vibrating component, determining the stretch ratio and preset adjustment coefficient, adjusting the preset waveform period and amplitude, and generating the target driving waveform to drive the vibrating component.

Benefits of technology

The vibration effect is improved, making the output target drive waveform more consistent with the actual resonant center frequency of the vibrating component, thus enhancing the vibration effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121501129B_ABST
    Figure CN121501129B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of vibration feedback, and discloses a driving vibration method and device, an intelligent device and a storage medium. The method is applied to an intelligent device provided with a vibration component. The method comprises the following steps: acquiring an actual resonance center frequency of the vibration component, and determining a stretching ratio according to a preset resonance center frequency and the actual resonance center frequency; determining a preset waveform period and a preset waveform amplitude corresponding to the preset resonance center frequency, and determining a preset adjustment coefficient corresponding to the actual resonance center frequency; adjusting the preset waveform period based on the stretching ratio, and adjusting the preset waveform amplitude based on the preset adjustment coefficient; generating a target driving waveform according to the adjusted preset waveform period and the adjusted preset waveform amplitude, and driving the vibration component to vibrate according to the target driving waveform. Compared with the prior art, the target driving waveform output by the application can be more consistent with the actual resonance center frequency of the vibration component, and the vibration effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vibration feedback technology, and in particular to a method, apparatus, intelligent device, and storage medium for driving vibration. Background Technology

[0002] Currently, smart devices such as mobile phones, game consoles, smart glasses, and virtual reality (VR) devices generally include motors to provide haptic feedback. To drive the motor vibration, a preset resonant center frequency (i.e., the motor's standard optimal vibration frequency) can be built into the smart device. When vibration is required, a drive waveform is generated based on this preset resonant center frequency and sent to the motor to achieve motor vibration.

[0003] However, due to manufacturing tolerances, the actual suitable resonant center frequency of a batch of motors of the same model may differ, meaning they are not all at the preset resonant center frequency. If the intelligent device continues to generate the drive waveform according to the preset resonant center frequency, the inconsistent suitable frequencies may result in poor vibration performance. Summary of the Invention

[0004] The main objective of this application is to provide a method, apparatus, smart device, and storage medium for driving vibration, aiming to solve the technical problem that the preset resonant center frequency of existing smart devices for driving motors may not be the actual resonant center frequency that the motor is truly suitable for, resulting in poor vibration performance.

[0005] To achieve the above objectives, this application provides a method for driving vibration, the method being applied to an intelligent device equipped with a vibration component, the method comprising: Obtain the actual resonant center frequency of the vibrating component, and determine the stretch ratio based on the preset resonant center frequency and the actual resonant center frequency; Determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and determine the preset adjustment coefficient corresponding to the actual resonance center frequency; The preset waveform period is adjusted based on the stretch ratio, and the preset waveform amplitude is adjusted based on the preset adjustment coefficient; A target driving waveform is generated based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and the vibration component is driven to vibrate according to the target driving waveform.

[0006] In one embodiment, before the step of obtaining the actual resonant center frequency of the vibrating component, the method further includes: Determine the test frequency range of the vibrating component, and determine the preset waveform amplitude corresponding to the preset resonance center frequency; The vibration component is driven according to the test frequency range, and the vibration amplitude of the vibration component is collected. A preset coefficient mapping curve is constructed based on the test frequency range, the preset waveform amplitude, and the vibration amplitude. The step of determining the preset adjustment coefficient corresponding to the actual resonant center frequency includes: The preset adjustment coefficient corresponding to the actual resonance center frequency is determined based on the preset coefficient mapping curve.

[0007] In one embodiment, the step of obtaining the actual resonant center frequency of the vibrating component includes: When there is a need for frequency detection, the vibration component is scanned by a preset frequency scanning signal to obtain the current current and current voltage of the vibration component; The actual resonant center frequency of the vibrating component is determined based on the current current and the current voltage.

[0008] In one embodiment, the step of adjusting the preset waveform period based on the stretch ratio includes: The corresponding original time axis is determined based on the preset waveform period, and each original data point on the original time axis is determined. A target time axis is created based on the stretch ratio and the preset waveform period, and data points are marked on the target time axis to obtain target data points; The target data points are interpolated / sampled using the original data points. The adjusted preset waveform period is obtained based on the first operation result.

[0009] In one embodiment, the step of adjusting the preset waveform period based on the stretch ratio includes: A preset driving waveform is obtained according to the preset waveform period, and the preset driving waveform is frequency domain transformed to obtain the frequency domain transformation result. The frequency domain transformation result is stretched / compressed using the stretching ratio. The obtained second operation result is converted in the time domain to obtain the adjusted preset waveform period.

[0010] In one embodiment, the step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Obtain the ambient temperature of the vibrating component; The temperature adjustment coefficient corresponding to the ambient temperature is determined according to the preset temperature mapping curve. The preset waveform amplitude is adjusted based on the preset adjustment coefficient to obtain an initial adjustment result; The initial adjustment result is adjusted according to the temperature adjustment coefficient to obtain the adjusted preset waveform amplitude.

[0011] In one embodiment, the step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Obtain the current aging level of the vibrating component; The aging compensation coefficient corresponding to the current aging level is determined according to the preset aging mapping curve. The preset waveform amplitude is adjusted based on the preset adjustment coefficient to obtain an initial adjustment result; The initial adjustment result is adjusted according to the aging compensation coefficient to obtain the adjusted preset waveform amplitude.

[0012] Furthermore, to achieve the above objectives, embodiments of this application also propose a vibration driving device, the device comprising: The frequency acquisition module is used to acquire the actual resonance center frequency of the vibrating component and determine the stretching ratio based on the preset resonance center frequency and the actual resonance center frequency. The coefficient determination module is used to determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and to determine the preset adjustment coefficient corresponding to the actual resonance center frequency. The parameter adjustment module is used to adjust the preset waveform period based on the stretch ratio and to adjust the preset waveform amplitude based on the preset adjustment coefficient. The vibration drive module is used to generate a target drive waveform based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and drive the vibration component to vibrate according to the target drive waveform.

[0013] Furthermore, to achieve the above objectives, this application also proposes an intelligent device, which includes: a vibration component, a memory, a processor, and a vibration driving program stored in the memory and executable on the processor. When the vibration driving program is executed by the processor, it implements the steps of the vibration driving method described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium storing a vibration driving program, which, when executed by a processor, implements the steps of the vibration driving method described above.

[0015] This application provides a method, apparatus, smart device, and storage medium for driving vibration. The method is applied to a smart device equipped with a vibrating component. The method includes: acquiring the actual resonant center frequency of the vibrating component, and determining a stretching ratio based on a preset resonant center frequency and the actual resonant center frequency; determining a preset waveform period and a preset waveform amplitude corresponding to the preset resonant center frequency, and determining a preset adjustment coefficient corresponding to the actual resonant center frequency; adjusting the preset waveform period based on the stretching ratio, and adjusting the preset waveform amplitude based on the preset adjustment coefficient; generating a target driving waveform based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and driving the vibrating component to vibrate according to the target driving waveform.

[0016] This application first determines the stretching ratio based on the preset resonant center frequency and the actual resonant center frequency of the vibrating component. Then, it obtains the preset adjustment coefficient corresponding to the actual resonant center frequency. The preset waveform period of the preset resonant center frequency is adjusted using the stretching ratio, and the preset waveform amplitude of the preset resonant center frequency is adjusted using the adjustment coefficient. Finally, a target driving waveform is generated to drive the vibrating component according to the adjusted preset waveform period and amplitude. Because this application allows for period adjustment based on the determined stretching ratio and amplitude adjustment based on the preset adjustment coefficient to obtain the target driving waveform, compared to existing methods that use a preset resonant center frequency for driving, this application adjusts the preset resonant center frequency based on the actual resonant center frequency of the vibrating component, thereby making the output target driving waveform more consistent with the actual resonant center frequency of the vibrating component and improving the vibration effect. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the intelligent device structure of the hardware operating environment involved in the embodiments of this application; Figure 2 This is a flowchart illustrating the first embodiment of the vibration-driving method of this application; Figure 3 This is an overall flowchart of the first embodiment of the vibration driving method of this application; Figure 4This is a flowchart illustrating the second embodiment of the vibration-driving method of this application; Figure 5 This is a flowchart illustrating the third embodiment of the vibration-driving method of this application; Figure 6 This is a structural block diagram of the first embodiment of the vibration driving device of this application.

[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0022] Reference Figure 1 , Figure 1 This is a schematic diagram of the intelligent device structure of the hardware operating environment involved in the embodiments of this application.

[0023] like Figure 1 As shown, the smart 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. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may be connected to a display screen; optionally, the user interface 1003 may include a standard wired interface or a wireless interface. In this application, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0024] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on smart devices and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0025] like Figure 1 As shown, the memory 1005, which is identified as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a vibration driving program.

[0026] exist Figure 1 In the smart device shown, the network interface 1004 is mainly used to connect to the backend server and communicate with the backend server; the user interface 1003 is mainly used to connect to the user device; the smart device calls the driving vibration program stored in the memory 1005 through the processor 1001 and executes the steps of the driving vibration method provided in the embodiments of this application.

[0027] It should be noted that current smart devices such as mobile phones, game consoles, smart glasses, or virtual reality (VR) devices generally include motors to provide haptic feedback. To drive the motor vibration, a preset resonant center frequency (i.e., the motor's standard optimal vibration frequency) can be built into the smart device. When vibration is required, a drive waveform is generated based on this preset resonant center frequency and sent to the motor to achieve motor vibration.

[0028] However, due to manufacturing tolerances, the actual suitable resonant center frequency of a batch of motors of the same model may differ, meaning they are not all at the preset resonant center frequency. If the intelligent device continues to generate the drive waveform according to the preset resonant center frequency, the inconsistent suitable frequencies may result in poor vibration performance.

[0029] Therefore, to address the aforementioned shortcomings, this embodiment first determines the stretching ratio based on the preset resonant center frequency and the actual resonant center frequency of the vibrating component. Then, it obtains the preset adjustment coefficient corresponding to the actual resonant center frequency. The stretching ratio is used to adjust the preset waveform period of the preset resonant center frequency, and the adjustment coefficient is used to adjust the preset waveform amplitude of the preset resonant center frequency. Finally, a target driving waveform is generated to drive the vibrating component according to the adjusted preset waveform period and amplitude. Because this embodiment allows for period adjustment based on the determined stretching ratio and amplitude adjustment based on the preset adjustment coefficient to obtain the target driving waveform, compared to existing methods that use a preset resonant center frequency for driving, this embodiment adjusts the preset resonant center frequency based on the actual resonant center frequency of the vibrating component, thereby making the output target driving waveform more consistent with the actual resonant center frequency of the vibrating component and improving the vibration effect.

[0030] For ease of understanding, the following is combined with Figures 2 to 6 The vibration driving method provided in the embodiments of this application will be described in detail.

[0031] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the vibration-driving method of this application. The first embodiment of the vibration-driving method of this application is presented as follows: Figure 2 As shown, in this embodiment, the specific method includes: Step S10: Obtain the actual resonant center frequency of the vibrating component, and determine the stretching ratio based on the preset resonant center frequency and the actual resonant center frequency.

[0032] It should be noted that the method in this embodiment can be applied to the aforementioned smart device. The smart device can be any device that has data processing, program execution, and vibration driving capabilities, such as mobile phones, game consoles, smart glasses, or VR devices that have vibration functions.

[0033] It should also be noted that, in order to enable the above-mentioned smart device to have a vibration function, the smart device in this embodiment may be provided with a vibration component. The vibration component can be any component that realizes vibration, such as a motor, specifically a linear motor or a rotor motor, etc. This embodiment does not limit this.

[0034] It is understood that the aforementioned actual resonance center frequency can be the optimal resonance frequency of the vibrating component under real-world conditions, which can be represented by f0 and can be obtained through real-time acquisition. The aforementioned preset resonance center frequency can be the theoretically optimal frequency value preset in the aforementioned smart device, which can be represented by fc. It can be obtained from the nominal resonance frequency provided by the motor manufacturer for this model of motor, or from a standard frequency selected by the smart device manufacturer at the time of manufacture, etc. This embodiment does not impose any limitations on this.

[0035] It is also understood that the aforementioned stretching ratio can be a scaling factor used to adjust the time scale of the driving waveform, and the stretching ratio can specifically be obtained through fc / f0. In the traditional method, the intelligent device can generate the corresponding driving waveform to drive the motor vibration according to the aforementioned preset resonant center frequency. For ease of understanding, refer to... Figure 3 , Figure 3 This is an overall flowchart of the first embodiment of the vibration-driven method of this application, as shown below. Figure 3 As shown, in this embodiment, the aforementioned intelligent device can first obtain the actual resonant center frequency corresponding to the vibrating component (i.e., Figure 3 The actual f0 is calculated, and the pre-stored preset resonant center frequency (i.e., f0) is obtained. Figure 3 The original vibration waveform (preset reference waveform) is input, and then the stretching ratio (i.e., the stretching ratio) is determined based on the preset resonance center frequency and the actual resonance center frequency. Figure 3 The frequency adjustment ratio is calculated (f0 / fc ratio is calculated).

[0036] Step S20: Determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and determine the preset adjustment coefficient corresponding to the actual resonance center frequency.

[0037] It should be understood that the aforementioned preset waveform period can be the time length corresponding to the driving waveform at the preset resonant center frequency, which can be represented by T. For example, if fc = 170Hz, then T = 1 / 170s. The aforementioned preset waveform amplitude can be the amplitude corresponding to the driving waveform at the preset resonant center frequency. Since the preset waveform amplitude can determine the vibration amplitude of the vibrating component, the aforementioned preset waveform amplitude in this embodiment can be preset. Specifically, it can be an amplitude determined during the development stage through simulation and testing for the preset resonant center frequency that produces the best tactile effect without exceeding the safe displacement limit of the vibrating component.

[0038] It should also be understood that the aforementioned preset adjustment coefficient can be a scaling factor used to adjust the amplitude of the driving waveform. This embodiment can set corresponding preset adjustment coefficients for different actual resonant center frequencies. In actual use, the aforementioned intelligent device can determine the preset waveform period and preset waveform amplitude corresponding to the preset resonant center frequency, both of which can be obtained through pre-storage, and simultaneously obtain the preset adjustment coefficient corresponding to that actual resonant center frequency (i.e., Figure 3 The coefficients are obtained by querying the EQ curve based on the calculated f0.

[0039] Step S30: Adjust the preset waveform period based on the stretch ratio, and adjust the preset waveform amplitude based on the preset adjustment coefficient.

[0040] It should be noted that after obtaining the stretch ratio, the preset waveform period can be adjusted based on the stretch ratio (i.e., Figure 3 (In the waveform frequency adjustment process), for example, fc=170Hz, f0=160Hz, the preset waveform period can be 1 / 170, then the stretching ratio can be 170 / 160, and then the preset waveform period is adjusted to obtain the adjusted preset waveform period of 170 / 160×1 / 170, which can be understood as needing to increase the period to reduce the frequency.

[0041] It should also be noted that, considering the change in amplitude of the drive waveform after adjusting the preset waveform period (e.g., a stretch ratio of 170 / 160), which is equivalent to a lower frequency, and that low frequencies easily reach the upper limit of the motor's vibration displacement, to prevent the motor displacement from exceeding the limit, it is also necessary to utilize the motor's supported displacement to the greatest extent possible and maximize the motor's vibration effect. In this embodiment, after obtaining the aforementioned preset adjustment coefficient, the preset waveform amplitude can be adjusted based on the preset adjustment coefficient. Specifically, this can be achieved by multiplying the preset adjustment coefficient by the preset waveform amplitude after period adjustment using the stretch ratio, thereby obtaining the adjusted preset waveform amplitude (i.e., ...). Figure 3(Time-domain amplitude multiplication), for example, if the preset waveform amplitude is 3V, after modulating the preset waveform period by the stretching ratio, the amplitude of the obtained waveform may change from 3V to 2.4V. Then, after obtaining the corresponding preset adjustment coefficient of 0.8 based on 160Hz, the adjusted preset waveform amplitude can be 2.4V×0.8=1.92V.

[0042] Step S40: Generate a target driving waveform based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and drive the vibration component to vibrate according to the target driving waveform.

[0043] After obtaining the adjusted preset waveform period and the adjusted preset waveform amplitude, a driving waveform can be generated according to the preset waveform period (i.e., 170 / 160 × 1 / 170 = 1 / 160s) and the adjusted preset waveform amplitude (i.e., 1.92V), which serves as the aforementioned target driving waveform. Finally, this target driving waveform is applied to the vibrating component to drive vibration (i.e., Figure 3 (A medium-power amplifier drives the output to both ends of the motor). Therefore, compared to existing methods that use a preset resonant center frequency for driving, this embodiment can adjust the preset resonant center frequency according to the actual resonant center frequency of the vibrating component, making the output target drive waveform more consistent with the actual resonant center frequency of the vibrating component, thus improving the vibration effect. Furthermore, since this embodiment can also adjust the preset waveform amplitude through a preset adjustment coefficient, it can effectively utilize the movement range supported by the vibrating component to a greater extent while adjusting the frequency, thereby maximizing the use of the motor's vibration effect.

[0044] Furthermore, in order to obtain the actual resonant center frequency of the aforementioned vibrating component, in this embodiment, the step of obtaining the actual resonant center frequency of the vibrating component includes: Step S11: When there is a frequency detection requirement, the vibration component is scanned by a preset frequency scanning signal to obtain the current current and current voltage of the vibration component.

[0045] It should be noted that the aforementioned frequency detection requirement may be a need to obtain the actual resonant center frequency of the vibrating component, such as when the device is powered on. This embodiment does not limit this. In this embodiment, a self-test can generally be performed each time the smart device is powered on. During this self-test, it can be determined that there is a frequency detection requirement, and then the subsequent frequency detection process can be performed.

[0046] It should also be noted that the aforementioned preset frequency scanning signal can be a detection signal whose frequency changes continuously within a specific range. The frequency range of the aforementioned preset frequency scanning signal can cover the possible resonant frequency range of the vibrating component to be detected, for example, it can be 150Hz to 190Hz, etc., and this embodiment does not limit it in this way.

[0047] In practical use, when the smart device is powered on, it can output the preset frequency scanning signal (i.e., Figure 3 The motor frequency detection module sends a test signal as a drive signal to the vibration component, which then starts working. The current and voltage across the vibration component are then collected and used as the current I(f) and current voltage V(f), respectively. Figure 3 (Voltage / current feedback is collected in the middle).

[0048] Step S12: Determine the actual resonant center frequency of the vibrating component based on the current current and the current voltage.

[0049] Understandably, a vibrating component exhibits specific electrical characteristics at its mechanical resonant frequency. Therefore, in this embodiment, after obtaining the current current I(f) and current voltage V(f) at each frequency point f in the preset frequency scanning signal, the impedance Z(f) = V(f) / I(f) of the vibrating component can be calculated according to Ohm's law, thus obtaining an "impedance-frequency" curve. Then, the physical characteristics of the vibrating component determine that the impedance Z(f) reaches a minimum value at its mechanical resonant frequency f0. Therefore, the global minimum value of Z(f) can be determined to locate the point of lowest impedance, and the frequency corresponding to this point of lowest impedance is taken as the actual resonant center frequency f0.

[0050] This embodiment first determines the stretching ratio based on the preset resonant center frequency and the actual resonant center frequency of the vibrating component. Then, it obtains the preset adjustment coefficient corresponding to the actual resonant center frequency. The preset waveform period of the preset resonant center frequency is adjusted using the stretching ratio, and the preset waveform amplitude of the preset resonant center frequency is adjusted using the adjustment coefficient. Finally, a target driving waveform is generated to drive the vibrating component according to the adjusted preset waveform period and amplitude. Because this embodiment can adjust the period based on the determined stretching ratio and adjust the amplitude according to the preset adjustment coefficient to obtain the target driving waveform for driving, compared to the existing method of driving using a preset resonant center frequency, this embodiment can adjust the preset resonant center frequency based on the actual resonant center frequency of the vibrating component, thereby making the output target driving waveform more consistent with the actual resonant center frequency of the vibrating component and improving the vibration effect.

[0051] Reference Figure 4 , Figure 4This is a flowchart illustrating the second embodiment of the vibration driving method of this application. Based on the first embodiment described above, a second embodiment of the vibration driving method of this application is proposed.

[0052] In order to accurately determine the corresponding preset adjustment coefficient based on the actual resonant center frequency, such as Figure 4 As shown, in this embodiment, before the step of obtaining the actual resonant center frequency of the vibrating component, the method further includes: Step S01: Determine the test frequency range of the vibration component and determine the preset waveform amplitude corresponding to the preset resonance center frequency; Step S02: Drive the vibration component according to the test frequency range and collect the vibration amplitude of the vibration component.

[0053] It should be noted that the aforementioned test frequency range can be the frequency scanning range for testing the vibrating component. In this embodiment, the aforementioned test frequency range can be determined according to the model and characteristics of the vibrating component. This test frequency range can cover all possible operating frequencies of the vibrating component and the area near its resonance point. For example, for a motor nominally rated at 170Hz, the test frequency range can be from 150Hz to 190Hz.

[0054] This embodiment allows for pre-simulation testing of the vibration components used in the smart device before shipment. Specifically, it can pre-determine the test frequency range of the vibration component and determine the preset waveform amplitude of the drive signal generated at a preset resonant center frequency. Then, drive signals can be generated sequentially from smallest to largest within the test frequency range to drive the vibration component, and the vibration amplitude of the vibration component at this time can be collected, thereby obtaining the vibration amplitude corresponding to each test point within the test frequency range.

[0055] It should be emphasized that, in order to obtain the vibration amplitude of the vibrating component, this embodiment can use a displacement sensor placed near the vibrating component to detect the movement of the vibrating component in real time, thereby obtaining the aforementioned vibration amplitude. Of course, other methods can also be used, and this embodiment does not limit them.

[0056] Step S03: Based on the test frequency range, the preset waveform amplitude, and the vibration amplitude, construct a preset coefficient mapping curve.

[0057] After obtaining the vibration amplitude of each test point within the test frequency range, each vibration amplitude can be divided by the preset waveform amplitude mentioned above. The resulting value can be used as the preset adjustment coefficient corresponding to the frequency of that test point. Then, the preset adjustment coefficients corresponding to all test points are connected, or a function fitting is performed, so as to obtain the preset coefficient mapping curve mentioned above.

[0058] The step of determining the preset adjustment coefficient corresponding to the actual resonant center frequency includes: Step S21: Determine the preset adjustment coefficient corresponding to the actual resonance center frequency according to the preset coefficient mapping curve.

[0059] Furthermore, when a preset adjustment coefficient is needed, the preset adjustment coefficient corresponding to the actual resonant center frequency is obtained according to the preset coefficient mapping curve (i.e., Figure 3 The coefficients are obtained by querying the EQ curve based on the calculated f0.

[0060] It should also be emphasized that the preset adjustment coefficients mentioned above may differ between the measurement and the actual use. Therefore, in this embodiment, the smart device can also support users or developers to adjust the preset adjustment coefficients in real time, thereby achieving flexible adjustment of the vibration amplitude. This can be achieved by setting a parameter configuration interface on the smart device, or by supporting direct adjustment via smart device buttons. This embodiment does not limit this.

[0061] Furthermore, in order to adjust the preset waveform period, in this embodiment, the step of adjusting the preset waveform period based on the stretching ratio includes: Step S31: Determine the corresponding original time axis based on the preset waveform period, and determine each original data point on the original time axis.

[0062] It should be noted that the aforementioned original time axis can be an axis formed by uniformly distributed time points corresponding to a preset waveform period. Several time points can exist on the original time axis. For example, for a 170Hz waveform, the time points on the original time axis could be 0, 1 / 170, 2 / 170, 3 / 170, ... etc. This embodiment does not impose any limitations on this. After determining each time point, the waveform amplitude corresponding to each time point can be obtained. Then, each time point and its corresponding waveform amplitude can be used as the aforementioned original data points. For example, there can be four original data points, namely 0, 1 / 170, 2 / 170, and 3 / 170 seconds, with corresponding waveform amplitudes of 0, -1, 0, and +1.

[0063] Step S32: Create a target time axis based on the stretch ratio and the preset waveform period, and mark the target time axis with data points to obtain target data points.

[0064] It should also be noted that the aforementioned target time axis can be an axis formed by uniformly distributed time points corresponding to the adjusted preset waveform period obtained by adjusting the stretch ratio. The aforementioned target data points can be various time points on the target time axis. Continuing with the above example, if the stretch ratio is 170 / 160, then the time points on the aforementioned target time axis can be 0, 1 / 160, 2 / 160, 3 / 160, ... etc.

[0065] Step S33: Perform interpolation / sampling operations on the target data points using the original data points; Step S34: Obtain the adjusted preset waveform period based on the obtained first operation result. It is understood that the interpolation operation described above in this embodiment can be an operation to make the target data points more sparse than the original data points in time when it is necessary to reduce the frequency (stretch the waveform). It can be linear interpolation or spline interpolation, and the specific interpolation operation can be selected according to the actual situation. That is, when the preset resonant center frequency is higher than the actual resonant center frequency, it is necessary to reduce the preset resonant center frequency, and thus an interpolation operation can be used.

[0066] For linear interpolation, the two nearest original data points before and after the new time point can be connected by a straight line. The waveform amplitude can then be calculated based on the position of the new time point on the line. For example, for 1 / 160, 1 / 170 and 2 / 170 can be used as the nearest original data points. Their waveform amplitudes can then be connected, and the waveform amplitude corresponding to 1 / 160 can be calculated based on the straight line. When adjusting the amplitude later, the preset adjustment coefficient can be multiplied by this waveform amplitude.

[0067] For spline interpolation, multiple nearby original data points can be used to fit a smooth curve, and the amplitude at a new time point can be read from the curve. For example, for the aforementioned 1 / 160, multiple original data points such as 0, 1 / 170, and 2 / 170 can be used for fitting, thereby obtaining the waveform amplitude corresponding to 1 / 160 based on the fitting result. Then, when adjusting the amplitude later, the preset adjustment coefficient can be multiplied by this waveform amplitude.

[0068] It is also understandable that the above sampling operation can be an operation that increases the target data point in time compared to the original data point when it is necessary to increase the frequency (compress the waveform). That is, when the preset resonant center frequency is lower than the actual resonant center frequency, it is necessary to increase the preset resonant center frequency, and thus a sampling operation can be used. Similarly, the two nearest original data points before and after the new time point can be connected by a straight line, and then the waveform amplitude can be calculated based on the position of the new time point on the straight line. Therefore, when adjusting the amplitude later, the preset adjustment coefficient can be multiplied by the waveform amplitude (i.e., ...). Figure 3(Interpolation / sampling in the mid-time domain) will not be elaborated upon in this embodiment.

[0069] After interpolation or abstraction, the obtained result can be used as the result of the first operation, and the adjusted preset waveform period can be determined according to the time interval between each target data point in the first operation result.

[0070] Furthermore, in order to adjust the preset waveform period, in this embodiment, as another implementation, the step of adjusting the preset waveform period based on the stretch ratio includes: Step S35: Obtain a preset driving waveform according to the preset waveform period, and perform frequency domain conversion on the preset driving waveform to obtain the frequency domain conversion result; Step S36: Perform a stretching / compression operation on the frequency domain conversion result using the stretching ratio; Step S37: Perform time-domain transformation on the obtained second operation result to obtain the adjusted preset waveform period.

[0071] It should be noted that the aforementioned preset driving waveform can also be a waveform generated based on a preset waveform period. In practical use, we will continue to use a preset waveform period of 170Hz as an example. The smart device can first obtain the preset driving waveform corresponding to 170Hz, and then perform a fast Fourier transform on the preset driving waveform to obtain the spectrum, thereby completing the frequency domain conversion and using it as the frequency domain conversion result.

[0072] Next, the frequency axis in the spectrum is stretched or compressed (i.e., Figure 3 (Mid-frequency: resampling). In this embodiment, 170Hz is shifted to 160Hz, which is a stretching process. All other harmonic components will also shift to lower frequencies in the same proportion to obtain the second operation result mentioned above. Finally, the second operation result is subjected to inverse fast Fourier transform to obtain the preset waveform period and the corresponding waveform amplitude. When adjusting the amplitude in the future, the preset adjustment coefficient is multiplied by the waveform amplitude.

[0073] Reference Figure 5 , Figure 5 This is a flowchart illustrating the third embodiment of the vibration driving method of this application. Based on the above embodiments, the third embodiment of the vibration driving method of this application is proposed.

[0074] Considering that the vibration amplitude of the vibrating component will be affected by different ambient temperatures (e.g., the elastic modulus is temperature-dependent), in this embodiment, in order to further utilize the movement amplitude of the vibrating component, such as... Figure 5 As shown, in this embodiment, the step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Step S311: Obtain the ambient temperature of the vibrating component; Step S312: Determine the temperature adjustment coefficient corresponding to the ambient temperature according to the preset temperature mapping curve.

[0075] It should be noted that the ambient temperature mentioned above can be the current temperature of the environment in which the vibrating component is located. In this embodiment, a temperature sensor can be placed near the vibrating component to obtain the ambient temperature.

[0076] It should also be noted that the aforementioned preset temperature mapping curve can be a curve that is pre-set and stored in the smart device, describing the relationship between ambient temperature and temperature regulation coefficient. It can be obtained during the product development stage by testing the vibration amplitude of the vibrating component at different ambient temperatures (such as 0°C, 25°C, 45°C, etc.).

[0077] Understandably, the aforementioned temperature adjustment coefficient can be a coefficient used to make additional fine adjustments to the drive amplitude, obtained from a preset temperature mapping curve based on the current ambient temperature.

[0078] Step S313: Adjust the preset waveform amplitude based on the preset adjustment coefficient to obtain the initial adjustment result.

[0079] Step S314: Adjust the initial adjustment result according to the temperature adjustment coefficient to obtain the adjusted preset waveform amplitude. It should be understood that the above initial adjustment result can be the result obtained by multiplying the preset waveform amplitude by a preset adjustment coefficient.

[0080] In actual use, the above-mentioned device can first obtain the ambient temperature of the vibrating component and query the preset temperature mapping curve to obtain the temperature adjustment coefficient corresponding to the ambient temperature. Then, the preset adjustment coefficient is multiplied by the preset waveform amplitude (specifically, it can be multiplied by the waveform amplitude obtained after period adjustment) to obtain the above-mentioned initial adjustment result. Then, the temperature adjustment coefficient is multiplied by the initial adjustment result to obtain the final preset waveform amplitude, which is used as the above-mentioned adjusted preset waveform amplitude.

[0081] Furthermore, considering that the performance of the vibrating component may decrease with increasing usage time, and that continuing to vibrate at the previous amplitude may lead to excessive vibration, in this embodiment, the step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Step S315: Obtain the current aging degree of the vibrating component; Step S316: Determine the aging compensation coefficient corresponding to the current aging degree according to the preset aging mapping curve.

[0082] It should be noted that the aforementioned current aging level can refer to the duration of use of the vibrating component. In this embodiment, the aforementioned current aging level can be obtained by recording the cumulative power-on operating time of the vibrating component.

[0083] It should also be noted that the aforementioned preset aging mapping curve can be a curve that is pre-set and stored in the smart device, describing the relationship between the degree of aging and the aging compensation coefficient. It can be obtained during the product development stage by testing the vibration amplitude of the vibrating component at different aging levels (such as 0 hours, 500 hours, 1000 hours, etc.).

[0084] Understandably, the aforementioned aging compensation coefficient can be a coefficient used to make additional fine adjustments to the drive amplitude, obtained from a preset aging mapping curve based on the current degree of aging.

[0085] Step S317: Adjust the preset waveform amplitude based on the preset adjustment coefficient to obtain the initial adjustment result; Step S318: Adjust the initial adjustment result according to the aging compensation coefficient to obtain the adjusted preset waveform amplitude.

[0086] It should be understood that the above initial adjustment result can be the result obtained by multiplying the preset waveform amplitude by a preset adjustment coefficient.

[0087] In actual use, the above-mentioned device can first obtain the current aging degree of the vibrating component and query the preset aging mapping curve to obtain the aging compensation coefficient corresponding to the current aging degree. Then, it can first multiply the preset adjustment coefficient with the preset waveform amplitude (specifically, it can be multiplied with the waveform amplitude obtained after period adjustment) to obtain the above-mentioned initial adjustment result. Then, it can multiply the aging compensation coefficient by the initial adjustment result to obtain the final preset waveform amplitude, which is used as the above-mentioned adjusted preset waveform amplitude.

[0088] It should also be emphasized that this embodiment can also take into account the influence of ambient temperature and the current degree of aging. Therefore, it can be adjusted first by temperature adjustment coefficient and then by aging compensation coefficient, or it can be adjusted first by aging compensation coefficient and then by temperature adjustment coefficient, etc. This embodiment does not limit this.

[0089] Furthermore, this application also proposes a storage medium storing a vibration driving program, which, when executed by a processor, implements the steps of the vibration driving method described above.

[0090] In addition, refer to Figure 6 , Figure 6This is a structural block diagram of the first embodiment of the vibration-driven device of this application; as shown... Figure 6 As shown in the embodiments of this application, a vibration driving device is also proposed, which includes: The frequency acquisition module 601 is used to acquire the actual resonance center frequency of the vibrating component and determine the stretching ratio based on the preset resonance center frequency and the actual resonance center frequency. The coefficient determination module 602 is used to determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and to determine the preset adjustment coefficient corresponding to the actual resonance center frequency. The parameter adjustment module 603 is used to adjust the preset waveform period based on the stretch ratio and to adjust the preset waveform amplitude based on the preset adjustment coefficient. The vibration driving module 604 is used to generate a target driving waveform according to the adjusted preset waveform period and the adjusted preset waveform amplitude, and drive the vibration component to vibrate according to the target driving waveform.

[0091] This embodiment first determines the stretching ratio based on the preset resonant center frequency and the actual resonant center frequency of the vibrating component. Then, it obtains the preset adjustment coefficient corresponding to the actual resonant center frequency. The preset waveform period of the preset resonant center frequency is adjusted using the stretching ratio, and the preset waveform amplitude of the preset resonant center frequency is adjusted using the adjustment coefficient. Finally, a target driving waveform is generated to drive the vibrating component according to the adjusted preset waveform period and amplitude. Because this embodiment can adjust the period based on the determined stretching ratio and adjust the amplitude according to the preset adjustment coefficient to obtain the target driving waveform for driving, compared to the existing method of driving using a preset resonant center frequency, this embodiment can adjust the preset resonant center frequency based on the actual resonant center frequency of the vibrating component, thereby making the output target driving waveform more consistent with the actual resonant center frequency of the vibrating component and improving the vibration effect.

[0092] In one implementation, the frequency acquisition module 601 is also used to scan the vibrating component using a preset frequency scanning signal when there is a frequency detection requirement, to obtain the current current and current voltage of the vibrating component; and to determine the actual resonant center frequency of the vibrating component based on the current current and current voltage.

[0093] As one implementation, the frequency acquisition module 601 is further configured to determine the test frequency range of the vibrating component and determine the preset waveform amplitude corresponding to the preset resonance center frequency; drive the vibrating component according to the test frequency range and collect the vibration amplitude of the vibrating component; and construct a preset coefficient mapping curve based on the test frequency range, the preset waveform amplitude, and the vibration amplitude. The coefficient determination module 602 is also used to determine the preset adjustment coefficient corresponding to the actual resonance center frequency based on the preset coefficient mapping curve.

[0094] As one implementation, the parameter adjustment module 603 is further configured to determine the corresponding original time axis based on the preset waveform period, and determine each original data point on the original time axis; create a target time axis according to the stretch ratio and the preset waveform period, and mark the target time axis with data points to obtain target data points; perform interpolation / sampling operations on the target data points using the original data points; and obtain the adjusted preset waveform period based on the obtained first operation result.

[0095] As one implementation, the parameter adjustment module 603 is further configured to obtain a preset driving waveform according to the preset waveform period, and perform frequency domain conversion on the preset driving waveform to obtain a frequency domain conversion result; perform a stretching / compression operation on the frequency domain conversion result using the stretching ratio; and perform time domain conversion on the obtained second operation result to obtain an adjusted preset waveform period.

[0096] As one implementation, the parameter adjustment module 603 is also used to acquire the ambient temperature of the vibrating component; determine the temperature adjustment coefficient corresponding to the ambient temperature according to a preset temperature mapping curve; adjust the preset waveform amplitude based on the preset adjustment coefficient to obtain an initial adjustment result; and adjust the initial adjustment result according to the temperature adjustment coefficient to obtain the adjusted preset waveform amplitude.

[0097] As one implementation, the parameter adjustment module 603 is also used to obtain the current aging degree of the vibrating component; determine the aging compensation coefficient corresponding to the current aging degree according to the preset aging mapping curve; adjust the preset waveform amplitude based on the preset adjustment coefficient to obtain an initial adjustment result; and adjust the initial adjustment result according to the aging compensation coefficient to obtain the adjusted preset waveform amplitude.

[0098] Other embodiments or specific implementations of the vibration driving device described in this application can be found in the above-described method embodiments, and will not be repeated here.

[0099] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0100] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part 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 a read-only memory image (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0102] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for driving vibration, characterized in that, The method is applied to intelligent devices equipped with vibrating components, and the method includes: Obtain the actual resonant center frequency of the vibrating component, and determine the stretch ratio based on the preset resonant center frequency and the actual resonant center frequency; Determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and determine the preset adjustment coefficient corresponding to the actual resonance center frequency. The preset adjustment coefficient is used to prevent the vibration component from exceeding the limit at low frequencies. The preset waveform period is adjusted based on the stretch ratio, and the preset waveform amplitude is adjusted based on the preset adjustment coefficient; A target driving waveform is generated based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and the vibration component is driven to vibrate according to the target driving waveform.

2. The method as described in claim 1, characterized in that, Before the step of obtaining the actual resonant center frequency of the vibrating component, the method further includes: Determine the test frequency range of the vibrating component, and determine the preset waveform amplitude corresponding to the preset resonance center frequency; The vibration component is driven according to the test frequency range, and the vibration amplitude of the vibration component is collected. A preset coefficient mapping curve is constructed based on the test frequency range, the preset waveform amplitude, and the vibration amplitude. The step of determining the preset adjustment coefficient corresponding to the actual resonant center frequency includes: The preset adjustment coefficient corresponding to the actual resonance center frequency is determined based on the preset coefficient mapping curve.

3. The method as described in claim 1, characterized in that, The step of obtaining the actual resonant center frequency of the vibrating component includes: When there is a need for frequency detection, the vibration component is scanned by a preset frequency scanning signal to obtain the current current and current voltage of the vibration component; The actual resonant center frequency of the vibrating component is determined based on the current current and the current voltage.

4. The method as described in claim 1, characterized in that, The step of adjusting the preset waveform period based on the stretch ratio includes: The corresponding original time axis is determined based on the preset waveform period, and each original data point on the original time axis is determined. A target time axis is created based on the stretch ratio and the preset waveform period, and data points are marked on the target time axis to obtain target data points; The target data points are interpolated / sampled using the original data points. The adjusted preset waveform period is obtained based on the first operation result.

5. The method as described in claim 1, characterized in that, The step of adjusting the preset waveform period based on the stretch ratio includes: A preset driving waveform is obtained according to the preset waveform period, and the preset driving waveform is frequency domain transformed to obtain the frequency domain transformation result. The frequency domain transformation result is stretched / compressed using the stretching ratio. The obtained second operation result is converted in the time domain to obtain the adjusted preset waveform period.

6. The method as described in claim 1, characterized in that, The step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Obtain the ambient temperature of the vibrating component; The temperature adjustment coefficient corresponding to the ambient temperature is determined according to the preset temperature mapping curve. The preset waveform amplitude is adjusted based on the preset adjustment coefficient to obtain an initial adjustment result; The initial adjustment result is adjusted according to the temperature adjustment coefficient to obtain the adjusted preset waveform amplitude.

7. The method according to any one of claims 1 to 6, characterized in that, The step of adjusting the preset waveform amplitude based on the preset adjustment coefficient includes: Obtain the current aging level of the vibrating component; The aging compensation coefficient corresponding to the current aging level is determined according to the preset aging mapping curve. The preset waveform amplitude is adjusted based on the preset adjustment coefficient to obtain an initial adjustment result; The initial adjustment result is adjusted according to the aging compensation coefficient to obtain the adjusted preset waveform amplitude.

8. A vibration driving device, characterized in that, The device includes: The frequency acquisition module is used to acquire the actual resonance center frequency of the vibrating component and determine the stretching ratio based on the preset resonance center frequency and the actual resonance center frequency. The coefficient determination module is used to determine the preset waveform period and preset waveform amplitude corresponding to the preset resonance center frequency, and to determine the preset adjustment coefficient corresponding to the actual resonance center frequency. The preset adjustment coefficient is used to prevent the vibration component from exceeding the limit at low frequencies. The parameter adjustment module is used to adjust the preset waveform period based on the stretch ratio and to adjust the preset waveform amplitude based on the preset adjustment coefficient. The vibration drive module is used to generate a target drive waveform based on the adjusted preset waveform period and the adjusted preset waveform amplitude, and drive the vibration component to vibrate according to the target drive waveform.

9. A smart device, characterized in that, The intelligent device includes: a vibration component, a memory, a processor, and a driving vibration program stored in the memory and executable on the processor, wherein the driving vibration program, when executed by the processor, implements the steps of the driving vibration method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores a vibration driving program, which, when executed by a processor, implements the steps of the vibration driving method as described in any one of claims 1 to 7.