A method and device for detecting resonance frequency of a linear motor

By driving the linear motor at a preset frequency and detecting the peak time point of the reverse electromotive force signal, its resonant frequency is quickly determined, which solves the problems of slow detection speed and high signal-to-noise ratio in the existing technology, and achieves rapid determination of the resonant frequency of the linear motor. Accurate detection and vibration control.

CN116155166BActive Publication Date: 2024-09-03WUHAN JUXIN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111438389.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-09-03
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The existing linear motor resonant frequency detection method has slow detection speed and high signal-to-noise ratio requirements, making it difficult to synchronously track the motor's resonant frequency during use, resulting in changes in the vibration amount.

Method used

The linear motor is driven by the preset resonant frequency, enters the high resistance state to obtain the reverse electromotive force signal, and the resonant frequency is determined based on the peak time point of the reverse electromotive force signal. The true resonant frequency of the motor is quickly determined using fewer detection cycles, and the reverse electromotive force signal is obtained through alternating Driving and detection operations improve detection accuracy.

Benefits of technology

It reduces the requirement for signal-to-noise ratio, quickly determines the resonant frequency of the motor, improves the vibration control effect, can accurately determine the true resonant frequency of the motor under various circumstances, and improves the stability of vibration control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155166B
    Figure CN116155166B
Patent Text Reader

Abstract

A linear motor resonant frequency detection method and device are disclosed. According to one embodiment, a linear motor resonant frequency detection method may include: driving the linear motor at a preset resonant frequency; controlling the linear motor to enter a high-impedance state and obtaining a reverse electromotive force signal of several cycles; and determining the resonant frequency of the linear motor according to the time points of multiple peaks based on the reverse electromotive force signal. The present invention can quickly determine the resonant frequency of the motor, thereby facilitating the frequency calibration of the drive waveform as needed to ensure the stability of the vibration amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and more specifically, to a method and device for detecting the resonant frequency of a linear motor. Background Art

[0002] Linear motors are widely used in tactile feedback implementation technology due to their small size, fast start-up, and low power consumption. Linear motors mainly include springs, magnetic mass blocks, and coils. The springs suspend the mass blocks inside the motor. The mass blocks can move on a single axis in the applied changing magnetic field, and this vibration is sensed by people to produce a tactile effect.

[0003] During operation, in order to efficiently generate tactile effects, the spring-loaded mass is ideally driven at its natural resonant frequency. For example, the closer the frequency of the driving waveform is to the true resonant frequency of the motor, the shorter the time it takes for the motor to enter resonance and the more obvious the vibration effect. During the braking phase, the closer the frequency of the driving waveform is to the true resonant frequency of the motor, the faster the motor can brake. Therefore, obtaining the accurate motor resonant frequency is an important prerequisite for achieving vibration control.

[0004] When the actual resonant frequency of a smart device deviates from the resonant frequency designed at the factory due to the use environment, physical shock, component aging, etc., the vibration of the motor will change. The existing linear motor resonant frequency detection method has a slow detection speed and a high signal-to-noise ratio requirement. In addition, since the detected vibration is relatively long, it is generally only used in a few scenarios such as factory delivery or startup, making it difficult to truly synchronize and track the resonant frequency of the linear motor. Summary of the invention

[0005] In order to solve the above technical problems in the prior art, the present application is proposed. The embodiment of the present application provides a method and a device for detecting the resonant frequency of a linear motor, which can quickly determine the resonant frequency, thereby facilitating the frequency calibration of the drive waveform as needed to achieve a stable and consistent control effect of the vibration amount.

[0006] According to one aspect of the present application, a method for detecting the resonant frequency of a linear motor is provided, comprising: driving the linear motor at a preset resonant frequency; controlling the linear motor to enter a high-impedance state and acquiring a back electromotive force signal of several cycles; and determining the resonant frequency of the linear motor based on the time points of multiple peak values ​​according to the back electromotive force signal.

[0007] In some embodiments, driving the linear motor at a preset resonant frequency includes overdriving the linear motor and then driving the linear motor normally.

[0008] In some embodiments, based on the back electromotive force signal, determining the resonant frequency of the linear motor according to the time points of multiple peak values ​​may include: sampling the back electromotive force signal and performing analog-to-digital conversion on the sampled data to obtain a digital signal; determining multiple time points at which the multiple peak values ​​of the back electromotive force appear according to the quantized value of the digital signal; determining the resonant period of the linear motor based on the multiple time points at which the peak values ​​appear; and determining the resonant frequency of the linear motor according to the resonant period.

