Vibration control method and device, electronic equipment and storage medium

By adjusting the vibration voltage signal of the electronic device to match the second-order modal natural frequency, the problem of insufficient Z-axis vibration amount when the electronic device is vibrating, and the vibration effect and user perception are improved.

CN119225438AActive Publication Date: 2024-12-31GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310801453.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

When existing electronic devices are vibrating prompts, especially when placed horizontally in a plane, the vibration amount of the Z-axis in the vertical direction is insufficient, resulting in the user missing notifications such as incoming calls, text messages.

Method used

By obtaining the vibration voltage signal to be output and adjusting the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, the frequency of at least part of the waveform matches the natural frequency of the second-order mode, and then controlling the vibration motor to vibrate , to enhance the amount of vibration in the Z-axis.

Benefits of technology

It improves the vibration effect of electronic devices when placed horizontally on a plane, enhances the vibration sense in the vertical direction, and ensures that users can feel notifications such as incoming calls and text messages more clearly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225438A_ABST
    Figure CN119225438A_ABST
Patent Text Reader

Abstract

The invention discloses a vibration control method and device, electronic equipment and a storage medium, the vibration control method is applied to the electronic equipment, the electronic equipment comprises a vibration motor, and the method comprises the following steps: obtaining a vibration voltage signal to be output; the vibration voltage signal is adjusted based on the inherent frequency of the electronic equipment in a second-order mode, and the frequency of at least part of waveforms corresponding to the adjusted vibration voltage signal is matched with the inherent frequency; and controlling the vibration motor to vibrate based on the adjusted vibration voltage signal. According to the method, the vibration quantity on the Z axis can be enhanced by using the second-order modal shape, so that the vibration effect of the electronic equipment is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and more specifically, to a vibration control method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smartphones, tablets, etc.) have become one of the commonly used electronic products in people's lives. Among them, vibration reminders, as a typical application on electronic devices, can provide good reminders for incoming calls, text messages, notifications, etc. in some usage scenarios (such as office scenarios, etc.). However, in some cases, when current electronic devices perform vibration reminders, the vibration effect may be poor. Summary of the invention

[0003] The present application proposes a vibration control method, device, electronic device and storage medium, which can enhance the vibration amount on the Z axis by utilizing the second-order modal vibration type, thereby enhancing the vibration effect of the electronic device.

[0004] In a first aspect, an embodiment of the present application provides a vibration control method, which is applied to an electronic device, wherein the electronic device includes a vibration motor, and the method includes: obtaining a vibration voltage signal to be output; adjusting the vibration voltage signal based on the natural frequency of the electronic device in a second-order mode, so that the frequency of at least a portion of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency; and controlling the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0005] In a second aspect, an embodiment of the present application provides a vibration control device, which is applied to an electronic device, wherein the electronic device includes a vibration motor, and the device includes: a signal acquisition module, a signal adjustment module and a motor control module, wherein the signal acquisition module is used to acquire a vibration voltage signal to be output; the signal adjustment module is used to adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, so that the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency; the motor control module is used to control the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the vibration control method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the vibration control method provided in the first aspect above.

[0008] The solution provided by the present application is to obtain a vibration voltage signal to be output, adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, match the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal with the natural frequency in the second-order mode, and control the vibration motor to vibrate based on the adjusted vibration voltage signal. In this way, the vibration amount on the Z axis can be enhanced by using the second-order mode vibration mode, thereby enhancing the vibration effect of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flow chart of a vibration control method according to an embodiment of the present application is shown.

[0011] Figure 2 A flow chart of a vibration control method according to another embodiment of the present application is shown.

[0012] Figure 3 A flow chart of a vibration control method according to yet another embodiment of the present application is shown.

[0013] Figure 4 A flow chart of a vibration control method according to another embodiment of the present application is shown.

[0014] Figure 5 A schematic diagram showing the change in the vibration amount of an electronic device in the Z-axis direction.

[0015] Figure 6 A flow chart of a vibration control method according to yet another embodiment of the present application is shown.

[0016] Figure 7 A block diagram of a vibration control device according to an embodiment of the present application is shown.

[0017] Figure 8 Detailed description is a block diagram of an electronic device for executing a vibration control method according to an embodiment of the present application.

[0018] Fig. 9It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing the vibration control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] With the development of mobile Internet technology and the influx of various consumer electronic products, people's lives have become smarter and more diversified. Electronic devices often use vibration reminders to remind you of incoming calls, text messages, notifications, etc.

[0021] In the related art, electronic devices are usually provided with linear motors, and the vibration of the linear motors is controlled to achieve the effect of vibration prompts. Among them, the free vibration of the linear system can be decomposed and coupled into N (a positive integer) orthogonal single-degree-of-freedom vibration systems, corresponding to the N modes of the system. Each mode has a specific natural frequency, damping ratio and modal vibration shape. For the X-axis linear motor installed in the electronic device, the related art usually uses the waveform of the first-order mode (horizontal X-axis) for vibration, so the vibration in other directions is weak, which leads to the electronic device being placed flat on the desktop. When vibrating prompts for incoming calls, text messages, notifications, etc., the vibration amount of the vertical Z-axis is insufficient, causing the user to miss calls, text messages, notifications, etc.

[0022] In view of the above problems, the inventors have proposed a vibration control method, device, electronic device and storage medium provided in the embodiments of the present application, which can enhance the vibration amount on the Z axis by using the second-order modal vibration mode, thereby enhancing the vibration effect of the electronic device. The specific vibration control method will be described in detail in the subsequent embodiments.

[0023] The vibration control method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0024] See also Figure 1 , Figure 1 The flowchart of the vibration control method provided by an embodiment of the present application is shown. In a specific embodiment, the vibration control method is applied to an electronic device, and the electronic device includes a vibration motor. Of course, it is understandable that the electronic device applied in this embodiment can be a smart phone, a tablet computer, a smart watch, an e-book, etc., which is not limited here. Figure 1 The process shown is described in detail, and the vibration control method may specifically include the following steps:

[0025] Step S110: obtaining a vibration voltage signal to be output.

[0026] In the embodiment of the present application, the vibration voltage signal to be output is a voltage signal used to excite the vibration motor to vibrate. The voltage signal continuously outputs voltage during the entire signal action time, thereby exciting the vibration motor to vibrate. The parameters of the vibration voltage signal may include frequency, amplitude, and number of vibration cycles. The frequency of the vibration voltage signal determines the vibration frequency of the vibration motor, the amplitude determines the voltage value for driving the vibration motor to vibrate, and the number of vibration cycles is the number of cycles generated by the vibration motor to vibrate. The above vibration voltage signal can be understood as a voltage signal for controlling the entire process of the vibration motor to vibrate, and the frequency of the waveform of the voltage signal at different times may be different. In this embodiment, the scenario for controlling the vibration motor to vibrate may be a call reminder, a text message reminder, a notification reminder, a touch feedback, a game vibration, a warning reminder, and the like. The specific scenario for controlling the vibration motor to vibrate may not be limited.

