Method and apparatus for calibrating driving signal waveform, electronic device, and storage medium
By collecting the reverse electromotive force of the motor, the update resonant frequency and resampling the driving signal waveform is solved, the frequency mismatch caused by changes in the motor structural characteristics is improved, the tactile experience is reduced, and the cost is reduced, and effective calibration is achieved without sensor feedback.
Patent Information
- Application Number
- PCT/CN2023/111171
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-15
- Filing Date
- 2023-08-04
- Publication Date
- 2024-11-21
AI Technical Summary
In the case where the motor structural characteristics change, the resonance frequency does not match the driving signal waveform, especially in the absence of sensor feedback, it is difficult to achieve effective calibration.
By collecting the reverse electromotive force of the motor in the after-vibration stage after the drive signal waveform playback, the updated resonance frequency of the motor is obtained, and the original drive signal waveform is resampled based on this frequency to generate a matching new drive signal waveform.
It realizes the problem of mismatch between the resonant frequency and the driving signal waveform caused by changes in the motor structural characteristics without sensor feedback, improves the user's tactile experience, reduces costs, and avoids the integration of multiple sensors within the motor. need.
Smart Images

Figure CN2023111171_21112024_PF_FP_ABST
Abstract
Description
Method and device for calibrating driving signal waveform, electronic device, and storage medium
[0001] This application is based on the Chinese patent application with application number 202310546372.3 and application date of May 15, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0002] The present application relates to the field of motor control technology, for example, to a method and device for calibrating a drive signal waveform, an electronic device, and a storage medium. Background Art
[0003] As an important means of human-computer interaction, tactile feedback has been widely adopted in devices such as mobile phones, tablets, and game controllers. Haptic feedback technology can realistically simulate various natural vibrations, such as mechanical keystrokes, gunshots, and engine vibrations. Currently, it is most widely used in gaming scenarios. In certain scenarios, such as mobile games, there are often long vibrations to simulate the real-life engine vibrations, as well as short vibrations to recreate the feeling of a gunshot. Motors contain coil windings. Prolonged operation causes heating, raising the temperature inside the motor cavity. This alters the motor's structural characteristics and the motor's resonant frequency. In this case, using the drive signal waveform at the original resonant frequency will make it difficult to match the motor's actual resonant frequency, failing to meet the user's desired tactile experience.
[0004] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:
[0005] In related technologies, motor control with sensor feedback, such as using Hall sensors to monitor the motor's motion state in real time, can track the motor's resonant frequency in real time by calculating the motion state, allowing the motor to be controlled at its optimal state in real time. However, without sensor acquisition and feedback, using the original drive signal waveform can easily lead to a mismatch between the motor's resonant frequency and the drive signal waveform. This makes it difficult to resolve the mismatch between the resonant frequency and the drive signal waveform caused by changes in the motor's structural characteristics.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field.
[0007] Summary of the Invention
[0008] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0009] The embodiments of the present disclosure provide a method and apparatus, an electronic device, and a storage medium for calibrating a drive signal waveform, so as to solve the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the motor structural characteristics without sensor feedback.
[0010] In some embodiments, the method for calibrating a drive signal waveform includes: collecting a back electromotive force (EMF) of a motor during an aftershock phase after playback of a first drive signal waveform ends; obtaining an updated resonant frequency of the motor based on the back electromotive force; and resampling the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform.
[0011] In some embodiments, obtaining an updated resonant frequency of the motor based on the back electromotive force includes determining whether a maximum value of the back electromotive force exceeds a preset detection threshold, and obtaining a determination result. If the determination result is that the maximum value of the back electromotive force exceeds the preset detection threshold, determining zero-crossing information of the back electromotive force during the residual vibration phase. Obtaining the updated resonant frequency of the motor based on the zero-crossing information.
[0012] In some embodiments, obtaining an updated resonant frequency of the motor according to the zero-crossing information includes: performing calculations using the zero-crossing information according to a preset algorithm to obtain the updated resonant frequency of the motor.
[0013] In some embodiments, resampling the first drive signal waveform based on the updated resonant frequency to obtain the second drive signal waveform includes: obtaining a frequency ratio based on the updated resonant frequency, and interpolating the first drive signal waveform using the frequency ratio to obtain the second drive signal waveform.
[0014] In some embodiments, obtaining the frequency ratio according to the updated resonant frequency includes: obtaining a current resonant frequency of the motor under the first driving signal waveform, and determining a ratio between the current resonant frequency and the updated resonant frequency as the frequency ratio.
[0015] In some embodiments, after obtaining the frequency ratio according to the updated resonant frequency, the method further includes: performing windowing and filtering on the first drive signal waveform.
[0016] In some embodiments, the apparatus for calibrating a drive signal waveform includes: an acquisition module configured to acquire a back electromotive force (EMF) of the motor during an aftershock phase after the first drive signal waveform has finished playing; an acquisition module configured to acquire an updated resonant frequency of the motor based on the back electromotive force; and a resampling module configured to resample the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform.
[0017] In some embodiments, the apparatus for calibrating a driving signal waveform includes: a processor and a memory storing program instructions, and the processor is configured to perform the above-mentioned method for calibrating a driving signal waveform when executing the program instructions.
[0018] In some embodiments, the electronic device includes: an electronic device body; and the above-mentioned device for calibrating the driving signal waveform is installed in the electronic device body.
[0019] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for calibrating the driving signal waveform described above is executed.
[0020] The method and device, electronic device, and storage medium for calibrating the drive signal waveform provided by the embodiments of the present disclosure can achieve the following technical effects: by collecting the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played. The updated resonant frequency of the motor is obtained based on the reverse electromotive force. The first drive signal waveform is resampled based on the updated resonant frequency to obtain the second drive signal waveform. In this way, there is no need to integrate multiple sensors inside the motor to collect and feedback signals, and the changed updated resonant frequency can be detected by the reverse electromotive force in the aftershock stage. And by resampling the first drive signal waveform based on the changed updated resonant frequency, a second drive signal waveform that matches the updated resonant frequency can be obtained. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,
[0023] FIG1 is a schematic diagram of a method for calibrating a driving signal waveform provided by an embodiment of the present disclosure;
[0024] FIG2 is a schematic diagram of zero-crossing information of the back electromotive force of a motor in the residual vibration stage provided by an embodiment of the present disclosure;
[0025] FIG3 is a schematic diagram of another method for calibrating a driving signal waveform provided by an embodiment of the present disclosure;
[0026] FIG4 is a schematic diagram of another method for calibrating a driving signal waveform provided by an embodiment of the present disclosure;
[0027] FIG5 is a schematic structural diagram of a device for calibrating a driving signal waveform according to an embodiment of the present disclosure;
[0028] FIG6 is a schematic diagram showing the effect of a calibration driving signal waveform provided by an embodiment of the present disclosure;
[0029] FIG7 is a schematic diagram showing a comparison of effects of a short signal band brake drive signal provided by an embodiment of the present disclosure;
[0030] FIG8 is a schematic diagram showing a comparison of effects of a long signal without a brake drive signal provided by an embodiment of the present disclosure;
[0031] FIG9 is a schematic structural diagram of another apparatus for calibrating a driving signal waveform provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0033] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0034] Unless otherwise stated, the term "plurality" means two or more.
[0035] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0036] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0037] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0038] In the disclosed embodiment, the electronic device establishes a real-time communication connection with the motor, detects the reverse electromotive force in the residual vibration stage after the last drive, and obtains the change in the motor resonant frequency based on the reverse electromotive force, thereby updating the motor resonant frequency. Before playing the drive signal waveform this time, the drive signal waveform is resampled based on the updated motor resonant frequency, so that the resampled drive signal waveform can match the updated motor resonant frequency. The resampled drive signal waveform is then used to drive the motor. This can improve the user's tactile experience. At the same time, this solution can be arranged on the basis of the existing motor platform, and does not require multiple sensors to collect and feedback signals, which can reduce costs. It solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0039] 1 , an embodiment of the present disclosure provides a method for calibrating a driving signal waveform, the method comprising:
[0040] In step S101 , the electronic device collects the reverse electromotive force of the motor in the residual vibration stage after the first driving signal waveform is played.
[0041] In step S102 , the electronic device obtains an updated resonant frequency of the motor according to the back electromotive force.
[0042] In step S103 , the electronic device resamples the first driving signal waveform based on the updated resonant frequency to obtain a second driving signal waveform.
[0043] The method for calibrating the drive signal waveform provided by the embodiment of the present disclosure is adopted, by collecting the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played. The updated resonant frequency of the motor is obtained based on the reverse electromotive force. The first drive signal waveform is resampled based on the updated resonant frequency to obtain the second drive signal waveform. In this way, there is no need to integrate multiple sensors inside the motor to collect and feedback signals, and the changed updated resonant frequency can be detected by the reverse electromotive force in the aftershock stage. The first drive signal waveform is resampled based on the changed updated resonant frequency to obtain a second drive signal waveform that matches the updated resonant frequency. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0044] In some embodiments, the first driving signal waveform is a preset driving signal waveform, ie, the driving signal waveform played by the motor last time, and the second driving signal waveform is the driving signal waveform played by the motor this time.
[0045] Furthermore, the electronic device obtains an updated resonant frequency of the motor based on the back electromotive force, including: determining whether the maximum value of the back electromotive force exceeds a preset detection threshold, and obtaining a determination result. If the determination result shows that the maximum value of the back electromotive force exceeds the preset detection threshold, the electronic device determines zero-crossing information of the back electromotive force during the residual vibration phase. The updated resonant frequency of the motor is obtained based on the zero-crossing information.
[0046] In some embodiments, if the maximum value of the back EMF during the aftershock phase exceeds a preset detection threshold, it is considered that the motor resonant frequency has significantly shifted due to significant changes in the motor's structural characteristics, and is no longer compatible with the first drive signal waveform. Therefore, it is necessary to obtain an updated resonant frequency based on the back EMF, and resample the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform that matches the updated resonant frequency. If the maximum value of the back EMF during the aftershock phase does not exceed the preset detection threshold, there is no need to re-acquire the updated resonant frequency of the motor.
[0047] In some embodiments, the zero-crossing information includes the zero-crossing time instant and the order of the zero-crossing time instants.
[0048] As shown in Figure 2, Figure 2 is a schematic diagram of the zero-crossing information of the reverse electromotive force of a motor in the aftershock stage provided by an embodiment of the present disclosure. The zero-crossing information in Figure 2 includes the zero-crossing moment and the order of the zero-crossing moments. The zero-crossing moments include C1, C2, C3, C4 and C5. The order of the zero-crossing moment C1 is the first zero-crossing moment of the reverse electromotive force of the motor in the aftershock stage. The order of the zero-crossing moment C2 is the second zero-crossing moment of the reverse electromotive force of the motor in the aftershock stage. The order of the zero-crossing moment C3 is the third zero-crossing moment of the reverse electromotive force of the motor in the aftershock stage. The order of the zero-crossing moment C4 is the fourth zero-crossing moment of the reverse electromotive force of the motor in the aftershock stage. The order of the zero-crossing moment C5 is the fifth zero-crossing moment of the reverse electromotive force of the motor in the aftershock stage.
[0049] Furthermore, the electronic device obtains an updated resonant frequency of the motor based on the zero-crossing information, including: the electronic device calculates the updated resonant frequency of the motor using the zero-crossing information according to a preset algorithm. In this way, the back electromotive force during the residual vibration phase can be used to calculate that the updated resonant frequency is different from the center frequency of the first drive signal waveform, that is, the updated resonant frequency does not match the first drive signal waveform. This facilitates the user to determine whether to resample the first drive signal waveform based on whether the updated resonant frequency matches the first drive signal waveform.
[0050] Furthermore, the electronic device calculates the motor's updated resonant frequency using the zero-crossing information according to a preset algorithm, including: Get the updated resonant frequency of the motor. Where F0 is the updated resonant frequency of the motor, and Fs is the preset sampling frequency. n is the nth zero-crossing moment, C m is the mth zero-crossing moment.
[0051] Optionally, the electronic device resamples the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform, including: obtaining a frequency ratio based on the updated resonant frequency; and performing interpolation processing on the first drive signal waveform using the frequency ratio to obtain the second drive signal waveform. The interpolation processing may include linear interpolation, nearest neighbor interpolation, or spline interpolation.
[0052] Optionally, the electronic device resamples the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform, including: the electronic device performing calculations using the frequency ratio according to a preset interpolation processing algorithm to obtain the second drive signal waveform. The preset interpolation processing algorithm includes a linear interpolation algorithm, a nearest neighbor interpolation algorithm, or a spline interpolation algorithm.
[0053] Furthermore, the electronic device obtains the frequency ratio based on the updated resonant frequency, including: the electronic device obtains the current resonant frequency of the motor under the first drive signal waveform. The ratio between the current resonant frequency and the updated resonant frequency is determined as the frequency ratio. In this way, since the frequency ratio is the ratio between the current resonant frequency and the updated resonant frequency. The drive signal waveform is resampled by the old and new different resonant frequencies. On the basis of not changing the original drive signal form, only its center frequency is changed, which can achieve the playback effect produced by not changing the drive motor, and solves the problem of matching the center frequency of the drive signal waveform with the resonant frequency of the motor in the absence of sensor collection and feedback signals.
[0054] Furthermore, after the electronic device obtains the frequency ratio based on the updated resonant frequency, the electronic device further includes: performing windowing and filtering on the first drive signal waveform. In this way, since the mutation point in the time domain has a significant impact on the spectrum under Fourier transform, i.e., spectrum leakage, by windowing the first drive signal waveform, time-frequency localization can be achieved and the spectrum leakage problem can be solved. At the same time, by performing filtering, noise or false components in the first drive signal waveform can be filtered out, thereby improving the signal-to-noise ratio, smoothing analysis data, or suppressing interference signals.
[0055] In some embodiments, after obtaining the frequency ratio based on the updated resonant frequency, the electronic device performs windowing and filtering on the first drive signal waveform, and obtains the second drive signal waveform by interpolating the windowed and filtered first drive signal waveform using the frequency ratio.
[0056] 3 , an embodiment of the present disclosure provides a method for calibrating a driving signal waveform, the method comprising:
[0057] In step S301 , the electronic device collects the reverse electromotive force of the motor in the residual vibration stage after the first driving signal waveform is played.
[0058] Step S302: When the maximum value of the back electromotive force exceeds a preset detection threshold, the electronic device determines zero-crossing point information of the back electromotive force in the aftershock phase.
[0059] In step S303 , the electronic device obtains an updated resonant frequency of the motor according to the zero-crossing point information.
[0060] In step S304 , the electronic device obtains the current resonant frequency of the motor under the first driving signal waveform.
[0061] In step S305 , the electronic device determines the ratio between the current resonant frequency and the updated resonant frequency as the frequency ratio.
[0062] In step S306 , the electronic device performs windowing and filtering on the first driving signal waveform.
[0063] In step S307 , the electronic device uses the frequency ratio to perform interpolation processing on the first driving signal waveform after the windowing processing and the filtering processing to obtain a second driving signal waveform.
[0064] By adopting the method for calibrating the drive signal waveform provided by the embodiment of the present disclosure, the changed updated resonant frequency can be detected by the reverse electromotive force in the residual vibration stage, without the need to integrate multiple sensors inside the motor to collect and feedback signals. By windowing and filtering the first drive signal waveform respectively, and obtaining a frequency ratio based on the changed updated resonant frequency, the first drive signal waveform is interpolated using the frequency ratio, thereby achieving resampling of the first drive signal waveform. A second drive signal waveform that matches the updated resonant frequency can be obtained. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the motor structural characteristics without sensor feedback.
[0065] Furthermore, after the electronic device resamples the first drive signal waveform based on the updated resonant frequency to obtain the second drive signal waveform, the electronic device further includes: playing the second drive signal waveform.
[0066] 4 , an embodiment of the present disclosure provides a method for calibrating a driving signal waveform, the method comprising:
[0067] In step S401 , the electronic device collects the reverse electromotive force of the motor in the residual vibration stage after the first driving signal waveform is played.
[0068] In step S402 , the electronic device obtains an updated resonant frequency of the motor according to the back electromotive force.
[0069] In step S403 , the electronic device resamples the first driving signal waveform based on the updated resonant frequency to obtain a second driving signal waveform.
[0070] Step S404 : The electronic device plays the second driving signal waveform.
[0071] Using the method for calibrating a drive signal waveform provided by the embodiments of the present disclosure, the changed updated resonant frequency can be detected using the back electromotive force during the aftershock phase, eliminating the need for multiple sensors integrated within the motor to collect and provide feedback. By windowing and filtering the first drive signal waveform, and obtaining a frequency ratio based on the changed updated resonant frequency, the first drive signal waveform is interpolated using this frequency ratio, thereby achieving resampling of the first drive signal waveform. A second drive signal waveform matching the updated resonant frequency can be obtained. This solves the problem of mismatching the resonant frequency and drive signal waveform caused by changes in motor structural characteristics without sensor feedback. However, after the motor's resonant frequency changes, using the first drive signal waveform with the original center frequency to drive the motor at the changed updated resonant frequency can degrade the user's tactile experience. By updating the first drive signal waveform to a second drive signal waveform that matches the motor and then playing the second drive signal waveform, consistent tactile feedback can be maintained, thereby improving the user experience. Furthermore, by real-time collecting the back electromotive force of the motor during the aftershock phase after the first drive signal waveform has finished playing, real-time drive signal waveform adjustment and playback can be achieved.
[0072] As shown in Figure 5, an embodiment of the present disclosure provides a device 500 for calibrating a drive signal waveform, which includes: an acquisition module 501, an acquisition module 502, and a resampling module 503. The acquisition module 501 is configured to acquire the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played. And the measured reverse electromotive force is sent to the acquisition module 502. The acquisition module 502 is configured to receive the reverse electromotive force sent by the acquisition module 501, and obtain the updated resonant frequency of the motor based on the reverse electromotive force. And the updated resonant frequency is sent to the resampling module 503. The resampling module 503 is configured to receive the updated resonant frequency sent by the acquisition module, resample the first drive signal waveform based on the updated resonant frequency, and obtain the second drive signal waveform.
[0073] The device for calibrating the drive signal waveform provided by the embodiment of the present disclosure is used to collect the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played back through the acquisition module. The acquisition module obtains the updated resonant frequency of the motor based on the reverse electromotive force. The resampling module resamples the first drive signal waveform based on the updated resonant frequency to obtain the second drive signal waveform. In this way, there is no need to integrate multiple sensors inside the motor to collect and feedback signals, and the changed updated resonant frequency can be detected through the reverse electromotive force in the aftershock stage. Resampling the first drive signal waveform based on the changed updated resonant frequency can obtain a second drive signal waveform that matches the updated resonant frequency. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0074] Furthermore, the acquisition module is configured to acquire an updated resonant frequency of the motor based on the back electromotive force by determining whether the maximum value of the back electromotive force exceeds a preset detection threshold, and obtaining a determination result. If the determination result is that the maximum value of the back electromotive force exceeds the preset detection threshold, the module determines zero-crossing information of the back electromotive force during the residual vibration phase. The updated resonant frequency of the motor is acquired based on the zero-crossing information.
[0075] Furthermore, the acquisition module is configured to acquire the updated resonant frequency of the motor according to the zero-crossing point information in the following manner: performing calculations using the zero-crossing point information according to a preset algorithm to obtain the updated resonant frequency of the motor.
[0076] Furthermore, the resampling module is configured to resample the first drive signal waveform based on the updated resonant frequency to obtain the second drive signal waveform by obtaining a frequency ratio according to the updated resonant frequency and interpolating the first drive signal waveform using the frequency ratio to obtain the second drive signal waveform.
[0077] Furthermore, the resampling module is configured to obtain a frequency ratio value based on the updated resonant frequency by: obtaining a current resonant frequency of the motor under the first drive signal waveform, and determining a ratio between the current resonant frequency and the updated resonant frequency as the frequency ratio value.
[0078] Furthermore, the resampling module is further configured to perform windowing and filtering on the first drive signal waveform after updating the resonant frequency to obtain the frequency ratio.
[0079] FIG6 is a schematic diagram illustrating the effect of calibrating a drive signal waveform according to an embodiment of the present disclosure. FIG6 includes the motor response when the drive signal waveform is played normally, the motor response when the motor structural characteristics are changed, and the motor response when the drive signal waveform is played after the calibration. The motor response when the drive signal waveform is played normally is the motor response when the first drive signal waveform is played at the current resonant frequency. The motor response when the motor structural characteristics are changed is the motor response when the first drive signal waveform is played at the updated resonant frequency. The motor response when the drive signal waveform is played after the calibration is the motor response when the second drive signal waveform is played at the updated resonant frequency. In FIG6 , before the motor structural characteristics change, the first drive signal waveform matches the current resonant frequency. After the motor structural characteristics change, the current resonant frequency changes to the updated resonant frequency. Since the first drive signal waveform has not yet been calibrated, the updated resonant frequency does not match the first drive signal waveform, resulting in a different effect between the motor response when the motor structural characteristics change and the normal drive signal waveform. The second drive signal waveform matching the updated resonant frequency is obtained by calibrating the first drive signal waveform. At this time, the motor response to playing the second driving signal waveform is the same as the motor response to normally playing the first driving signal waveform.
[0080] As shown in conjunction with Figures 7 and 8, Figure 7 is a schematic diagram comparing the effects of a short-signal drive signal with a brake, provided by an embodiment of the present disclosure. Figure 8 is a schematic diagram comparing the effects of a long-signal drive signal without a brake, provided by an embodiment of the present disclosure. As shown in Figure 7, the dashed line represents the acceleration amplitude of the uncalibrated drive signal waveform, and the solid line represents the acceleration amplitude of the calibrated drive signal waveform. Before the drive signal waveform is calibrated, the amplitude of the motor's residual acceleration after a short-signal brake is large. After the drive signal waveform is calibrated, the amplitude of the motor's residual acceleration after a short-signal brake is significantly reduced. Reverse braking can quickly stop the vibrator's movement, reducing the amplitude of the residual acceleration after a short-signal brake. As shown in Figure 8, the dashed line represents the acceleration amplitude of the uncalibrated drive signal waveform, and the solid line represents the acceleration amplitude of the calibrated drive signal waveform. In the case of a long-signal drive signal without a brake, before the drive signal waveform is calibrated, the amplitude of the long-signal drive acceleration is small. However, after the drive signal waveform is calibrated, the amplitude of the long-signal drive acceleration is significantly increased. The method for calibrating the drive signal waveform provided by the present solution can be applied to different types of drive signal waveforms. For signals containing brakes, when the residual vibration of the motor is lower than or equal to the preset value, the resonant frequency is not considered to be updated. When the residual vibration of the motor exceeds the preset value, the resonant frequency is updated, and then the drive signal waveform is calibrated. For signals that do not contain brakes, the drive frequency required for the motor next time can be obtained by measuring the residual vibration of the motor, ensuring that the drive efficiency does not decrease. At the same time, when playing a certain specific effect, there is no need to pre-store a large number of identical drive signal waveforms with different center frequencies. Only one reference drive signal waveform is required. The method for calibrating the drive signal waveform provided by the present solution can calibrate the center frequency of the reference drive signal waveform, which can cover all center frequency usage scenarios.
[0081] As shown in FIG9 , an embodiment of the present disclosure provides an apparatus 900 for calibrating a drive signal waveform, comprising a processor 904 and a memory 901. Optionally, the apparatus 300 for calibrating a drive signal waveform may further comprise a communication interface 902 and a bus 903. The processor 904, the communication interface 902, and the memory 901 may communicate with each other via the bus 903. The communication interface 902 may be used for information transmission. The processor 904 may invoke logic instructions in the memory 901 to execute the method for calibrating a drive signal waveform according to the above embodiment.
[0082] The device for calibrating the drive signal waveform provided by the embodiment of the present disclosure is used to collect the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played. The updated resonant frequency of the motor is obtained based on the reverse electromotive force. The first drive signal waveform is resampled based on the updated resonant frequency to obtain the second drive signal waveform. In this way, there is no need to integrate multiple sensors inside the motor for detection, and the changed updated resonant frequency can be detected by the reverse electromotive force in the aftershock stage. The first drive signal waveform is resampled based on the changed updated resonant frequency to obtain a second drive signal waveform that matches the updated resonant frequency. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0083] In addition, the logic instructions in the memory 901 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0084] Memory 901, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 904 executes the program instructions / modules stored in memory 901 to perform functional applications and data processing, thereby implementing the method for calibrating the drive signal waveform in the above-mentioned embodiment.
[0085] The memory 901 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 901 may include high-speed random access memory and non-volatile memory.
[0086] An embodiment of the present disclosure provides an electronic device, comprising: an electronic device body, and the above-mentioned device for calibrating the drive signal waveform. The device for calibrating the drive signal waveform is installed on the electronic device body. The installation relationship described here is not limited to placement inside the electronic device body, but also includes installation connections with other components of the electronic device body, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art will understand that the device for calibrating the drive signal waveform can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.
[0087] The electronic device provided by the embodiment of the present disclosure is used to collect the reverse electromotive force of the motor in the aftershock stage after the first drive signal waveform is played. The updated resonant frequency of the motor is obtained based on the reverse electromotive force. The first drive signal waveform is resampled based on the updated resonant frequency to obtain the second drive signal waveform. In this way, there is no need to integrate multiple sensors inside the motor for detection, and the changed updated resonant frequency can be detected by the reverse electromotive force in the aftershock stage. The first drive signal waveform is resampled based on the changed updated resonant frequency to obtain a second drive signal waveform that matches the updated resonant frequency. This solves the problem of mismatch between the resonant frequency and the drive signal waveform caused by changes in the structural characteristics of the motor without sensor feedback.
[0088] Optionally, the electronic device includes a computer or a server, etc.
[0089] An embodiment of the present disclosure provides a storage medium storing program instructions. When the program instructions are run, the method for calibrating the driving signal waveform is executed.
[0090] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, enable the computer to execute the above-mentioned method for calibrating a drive signal waveform.
[0091] An embodiment of the present disclosure provides a computer program. When the computer program is executed by a computer, the computer is enabled to implement the above-mentioned method for calibrating a driving signal waveform.
[0092] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0093] The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code, or a transient storage medium.
[0094] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0095] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0096] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0097] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for calibrating a driving signal waveform, characterized in that: include: Collecting the reverse electromotive force of the motor in the residual vibration stage after the first driving signal waveform is played; Obtaining an updated resonant frequency of the motor based on the back electromotive force; The first drive signal waveform is resampled based on the updated resonant frequency to obtain a second drive signal waveform.
2. The method according to claim 1, characterized in that Obtaining the updated resonant frequency of the motor based on the back EMF includes: Determine whether the maximum value of the reverse electromotive force exceeds a preset detection threshold, and obtain a determination result; When the result of determination is that the maximum value of the back electromotive force exceeds the preset detection threshold, determining the zero-crossing point information of the back electromotive force in the residual vibration stage; The updated resonant frequency of the motor is obtained based on the zero-crossing point information.
3. The method according to claim 2, characterized in that The updated resonant frequency of the motor is obtained according to the zero-crossing point information, including: The zero-crossing information is used to calculate according to a preset algorithm to obtain an updated resonant frequency of the motor.
4. The method according to any one of claims 1 to 3, characterized in that: Resampling the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform includes: Obtaining a frequency ratio value according to the updated resonant frequency; The first drive signal waveform is interpolated using the frequency ratio to obtain a second drive signal waveform.
5. The method according to claim 4, characterized in that The frequency ratio is obtained according to the updated resonant frequency, including: Acquire the current resonant frequency of the motor under the first driving signal waveform; A ratio between the current resonant frequency and the updated resonant frequency is determined as the frequency ratio.
6. The method according to claim 4, characterized in that After obtaining the frequency ratio according to the updated resonant frequency, it also includes: The first drive signal waveform is subjected to windowing processing and filtering processing.
7. A device for calibrating a driving signal waveform, characterized in that: include: A collection module is configured to collect the reverse electromotive force of the motor in the residual vibration stage after the first driving signal waveform is played; an acquisition module configured to acquire an updated resonant frequency of the motor according to the back electromotive force; The resampling module is configured to resample the first drive signal waveform based on the updated resonant frequency to obtain a second drive signal waveform.
8. A device for calibrating a driving signal waveform, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for calibrating a drive signal waveform according to any one of claims 1 to 6 when running the program instructions.
9. An electronic device, characterized in that: include: Electronic device body; The device for calibrating the driving signal waveform as described in claim 7 or 8 is installed in the electronic device body.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for calibrating a driving signal waveform according to any one of claims 1 to 6 is executed.
11. A computer program, when executed by a computer, causes the computer to implement the method for calibrating a drive signal waveform according to any one of claims 1 to 6.
12. A computer program product, comprising computer instructions stored on a computer-readable storage medium, and when the program instructions are executed by a computer, the computer is enabled to implement the method for calibrating a drive signal waveform according to any one of claims 1 to 6.
Citation Information
Patent Citations
Touch sense vibration control system and method of intelligent terminal
CN105630021A
Method and device for determining resonant frequency of linear vibration device
CN108429507A
Method and system for detecting motor resonant frequency
CN111220263A
Linear motor calibration method, electronic device and storage medium
CN114509156A
Power measurement method for elevator balance coefficient inspection
CN115598407A
Cited By
Motor control method, control circuit and device
CN119298774A