[0009] In some embodiments, the method may further include: removing low-order data from the digital signal as the quantized value.

[0010] In some embodiments, determining multiple time points at which the multiple peaks of the reverse electromotive force appear based on the quantized value of the digital signal includes: comparing the absolute value of the quantized value with a preset threshold; recording a first moment when the absolute value of the quantized value is equal to or greater than the preset threshold; continuing sampling and analog-to-digital conversion operations, and recording a second moment when the quantized value is equal to or less than the preset threshold; and calculating the average value of the first moment and the second moment, and determining it as the time point at which a peak of the reverse electromotive force appears.

[0011] In some embodiments, the method may also include: driving the linear motor again at the determined resonant frequency; controlling the linear motor to enter a high-impedance state again and obtaining a second back electromotive force signal of several cycles; and based on the second back electromotive force signal, updating and determining the resonant frequency of the linear motor according to the time points of multiple peak values.

[0012] In some embodiments, the method may further include: in response to receiving an end detection signal during the driving process, performing reverse overdriving on the linear motor after the normal driving.

[0013] In some embodiments, the method may further include: in response to receiving an end detection signal during the high impedance state, overdriving the linear motor in reverse phase.

[0014] In some embodiments, the waveform amplitude of the anti-phase overdrive is associated with the duration of the drive.

[0015] Another aspect of the present application provides a device for detecting the resonant frequency of a linear motor, comprising: a monitoring module for driving the linear motor at a preset resonant frequency and obtaining a back electromotive force signal of several cycles after controlling the linear motor to enter a high-impedance state; and a calculation module configured to determine the resonant frequency of the linear motor based on the back electromotive force signal and according to the time points of multiple peak values.

[0016] Another aspect of the present application also provides a resonant frequency detection system for a linear motor, comprising: the aforementioned linear motor detection device; and a driving unit, which is used to vibrate the linear motor using a driving waveform having the preset resonant frequency or having the determined resonant frequency.

[0017] Compared with the prior art, the detection method and device of the linear motor resonant frequency of the embodiment of the present application can reduce the signal-to-noise ratio requirement by detecting the peak value of the reverse electromotive force to determine the resonant frequency, and can determine the resonant frequency of the motor with fewer detection cycles. In addition, the detection process is further accelerated by controlling the vibration at the start of the motor; and the detection process can be terminated during both the driving operation and the detection operation, so that the detection method of the present application can be used in a variety of situations to accurately determine the true resonant frequency of the motor, thereby improving the vibration control effect of the motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 A flow chart showing a linear motor resonant frequency detection method according to an embodiment of the present application is shown;

[0020] Figure 2 A flow chart showing a method for determining the resonant frequency of a linear motor according to time points of multiple peak values ​​provided in accordance with an embodiment of the present application;

[0021] Figure 3 A flow chart showing a method for determining a time point of a peak value of a reverse electromotive force according to an embodiment of the present application;

[0022] Figure 4 A schematic diagram showing a time point for determining a peak value of a reverse electromotive force according to an embodiment of the present application;

[0023] Figure 5 A schematic diagram showing a calculation method for determining a resonant period of a back electromotive force provided according to an embodiment of the present application;

[0024] Figure 6 A flow chart showing a detection method for determining the resonant frequency of a linear motor provided according to an embodiment of the present application;

[0025] Figure 7 A flow chart of a linear motor resonant frequency detection method provided according to an embodiment of the present application is shown;

[0026] Figure 8 A block diagram showing a linear motor resonant frequency detection device according to an embodiment of the present application;

[0027] Fig. 9 The figure shows a structural block diagram of a linear motor resonant frequency detection system provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] Below, the example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. At the same time, it is not necessary to realize all the above advantages at the same time to implement any example of the embodiments of the present application. It should be understood that the present application should not be limited to the specific details of these example embodiments. Instead, the embodiments of the present application can be implemented without these specific details or by adopting other alternatives, without departing from the ideas and principles of the present application defined in the claims.

[0029] The embodiments of this invention provide a method for detecting the resonant frequency of a linear motor, which can be applied to various application scenarios such as factory settings and frequency calibration in actual use. Figure 1 , which shows a flow chart of a method for detecting the resonant frequency of a linear motor provided by an embodiment of the present application, such as Figure 1 As shown, the method 100 may include the following steps:

[0030] In step S110 , the linear motor is driven at a preset resonance frequency.