[0027] In some embodiments, the vibration voltage signal may be a voltage signal generated according to the current vibration sensing time length requirement, frequency requirement, and intensity requirement, and the vibration voltage signal includes but is not limited to a sinusoidal signal.

[0028] In a possible implementation, if the scenario in which the electronic device controls the vibration motor to vibrate is a scenario in which sound is played and vibrated simultaneously, then the above vibration voltage signal may be that the electronic device extracts the sound source characteristics through algorithm analysis based on the played audio; then, based on the extracted sound source characteristics and through the corresponding vibration waveform generation algorithm, a vibration waveform is generated, and a vibration voltage signal is obtained based on the generated vibration waveform.

[0029] For example, when an electronic device is providing an incoming call notification, it can load a ringtone file, extract the audio features of the ringtone file, generate a vibration waveform that drives a vibration motor to vibrate according to the audio features, and obtain a vibration voltage signal according to the generated vibration waveform. Subsequently, the electronic device can control the vibration motor to vibrate according to the vibration voltage signal while playing the ringtone file.

[0030] In one possible implementation, relevant waveform parameters of the waveform constituting the above vibration voltage signal can be pre-generated by an electronic device and stored, so that when it is necessary to control the vibration motor to vibrate, the electronic device can read the above waveform parameters and obtain the vibration voltage signal based on the vibration waveform corresponding to the read waveform parameters.

[0031] Step S120: Based on the natural frequency of the electronic device in the second-order mode, the vibration voltage signal is adjusted, so that the frequency of at least a portion of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency.

[0032] In the embodiment of the present application, considering that in the related art, when controlling the vibration motor to vibrate, the vibration waveform used to control the vibration motor to vibrate usually only uses the waveform of the first-order mode, so the vibration sensation is relatively strong only on the X-axis, while the vibration amount in the direction of other axes is small, which will affect the vibration effect of the electronic device when it is placed horizontally on a plane. Therefore, the electronic device can adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, so that the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency, so that the vibration waveform used to control the vibration motor to vibrate includes the waveform of the natural frequency in the second-order mode, so that the vibration amount (i.e., amplitude) of the electronic device in the Z-axis direction can be increased, and then the vibration effect of the electronic device when it is placed horizontally on a plane can be increased. Among them, the natural frequency of the electronic device in the second-order mode refers to the natural frequency of the vibration system of the electronic device as a whole in the second-order mode, that is, it is the natural frequency of the vibration system formed after the vibration motor is assembled to the electronic device in the second-order mode, so as to more accurately control the vibration of the entire vibration system.

[0033] Among them, the free vibration of a linear system can usually be decomposed and coupled into N (a positive integer) orthogonal single-degree-of-freedom vibration systems, corresponding to the N modes of the system, each mode has a specific natural frequency, damping ratio and modal vibration shape. For the vibration system composed of electronic equipment, it usually includes first-order mode, second-order mode and third-order mode, the first-order mode corresponds to the vibration amount on the X-axis, the second-order mode corresponds to the vibration amount on the Z-axis, the third-order mode corresponds to the vibration amount on the Y-axis, the X-axis and the Y-axis are located in the horizontal plane where the screen of the electronic equipment is located, the Z-axis is perpendicular to the horizontal plane, and the X-axis, the Y-axis and the Z-axis are perpendicular to each other. When the vibration frequency of the vibration system is the natural frequency under any mode, the vibration amount (i.e., amplitude) corresponding to the vibration system in the mode reaches the maximum value. Therefore, when the electronic equipment is placed horizontally on a plane, the vibration motor is controlled to vibrate by the vibration waveform under the second-order mode, which can increase the vibration amount of the electronic equipment on the Z-axis, thereby improving the vibration effect when the electronic equipment is placed horizontally on a plane.

[0034] In some embodiments, the electronic device may adjust the waveform of the vibration voltage signal for the vibration voltage signal to be output, so that at least part of the waveform corresponding to the vibration voltage signal is a waveform that matches the natural frequency, that is, the frequency of at least part of the waveform corresponding to the vibration voltage signal matches the natural frequency. Wherein, the frequency of at least part of the waveform matches the natural frequency means that the difference between the frequency of at least part of the waveform and the natural frequency is less than the target threshold, and the target threshold may be 1 Hz (hertz), 3 Hz, etc., and the difference between the frequency of at least part of the waveform and the natural frequency is the absolute value of the difference obtained by subtracting the natural frequency from the frequency of at least part of the waveform.

[0035] In a possible implementation, the electronic device can adjust the waveform of the target proportion in the waveform corresponding to the vibration voltage signal to a waveform whose frequency matches the above natural frequency for the vibration voltage signal to be output, and the target proportion can be 30%, 50%, or 70%. Thus, the proportion of the waveform whose frequency matches the above natural frequency in the waveform corresponding to the adjusted vibration voltage signal can reach the target proportion, so that the proportion of the duration of the vibration amount in the Z-axis direction of the electronic device reaching the maximum value to the duration of the entire vibration process during the vibration process reaches the target proportion, thereby increasing the vibration amount of the electronic device in the Z-axis direction.

[0036] Step S130: controlling the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0037] In the embodiment of the present application, after obtaining the above adjusted vibration voltage signal, the motor can be driven to vibrate by the vibration voltage signal, that is, the vibration voltage signal is used as an excitation signal to excite the vibration motor to vibrate. Since the frequency of at least part of the waveform corresponding to the above adjusted vibration voltage signal matches the natural frequency, compared with only controlling the vibration motor to vibrate by the waveform under the first-order mode, the vibration amount of the entire vibration system constituted by the electronic device on the Z axis can be increased, thereby enhancing the vibration effect of the electronic device.

[0038] In some embodiments, the electronic device controls the vibration motor to vibrate according to the scenario in which it controls the vibration motor to vibrate. If the current scenario is a scenario of playing a prompt sound and vibrating, the electronic device can control the vibration motor to vibrate based on the adjusted vibration voltage signal above while controlling the audio playback device to play the prompt sound, thereby achieving a prompt effect combining sound and vibration to prevent the user from missing related prompts.

[0039] The vibration control method provided in the embodiment of the present application obtains a vibration voltage signal to be output, adjusts the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, the frequency of at least a part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency in the second-order mode, and controls the vibration motor to vibrate based on the adjusted vibration voltage signal. Since the frequency of at least a part of the waveform corresponding to the above adjusted vibration voltage signal matches the natural frequency, compared with the related art of controlling the vibration motor to vibrate only by the waveform in the first-order mode, the vibration amount of the entire vibration system constituted by the electronic device on the Z-axis can be increased, thereby enhancing the vibration effect of the electronic device, especially when the electronic device is placed horizontally on a plane, the vibration sensation in the vertical direction can be increased.

