Resonant frequency detection method and device and electronic equipment
By outputting vibration excitation signals of different frequencies to the motor and analyzing the output data, the problem of difficulty in calibration of the resonant frequency in multiple vibration directions is solved, and the accurate determination and correction of the actual resonant frequency of the motor is achieved, which improves the application accuracy of the motor.
Patent Information
- Application Number
- CN202411873099.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-25
AI Technical Summary
The prior art is difficult to effectively calibrate the resonant frequency of the motor in multiple vibration directions, resulting in poor vibration efficiency and unable to meet the growing demands of users.
By acquiring the reference resonance frequency of the motor, a plurality of vibration excitation signals of different frequencies are output to the motor in turn, the output data of the target device is obtained, and the vibration excitation signal frequency corresponding to the output data indicating the maximum vibration amount is the actual resonance frequency, so as to achieve correction of the reference resonance frequency.
Effectively determine the actual resonance frequency of the motor in each vibration direction, ensure the accuracy of the motor application, and meet the calibration requirements of multiple vibration directions.
Smart Images

Figure CN119697360A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a resonance frequency detection method, device and electronic equipment. Background Art
[0002] With the development of technology, mobile terminals can be used as a payment tool, communication tool, entertainment tool and other equipment, and are very popular among users. As a vibration device that can convert electrical energy, magnetic energy or other forms of energy into mechanical energy, the motor is an important component in mobile terminals.
[0003] Current motors are usually linear motors, and their vibration direction is usually single. However, with the development of mobile terminals, motors with a single vibration direction cannot provide a richer vibration experience and can no longer meet the growing needs of users. Therefore, motors that support multiple vibration directions are gradually emerging. For example, a dual-line linear motor that supports two vibration directions.
[0004] Among them, the motor has different resonant frequencies F0 in different vibration directions. When the motor is at the resonant frequency in a certain vibration direction, its vibration amplitude in that vibration direction is the largest and the vibration efficiency is the best. However, during the actual use of the motor, there is usually a difference between the calibrated value and the actual value of its resonant frequency. Therefore, there is an urgent need for a calibration scheme that can be used for the resonant frequencies of the motor in multiple vibration directions, so as to effectively determine the actual resonant frequencies of the motor in multiple vibration directions and ensure the application accuracy of the motor. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a resonant frequency detection method, device and electronic device, which can realize correction processing of multiple reference resonant frequencies of a motor.
[0006] In a first aspect, an embodiment of the present application provides a resonant frequency detection method, which is applied to an electronic device, wherein the electronic device includes a motor and a target device, and data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor; the method includes:
[0007] Obtaining a reference resonant frequency of the motor;
[0008] According to the reference resonant frequency, outputting a plurality of vibration excitation signals of different frequencies to the motor in sequence, wherein the frequency of each of the vibration excitation signals is within a target frequency range, and the target frequency range includes the reference resonant frequency;
[0009] Acquire multiple output data of the target device, each of the output data is data output by the target device when the motor vibrates under the control of different vibration excitation signals,
[0010] The frequency of the vibration excitation signal corresponding to the target output data is determined as the actual resonance frequency of the motor, and the target output data is output data indicating the maximum vibration amount of the motor among the multiple output data.
[0011] In a second aspect, an embodiment of the present application provides a resonant frequency detection device, which is applied to an electronic device, wherein the electronic device includes a motor and a target device, and the data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor; the device includes:
[0012] An acquisition module, used for acquiring a reference resonant frequency of the motor;
[0013] an output module, configured to output a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, wherein the frequency of each of the vibration excitation signals is within a target frequency range, and the target frequency range includes the reference resonant frequency;
[0014] The acquisition module is further used to acquire a plurality of output data of the target device, each of which is data output by the target device when the motor vibrates under the control of different vibration excitation signals.
[0015] A determination module is used to determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor, and the target output data is the output data indicating the maximum vibration amount of the motor among the multiple output data.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0020] In an embodiment of the present application, after obtaining the reference resonant frequency of the motor, a plurality of vibration excitation signals of different frequencies are sequentially output to the motor according to the reference resonant frequency to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor by determining the target output data indicating the maximum vibration amount of the motor among the multiple output data of the target device, thereby realizing the correction of the reference resonant frequency. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, so as to realize the separate correction of multiple reference resonant frequencies, effectively determine the actual resonant frequency of the motor in each vibration direction, and ensure the application accuracy of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of the structure of a motor provided in an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a frequency-acceleration curve of a motor provided in an embodiment of the present application;
[0024] Figure 4 is a flow chart of a resonant frequency detection method provided in an embodiment of the present application;
[0025] Figure 5 is a flow chart of another resonant frequency detection method provided in an embodiment of the present application;
[0026] Figure 6 is a flow chart of another resonant frequency detection method provided in an embodiment of the present application;
[0027] Figure 7 is a block diagram of a resonant frequency detection device provided in an embodiment of the present application;
[0028] Figure 8 is a block diagram of an electronic device provided in an embodiment of the present application;
[0029] Fig. 9 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] The following describes in detail the resonant frequency detection method, device and electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] With the development of technology, mobile terminals can be used as a payment tool, communication tool, entertainment tool and other equipment, and are very popular among users. As a vibration device that can convert electrical energy, magnetic energy or other forms of energy into mechanical energy, the motor is an important component in mobile terminals.
[0034] Current motors are usually linear motors, and their vibration direction is usually single. However, with the development of mobile terminals, motors with a single vibration direction cannot provide a richer vibration experience and can no longer meet the growing needs of users. Therefore, motors that support multiple vibration directions are gradually emerging. For example, a dual-line linear motor that supports two vibration directions.
[0035] The motor has different resonant frequencies F0 in different vibration directions. When the motor is at the resonant frequency in a certain vibration direction, its vibration amplitude in that vibration direction is the largest and its vibration efficiency is the best. However, during actual use of the motor, there is usually a difference between the calibrated value and the actual value of its resonant frequency. Therefore, in order to determine the reasonable application of the motor, the calibrated resonant frequency of the motor needs to be corrected.
[0036] At present, the driver integrated circuit (IC) of the motor can transmit vibration excitation signals of different frequencies to the motor so that the motor responds to the vibration excitation signal to generate vibration at a specific frequency, and the specific frequency is the frequency of the vibration excitation signal. Then, by obtaining the vibration amplitude of the motor at each frequency, the frequency corresponding to the motor at the maximum vibration amplitude is determined to obtain the resonant frequency. However, since the vibration amplitude corresponding to the resonant frequency of the motor in different vibration directions is different. Therefore, only one resonant frequency can usually be detected by the driver IC, and the detection of resonant frequencies in multiple vibration directions cannot be satisfied. Therefore, there is an urgent need for a calibration scheme that can be used for the resonant frequencies of the motor in multiple vibration directions, so that the actual resonant frequencies of the motor in multiple vibration directions can be effectively determined to ensure the application accuracy of the motor.
[0037] The embodiment of the present application provides a resonance frequency detection method, which can be applied to the electronic device provided in the embodiment of the present application. The electronic device may include a motor and a target device, and the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor.
[0038] In an optional case, the target device may be a microphone. The microphone is used to collect audio data emitted when the motor vibrates. The audio data has sound intensity indication data, and the sound intensity indication data indicates the sound intensity of the audio data. Therefore, the sound intensity of the audio data emitted when the motor vibrates can indicate the vibration amount of the motor. The greater the sound intensity, the greater the vibration amount of the motor.
[0039] In another optional case, the target device may be an acceleration sensor, such as a gravity acceleration sensor (G-sensor). The acceleration sensor may be used to directly measure the vibration acceleration of the motor, that is, the vibration amount of the motor.
[0040] Based on this, in some embodiments, the present application provides a method such as Figure 1 The electronic device 1 includes: a middle frame and a screen 10, a sound unit (BOX) 20, a battery cover 30, a mainboard bracket 40, a receiver 50, a printed circuit board (PCB) 60, a gravity acceleration sensor 70, a camera 80, a dual-axis linear motor 90, a microphone 100, etc.
[0041] Among them, PCB60 may include a driver IC. The driver IC is used to drive the dual-axis linear motor 90 to vibrate. The gravity acceleration sensor 70 is arranged on the PCB, and can be directly used to measure the vibration acceleration of the motor, that is, the vibration amount of the motor. The dual-axis linear motor 90 supports two vibration directions, and the two vibration directions usually refer to the X-axis direction and the Z-axis direction. Among them, since the motor relies on reciprocating motion to achieve vibration. Therefore, the vibration direction in the X-axis direction can also be understood as the Y-axis direction. It should be noted that the X-axis direction, the Y-axis direction and the Z-axis direction all refer to the directions of the axes in the coordinate system of the electronic device.
[0042] In an optional implementation, the structure of the dual-axis linear motor 90 can be as follows: Figure 2 As shown, the dual-axis linear motor 90 includes: an upper shell 901, a lower shell 902, a flexible printed circuit (FPC) 903, a mass block 904, a spring 905, a coil 906, a Si 907, a magnet 908, a baffle 909 and a limit block 910.
[0043] Among them, the upper shell 901 and the lower shell 902 are used to support and protect the internal structure. Sihua 907 and magnet 908 are used to provide a magnetic field so that the energized coil 906 can move under the action of force. Coil 906 is fixed on the mass block 904, and is used to drive the mass block 904 to reciprocate in the X-axis direction to achieve vibration in the X-axis direction under the action of the magnetic field provided by Sihua 907 and magnet 908 after power is turned on; or, drive the mass block 904 to reciprocate in the Z-axis direction to achieve vibration in the Z-axis direction. Shrapnel 905 is used to provide a rebound force for coil 906 and mass block 904, so that the vibrating coil 906 and mass block 904 return to the default position. Baffle 909 and limit block 910 are used to limit the movement position of mass block 904. FPC903 is used to connect to the power supply module to power coil 906.
[0044] Please refer to Figure 3 , which shows a frequency-acceleration curve diagram of a dual-axis linear motor 90 provided by the related art. Figure 3 In FIG. 1 , the horizontal axis is the vibration frequency of the dual-axis linear motor 90, and the vertical axis is the vibration acceleration of the dual-axis linear motor 90. Figure 3 It can be seen that the dual-axis linear motor 90 has two vibration acceleration peak values Gmax1 - Gmax2 .
[0045] The vibration frequency corresponding to the vibration acceleration peak value Gmax1 is the resonant frequency of the dual-axis linear motor 90 in the X-axis direction. The vibration frequency corresponding to the vibration acceleration peak value Gmax2 is the resonant frequency of the dual-axis linear motor 90 in the Z-axis direction. That is, when the motor receives a vibration excitation signal of the vibration frequency corresponding to the vibration acceleration peak value Gmax1, it can generate a vibration of the maximum amplitude in the X-axis direction. When the motor receives a vibration excitation signal of the vibration frequency corresponding to the vibration acceleration peak value Gmax2, it can generate a vibration of the maximum amplitude in the Z-axis direction. Obviously, the dual-axis linear motor 90 has two different resonant frequencies in the X-axis vibration direction and the Z-axis vibration direction.
[0046] Furthermore, since the vibration frequency corresponding to the vibration acceleration peak value Gmax1 is lower than the vibration frequency corresponding to the vibration acceleration peak value Gmax2, the vibration frequency corresponding to the vibration acceleration peak value Gmax1 is also called the low-frequency resonance frequency (i.e., low-frequency F0) of the dual-axis linear motor 90 in the X-axis direction. The vibration frequency corresponding to the vibration acceleration peak value Gmax2 is also called the high-frequency resonance frequency (i.e., high-frequency F0) of the dual-axis linear motor 90 in the Z-axis direction.
[0047] Thus, if a driver IC is used to detect the resonant frequency of the dual-axis linear motor 90, the vibration amplitude corresponding to the low frequency F0 is greater than the vibration amplitude corresponding to the high frequency F0, so that the driver IC can only detect the actual low frequency F0, but cannot detect the actual high frequency F0. Obviously, a calibration scheme that can be used for the resonant frequency of the motor in multiple vibration directions is urgently needed.
[0048] Please refer to Figure 4 , which shows a flow chart of a resonant frequency detection method provided in an embodiment of the present application. The resonant frequency detection method can be applied to an electronic device provided in an embodiment of the present application, the electronic device comprising a motor and a target device. Optionally, the resonant frequency detection method can be applied to Figure 1 The electronic device shown in the figure, and the motor included in the electronic device can be Figure 2 In addition, the resonant frequency detection method can be performed by a component in an electronic device. The following description takes the resonant frequency detection method performed by a processing device in an electronic device as an example. Figure 4 As shown, the resonant frequency detection method includes:
[0049] Step 401: Obtain a reference resonant frequency of the motor.
[0050] Optionally, as mentioned above, the motor may have at least one vibration direction, and may have different resonant frequencies in each vibration direction. Based on this, the motor may have at least one reference resonant frequency. The reference resonant frequency refers to the calibrated resonant frequency configured by the motor when it leaves the factory, which may deviate from the actual value of the resonant frequency of the motor.
[0051] It should be noted that, when the motor has at least two reference resonant frequencies, each reference resonant frequency can be corrected by the resonant frequency detection method provided in the embodiment of the present application to obtain the actual resonant frequency corresponding to each reference resonant frequency.
[0052] For example, when the motor is a dual-axis linear motor, two reference resonant frequencies of the motor can be obtained, specifically including a low-frequency reference resonant frequency and a high-frequency reference resonant frequency, and the frequency of the low-frequency reference resonant frequency is less than the frequency of the high-frequency reference resonant frequency. The processing device can perform subsequent steps 402 to 404 on the low-frequency reference resonant frequency and the high-frequency reference resonant frequency, respectively, to obtain an actual reference frequency corresponding to the low-frequency reference resonant frequency and an actual reference frequency corresponding to the high-frequency reference resonant frequency.
[0053] Step 402: Output multiple vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency. The frequency of each vibration excitation signal is within a target frequency range, and the target frequency range includes the reference resonant frequency.
[0054] Optionally, the processing device may generate a plurality of vibration excitation signals of different frequencies according to the reference resonance frequency, and further output the plurality of vibration excitation signals of different frequencies to the motor through the driving IC, so that the motor vibrates in response to the vibration excitation signals of different frequencies respectively.
[0055] Wherein, the vibration excitation signal is used to drive the motor to start vibrating with the frequency of the vibration excitation signal as the vibration frequency. That is, the vibration frequency of the motor in response to the vibration excitation signal is equal to the frequency of the vibration excitation signal. Optionally, the frequencies of the multiple vibration excitation signals can be any value within the target frequency range. Or, the frequencies of the multiple vibration excitation signals can be frequency values with equal spacing within the target frequency range. That is, among the frequencies of the multiple vibration excitation signals, the difference between each two adjacent frequencies is equal. In an optional implementation, the reference resonant frequency can be the middle value of the target frequency range. Or, the reference resonant frequency can be the critical value of the target frequency range.
[0056] Step 403: Acquire multiple output data of the target device. Each output data is data output by the target device when the motor vibrates under the control of different vibration excitation signals.
[0057] In an optional implementation, the processing device outputs a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, and the process of acquiring a plurality of output data of the target device may include steps 001 to 006.
[0058] In step 001, a test frequency is determined according to a reference resonant frequency and a frequency variation.
[0059] Optionally, the frequency change amount may be pre-set data. The processing device may obtain the frequency change amount, and calculate the difference between the reference resonant frequency and the frequency change amount to obtain the first frequency, and calculate the sum of the reference resonant frequency and the frequency change amount to obtain the second frequency. At this time, it can be considered that the target frequency range is from the first frequency to the second frequency, and the first frequency is the minimum value of the target frequency range, and the second frequency is the maximum value of the target frequency range. The processing device may determine the first frequency as the test frequency. Alternatively, the processing device may also determine the second frequency as the test frequency.
[0060] In step 002, a vibration excitation signal having a test frequency is generated.
[0061] The processing device may generate a vibration excitation signal having a test frequency and a target amplitude. The target amplitude is data that can be preset. The amplitudes of vibration excitation signals of different frequencies may be the same. In some embodiments, the amplitudes of vibration excitation signals of different frequencies may also be different, and the amplitude difference of vibration excitation signals of different frequencies is less than the target difference threshold.
[0062] In step 003, a vibration excitation signal of a test frequency is output to the motor.
[0063] Optionally, the processing device may output a vibration excitation signal having a test frequency to the motor driver IC, so that the motor driver IC transmits the vibration excitation signal having a test frequency to the motor to drive the motor to vibrate.
[0064] In step 004, the output data of the target device is acquired to obtain the output data corresponding to the vibration excitation signal of the test frequency.
[0065] In the embodiment of the present application, when the motor vibrates in response to the vibration excitation signal, the target device may be affected by the process to output data. The processing device may obtain the current output data of the target device to obtain the output data corresponding to the test frequency.
[0066] In step 005, it is determined whether the test frequency exceeds the target frequency. If not, step 006 is executed; if yes, output data corresponding to multiple vibration excitation signals are obtained.
[0067] Optionally, the target frequency is another critical frequency in the target test range except the initial test frequency. In the case where the test frequency initially determined in step 001 is the first frequency, the target frequency is the second frequency. Similarly, in the case where the test frequency initially determined in step 001 is the second frequency, the target frequency is the first frequency.
[0068] The processing device can compare the test frequency with the target frequency, and then determine whether the test frequency exceeds the target frequency. When the target frequency is the second frequency (i.e., the maximum value of the target test range), the processing device can determine whether the test frequency exceeds the target frequency by determining whether the test frequency is greater than the target frequency. Wherein, when the test frequency is less than or equal to the target frequency, it is determined that the test frequency does not exceed the target frequency; when the test frequency is greater than the target frequency, it is determined that the test frequency exceeds the target frequency. When the target frequency is the first frequency (i.e., the minimum value of the target test range), the processing device can determine whether the test frequency exceeds the target frequency by determining whether the test frequency is less than the target frequency. Wherein, when the test frequency is greater than or equal to the target frequency, it is determined that the test frequency does not exceed the target frequency; when the test frequency is less than the target frequency, it is determined that the test frequency exceeds the target frequency.
[0069] When the test frequency exceeds the target frequency, it indicates that the test of the frequency value within the test range is completed, and the processing device can obtain output data corresponding to multiple test data, that is, output data corresponding to multiple vibration excitation signals of different frequencies.
[0070] When the test frequency does not exceed the target frequency, it indicates that the test of the frequency value within the test range is completed, and the processing device can execute step 006 to further perform the test.
[0071] In step 006 , the test frequency is updated so that the updated test frequency is closer to the second frequency than the test frequency before the update, and the process returns to step 002 .
[0072] In an embodiment of the present application, when the test frequency does not exceed the target frequency, the test frequency is updated so that the updated test frequency is closer to the second frequency than before the update, and the process returns to step 002 to generate a vibration excitation signal having the updated test frequency to drive the motor to vibrate.
[0073] The updated test frequency is closer to the second frequency than the test frequency before the update. Optionally, a fixed frequency variable may be provided. Alternatively, the processing device may randomly generate the frequency variable.
[0074] When the target frequency is the second frequency (i.e., the maximum value of the target test range), the processing device can calculate the sum of the test frequency and the frequency variable to obtain an updated test frequency. When the target frequency is the first frequency (i.e., the minimum value of the target test range), the processing device can calculate the difference between the test frequency and the frequency variable to obtain an updated test frequency. In this way, the value of the frequency variable can determine the number of updates of the test frequency, and then determine the number of vibration excitation signals, and determine the number of output data collected from the target device. However, since the calibration value and the actual value of the motor resonant frequency are usually slightly different. Therefore, the smaller the value of the frequency variable, the larger the number of output data collected from the target device, so that the subsequent determination of the resonant frequency based on multiple output data of the target device can be more accurate.
[0075] For example, the number of tests x is set to 20, and the frequency variable is set to 1 Hz. The processing device may determine that x=20, and perform the first test process, and the first test process includes:
[0076] The processing device determines the test frequency f(f1-10) based on the reference resonant frequency f1 and the frequency change formula. The frequency change formula satisfies f=f1+10-x. The processing device generates a vibration excitation signal with a frequency of the test frequency f, and outputs a vibration excitation signal with a frequency of the test frequency f to the motor through the motor driver IC to drive the motor to vibrate. The processing device obtains the current output data Data1 of the target device, records the output data Data1 and the corresponding test frequency f, and sets x=x-1.
[0077] The processing device determines whether x is -1 to test whether the frequency exceeds the target frequency. If yes, the processing device can obtain the output data Data1-Data21 corresponding to the 21 test frequencies f. If no, the processing device performs the second test process, which includes:
[0078] The processing device determines the test frequency f(f1-9) based on the reference resonant frequency f1 and the frequency change formula. The processing device generates a vibration excitation signal with a frequency of the test frequency f, and outputs the vibration excitation signal with a frequency of the test frequency f to the motor through the motor driver IC. The processing device obtains the current output data Data2 of the target device, records the output data Data2 and the corresponding test frequency f, and sets x=x-1.
[0079] The processing device determines whether x is -1. If so, the processing device can obtain the output data Data1-Data21 corresponding to the 21 test frequencies f. If not, the processing device performs the third test process, and so on, until the 21st test process of the processing device includes:
[0080] The processing device determines the test frequency f(f1+10) based on the reference resonant frequency f1 and the frequency change formula. The processing device generates a vibration excitation signal with a frequency of the test frequency f, and outputs the vibration excitation signal with a frequency of the test frequency f to the motor through the motor driver IC. The processing device obtains the current output data Data21 of the target device, records the output data Data21 and the corresponding test frequency f, and sets x=x-1=-1. The processing device determines that x is -1, and obtains the output data Data1-Data21 corresponding to 21 test frequencies f.
[0081] Step 404: Determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor. The target output data is output data indicating the maximum vibration amount of the motor among the multiple output data.
[0082] In the embodiment of the present application, as mentioned above, when the motor is at a resonant frequency in a certain vibration direction, its vibration amplitude in the vibration direction is the largest and the vibration efficiency is the best. Therefore, the processing device can determine the target output data indicating the maximum vibration amount of the motor from the multiple output data obtained. Then, the frequency of the vibration excitation signal corresponding to the target output data, that is, the frequency of the vibration excitation signal that can control the motor to produce the maximum vibration, is determined as the actual resonant frequency of the motor, so as to achieve the correction of the reference resonant frequency.
[0083] In an embodiment of the present application, after obtaining the reference resonant frequency of the motor, a plurality of vibration excitation signals of different frequencies are sequentially output to the motor according to the reference resonant frequency to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor by determining the target output data indicating the maximum vibration amount of the motor among the multiple output data of the target device, thereby realizing the correction of the reference resonant frequency. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, so as to realize the separate correction of multiple reference resonant frequencies, effectively determine the actual resonant frequency of the motor in each vibration direction, and ensure the application accuracy of the motor.
[0084] In an optional case, the target device is a microphone, and the output data is audio data collected by the microphone. Correspondingly, optionally, the process in which the processing device executes step 404 to determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor may include:
[0085] Extract the sound intensity indication data of each audio data to obtain a plurality of sound intensity indication data. Determine the target sound intensity indication data indicating the maximum sound intensity among the plurality of sound intensity indication data. Determine the frequency of the vibration excitation signal corresponding to the target sound intensity indication data as the actual resonant frequency of the motor.
[0086] Among them, the sound intensity indication data indicates the sound intensity of the audio data. Optionally, the sound intensity indication data can be sound pressure level or sound power, etc. For example, it is assumed that the sound intensity indication data is sound pressure level. The processing device can perform root mean square (RMS) calculation processing on the collected audio data to obtain the effective sound pressure of the audio data. Furthermore, according to the definition formula of effective sound pressure, benchmark reference sound pressure and sound pressure level, the sound pressure level of the audio data is calculated. The processing device compares the sound pressure levels of multiple audio data collected by the target device to determine the maximum sound pressure level. The frequency of the vibration excitation signal corresponding to the maximum sound pressure level is determined as the actual resonant frequency of the motor.
[0087] In an embodiment of the present application, by multiplexing the microphone in the electronic device, it is possible to collect the sound emitted by the motor when it vibrates under the control of different vibration excitation signals. In addition, since the sound emitted by the motor when it vibrates, its sound intensity can effectively reflect the vibration magnitude of the motor. Therefore, by collecting the sound emitted by the motor when it vibrates and extracting the sound intensity indication data of the sound. Thereby, the audio data with the maximum sound intensity can be determined, which is the sound emitted by the motor when it vibrates with the maximum vibration amount, and then the frequency of the vibration excitation signal corresponding to the audio data with the maximum sound intensity is determined to obtain the actual resonant frequency of the motor.
[0088] In an optional case, the target device is an acceleration sensor, and the output data is acceleration data detected by the acceleration sensor. For example, the acceleration sensor can be a gravity acceleration sensor. Correspondingly, optionally, the process in which the processing device executes step 404 to determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor includes: determining the target acceleration data with the maximum value among multiple acceleration data. The frequency of the vibration excitation signal corresponding to the target acceleration data is determined as the actual resonant frequency of the motor.
[0089] Optionally, the processing device may compare the multiple acceleration data collected by the target device to determine the target acceleration data with the maximum value, and determine the frequency of the vibration excitation signal corresponding to the target acceleration data with the maximum value as the actual resonant frequency of the motor.
[0090] In the embodiment of the present application, by reusing the gravity acceleration sensor in the electronic device, it is possible to effectively detect the vibration acceleration when the motor vibrates under the control of different vibration excitation signals. Compared with the audio signal collected by the microphone, the vibration acceleration can more intuitively reflect the vibration magnitude of the motor. Therefore, the maximum vibration amount can be determined more quickly and directly by determining the maximum acceleration data, and then the actual resonant frequency of the motor can be obtained.
[0091] In some embodiments of the present application, the motor includes a first reference resonant frequency and a second reference resonant frequency, and the second reference resonant frequency is less than the first reference resonant frequency. Based on this, the process of obtaining the reference resonant frequency of the motor in step 401 may include: determining the first reference resonant frequency as the reference resonant frequency of the motor. Correspondingly, the resonant frequency detection method also includes: calibrating the second reference resonant frequency of the motor through the driver IC of the motor. In this implementation, it can be understood that the first reference resonant frequency is calibrated through steps 401 to 404 to determine the actual resonant frequency corresponding to the first reference resonant frequency. And the second reference resonant frequency of the motor is calibrated through the driver IC of the motor to determine the actual resonant frequency corresponding to the second reference resonant frequency.
[0092] The implementation process of calibrating the first reference resonant frequency through steps 401 to 404 can refer to the above description, and this embodiment of the present application will not be elaborated on this.
[0093] In some embodiments, through the driver IC of the motor, the implementation process of calibrating the second reference resonant frequency of the motor may include: the driver IC may generate vibration excitation signals of multiple frequencies within the absolute frequency range, and transmit the multiple vibration excitation signals to the motor in sequence to make the motor vibrate. The driver IC can collect the vibration acceleration of the motor when it vibrates under the control of each vibration excitation signal, and obtain the vibration acceleration corresponding to each vibration excitation signal. The driver IC can determine the frequency of the vibration excitation signal corresponding to the maximum vibration acceleration as an actual resonant frequency. As mentioned above, when the motor has multiple resonant frequencies in vibration directions, the vibration amplitude of the low-frequency resonant frequency is greater than the vibration amplitude of the high-frequency resonant frequency. Therefore, when the second reference resonant frequency is less than the first reference resonant frequency, the actual resonant frequency corresponding to the second reference resonant frequency can be determined by the driver IC to achieve correction of the second reference resonant frequency.
[0094] In an embodiment of the present application, after obtaining the reference resonant frequency of the motor, a plurality of vibration excitation signals of different frequencies are sequentially output to the motor according to the reference resonant frequency to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor by determining the target output data indicating the maximum vibration amount of the motor among the multiple output data of the target device, thereby realizing the correction of the reference resonant frequency. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, so as to realize the separate correction of multiple reference resonant frequencies, effectively determine the actual resonant frequency of the motor in each vibration direction, and ensure the application accuracy of the motor.
[0095] In order to facilitate the understanding of the technical solution of the present application, the following two examples are used to further illustrate the resonant frequency detection method provided in the embodiment of the present application. Assume that the motor includes a second reference resonant frequency and a first reference resonant frequency, and the second reference resonant frequency is less than the first reference resonant frequency. In the following example, because the second reference resonant frequency is less than the first reference resonant frequency. Therefore, the second reference resonant frequency is called the low-frequency reference resonant frequency, and the first reference resonant frequency is called the high-frequency reference resonant frequency.
[0096] As an example, it is assumed that the acceleration sensor is a gravity acceleration sensor. Figure 5 As shown, the processing device can calibrate the low-frequency reference resonant frequency of the motor through the motor driving IC, determine and record the actual resonant frequency (low frequency F0) corresponding to the low-frequency reference resonant frequency. The processing device starts the detection process of the high-frequency reference resonant frequency (high frequency F0). The detection process includes:
[0097] Set the order variable x to 20. Substitute the high-frequency reference resonant frequency f1 and the order variable x into the frequency change formula to determine the test frequency f. The frequency change formula satisfies f=f1+10-x.
[0098] The processing device generates a vibration excitation signal with a frequency of the test frequency f, and outputs the vibration excitation signal with a frequency of the test frequency f to the motor through the motor driver IC to drive the motor to vibrate.
[0099] The processing device turns on the gravity acceleration sensor, obtains current acceleration data g, records the acceleration data g and the corresponding test frequency f, and sets x=x-1.
[0100] Determine whether x is equal to -1. If yes, the processing device compares the acquired multiple acceleration data g, determines the acceleration data gmax with the maximum value, and determines the test frequency f corresponding to the acceleration data gmax with the maximum value as the actual resonant frequency (high frequency F0) corresponding to the high-frequency reference resonant frequency. If no, the processing device returns to the execution step: substitute the high-frequency reference resonant frequency f1 and the number variable x into the frequency change formula to determine the test frequency f.
[0101] As another example, assume that the acceleration sensor is a microphone. Figure 6 As shown, the processing device can calibrate the low-frequency reference resonant frequency of the motor through the motor driving IC, determine and record the actual resonant frequency (low-frequency F0) corresponding to the low-frequency reference resonant frequency. The processing device starts the detection process of the high-frequency reference resonant frequency. The detection process includes:
[0102] Set the order variable x to 20. Substitute the high-frequency reference resonant frequency f1 and the order variable x into the frequency change formula to determine the test frequency f. The frequency change formula satisfies f=f1+10-x.
[0103] The processing device generates a vibration excitation signal with a frequency of the test frequency f, and outputs the vibration excitation signal with a frequency of the test frequency f to the motor through the motor driver IC to drive the motor to vibrate.
[0104] The processing device turns on the microphone, obtains current audio data, extracts the sound pressure level d of the audio data, records the sound pressure level d and the corresponding test frequency f, and sets x=x-1.
[0105] Determine whether x is equal to -1. If yes, the processing device compares the obtained multiple sound pressure levels d, determines the maximum sound pressure level dmax, and determines the test frequency f corresponding to the maximum sound pressure level dmax as the actual resonant frequency (high frequency F0) corresponding to the high-frequency reference resonant frequency. If no, the processing device returns to the execution step: substitute the high-frequency reference resonant frequency f1 and the order variable x into the frequency change formula to determine the test frequency f.
[0106] In summary, the resonant frequency detection method provided in the embodiment of the present application, after obtaining the reference resonant frequency of the motor, outputs a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, so as to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the target output data indicating the maximum vibration amount of the motor can be determined among the multiple output data of the target device, so that the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor, and the correction of the reference resonant frequency can be achieved. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, and the multiple reference resonant frequencies can be corrected separately, and the actual resonant frequency of the motor in each vibration direction can be effectively determined, so as to ensure the application accuracy of the motor.
[0107] The resonance frequency detection method provided in the embodiment of the present application can be performed by a resonance frequency detection device. In the embodiment of the present application, the resonance frequency detection method performed by the resonance frequency detection device is taken as an example to illustrate the resonance frequency detection device provided in the embodiment of the present application.
[0108] Please refer to Figure 7 , which shows a block diagram of a resonant frequency detection device provided by an embodiment of the present application. The resonant frequency detection device is applied to an electronic device, and the electronic device includes a motor and a target device. The data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor. Figure 7 As shown, the resonance frequency detection device 700 includes: an acquisition module 701 , an output module 702 and a determination module 703 .
[0109] An acquisition module 701 is used to acquire a reference resonant frequency of the motor;
[0110] An output module 702 is used to output a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, wherein the frequency of each vibration excitation signal is within a target frequency range, and the target frequency range includes the reference resonant frequency;
[0111] The acquisition module 701 is further used to acquire multiple output data of the target device, each output data is data output by the target device when the motor vibrates under the control of different vibration excitation signals.
[0112] The determination module 703 is used to determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor, and the target output data is the output data indicating the maximum vibration amount of the motor among the multiple output data.
[0113] Optionally, the target device is a microphone, and the output data is audio data collected by the microphone; the determination module 703 is further used to:
[0114] Extracting sound intensity indication data of each audio data to obtain a plurality of sound intensity indication data, wherein the sound intensity indication data indicates the sound intensity of the audio data;
[0115] Determine target sound intensity indication data indicating the maximum sound intensity among the plurality of sound intensity indication data;
[0116] The frequency of the vibration excitation signal corresponding to the target sound intensity indication data is determined as the actual resonant frequency of the motor.
[0117] Optionally, the target device is an acceleration sensor, and the output data is acceleration data detected by the acceleration sensor; the determination module 703 is also used to: determine the target acceleration data with the maximum value among multiple acceleration data; and determine the frequency of the vibration excitation signal corresponding to the target acceleration data as the actual resonant frequency of the motor.
[0118] Optionally, the output module 702 is further configured to:
[0119] Determine the test frequency according to the reference resonant frequency and the frequency variation;
[0120] generating a vibration excitation signal having a test frequency;
[0121] Outputting a vibration excitation signal of a test frequency to the motor;
[0122] The output data of the target device is obtained to obtain the output data corresponding to the vibration excitation signal of the test frequency. When the test frequency does not exceed the target frequency, the test frequency is updated so that the updated test frequency is closer to the target frequency than before the update. The step of generating a vibration excitation signal with the test frequency is returned to execute until the test frequency exceeds the target frequency, and the output data corresponding to the multiple vibration excitation signals are obtained.
[0123] Optionally, the motor includes a first reference resonant frequency and a second reference resonant frequency, and the second reference resonant frequency is less than the first reference resonant frequency; the acquisition module 701 is further used to determine the first reference resonant frequency as the reference resonant frequency of the motor;
[0124] The resonance frequency detection device 700 further includes: a driving module, configured to calibrate the second reference resonance frequency of the motor through a driving integrated circuit IC of the motor.
[0125] In summary, the resonant frequency detection device provided in the embodiment of the present application, after obtaining the reference resonant frequency of the motor, sequentially outputs a plurality of vibration excitation signals of different frequencies to the motor according to the reference resonant frequency, so as to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the target output data indicating the maximum vibration amount of the motor can be determined among the multiple output data of the target device, so that the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor, and the correction of the reference resonant frequency can be achieved. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, and the multiple reference resonant frequencies can be corrected separately, and the actual resonant frequency of the motor in each vibration direction can be effectively determined, so as to ensure the application accuracy of the motor.
[0126] The resonant frequency detection device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0127] The resonant frequency detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0128] The resonant frequency detection device provided in the embodiment of the present application can achieve Figure 4 , Figure 5 to Figure 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0129] Alternatively, if Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores a program or instruction that can be executed on the processor 801, and when the program or instruction is executed by the processor 801, each step of the above-mentioned resonant frequency detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0131] Fig. 9 The hardware structure diagram of an electronic device for implementing an embodiment of the present application is shown in FIG. The electronic device 900 includes, but is not limited to, a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910. The electronic device also includes a motor and a target device, and the data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor.
[0132] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0133] The processor 910 is used to: obtain a reference resonant frequency of the motor; and output a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, wherein the frequency of each vibration excitation signal is within a target frequency range, and the target frequency range includes the reference resonant frequency;
[0134] It is also used to obtain multiple output data of the target device, each of which is data output by the target device when the motor vibrates under the control of different vibration excitation signals, and the frequency of the vibration excitation signal corresponding to the target output data is determined as the actual resonant frequency of the motor. The target output data is output data indicating the maximum vibration amount of the motor among the multiple output data.
[0135] In an embodiment of the present application, after obtaining the reference resonant frequency of the motor, a plurality of vibration excitation signals of different frequencies are sequentially output to the motor according to the reference resonant frequency to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor by determining the target output data indicating the maximum vibration amount of the motor among the multiple output data of the target device, thereby realizing the correction of the reference resonant frequency. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, so as to realize the separate correction of multiple reference resonant frequencies, effectively determine the actual resonant frequency of the motor in each vibration direction, and ensure the application accuracy of the motor.
[0136] Optionally, the target device is a microphone, and the output data is audio data collected by the microphone; the processor 910 is further configured to:
[0137] Extracting sound intensity indication data of each audio data to obtain a plurality of sound intensity indication data, wherein the sound intensity indication data indicates the sound intensity of the audio data;
[0138] Determine target sound intensity indication data indicating the maximum sound intensity among the plurality of sound intensity indication data;
[0139] The frequency of the vibration excitation signal corresponding to the target sound intensity indication data is determined as the actual resonant frequency of the motor.
[0140] Optionally, the target device is an acceleration sensor, and the output data is acceleration data detected by the acceleration sensor; the processor 910 is further configured to:
[0141] Determine a target acceleration data having a maximum value among the plurality of acceleration data;
[0142] The frequency of the vibration excitation signal corresponding to the target acceleration data is determined as the actual resonant frequency of the motor.
[0143] Optionally, the processor 910 is further configured to:
[0144] Determine the test frequency according to the reference resonant frequency and the frequency variation;
[0145] generating a vibration excitation signal having a frequency equal to the test frequency;
[0146] Outputting a vibration excitation signal of the test frequency to the motor;
[0147] Acquire the output data of the target device, and obtain the output data corresponding to the vibration excitation signal of the test frequency,
[0148] When the test frequency does not exceed the target frequency, the test frequency is updated so that the updated test frequency is closer to the target frequency than before the update, and the step of generating a vibration excitation signal with the test frequency is returned to execute until the test frequency exceeds the target frequency, thereby obtaining the output data corresponding to the multiple vibration excitation signals.
[0149] Optionally, the motor includes a first reference resonant frequency and a second reference resonant frequency, and the second reference resonant frequency is less than the first reference resonant frequency; the processor 910 is further configured to: determine the first reference resonant frequency as the reference resonant frequency of the motor;
[0150] The processor 910 is further configured to calibrate a second reference resonant frequency of the motor through a driver integrated circuit IC of the motor.
[0151] In summary, the resonant frequency detection method provided in the embodiment of the present application, after obtaining the reference resonant frequency of the motor, outputs a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, so as to obtain the output data of the target device when the motor vibrates under the control of different vibration excitation signals. Since the data output by the target device when the motor vibrates can be used to indicate the vibration amount of the motor. Therefore, the target output data indicating the maximum vibration amount of the motor can be determined among the multiple output data of the target device, so that the frequency of the vibration excitation signal corresponding to the target output data can be determined as the actual resonant frequency of the motor, and the correction of the reference resonant frequency can be achieved. In this way, no matter whether the motor has multiple reference resonant frequencies, the actual resonant frequency corresponding to each reference resonant frequency can be determined by the technical solution, and the multiple reference resonant frequencies can be corrected separately, and the actual resonant frequency of the motor in each vibration direction can be effectively determined, so as to ensure the application accuracy of the motor.
[0152] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0153] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0154] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.
[0155] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned resonant frequency detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0156] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0157] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned resonance frequency detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0158] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0159] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned resonant frequency detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0160] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A resonant frequency detection method, characterized in that: Applied to an electronic device, the electronic device comprises a motor and a target device, the data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor; the method comprises: Obtaining a reference resonant frequency of the motor; According to the reference resonant frequency, outputting a plurality of vibration excitation signals of different frequencies to the motor in sequence, wherein the frequency of each of the vibration excitation signals is within a target frequency range, and the target frequency range includes the reference resonant frequency; Acquire a plurality of output data of a target device, each of the output data being data output by the target device when the motor vibrates under the control of different vibration excitation signals; The frequency of the vibration excitation signal corresponding to the target output data is determined as the actual resonance frequency of the motor, and the target output data is output data indicating the maximum vibration amount of the motor among the multiple output data.
2. The method according to claim 1, characterized in that: The target device is a microphone, and the output data is audio data collected by the microphone; The step of determining the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor includes: Extracting sound intensity indication data of each audio data to obtain a plurality of sound intensity indication data, wherein the sound intensity indication data indicates the sound intensity of the audio data; Determine target sound intensity indication data indicating the maximum sound intensity among the plurality of sound intensity indication data; The frequency of the vibration excitation signal corresponding to the target sound intensity indication data is determined as the actual resonant frequency of the motor.
3. The method according to claim 1, characterized in that: The target device is an acceleration sensor, and the output data is acceleration data detected by the acceleration sensor; and determining the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor includes: Determine a target acceleration data having a maximum value among the plurality of acceleration data; The frequency of the vibration excitation signal corresponding to the target acceleration data is determined as the actual resonant frequency of the motor.
4. The method according to any one of claims 1 to 3, characterized in that: The step of outputting a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency to obtain a plurality of output data of the target device comprises: Determine the test frequency according to the reference resonant frequency and the frequency variation; generating a vibration excitation signal having a frequency equal to the test frequency; Outputting a vibration excitation signal of the test frequency to the motor; Acquire the output data of the target device, and obtain the output data corresponding to the vibration excitation signal of the test frequency, When the test frequency does not exceed the target frequency, the test frequency is updated so that the updated test frequency is closer to the target frequency than before the update, and the step of generating a vibration excitation signal with the test frequency is returned to execute until the test frequency exceeds the target frequency, thereby obtaining the output data corresponding to the multiple vibration excitation signals.
5. The method according to any one of claims 1 to 3, characterized in that: The motor includes a first reference resonant frequency and a second reference resonant frequency, the second reference resonant frequency being less than the first reference resonant frequency; The obtaining of the reference resonant frequency of the motor comprises: determining the first reference resonant frequency as the reference resonant frequency of the motor; The method further includes: calibrating a second reference resonant frequency of the motor through a driver integrated circuit (IC) of the motor.
6. A resonant frequency detection device, characterized in that: Applied to an electronic device, the electronic device comprises a motor and a target device, the data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor; the device comprises: An acquisition module, used for acquiring a reference resonant frequency of the motor; an output module, configured to output a plurality of vibration excitation signals of different frequencies to the motor in sequence according to the reference resonant frequency, wherein the frequency of each of the vibration excitation signals is within a target frequency range, and the target frequency range includes the reference resonant frequency; The acquisition module is further used to acquire a plurality of output data of the target device, each of which is data output by the target device when the motor vibrates under the control of different vibration excitation signals. A determination module is used to determine the frequency of the vibration excitation signal corresponding to the target output data as the actual resonant frequency of the motor, and the target output data is the output data indicating the maximum vibration amount of the motor among the multiple output data.
7. The device according to claim 6, characterized in that The target device is a microphone, and the output data is audio data collected by the microphone; the determination module is further used to: Extracting sound intensity indication data of each audio data to obtain a plurality of sound intensity indication data, wherein the sound intensity indication data indicates the sound intensity of the audio data; Determine target sound intensity indication data indicating the maximum sound intensity among the plurality of sound intensity indication data; The frequency of the vibration excitation signal corresponding to the target sound intensity indication data is determined as the actual resonant frequency of the motor.
8. The device according to claim 6, characterized in that The target device is an acceleration sensor, and the output data is acceleration data detected by the acceleration sensor; the determination module is used to: Determine a target acceleration data having a maximum value among the plurality of acceleration data; The frequency of the vibration excitation signal corresponding to the target acceleration data is determined as the actual resonant frequency of the motor.
9. An electronic device, characterized in that: It includes a motor, a target device, a processor and a memory; the data output by the target device when the motor vibrates is used to indicate the vibration amount of the motor, and the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the resonant frequency detection method as described in any one of claims 1 to 5 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the resonant frequency detection method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Intelligent handheld equipment and resonant frequency measurement method for linear motor therefor
CN107894277A
Method and device for acquiring resonant frequency of motor, and electronic equipment
CN118777689A