[0031] In one embodiment, the linear motor can implement the resonant frequency detection method of the present invention after receiving a detection enable signal. The enable signal can be triggered by a user or according to a driving mode. For example, a corresponding detection enable signal can be generated according to a current driving state. After receiving the enable signal, the control system generates a control signal for generating a driving signal to drive the linear motor.

[0032] For example, in response to the control signal, the signal generating circuit can generate a driving signal with a preset resonant frequency, and provide it to the linear motor through the driving circuit to cause the motor to vibrate. The driving signal can be a sine wave, a square wave, etc., and the driving cycle or duration can also be preset. In one embodiment, the set driving duration can be several resonant cycles. For example, the cumulative duration of the driving signal can be 0.01-0.3s.

[0033] It is understandable that the present application can also adjust the duration or period of the driving signal according to the driving conditions, that is, the driving duration is not limited to the above range, but a smaller duration or fewer driving cycles may be selected to speed up the overall detection process.

[0034] To this end, in one embodiment, the step may include first overdriving the linear motor and then performing conventional driving. For example, the drive circuit may first provide one or more cycles of drive signals at a first voltage to the linear motor for overdriving, and then provide one or more cycles of drive signals at a second voltage to the linear motor for conventional driving, wherein the first voltage is greater than the second voltage, so that the starting speed can be increased, and the cumulative duration of overdriving and conventional driving can be less than 0.1s, or even less than 0.01s.

[0035] Step S120, controlling the linear motor to enter a high-impedance state, and obtaining a plurality of cycles of back electromotive force signals.

[0036] The back electromotive force is induced by the movement of the permanent magnet (mass) of the linear motor relative to the winding coil. Since the mass vibrates at the inherent resonant frequency, the induced back electromotive force signal will also have this resonant frequency. In one embodiment, the back electromotive force can be obtained by collecting the electromotive force generated at both ends of the linear motor due to the vibration generated by the linear motor drive. In step S110, the back electromotive force of the linear motor always exists under normal driving vibration, but the back electromotive force is easily submerged in the larger driving voltage and difficult to detect. For this reason, in one embodiment, the motor can be put into a high-impedance state by disconnecting the drive, for example. In the high-impedance state, there is no driving signal, and the back electromotive force can be directly detected and obtained without the need to separate the back electromotive force from the monitoring signal with the help of complex calculations. Specifically, before collecting the back electromotive force signal, the driving signal of the linear motor can be disconnected, and the pins at both ends of the motor can be grounded and discharged, so that the voltage signal detected at both ends of the motor is close to the back electromotive force signal.

[0037] In one embodiment, the linear motor can be maintained in a high-impedance state for several cycles, and the number of high-impedance state cycles can be set according to actual needs. With the help of the principle of the present invention, the detection of the resonant frequency can be achieved through a high-impedance state with fewer cycles. In one embodiment, the number of high-impedance state cycles can be less than 5, for example, the high-impedance state can be maintained for 4, 3 or even 2 cycles. When the duration of the high-impedance state reaches a predetermined number, the detection process can be terminated or a new round of detection process can be performed, which will be described in detail later.

[0038] In one embodiment, after the back electromotive force signal is acquired, the acquired electromotive force signal may be processed, for example, low-pass filtering may be performed first, and then smoothing preprocessing may be performed to obtain a burr-free signal of interest.

[0039] After the back electromotive force signal is acquired, step S130 may be performed to determine the resonant frequency of the linear motor according to the time points of the multiple peak values ​​based on the back electromotive force signal.

[0040] In the high-resistance state, the linear motor will output a reverse electromotive force with a resonant frequency. The reverse electromotive force will have two peak values ​​(extreme values) in one cycle, namely, a crest and a trough. Therefore, the time point when the reverse electromotive force has a peak value can be determined by tracking and detecting the information such as the amplitude of the reverse electromotive force signal, and then the cycle when the reverse electromotive force has a peak value can be determined by tracking the time points of at least two peak values, thereby determining the resonant frequency of the linear motor. It can be understood that the "peak time point" in this article is the time point corresponding to the maximum absolute value of the amplitude of the reverse electromotive force, that is, the time point when the reverse electromotive force has a peak or a trough.

[0041] This embodiment determines the resonant frequency of the linear motor based on the time information of the peak value. Compared with the method of determining the resonant frequency by the zero crossing point of the back electromotive force, the signal-to-noise ratio requirement can be reduced, and the resonant frequency of the linear motor can be determined in fewer detection cycles, thereby speeding up the detection process. In practical applications, the current accurate resonant frequency can be quickly obtained, thereby ensuring the vibration effect of the motor.