[0040] See also Figure 2 , Figure 2A flow chart of a vibration control method provided by another embodiment of the present application is shown. The vibration control method is applied to the above-mentioned electronic device, which includes a vibration motor. Figure 2 The process shown is described in detail, and the vibration control method may specifically include the following steps:

[0041] Step S210: obtaining a vibration voltage signal to be output.

[0042] In the embodiment of the present application, step S210 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0043] Step S220: If the waveform corresponding to the vibration voltage signal includes a target waveform, the target waveform in the waveform corresponding to the vibration voltage signal is adjusted to obtain the adjusted vibration voltage signal, the difference between the frequency corresponding to the target waveform and the natural frequency is less than a first frequency threshold, and the frequency of the adjusted target waveform matches the natural frequency.

[0044] In the embodiment of the present application, after the electronic device obtains the vibration voltage signal to be output, when adjusting the vibration voltage signal, the vibration voltage signal can be adjusted according to the actual situation of the waveform corresponding to the vibration voltage signal. Among them, the electronic device can determine whether the waveform corresponding to the vibration voltage signal includes a target waveform, and the difference between the frequency of the target waveform and the natural frequency is less than the first frequency threshold, the first frequency threshold is 8Hz, 10Hz, 12Hz, etc., and the specific numerical value can be unlimited. The difference between the frequency of the target waveform and the natural frequency is the absolute value of the difference obtained by subtracting the natural frequency from the frequency of the target waveform. That is to say, the electronic device can determine whether the waveform corresponding to the vibration voltage signal includes a waveform whose frequency is close to the natural frequency under the second-order mode; if it is determined that the waveform corresponding to the vibration voltage signal includes the target waveform, it means that the original vibration voltage signal originally has a signal of a waveform close to the natural frequency under the second-order mode, so the target waveform is adjusted so that its corresponding frequency matches the natural frequency under the second-order mode, which will not have too much impact on the vibration effect originally to be presented, and the adjusted target waveform matches the above natural frequency, so that the waveform corresponding to the vibration voltage signal can include a waveform matching the natural frequency, and then when the adjusted vibration voltage signal is used to control the vibration of the vibration motor, the vibration amount of the entire vibration system constituted by the electronic device on the Z axis can be increased, thereby enhancing the vibration effect of the electronic device.

[0045] In some embodiments, when the electronic device determines that the waveform corresponding to the above vibration voltage signal includes a target waveform, when adjusting the above target waveform in the waveform corresponding to the vibration voltage signal, the target waveform may be resampled and the frequency may be adjusted so that the frequency of the target waveform after the frequency adjustment matches the natural frequency, thereby obtaining an adjusted vibration voltage signal. Among them, the target waveform may be resampled according to the starting time corresponding to the target waveform in the vibration voltage signal and the target sampling interval to obtain a resampled waveform, and the resampled waveform may be frequency-shifted so that the target waveform is adjusted to a waveform whose frequency matches the natural frequency.

[0046] In some embodiments, in order to further enhance the vibration effect of the electronic device, the electronic device may also determine whether the waveform corresponding to the vibration voltage signal includes a second waveform whose frequency has a difference with the natural frequency in the first-order mode less than a first target threshold; if the waveform corresponding to the vibration voltage signal includes a second waveform whose frequency has a difference with the natural frequency in the first-order mode less than the first target threshold, the frequency of the second waveform in the waveform corresponding to the vibration voltage signal may be adjusted so that the frequency of the second waveform matches the natural frequency in the first-order mode; if the waveform corresponding to the vibration voltage signal does not include a second waveform whose frequency has a difference with the natural frequency in the first-order mode less than the first target threshold, the frequency adjustment related to the natural frequency in the first-order mode is not performed on the voltage signal. It can be understood that the first-order mode corresponds to the vibration amount on the X-axis. When the vibration frequency of the vibration system is the natural frequency under the first-order mode, the vibration amount corresponding to the vibration system in the first-order mode (that is, the vibration amount on the X-axis) reaches a maximum value; although the related technology usually uses the waveform under the first-order mode for the vibration of the vibration motor, in the actual vibration voltage signal, the waveform whose frequency matches the frequency under the first-order mode may not correspond to a long time. Therefore, the waveform with a frequency close to the natural frequency under the first-order mode can be adjusted to match the natural frequency under the first-order mode, thereby increasing the proportion of the waveform with the natural frequency under the first-order mode in the waveform corresponding to the vibration voltage signal, thereby further increasing the vibration amount of the electronic device on the X-axis, and will not have too much impact on the vibration effect originally to be presented.

[0047] In some embodiments, in order to further enhance the vibration effect of the electronic device, the electronic device may also determine whether the waveform corresponding to the vibration voltage signal includes a third waveform whose frequency has a difference with the natural frequency in the third-order mode less than the second target threshold; if the waveform corresponding to the vibration voltage signal includes a third waveform whose frequency has a difference with the natural frequency in the third-order mode less than the second target threshold, the frequency of the third waveform in the waveform corresponding to the vibration voltage signal may be adjusted to match the frequency of the third waveform with the natural frequency in the third-order mode; if the waveform corresponding to the vibration voltage signal does not include a third waveform whose frequency has a difference with the natural frequency in the third-order mode less than the second target threshold, the frequency adjustment related to the natural frequency in the third-order mode is not performed on the voltage signal. It can be understood that the third-order mode corresponds to the vibration amount on the Y-axis. When the vibration frequency of the vibration system is the natural frequency under the third-order mode, the vibration amount corresponding to the third-order mode of the vibration system (that is, the vibration amount on the Y-axis) reaches the maximum value; because the waveform under the first-order mode is usually used for the vibration of the vibration motor in the related technology, that is, it mainly controls the vibration of the vibration motor on the X-axis, and does not control the vibration of the vibration motor on the Y-axis, therefore, if the electronic device is affected by the external environment to vibrate on the X-axis (for example, the electronic device is clamped on both sides of the X-axis direction), the vibration effect of the electronic device on the plane where the screen is located will be poor, so it is also possible to adjust the waveform with a frequency close to the natural frequency under the third-order mode to match the natural frequency under the third-order mode, thereby increasing the proportion of the waveform of the natural frequency under the third-order mode in the waveform corresponding to the vibration voltage signal, thereby increasing the vibration amount of the electronic device on the Y-axis, and will not have too much impact on the vibration effect originally to be presented.