[0042] Figure 2 FIG. 1 is a flow chart showing a method for determining the resonant frequency of a linear motor according to the time points of multiple peak values ​​provided in accordance with an embodiment of the present application. Figure 2 As shown, the peak time point of the motor electromotive force and the resonant frequency of the motor can be determined based on the following steps:

[0043] Step 210: sampling the back electromotive force signal and performing analog-to-digital conversion on the sampled data to obtain a digital signal.

[0044] For example, the acquired back electromotive force signal may be sampled at a predetermined sampling frequency and then input through an analog-to-digital converter (ADC), which converts the analog input signal into a digital signal, which may then be processed to detect the magnitude of the electromotive force.

[0045] In one embodiment, the analog-to-digital converter may use low-precision analog-to-digital conversion hardware. By using the calculation method of the resonance frequency described below, the accurate resonance frequency can still be obtained using a low-precision ADC device.

[0046] Step 220: determining multiple time points at which the multiple peaks of the back electromotive force appear according to the quantized value of the digital signal.

[0047] For example, after determining the first peak of the reverse electromotive force based on the amplitude and polarity of the reverse electromotive force represented by the quantized value of the digital signal and recording its time point, continue to sample a predetermined time period (for example, the time period can be determined based on a preset resonant period), and detect the extreme value of the time period to determine the time point when the second peak of the reverse electromotive force appears, and so on, the time points of the third, fourth, and other multiple peaks within the specified time length / period can also be determined.

[0048] In one embodiment, before implementing step 220, the digital signal obtained after analog-to-digital conversion may be subjected to signal processing such as low-bit-depth quantization to facilitate the detection of the time point of the peak value. For example, the low-bit data of the digital signal may be removed as the quantization value, and the time point at which the peak value of the reverse electromotive force appears is determined on this basis. For example, the 16-bit data obtained after ADC processing is 0x 1000 1000 1000 1111, and through low-bit-depth quantization processing, such as erasing low-bit data, such as the last 4 bits or the last 8 bits, specifically, after removing the low-bit data, the quantization value of the digital signal of the reverse electromotive force after processing is 0x 1000 1000 0000 0000. In this way, the requirements for the signal-to-noise ratio can be significantly reduced, and the method for determining the peak time point will be described in detail below.

[0049] Step 230 : determining the resonance period of the linear motor based on the multiple time points at which the peak values ​​appear.

[0050] After determining the time points of multiple peaks, the peak-to-peak period (i.e., the interval between a peak and an adjacent peak) and / or the peak-to-valley period (i.e., the interval between a peak and an adjacent trough) can be determined accordingly. The resonant period can be determined by a peak-to-peak period or a peak-to-valley period, or the period of the back electromotive force can be determined by converting several peak-to-peak periods or peak-to-valley periods to determine the resonant period of the linear motor.

[0051] Step 240: determining the resonant frequency of the linear motor according to the resonant period.

[0052] After the resonance period is determined, the resonance frequency of the motor may be calculated according to f0=1 / T, where f0 is the resonance frequency of the motor and T is the resonance period determined in step 230 .

[0053] Figure 3 A flow chart showing a method for determining the time point of the peak value of the reverse electromotive force according to the quantized value of the digital signal provided in accordance with an embodiment of the present application is shown. Figure 3 As shown, the peak time point of the motor back electromotive force can be determined based on the following steps:

[0054] Step 222: Compare the absolute value of the quantized value with a preset threshold.

[0055] For example, as described above, the sampled digital signal may be first subjected to low bit depth quantization to obtain a quantized value, and then its absolute value may be compared with a preset threshold. The preset threshold may be less than the peak value (maximum value) of the back electromotive force. In one embodiment, a sliding window operation may be used to smooth the data for noise reduction.

[0056] Step 224, recording the first moment when the absolute value of the quantization value is equal to or greater than the preset threshold.

[0057] For example, see Figure 4 , which shows a schematic diagram of the time point of determining the peak value of the back electromotive force according to an embodiment of the present application. When the value of the determined quantized value exceeds the preset threshold, that is, the back electromotive force enters the peak interval, the time t1 when it is equal to or greater than the threshold for the first time can be recorded.

[0058] Step 226, continue the sampling and analog-to-digital conversion operations, and record the second moment when the quantized value is equal to or less than the preset threshold.