[0048] Step S230: If the waveform corresponding to the vibration voltage signal does not include the target waveform, the first waveform in the waveform corresponding to the vibration voltage signal is replaced with the waveform of the natural frequency to obtain the adjusted vibration voltage signal, wherein the first waveform includes at least one of a waveform gap in the waveform corresponding to the vibration voltage signal and a long vibration waveform having a duration greater than the target duration, and the long vibration waveform is a vibration waveform having a vibration period greater than the target number.

[0049] In the embodiment of the present application, after the electronic device determines whether the waveform corresponding to the vibration voltage signal includes a waveform whose frequency is close to the natural frequency under the second-order mode, if it is determined that the waveform corresponding to the vibration voltage signal does not include the above target waveform, it means that there is no signal of the waveform close to the natural frequency under the second-order mode in the original vibration voltage signal. In this case, if at least part of the waveform of the vibration voltage signal is directly adjusted to match the natural frequency under the second-order mode, it may have too much impact on the vibration effect originally to be presented. Therefore, in the case of determining that the waveform corresponding to the vibration voltage signal does not include the above target waveform, the electronic device can determine at least one of the waveform gap in the waveform corresponding to the vibration voltage signal and the long vibration waveform with a duration greater than the target duration from the waveform of the vibration voltage signal, and use at least one of the determined waveform gap and the long vibration waveform as the first waveform, wherein the target duration; for the first waveform, the first waveform can be replaced with a waveform of the natural frequency under the second-order mode. It can be understood that when the waveform corresponding to the vibration voltage signal does not include the above-mentioned target waveform, at least one of the waveform gap and the long vibration waveform with a duration greater than the target duration is replaced, so as not to have too much impact on the vibration effect originally to be presented, and the waveform corresponding to the vibration voltage signal can include a waveform that matches the natural frequency, and then when the vibration motor is controlled to vibrate using the adjusted vibration voltage signal, the vibration amount of the entire vibration system constituted by the electronic device on the Z-axis can be increased, thereby enhancing the vibration effect of the electronic device.

[0050] In some embodiments, for the determined first waveform, if the first waveform includes a waveform gap in the waveform corresponding to the vibration voltage signal, a waveform of the natural frequency under the second-order mode can be generated, and the generated waveform can be filled in the waveform gap; if the first waveform includes a long vibration waveform with a duration greater than the target duration, the long vibration waveform can be replaced with a waveform of the natural frequency under the second-order mode.

[0051] Step S240: controlling the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0052] In the embodiment of the present application, step S240 can refer to the contents of other embodiments and will not be repeated here.

[0053] The vibration control method provided in the embodiment of the present application obtains a vibration voltage signal to be output, and when the waveform of the vibration voltage signal includes a target waveform whose frequency difference with the natural frequency in the second-order mode is less than a first frequency threshold, adjusts the target waveform so that the frequency of the target waveform matches the above natural frequency, and when the waveform of the vibration voltage signal does not include the above target waveform, replaces at least one of the waveform gaps in the waveform of the vibration voltage signal and the long vibration waveform whose duration is greater than the target duration with a waveform of the above natural frequency, thereby not only allowing the waveform corresponding to the vibration voltage signal to include a waveform matching the natural frequency, but also using the adjusted vibration voltage signal to control the vibration of the vibration motor, which can increase the vibration amount of the entire vibration system constituted by the electronic device on the Z-axis, thereby enhancing the vibration effect of the electronic device, and ensuring that it will not have too much impact on the vibration effect originally intended to be presented.

[0054] See also Figure 3 , Figure 3 A flow chart of a vibration control method provided by another embodiment of the present application is shown. The vibration control method is applied to the above-mentioned electronic device, which includes a vibration motor. Figure 3 The process shown is described in detail, and the vibration control method may specifically include the following steps:

[0055] Step S310: obtaining a vibration voltage signal to be output.

[0056] Step S320: Based on the natural frequency of the electronic device in the second-order mode, the vibration voltage signal is adjusted, so that the frequency of at least a portion of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency.

[0057] In the embodiment of the present application, step S310 and step S320 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0058] Step S330: If the waveform of the vibration voltage signal is a long vibration waveform, the vibration motor is controlled to vibrate based on the vibration voltage signal at a rated voltage.

[0059] In an embodiment of the present application, after adjusting the vibration voltage signal to obtain a vibration voltage signal in which the frequency of at least part of the waveform matches the natural frequency under the second-order mode, when using the vibration voltage signal to control the vibration motor to vibrate, the voltage value corresponding to the vibration voltage signal can also be controlled according to the actual waveform of the vibration voltage signal. Among them, the electronic device can determine that the waveform of the vibration voltage signal is a long vibration waveform or a short vibration waveform. If it is determined that the waveform of the vibration voltage signal is a long vibration waveform, the vibration motor can be controlled to vibrate based on the vibration voltage signal under the rated voltage, that is, the voltage value of the vibration voltage signal of the above long vibration waveform is the voltage value of the rated voltage. Among them, the long vibration waveform is a vibration waveform whose vibration period is greater than the target number. The target number can be 2, 3, 5, etc., and the specific value can be not limited.

[0060] It can be understood that the stroke of the linear motor (i.e., the vertical distance between the main mass block inside the motor and the shell) is limited. When the vibration motor is driven by a voltage exceeding the rated voltage, multiple sinusoidal vibration cycles will cause the mass block to collide with the internal limit block or shell of the vibration motor, thereby causing damage to the body of the vibration motor. Therefore, the larger the driving voltage, the smaller the value of the vibration cycle should be. Therefore, when driving the vibration motor with a voltage signal with a long vibration waveform (i.e., a waveform exceeding the target number of vibration cycles), a safe voltage (i.e., the rated voltage) is required.

[0061] Step S340: If the waveform of the vibration voltage signal is a short vibration waveform, the vibration motor is controlled to vibrate based on the vibration voltage signal under the short vibration voltage, the short vibration voltage is the voltage when the stroke of the vibration motor in the Z-axis direction reaches the maximum stroke when the vibration of the vibration motor is controlled by the voltage signal of the short vibration waveform of the natural frequency, and the short vibration waveform is a vibration waveform whose vibration period is less than or equal to the target number.

[0062] In the embodiment of the present application, when the electronic device determines that the waveform of the vibration voltage signal is a short vibration waveform, it can control the vibration motor to vibrate based on the vibration voltage signal under the short vibration voltage, that is, the voltage value of the vibration voltage signal of the above short vibration waveform is the voltage value of the short vibration voltage. Among them, the short vibration waveform is a vibration waveform with a vibration period less than or equal to the target number, the target number can be 2, 3, 5, etc., and the specific value can be unlimited; the short vibration voltage is the voltage when the vibration motor reaches the maximum stroke in the Z-axis direction when the vibration motor is controlled by the voltage signal of the short vibration waveform of the natural frequency.