[0059] After entering the peak interval, the back electromotive force of the motor will approach its peak value, but since the back electromotive force amplitudes of each sampling point near the peak are close, errors are likely to occur. In this embodiment, the moment at the peak is not recorded, but the sampling and analog-to-digital conversion operations are continued, and the second moment when the quantization value is equal to or less than the preset threshold is recorded.

[0060] For example, see Figure 4 , the second time t2 when the quantized value obtained by the continuous sampling and analog-to-digital conversion operation after the first time t1 is equal to or less than the preset threshold for the first time can be recorded. In the case of low bit depth processing, the quantized values ​​of two or more sampling points adjacent to t2 may be the same. In this case, t2 can be replaced by the time corresponding to the last sampling point of the two or more sampling points.

[0061] Step 228, calculating the average value of the first moment and the second moment, and determining it as the time point when a peak value of the back electromotive force appears.

[0062] See also Figure 4 On the basis of obtaining the first moment t1 and the second moment t2, the time point at which a peak of the reverse electromotive force appears can be determined as tp1=(t1+t2) / 2.

[0063] By repeating the above steps, the time points of multiple peak values ​​(peaks and troughs) within a specified time length / period of the back electromotive force can be determined, for example Figure 4 The time points of the peak values ​​such as tp2 and tp3 are shown in FIG.

[0064] See also Figure 5 , which shows a schematic diagram of a calculation method for determining the resonant period of the reverse electromotive force according to an embodiment of the present application, such as Figure 5 As shown, after determining the time points at which each peak value appears, the half period h (or peak-to-valley period) and the full period c (or peak-to-peak period) of the reverse electromotive force can be calculated according to the time points. For example, a series of adjacent peak values ​​can be found to calculate the corresponding half period h and full period c, and h and c can be calculated by, for example, weighted calculation to obtain the resonant period T. In one embodiment, for Figure 5 From the schematic diagram of the back electromotive force waveform shown in the figure, the half periods h1, h2, h3 between the peaks and troughs and the full periods c1, c2 between the peak-peaks and the trough-trough can be calculated, and certain numerical calculations can be performed to determine the resonant period of the back electromotive force. For example, T = (2*h1+2*h2+2*h3+c1+c2) / 5 can be used to calculate the resonant period, thereby determining the resonant frequency f0 = 1 / T of the motor.

[0065] In addition, the existing technology for detecting the resonant frequency of the motor generally performs the braking operation directly after the detection in the high-impedance state, and the resonant frequency obtained may still deviate from the true resonant frequency of the motor. To solve this technical problem, the embodiments of this article provide a resonant frequency detection method for a linear motor, which detection method includes alternating driving operations and detection operations. After the detection operation, the motor can be controlled to perform a new round of driving operations. Specifically, during the driving operation, the motor can be driven by updating the driving waveform based on the resonant frequency determined by the detection to increase the vibration intensity of the motor; during the detection operation, the motor is controlled to enter a high-impedance state, the reverse electromotive force at both ends of the motor is monitored, and the true resonant frequency of the motor is calculated. By alternating several driving operations and detection operations, the detection accuracy of the resonant frequency can be steadily improved, thereby ensuring a stable vibration amount and a smooth vibration feel.

[0066] refer to Figure 6 , which shows a flow chart of a detection method for determining the resonant frequency of a linear motor provided by an embodiment of the present application. It can be understood that, Figure 6 The steps shown can be the operation steps continued based on the detection method described above, for example, Figure 1 The method shown is based on the following steps:

[0067] In step 310 , the linear motor is driven again at the determined resonant frequency.

[0068] For example, when executing Figure 1After step 130, the resonant frequency of the motor (hereinafter referred to as the first resonant frequency) can be determined, but the first resonant frequency may deviate from the actual frequency of the motor. For this reason, in response to not receiving a stop detection signal, a gradient drive voltage can be applied to the motor again, and overdrive and normal drive can be performed with a drive waveform having the determined first resonant frequency.

[0069] Step 320: Control the linear motor to enter a high-impedance state again, and obtain a second back electromotive force signal of several cycles.

[0070] This step can be done with Figure 1 The process is performed in a similar manner to step 120. For example, the linear motor can be maintained in a high-impedance state for several cycles, and the collected back electromotive force signal is processed to obtain a second back electromotive force signal, which will not be described in detail here.

[0071] Step 330 : Based on the second back electromotive force signal, update and determine the resonant frequency of the linear motor according to the time points of the multiple peak values.

[0072] This step can be done with Figure 1 The process may be performed in a similar manner to step 130. For example, the back electromotive force signal may be sampled, quantized at a low bit depth, and the time point at which the back electromotive force peaks is tracked and determined. Furthermore, the period of the back electromotive force may be determined through the time points of at least two back electromotive force peaks. Thus, the resonant frequency of the linear motor (hereinafter referred to as the second resonant frequency) may be determined. The second resonant frequency is closer to the true resonant frequency of the motor than the first resonant frequency. That is, the detection accuracy of the resonant frequency is improved by alternating driving operations and detection operations.

[0073] Step 340, determining whether an end detection signal is received.

[0074] For example, if the end detection signal is not received, the process may return to step 310 to continue a new round of driving and detecting operations. Otherwise, in response to receiving the end detection signal during the high impedance state, the linear motor may be overdriven in reverse phase, that is, overdriven in a phase opposite to the reverse electromotive force to shorten the braking time, so that the motor stops vibrating quickly, and then the drive is turned off.

[0075] In one embodiment, the present invention can also end the detection process during the driving operation, so that the detection of the present invention is adapted to various situations. For example, in response to receiving the end detection signal during the driving process, the linear motor is reversely overdriven after the normal driving to end the detection process. That is, during the driving operation, the motor can be overdriven, normally driven, and reverse overdriven.

[0076] In one embodiment, in order to make the motor exit the detection of the resonant frequency as quickly as possible, the waveform amplitude of the reverse overdrive in the driving operation and / or the detection operation can be set to be associated with the duration of the drive. For example, the maximum duration of the detection operation can be controlled by combining the overdrive and the conventional drive of the motor, and the overall amplitude of the reverse overdrive waveform has a linear relationship related to the duration, so that the motor can quickly start oscillation and stop after the detection is completed.

[0077] Figure 7 FIG. 1 is a flow chart showing a linear motor resonant frequency detection method according to an embodiment of the present application. Figure 7 As shown, the detection process may include driving operations and detection operations that are performed alternately, specifically, it includes:

[0078] In step 410, the driving frequency of the linear motor is determined. In the initial driving operation, the driving frequency may be a preset resonant frequency, and in the subsequent re-driving stage, the driving frequency may be updated to the resonant frequency determined in the last detection operation.

[0079] In step 420, the motor is overdriven. For example, the driving circuit of the motor can be implemented by adjusting the level of the voltage applied to both ends of the motor, and the adjusted voltage can be calculated based on the preset voltage, so that the motor can start oscillating quickly.

[0080] In step 430, the motor is driven normally, for example, the driving voltage is adjusted to a preset voltage after overdriving for one or more cycles, and the motor is driven for one or more cycles with the preset voltage.

[0081] In step 440, it is determined whether the motor receives a signal to end detection.

[0082] In response to receiving the end detection signal during the driving process, the linear motor is reversely overdriven after the conventional driving, thereby quickly braking the motor. It can be understood that for the first driving operation, the value of the termination enable signal can be controlled to be 0, that is, the detection process will not be jumped out.

[0083] In response to not receiving the end detection signal during the driving process, the process jumps to step 450 .

[0084] In step 450, the motor is controlled to enter a high impedance state, and a back electromotive force signal generated by the motor motion induction is obtained.

[0085] For example, the drive voltage or drive signal applied to the linear motor can be stopped, and both ends of the motor input pin can be briefly discharged to ground, so that the voltage signal across the motor measured later can be close to the reverse electromotive force. After the motor enters the high-impedance state, several cycles of the reverse electromotive force signal can be collected. During the collection process, the collected signal can be sampled and quantized. The specific method can be referred to the previous description and will not be repeated here.

[0086] In step 460 , the resonant frequency of the motor is calculated based on the peak period of the back EMF.

[0087] For example, a digital signal of the back electromotive force can be obtained based on a low-bit-depth quantization method, and compared with a preset threshold to determine the first moment when the back electromotive force enters the peak interval, and then continue to sample to determine the second moment when the quantized value steps out of the peak interval, and then determine the peak time of the back electromotive force based on the average value of the first and second moments, and then determine the peak period based on several peak times to calculate the resonant frequency of the motor. Specifically, the reference Figure 2-5 The method described is carried out and will not be repeated here.

[0088] In step 470, it is determined whether a signal to end detection is received.