[0063] It is understandable that the stroke of the linear motor is limited. When the vibration motor is driven by a voltage exceeding the rated voltage, multiple sinusoidal vibration cycles will cause the mass block to collide with the internal limit block or shell of the vibration motor, thereby causing damage to the body of the vibration motor. Therefore, when the driving voltage is larger, the value of the vibration cycle should be smaller. When the vibration cycle is smaller, the vibration motor can withstand a higher driving voltage when reaching the same stroke. Therefore, when the vibration motor is driven by a voltage signal of a short vibration waveform (i.e., a waveform of a vibration cycle not exceeding the target number), the driving voltage can be increased to increase the amplitude of the vibration motor. Therefore, the vibration of the vibration motor can be controlled by pre-controlling the voltage signal of a short vibration waveform of the natural frequency, and the voltage when the vibration motor reaches the maximum stroke in the Z-axis direction is obtained, and the obtained voltage is used as the short vibration voltage. The vibration of the vibration motor is controlled by the above vibration voltage signal under the short vibration voltage, which can further increase the vibration amount of the vibration motor in the Z-axis direction, thereby improving the vibration feeling.

[0064] In some embodiments, based on the natural frequency of the electronic device in the second-order mode, a voltage signal of a short vibration waveform of the natural frequency of the electronic device in the second-order mode can be generated, and then the vibration motor is controlled to vibrate by the voltage signal of the short vibration waveform, and the signal gain is gradually increased to gradually increase the stroke of the vibration motor in the Z-axis direction. When the stroke in the Z-axis direction reaches the maximum stroke of the designed vibration motor, the voltage at this time is recorded and used as the short vibration voltage. The voltage value of the obtained short vibration voltage can be stored so that when the electronic device actually controls the vibration motor to vibrate, it can control the vibration motor to vibrate according to the vibration voltage signal of the voltage value.

[0065] In one possible implementation, the vibration motor is controlled to vibrate by a voltage signal of a short vibration waveform of the natural frequency under the second-order mode, and after the above short vibration voltage is obtained through testing, the second-order modal coefficient can also be calculated based on the short vibration voltage and the maximum instantaneous voltage that the vibration motor can withstand, and the second-order modal coefficient can be stored. When the waveform of the actual vibration voltage signal is a short vibration waveform, the second-order modal coefficient and the above maximum instantaneous voltage can be used to determine the short vibration voltage, and then the vibration motor can be controlled to vibrate based on the vibration voltage signal under the short vibration voltage. Among them, according to the formula: c=V zmax / V max Calculate the second-order modal coefficient, c is the second-order modal coefficient, V zmax is the short-circuit voltage above, V max It is the maximum instantaneous voltage that the vibration motor can withstand.

[0066] It should be noted that, since the vibration voltage signal is a continuous voltage signal, and there may be waveform gaps in the waveform of the vibration voltage signal (i.e., there is no waveform within a certain time length, that is, the voltage value within the time length is 0), the waveform corresponding to the vibration voltage signal may include both long vibration waveforms and short vibration waveforms. In view of this situation, when the waveform of the output vibration voltage signal is a long vibration waveform, the voltage value of the voltage signal of the long vibration waveform can be controlled to be the voltage value of the rated voltage; when the waveform of the output vibration voltage signal is a short vibration waveform, the voltage value of the voltage signal of the short vibration waveform can be controlled to be the voltage value of the short vibration voltage.

[0067] The vibration control method provided in the embodiment of the present application obtains a vibration voltage signal to be output, adjusts the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, and the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency in the second-order mode. Based on the adjusted vibration voltage signal, the vibration motor is controlled to vibrate. Since the frequency of at least part of the waveform corresponding to the above adjusted vibration voltage signal matches the natural frequency, compared with the related art that controls the vibration motor to vibrate only by the waveform in the first-order mode, the vibration amount of the entire vibration system constituted by the electronic device on the Z axis can be increased, thereby enhancing the vibration effect of the electronic device, especially when the electronic device is placed horizontally on a plane, the vibration sense in the vertical direction can be increased; in addition, when the vibration motor is controlled to vibrate based on the vibration voltage signal, when the waveform of the vibration voltage signal is a long vibration waveform, the vibration voltage signal under the rated voltage is used to control the vibration motor to vibrate, thereby avoiding shell cracking during vibration, and when the waveform of the vibration voltage signal is a short vibration waveform, the vibration voltage signal under the short vibration voltage is used to control the vibration motor to vibrate, thereby further increasing the vibration amount of the vibration motor in the Z axis direction, thereby enhancing the vibration effect of the electronic device.

[0068] See also Figure 4 , Figure 4 A schematic diagram of a vibration control method according to another embodiment of the present application is shown. The vibration control method is applied to the above-mentioned electronic device, which includes a vibration motor. Figure 4 The process shown is described in detail, and the vibration control method may specifically include the following steps:

[0069] Step S410: obtaining a vibration voltage signal to be output.

[0070] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0071] Step S420: If the posture parameter of the electronic device does not meet the target posture parameter condition, the vibration motor is controlled to vibrate based on the vibration voltage signal.

[0072] In the embodiment of the present application, considering the X-axis linear motor installed in the electronic device, mainly when the electronic device is placed flat on the desktop, when performing vibration prompts for incoming calls, text messages, notifications, etc., using the waveform of the first-order mode (horizontal direction X-axis) for vibration will result in poor vibration, which will cause the user to miss incoming calls, text messages, notifications, etc., and in most other usage scenarios, when the vibration voltage signal of the first-order mode waveform is used to control the vibration motor to vibrate, its vibration on the X-axis can have a better prompting effect. Therefore, in order to reduce the processing volume of the electronic device and improve the vibration response speed of the electronic device, when vibration is required, the posture parameters of the electronic device can be obtained, and according to the posture parameters of the electronic device, it is determined whether the posture parameters of the electronic device meet the target posture parameter conditions, and the target posture parameter conditions are used to determine whether the electronic device is placed flat on the plane; if it is determined that the posture parameters of the electronic device meet the target posture parameter conditions, it means that the current electronic device is placed flat on the plane; if it is determined that the posture parameters of the electronic device do not meet the target posture parameter conditions, it means that the current electronic device is not placed flat on the plane. After the electronic device determines whether the posture parameters meet the target posture parameter conditions, based on the determination result, if it is determined that the posture parameters of the electronic device meet the target posture parameter conditions, this means that the electronic device is not placed flat on a plane. Therefore, the vibration voltage signal does not need to be adjusted to include a waveform of the natural frequency under the second-order mode. Instead, the obtained vibration voltage signal is directly used to control the vibration motor to vibrate.

[0073] In some embodiments, the above posture parameters may include linear acceleration and angular acceleration. By detecting the linear acceleration and angular acceleration of the electronic device, it can be determined whether the linear acceleration and angular acceleration meet the target posture parameter conditions.

[0074] In a possible implementation, an acceleration sensor is provided in the electronic device, and the linear acceleration of the electronic device can be obtained through the acceleration sensor. The acceleration of three mutually perpendicular axes can be obtained through the acceleration sensor, and the three axes can be the x-axis, the y-axis, and the z-axis. The plane formed by the x-axis and the y-axis is the plane where the screen is located, and the x-axis and the y-axis are perpendicular to each other, and the z-axis is perpendicular to the plane formed by the x-axis and the y-axis. The z-axis can take the vertical downward direction as the positive direction.

[0075] In a possible implementation, the angular acceleration can be detected by a gyroscope, which is also called an angular velocity sensor. Electronic devices are usually equipped with a three-axis gyroscope, which can track the displacement changes in six directions and obtain the angular acceleration of the electronic device in the three directions of x, y, and z. It can measure the rotation and deflection of the electronic device very well, so as to perform corresponding operations on the electronic device. In electronic devices, gyroscopes are usually used in games, camera anti-shake, navigation, etc. Of course, the specific way in which the electronic device detects the above posture parameters is not limited.

[0076] In some embodiments, the above target posture parameter conditions may include target posture parameters obtained by testing the electronic device in advance when it is placed flat on the screen. When the electronic device determines whether it is placed flat on a plane, the acquired posture parameters can be matched with the target posture parameters; if the acquired posture parameters match the target posture parameters, it can be determined that the acquired posture parameters meet the target posture parameter conditions; if the acquired posture parameters do not match the target posture parameters, it can be determined that the acquired posture parameters do not meet the target posture parameter conditions.

[0077] In some embodiments, after obtaining the above posture parameters, the electronic device can input the posture parameters into a pre-trained placement detection model to obtain a detection result output by the placement detection model, and the detection result is used to indicate whether the posture parameters meet the target posture parameter conditions. The placement detection model is trained based on the posture parameters of a sample device that is the same as the electronic device when placed horizontally on different planes. Among them, the placement detection model can be a support vector machine (SVM), a neural network, a naive Bayes classifier, etc., and the specific model type of the placement detection model may not be limited.

[0078] In a possible implementation, when the above placement detection model is trained, the sample posture parameters of the sample device when placed horizontally on different planes can be obtained, and then the sample posture parameters are input into the initial detection model to obtain the detection results output by the placement detection model for the input sample posture parameters; according to the detection results output by the sample posture parameters, and the label of whether the sample posture parameters are placed horizontally on the plane, the target loss value corresponding to the initial detection model can be determined, and according to the target loss value, the model parameters of the initial detection model are adjusted until the training end condition is met to obtain the trained placement detection model. Among them, the initial detection model can be a neural network, a Softmax logistic regression model, a support vector machine, etc., and the specific initial detection model can be unlimited; the training end condition of iterative training can include: the number of iterative training reaches the target number; or the loss value determined based on the output result of the initial detection model meets the set condition. .

[0079] Step S430: If the posture parameters of the electronic device meet the target posture parameter conditions, the vibration voltage signal is adjusted based on the natural frequency of the electronic device in the second-order mode, and the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency.

[0080] In the embodiment of the present application, after the electronic device determines whether the acquired posture parameters meet the target posture parameter conditions, based on the determination result, if it is determined that the posture parameters of the electronic device meet the target posture parameter conditions, it means that the electronic device is placed flat on a plane, so the vibration voltage signal can be adjusted to include a waveform of the natural frequency under the second-order mode, so that when the vibration motor is controlled to vibrate according to the adjusted vibration voltage signal, the vibration amount in the Z-axis direction can be increased, thereby improving the vibration effect of the electronic device when it is placed flat on a plane. Among them, the specific method used by the electronic device to adjust the vibration voltage signal can refer to the content of the aforementioned embodiment, which will not be repeated here.

[0081] In some embodiments, considering that the posture of the electronic device is a posture when it is laid flat, it is possible that the user holds the electronic device to keep it in a flat posture. For example, when the user holds the electronic device with both hands to play games, the posture of the electronic device may match the posture when it is laid flat. Therefore, when it is determined that the posture parameter of the electronic device meets the target posture parameter condition, it can also be determined whether the electronic device is in a held state; if it is determined that the electronic device is in a held state, it means that the electronic device is currently in a flat posture when being held by the user. At this time, the vibration motor is controlled to vibrate by the vibration voltage signal of the waveform of the first-order mode, and its vibration on the X-axis can also have a good prompt effect. Therefore, the vibration voltage signal may not be adjusted to include the waveform of the natural frequency under the second-order mode, but the obtained vibration voltage signal may be directly used to control the vibration motor to vibrate; if it is determined that the electronic device is in a state of not being held, it means that the electronic device is placed horizontally on a plane at this time, so the vibration voltage signal may be adjusted to include the waveform of the natural frequency under the second-order mode.

[0082] In a possible implementation, the back cover and the middle frame of the electronic device may be provided with touch sensors, pressure sensors, etc., and based on the data detected by the sensors provided on the back cover and the middle frame, and the touch data collected by the touch screen of the electronic device, it can be determined whether the electronic device is in a held state or a not held state. For example, if the touch sensors provided on the back cover and the middle frame do not detect touch data, and the touch screen does not collect touch data, it can be determined that the electronic device is in an not held state; if the touch sensors provided on the back cover and the middle frame detect touch data, and / or the touch screen collects touch data, it can be determined that the electronic device is in a held state.

[0083] Step S440: controlling the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0084] In the embodiment of the present application, step S440 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0085] For example, see Figure 5 , Figure 5 The diagram shows the change of the vibration amount of the electronic device in the Z-axis direction when the vibration motor is controlled to vibrate by vibration voltage signals of different frequencies, wherein: Figure 5 The horizontal axis is the frequency of the vibration voltage signal, the vertical axis is the vibration amount of the electronic device in the Z-axis direction, the first-order modal frequency rated voltage signal refers to a vibration voltage signal with a voltage value of the rated voltage and a waveform frequency of the natural frequency of the first-order mode, and the second-order modal frequency rated voltage signal refers to a vibration voltage signal with a voltage value of the rated voltage and a waveform frequency of the natural frequency of the second-order mode; it can be seen that compared with the vibration amount in the Z-axis direction when the vibration motor is controlled to vibrate using the above first-order modal frequency rated voltage signal, when the vibration motor is controlled to vibrate using the above, the vibration amount of the electronic device in the Z-axis direction is significantly increased, thereby being able to enhance the vibration sense of the electronic device in the Z-axis direction.