[0089] In response to receiving the end detection signal during the detection process, the linear motor may be reverse overdriven to quickly brake the motor. In one embodiment, the reverse overdrive and the reverse overdrive in step 440 may use the same waveform, for example, the overall amplitude of the two reverse overdrive waveforms has a linear relationship associated with the driving duration.

[0090] In response to not receiving the end signal, the process jumps to step 410 to control the motor to re-enter the next round of driving operation. After several alternating operations of driving and detecting, the present embodiment can steadily improve the accuracy of resonant frequency detection.

[0091] The motor resonant frequency detection method provided by the embodiment of the present invention determines the resonant frequency based on the peak moment of the reverse electromotive force, which can reduce the requirements for the signal-to-noise ratio, thereby reducing the hardware requirements of the system. In addition, the detection accuracy can be improved by alternating the driving operation and the detection operation to ensure the stability of the vibration amount. In addition, the resonant frequency can be determined with fewer detection cycles by controlling the motor's startup vibration, further speeding up the detection process.

[0092] The embodiment of the present invention also provides a linear motor resonant frequency detection device. Figure 8As shown, according to an embodiment of the present application, a linear motor resonant frequency detection device 500 may include: a monitoring module 510, which is connected to the motor to drive the linear motor at a preset resonant frequency, and after controlling the linear motor to enter a high-impedance state, obtains a back electromotive force signal of several cycles; and a calculation module 520, which is connected to the monitoring module 510 and is configured to determine the resonant frequency of the linear motor based on the back electromotive force signal and according to the time points of multiple peak values.

[0093] In one example, the monitoring module 510 may be configured to collect the back electromotive force signal of a predetermined time, and may also filter the collected back electromotive force signal, such as low-pass filtering, and perform smoothing preprocessing to obtain a glitch-free signal of interest.

[0094] In one example, the calculation module 520 can be configured to determine the resonant frequency of the linear motor in the following manner: sampling the back electromotive force signal and performing analog-to-digital conversion on the sampled data to obtain a digital signal; determining multiple time points at which the multiple peaks of the back electromotive force appear based on the quantized value of the digital signal; determining the resonant period of the linear motor based on the multiple time points at which the peaks appear; and determining the resonant frequency of the linear motor based on the resonant period.

[0095] In an example, the calculation module 520 may be configured to further: remove low-order data of the digital signal as the quantized value.

[0096] In one example, the calculation module 520 can be configured to determine multiple time points when the multiple peaks of the back electromotive force appear in the following manner: compare the absolute value of the quantized value with a preset threshold; record the first moment when the absolute value of the quantized value is equal to or greater than the preset threshold; continue sampling and analog-to-digital conversion operations, and record the second moment when the quantized value is equal to or less than the preset threshold; and calculate the average value of the first moment and the second moment, and determine it as the time point when a peak of the back electromotive force appears.

[0097] In one example, the monitoring module 510 can be configured to obtain a second back electromotive force signal of several cycles after driving the linear motor again at the determined resonant frequency and controlling the linear motor to enter a high-impedance state again; the calculation module 520 can be configured to update and determine the resonant frequency of the linear motor based on the second back electromotive force signal according to the time points of multiple peak values.

[0098] The specific functions and operations of the various units and modules in the above-mentioned resonant frequency detection device 500 have been described in the above reference. Figure 1-5 The detection method described in detail is described in the literature, so it is only briefly introduced here and unnecessary repeated descriptions are omitted.

[0099] Refer to the following Fig. 9 To describe the detection system of the linear motor resonant frequency, such as Fig. 9 As described above, the linear motor resonance frequency detection system may at least include a detection device 620 and a driving unit 630 .

[0100] The detection device 620 is coupled to the linear motor 610 and is used to sense the back electromotive force of the linear motor and determine the resonant frequency of the motor. Figure 1-8 And related descriptions are not repeated here. The drive unit 630 can drive the linear motor with a drive waveform having a preset resonant frequency or a resonant frequency determined by detection, and the drive unit can adopt an H-bridge or other circuit. Although not shown, the control system may also include a drive generating circuit, which can provide a drive signal (for example, a sinusoidal signal, a square wave signal, etc.) to the drive unit 630 according to a preset resonant frequency or a resonant frequency determined by detection, thereby steadily tracking and detecting the resonant frequency of the linear motor, improving the detection accuracy, facilitating the stability of the vibration amount of the motor, and ensuring the best effect of tactile vibration provided to the user.

[0101] In one embodiment, the driving unit 630 driving the linear motor at the preset resonant frequency includes overdriving the linear motor and then performing normal driving.