[0086] The vibration control method provided in the embodiment of the present application, when it is necessary to control the electronic device to vibrate, when it is determined that the posture parameters of the electronic device meet the target posture parameter conditions, the vibration voltage signal is adjusted based on the natural frequency of the electronic device in the second-order mode, the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency in the second-order mode, and the vibration motor is controlled to vibrate based on the adjusted vibration voltage signal. Since the frequency of at least part of the waveform corresponding to the above adjusted vibration voltage signal matches the natural frequency, compared with the related art that controls the vibration motor to vibrate only by the waveform in the first-order mode, the vibration amount of the entire vibration system constituted by the electronic device on the Z axis can be increased, thereby enhancing the vibration effect of the electronic device, especially when the electronic device is placed horizontally on a plane, the vibration sensation in the vertical direction can be increased; and when the posture parameters of the electronic device do not meet the target posture parameter conditions, the vibration voltage signal obtained is directly used to control the vibration motor to vibrate, thereby reducing the processing amount of the electronic device, reducing the power consumption of the electronic device, and ensuring the vibration response speed.

[0087] See also Figure 6 , Figure 6 A flow chart of a vibration control method provided by another embodiment of the present application is shown. The vibration control method is applied to the above-mentioned electronic device, which includes a vibration motor. Figure 6 The process shown is described in detail, and the vibration control method may specifically include the following steps:

[0088] Step S510: controlling the vibration motor to vibrate based on the sweep frequency signal of the target frequency band.

[0089] Regarding the natural frequency of the electronic device in the embodiment of the present application under the second-order mode, the embodiment of the present application also includes a method for obtaining the natural frequency. It is worth noting that the process of obtaining the natural frequency can be performed in advance by the electronic device before leaving the factory. Subsequently, each time the electronic device controls the vibration motor to vibrate, the pre-acquired natural frequency can be used to adjust the vibration voltage signal, without the need to re-acquire the above natural frequency each time the vibration voltage signal is adjusted.

[0090] In an embodiment of the present application, when obtaining the natural frequency of the vibration system constituted by the electronic device in the second-order mode, the vibration motor can be controlled to vibrate based on the sweep signal of the target frequency band, so that when the sweep signal is at different frequencies, the vibration amount of the electronic device in the Z-axis direction can be determined, thereby determining the frequency when the vibration amount is maximum. Among them, the target frequency band can be the full frequency band constituted by the vibration frequency supported by the vibration motor; the sweep signal of the target frequency band can be a sweep signal of a long vibration waveform under the rated voltage, and the long vibration waveform is a waveform with a vibration period greater than the target number.

[0091] Step S520: Acquire the vibration amount of the electronic device in the Z-axis direction at different frequencies of the sweep signal.

[0092] In an embodiment of the present application, when the vibration motor is controlled to vibrate based on a swept frequency signal in a target frequency band, the vibration amount of the electronic device in the Z-axis direction can be obtained when the swept frequency signal is at different frequencies, so as to determine the frequency when the vibration amount of the electronic device in the Z-axis direction is the largest, and then determine the natural frequency of the electronic device in the second-order mode.

[0093] Step S530: determining the frequency corresponding to the maximum vibration amount as the natural frequency of the electronic device in the second-order mode.

[0094] In the embodiment of the present application, according to the vibration amount of the electronic device in the Z-axis direction at different frequencies of the frequency sweep signal, the frequency corresponding to the maximum vibration amount can be determined, and the natural frequency of the electronic device in the second-order mode can be determined. After the natural frequency of the electronic device in the second-order mode is obtained, the natural frequency can be stored, so that when it is necessary to control the vibration motor to vibrate, the vibration voltage signal can be adjusted according to the stored natural frequency, so that the frequency of at least part of the waveform of the adjusted vibration voltage signal matches the natural frequency.

[0095] In some embodiments, when controlling the vibration of the vibration motor based on a sweep frequency signal of a target frequency band, the vibration amount of the electronic device as a whole in the Z-axis direction can be collected, and a fast Fourier transform (FFT) (Fast Fourier Transform, FFT) can be performed on the collected time domain vibration amount signal. Based on the signal after FFT, the frequency corresponding to the maximum vibration amount of the electronic device as a whole in the Z-axis direction can be obtained.

[0096] Step S540: obtaining a vibration voltage signal to be output.

[0097] Step S550: Based on the natural frequency of the electronic device in the second-order mode, the vibration voltage signal is adjusted, so that the frequency of at least a portion of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency.

[0098] Step S560: controlling the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0099] In the embodiment of the present application, steps S540 to S560 can refer to the contents of the aforementioned embodiment and will not be described in detail here.

[0100] The vibration control method provided in the embodiment of the present application also provides a process for obtaining the natural frequency of the electronic device under the second-order mode, by controlling the vibration of the vibration motor through a sweeping signal based on the target frequency band, and obtaining the vibration amount of the Z axis of the vibration motor under different frequencies of the sweeping signal, and determining the frequency corresponding to the maximum vibration amount as the natural frequency of the electronic device under the second-order mode. When controlling the vibration motor to vibrate, the vibration voltage signal can be adjusted based on the predetermined natural frequency, and the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency under the second-order mode, and then based on the adjusted vibration voltage signal, the vibration motor is controlled to vibrate. Since the frequency of at least part of the waveform corresponding to the above adjusted vibration voltage signal matches the natural frequency, compared with the related art that controls the vibration of the vibration motor only through the waveform under the first-order mode, the vibration amount of the entire vibration system constituted by the electronic device on the Z axis can be increased, thereby enhancing the vibration effect of the electronic device, especially when the electronic device is placed horizontally on a plane, the vibration sense in the vertical direction can be increased.

[0101] See also Figure 7 , which shows a structural block diagram of a vibration control device 600 provided in an embodiment of the present application. The vibration control device 600 applies the above-mentioned electronic device, and the electronic device includes a vibration motor. The vibration control device 600 includes: a signal acquisition module 610, a signal adjustment module 620 and a motor control module 630. Among them, the signal acquisition module 610 is used to obtain a vibration voltage signal to be output; the signal adjustment module 620 is used to adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, and the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency; the motor control module 630 is used to control the vibration motor to vibrate based on the adjusted vibration voltage signal.

[0102] In some embodiments, the signal adjustment module 620 can also be used to adjust the target waveform in the waveform corresponding to the vibration voltage signal if the waveform corresponding to the vibration voltage signal includes a target waveform, so as to obtain the adjusted vibration voltage signal, wherein the difference between the frequency corresponding to the target waveform and the natural frequency is less than a first frequency threshold, and the frequency of the adjusted target waveform matches the natural frequency.