[0102] In one embodiment, the driving unit 630 may be configured to perform reverse overdriving on the linear motor after the normal driving in response to receiving an end detection signal during the driving process.

[0103] In one embodiment, the driving unit 630 may be configured to overdrive the linear motor in reverse phase in response to receiving an end detection signal during the high impedance state.

[0104] In one embodiment, the waveform amplitude of the anti-phase overdrive is associated with the duration of the drive.

[0105] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0106] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0107] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0108] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0109] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for detecting the resonant frequency of a linear motor, comprising: driving the linear motor at a preset resonant frequency; Disconnecting the driving signal of the linear motor, controlling the linear motor to enter a high-impedance state, and acquiring a plurality of cycles of reverse electromotive force signals; as well as Based on the back electromotive force signal, determining the resonant frequency of the linear motor according to the time points of the plurality of peaks without using the zero crossing point of the back electromotive force, Wherein, based on the back electromotive force signal, determining the resonant frequency of the linear motor according to the time points of multiple peak values ​​comprises: Sampling the back electromotive force signal, and converting the sampled data into a digital signal by using an analog-to-digital converter; Removing low-order data from the digital signal as a quantized value; Determining multiple time points at which the multiple peaks of the back electromotive force appear according to the quantized value of the digital signal; determining a resonance period of the linear motor based on the plurality of time points at which the peaks occur; and determining the resonant frequency of the linear motor according to the resonant period, Wherein, determining the multiple time points at which the multiple peak values ​​of the back electromotive force appear according to the quantized value of the digital signal includes: comparing the absolute value of the quantized value with a preset threshold; Recording the first moment when the absolute value of the quantization value is equal to or greater than the preset threshold; Continue sampling and analog-to-digital conversion operations, and record a second moment when the quantized value is equal to or less than the preset threshold; and The average value of the first moment and the second moment is calculated and determined as the time point when a peak value of the reverse electromotive force appears.

2. The detection method according to claim 1, wherein: Driving the linear motor at the preset resonant frequency includes overdriving the linear motor and then driving it normally.

3. The detection method according to claim 2, further comprising: driving the linear motor again at the determined resonant frequency; controlling the linear motor to enter a high-impedance state again, and obtaining a second back electromotive force signal of several cycles; as well as Based on the second back electromotive force signal, the resonant frequency of the linear motor is updated and determined according to the time points of the plurality of peak values.

4. The detection method according to claim 3, further comprising: In response to receiving an end detection signal during the driving process, the linear motor is overdriven in reverse phase after the normal driving.

5. The detection method according to claim 1 or 3, further comprising: In response to receiving an end detection signal during the high impedance state, the linear motor is overdriven in reverse phase.

6. The detection method according to claim 5, wherein: The waveform amplitude of the anti-phase overdrive is associated with the duration of the drive.

7. A linear motor resonant frequency detection device, comprising: A monitoring module, used for driving the linear motor at a preset resonant frequency, and obtaining a plurality of cycles of back electromotive force signals after disconnecting the driving signal of the linear motor to control the linear motor to enter a high-impedance state; as well as a calculation module configured to determine the resonant frequency of the linear motor based on the back electromotive force signal according to time points of a plurality of peak values ​​without using a zero crossing point of the back electromotive force, The calculation module is configured to determine the resonant frequency of the linear motor according to the time points of multiple peak values ​​based on the back electromotive force signal in the following manner: Sampling the back electromotive force signal, and converting the sampled data into a digital signal by using an analog-to-digital converter; Removing low-order data from the digital signal as a quantized value; Determining multiple time points at which the multiple peaks of the back electromotive force appear according to the quantized value of the digital signal; determining a resonance period of the linear motor based on the plurality of time points at which the peaks occur; and determining the resonant frequency of the linear motor according to the resonant period, Wherein, determining the multiple time points at which the multiple peak values ​​of the back electromotive force appear according to the quantized value of the digital signal includes: comparing the absolute value of the quantized value with a preset threshold; Recording the first moment when the absolute value of the quantization value is equal to or greater than the preset threshold; Continue sampling and analog-to-digital conversion operations, and record a second moment when the quantized value is equal to or less than the preset threshold; and The average value of the first moment and the second moment is calculated and determined as the time point when a peak value of the reverse electromotive force appears.

8. A linear motor resonant frequency detection system, comprising: The detection device according to claim 7; as well as A driving unit is used to vibrate the linear motor using a driving waveform having the preset resonant frequency or having the determined resonant frequency.