[0103] In a possible implementation, the signal adjustment module 620 can also be used to replace the first waveform in the waveform corresponding to the vibration voltage signal with the waveform of the natural frequency if the waveform corresponding to the vibration voltage signal does not include the target waveform, so as to obtain the adjusted vibration voltage signal, wherein the first waveform includes at least one of a waveform gap in the waveform corresponding to the vibration voltage signal and a long vibration waveform having a duration greater than a target duration, and the long vibration waveform is a vibration waveform having a vibration period greater than a target number.

[0104] In a possible implementation, the signal adjustment module 620 can also be used to resample and frequency-adjust the target waveform in the waveform corresponding to the vibration voltage signal if the waveform corresponding to the vibration voltage signal includes a target waveform, so as to obtain the adjusted vibration voltage signal, and the frequency of the target waveform after frequency adjustment matches the natural frequency.

[0105] In some embodiments, the signal adjustment module 620 may also be configured to adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode if the posture parameter of the electronic device meets the target posture parameter condition.

[0106] In a possible implementation, the signal adjustment module 620 can also be used to adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode if the posture parameters of the electronic device meet the target posture parameter conditions and the electronic device is not in a holding state.

[0107] In some embodiments, the motor control module 630 may also be configured to control the vibration motor to vibrate based on the vibration voltage signal at a rated voltage if the waveform of the vibration voltage signal is a long vibration waveform.

[0108] In a possible implementation, the motor control module 630 can also be used to control the vibration motor to vibrate based on the vibration voltage signal under the short vibration voltage if the waveform of the vibration voltage signal is a short vibration waveform, wherein the short vibration voltage is the voltage when the vibration motor has a maximum stroke in the Z-axis direction when the vibration of the vibration motor is controlled by the voltage signal of the short vibration waveform of the natural frequency, and the short vibration waveform is a vibration waveform whose vibration period is less than or equal to the target number.

[0109] In some embodiments, the vibration control device 600 may further include a frequency acquisition module. The frequency acquisition module is used to control the vibration of the vibration motor based on the sweep frequency signal of the target frequency band; obtain the vibration amount of the Z axis of the vibration motor at different frequencies of the sweep frequency signal; and determine the frequency corresponding to the maximum vibration amount as the natural frequency of the electronic device in the second-order mode.

[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0111] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0112] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0113] In summary, the solution provided by the present application is to obtain the vibration voltage signal to be output, adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, and the frequency of at least part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency in the second-order mode, and control the vibration motor to vibrate based on the adjusted vibration voltage signal. In this way, the vibration amount on the Z axis can be enhanced by using the second-order mode vibration mode, thereby enhancing the vibration effect of the electronic device.

[0114] Please refer to Figure 8 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, a smart watch, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0115] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0116] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0117] Please refer to Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0118] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A vibration control method, characterized in that: Applied to an electronic device, the electronic device includes a vibration motor, and the method includes: Acquire a vibration voltage signal to be output; Based on the natural frequency of the electronic device in the second-order mode, adjusting the vibration voltage signal, so that the frequency of at least a portion of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency; Based on the adjusted vibration voltage signal, the vibration motor is controlled to vibrate.

2. The method according to claim 1, characterized in that The step of adjusting the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode includes: If the waveform corresponding to the vibration voltage signal includes a target waveform, the target waveform in the waveform corresponding to the vibration voltage signal is adjusted to obtain the adjusted vibration voltage signal, the difference between the frequency corresponding to the target waveform and the natural frequency is less than a first frequency threshold, and the frequency of the adjusted target waveform matches the natural frequency.

3. The method according to claim 2, characterized in that If the waveform corresponding to the vibration voltage signal includes a target waveform, adjusting the target waveform in the waveform corresponding to the vibration voltage signal to the target waveform includes: If the waveform corresponding to the vibration voltage signal includes a target waveform, the target waveform in the waveform corresponding to the vibration voltage signal is resampled and frequency-adjusted to obtain the adjusted vibration voltage signal, and the frequency of the target waveform after frequency adjustment matches the natural frequency.

4. The method according to claim 1 or 2, characterized in that: The step of adjusting the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode includes: If the waveform corresponding to the vibration voltage signal does not include the target waveform, the first waveform in the waveform corresponding to the vibration voltage signal is replaced with the waveform of the natural frequency to obtain the adjusted vibration voltage signal, the difference between the frequency corresponding to the target waveform and the natural frequency is less than a first frequency threshold, the first waveform includes at least one of a waveform gap in the waveform corresponding to the vibration voltage signal and a long vibration waveform with a duration greater than the target duration, and the long vibration waveform is a vibration waveform with a vibration period greater than the target number.

5. The method according to claim 1, characterized in that The step of adjusting the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode includes: If the posture parameter of the electronic device meets the target posture parameter condition, the vibration voltage signal is adjusted based on the natural frequency of the electronic device in the second-order mode.

6. The method according to claim 1, characterized in that The step of controlling the vibration motor to vibrate based on the adjusted vibration voltage signal comprises: If the waveform of the vibration voltage signal is a long vibration waveform, the vibration motor is controlled to vibrate based on the vibration voltage signal at a rated voltage, and the long vibration waveform is a vibration waveform with a vibration period greater than a target number.

7. The method according to claim 1 or 6, characterized in that: The step of controlling the vibration motor to vibrate based on the adjusted vibration voltage signal comprises: If the waveform of the vibration voltage signal is a short vibration waveform, the vibration motor is controlled to vibrate based on the vibration voltage signal under the short vibration voltage. The short vibration voltage is the voltage when the vibration motor has a maximum stroke in the Z-axis direction when the vibration is controlled by the voltage signal of the short vibration waveform of the natural frequency. The short vibration waveform is a vibration waveform whose vibration period is less than or equal to the target number.

8. A vibration control device, characterized in that: Applied to electronic equipment, the electronic equipment includes a vibration motor, the device includes: a signal acquisition module, a signal adjustment module and a motor control module, wherein: The signal acquisition module is used to acquire the vibration voltage signal to be output; The signal adjustment module is used to adjust the vibration voltage signal based on the natural frequency of the electronic device in the second-order mode, so that the frequency of at least a part of the waveform corresponding to the adjusted vibration voltage signal matches the natural frequency; The motor control module is used to control the vibration motor to vibrate based on the adjusted vibration voltage signal.

9. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Motor vibration control method and device, terminal and storage medium

    CN111752370A

  • Variable amplitude control method, device and system for vibratory roller, and vibratory roller

    CN112482139A

  • Control method and module for solving second-order front-back vibration of wind generating set tower

    CN113323804A

  • Method and device for adjusting vibration waveform of linear motor

    CN115459643A

  • Vibration control method and vibration control device

    JP2008261328A