A method and system for detecting resonance frequency of a linear resonance motor
By collecting and weighting the average peak value and zero-crossing time interval of the induced electromotive force waveform in a linear resonant motor, combined with iterative calculations, the problem of insufficient detection accuracy under low signal-to-noise ratio is solved, and higher resonant frequency detection accuracy and automatic detection are achieved. Damping coefficient calculation.
Patent Information
- Application Number
- CN202210626774.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-01
- Filing Date
- 2022-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-05
AI Technical Summary
The existing resonant frequency detection method of linear resonant motor has low accuracy under low signal-to-noise ratio, is susceptible to noise interference, and requires additional measurement of the damping coefficient for calibration, resulting in insufficient detection accuracy.
The preset frequency waveform is played through the drive circuit and then turned off, the peak signal and zero-crossing time interval of the induced electromotive force waveform are collected, and the free oscillation frequency and damping coefficient are calculated using weighted average and iterative operations to reduce the impact of noise and improve accuracy.
It improves the accuracy of resonant frequency detection of linear resonant motors, reduces noise interference, and automatically calculates the damping coefficient without additional measurements, achieving higher detection accuracy.
Smart Images

Figure CN115097203B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of linear resonant motor resonant frequency detection, and specifically to a linear resonant motor resonant frequency detection method and system. Background Art
[0002] Linear resonant actuator (LRA) is usually used to provide tactile feedback effects on portable terminals. LRA includes components such as springs, coils and vibrators. It is driven by the LRA driver chip. The driver chip applies an excitation current to the coil to generate a magnetic field, which pushes the magnetic vibrator to move in a certain direction. When the direction of the excitation current changes, the magnetic field and the driving force also change. Therefore, if the driver chip applies a periodic voltage signal to the coil, the periodic excitation current generated will push the vibrator to vibrate back and forth, achieving the effect of tactile feedback. Due to the resonant characteristics of LRA, the amplitude of the vibrator vibration shows a bandpass characteristic with the driving signal frequency. When the driving signal frequency is at the natural frequency of the vibrator (F0), the amplitude of the vibrator vibration reaches the highest and the vibration efficiency is the best.
[0003] In the existing LRA resonant frequency detection, the driver chip turns off the drive signal in the middle of providing the drive voltage waveform, allowing the LRA vibrator to oscillate freely for several cycles, and uses the acquisition circuit to collect the induced electromotive force waveform (Back electromagnetic flux, BEMF) generated by the vibrator's self-oscillation. The induced electromotive force waveform is a damped oscillation waveform. The damped oscillation frequency of the LRA is calculated by averaging the zero-crossing intervals of the induced electromotive force waveform and taking the inverse.
[0004] The prior art detects the zero-crossing point of the BEMF waveform when the driving voltage waveform is turned off, and calculates the damped oscillation frequency of the LRA by averaging the zero-crossing interval. This solution has the following disadvantages:
[0005] (1) There are high requirements for the accuracy of the BEMF detection circuit. Since the BEMF waveform is a damped oscillation waveform, as the number of cycles increases, the BEMF amplitude will gradually decay to below the noise threshold. Under low signal-to-noise ratio, the zero-crossing detection will be affected by noise interference and produce jitter. Even if it is averaged several times, it is still difficult to ensure accuracy.
[0006] (2) There is a relationship between the damped oscillation frequency and the free oscillation frequency of the second-order linear resonant system. The error is ξ, and ξ is the motor damping coefficient. The damping coefficient needs to be additionally measured and calibrated to obtain the free oscillation frequency. Summary of the invention
[0007] To this end, an embodiment of the present invention provides a linear resonant motor resonant frequency detection method and system to solve the technical problems in the prior art.
[0008] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
[0009] According to a first aspect of an embodiment of the present invention, an embodiment of the present application provides a method for detecting the resonant frequency of a linear resonant motor, the method comprising:
[0010] Playing a waveform for a number of cycles at a preset frequency through a driving circuit, and then turning off the driving circuit;
[0011] The voltage waveform at both ends of the linear resonant motor is collected to obtain the waveform of the induced electromotive force generated when the vibrator oscillates freely;
[0012] Detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, wherein n is a sampling cycle number;
[0013] The peak signal acquisition sequence w[n] is used to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain a weighted average zero-crossing time
[0014] Using the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iteratively calculated to obtain the final output resonant frequency of the linear resonant motor.
[0015] Further, using the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iterated, including:
[0016] Set the initial value of the free oscillation damping coefficient ξ[0] to 0 and perform iterative calculations;
[0017] After each iteration is completed, the free oscillation frequency f is determined. n [k] and the free oscillation damping coefficient ξ[k] satisfy their respective convergence conditions;
[0018] If the free oscillation frequency f n [k] or the free oscillation damping coefficient ξ[k] does not meet the corresponding convergence condition, then set k=k+1 and perform the next iterative operation;
[0019] If the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] satisfy the corresponding convergence conditions, then the iterative operation ends and the free oscillation frequency f obtained at this time is n [k] is the resonant frequency of the linear resonant motor as the final output.
[0020] Furthermore, the formula for the iterative operation is:
[0021]
[0022]
[0023] Where k is the number of iterations, and the initial value of k is 0.
[0024] Furthermore, the free oscillation frequency f n The convergence conditions of [k] and the free oscillation damping coefficient ξ[k] are:
[0025]
[0026]
[0027] Among them, f n (lower_limit) is the free oscillation frequency f n [k] The lower limit of the iterative operation convergence, f n (upper_limit) is the free oscillation frequency f n [k] is the upper limit of the iterative operation convergence, ξ[k](lower_limit) is the lower limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k], and ξ[k](upper_limit) is the upper limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k].
[0028] Furthermore, the weighted average zero-crossing time The calculation formula is:
[0029]
[0030] Wherein, n is an integer greater than or equal to 1.
[0031] Further, detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform comprises:
[0032] Determine the type of linear resonant motor to be tested;
[0033] If the linear resonant motor to be tested is a symmetrical type linear resonant motor, the symmetrical induced electromotive force waveform detection mode is entered;
[0034] Collect and record the absolute value of each peak voltage in the induced electromotive force waveform and the time interval between two adjacent out-of-phase zero-crossing points according to a sampling period, wherein the sampling period is half of the variation period of the induced electromotive force waveform;
[0035] After each sampling cycle is completed, determining whether the absolute value of the recorded peak voltage is less than a preset voltage;
[0036] If the absolute value of the recorded peak voltage is not less than the preset voltage, it is determined that the linear resonance motor is still in a vibration state, and sampling is performed in the next sampling cycle;
[0037] If the absolute value of the recorded peak voltage is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0038] Furthermore, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, and further includes:
[0039] If the linear resonant motor to be tested is an asymmetric linear resonant motor, then the asymmetric induced electromotive force waveform detection mode is entered;
[0040] Collect and record the peak-to-peak value of the induced electromotive force waveform and the time interval between two adjacent in-phase zero-crossing points according to a sampling period, wherein the sampling period is equal to the variation period of the induced electromotive force waveform;
[0041] After each sampling cycle is completed, determining whether the recorded peak-to-peak value is less than a preset voltage;
[0042] If the recorded peak-to-peak value is not less than the preset voltage, it is determined that the linear resonant motor is still in a vibrating state, and sampling is performed in the next sampling cycle;
[0043] If the recorded peak-to-peak value is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0044] Furthermore, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, and further includes:
[0045] If the absolute value or peak-to-peak value of the recorded peak voltage is not less than the preset voltage, determining whether the sampling period exceeds the preset period;
[0046] If the sampling period does not exceed the preset period, sampling is performed in the next sampling period;
[0047] If the sampling period exceeds the preset period, the acquisition is stopped immediately, and the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are generated according to the recorded information.
[0048] Further, determining the type of the linear resonant motor to be tested includes:
[0049] Determine whether the oscillator has the same speed and opposite direction during forward and reverse vibration;
[0050] If the oscillator has the same speed and opposite directions during the forward and reverse vibrations, the linear resonant motor to be tested is a symmetrical linear resonant motor, and the host computer sets the mode selection signal to 0;
[0051] If the vibrator has different velocities and opposite directions during the forward and reverse vibration processes, the linear resonant motor to be tested is an asymmetric linear resonant motor, and the host computer sets the mode selection signal to 1.
[0052] According to a second aspect of an embodiment of the present invention, an embodiment of the present application provides a linear resonant motor resonant frequency detection system, the system comprising:
[0053] A driving waveform generating module, used to play a waveform of several cycles at a preset frequency through a driving circuit, and then turn off the driving circuit;
[0054] The driving waveform acquisition module is used to collect the voltage waveform at both ends of the linear resonant motor to obtain the induced electromotive force waveform generated when the vibrator oscillates freely;
[0055] An induced electromotive force waveform detection module is used to detect a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, wherein n is a sampling cycle number;
[0056] The weighted average zero-crossing time calculation module is used to use the peak signal acquisition sequence w[n] to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain the weighted average zero-crossing time
[0057] Iterative operation module, used to use the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iteratively calculated to obtain the final output resonant frequency of the linear resonant motor.
[0058] Further, using the weighted average zero-crossing time For free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iterated, including:
[0059] Set the initial value of the free oscillation damping coefficient ξ[0] to 0 and perform iterative calculations;
[0060] After each iteration is completed, the free oscillation frequency f is determined. n [k] and the free oscillation damping coefficient ξ[k] satisfy their respective convergence conditions;
[0061] If the free oscillation frequency f n [k] or the free oscillation damping coefficient ξ[k] does not meet the corresponding convergence condition, then set k=k+1 and perform the next iterative operation;
[0062] If the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] satisfy the corresponding convergence conditions, then the iterative operation ends and the free oscillation frequency f obtained at this time is n [k] is the resonant frequency of the linear resonant motor as the final output.
[0063] Furthermore, the formula for the iterative operation is:
[0064]
[0065]
[0066] Where k is the number of iterations, and the initial value of k is 0.
[0067] Furthermore, the free oscillation frequency f n The convergence conditions of [k] and the free oscillation damping coefficient ξ[k] are:
[0068]
[0069]
[0070] Among them, f n (lower_limit) is the free oscillation frequency f n [k] The lower limit of the iterative operation convergence, f n (upper_limit) is the free oscillation frequency f n[k] is the upper limit of the iterative operation convergence, ξ[k](lower_limit) is the lower limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k], and ξ[k](upper_limit) is the upper limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k].
[0071] Furthermore, the weighted average zero-crossing time The calculation formula is:
[0072]
[0073] Wherein, n is an integer greater than or equal to 1.
[0074] Further, detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform comprises:
[0075] Determine the type of linear resonant motor to be tested;
[0076] If the linear resonant motor to be tested is a symmetrical type linear resonant motor, the symmetrical induced electromotive force waveform detection mode is entered;
[0077] Collect and record the absolute value of each peak voltage in the induced electromotive force waveform and the time interval between two adjacent out-of-phase zero-crossing points according to a sampling period, wherein the sampling period is half of the variation period of the induced electromotive force waveform;
[0078] After each sampling cycle is completed, determining whether the absolute value of the recorded peak voltage is less than a preset voltage;
[0079] If the absolute value of the recorded peak voltage is not less than the preset voltage, it is determined that the linear resonance motor is still in a vibration state, and sampling is performed in the next sampling cycle;
[0080] If the absolute value of the recorded peak voltage is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0081] Furthermore, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, and further includes:
[0082] If the linear resonant motor to be tested is an asymmetric linear resonant motor, then the asymmetric induced electromotive force waveform detection mode is entered;
[0083] Collect and record the peak-to-peak value of the induced electromotive force waveform and the time interval between two adjacent in-phase zero-crossing points according to a sampling period, wherein the sampling period is equal to the variation period of the induced electromotive force waveform;
[0084] After each sampling cycle is completed, determining whether the recorded peak-to-peak value is less than a preset voltage;
[0085] If the recorded peak-to-peak value is not less than the preset voltage, it is determined that the linear resonant motor is still in a vibrating state, and sampling is performed in the next sampling cycle;
[0086] If the recorded peak-to-peak value is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0087] Furthermore, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, and further includes:
[0088] If the absolute value or peak-to-peak value of the recorded peak voltage is not less than the preset voltage, determining whether the sampling period exceeds the preset period;
[0089] If the sampling period does not exceed the preset period, sampling is performed in the next sampling period;
[0090] If the sampling period exceeds the preset period, the acquisition is stopped immediately, and the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are generated according to the recorded information.
[0091] Further, determining the type of the linear resonant motor to be tested includes:
[0092] Determine whether the oscillator has the same speed and opposite direction during forward and reverse vibration;
[0093] If the oscillator has the same speed and opposite directions during the forward and reverse vibrations, the linear resonant motor to be tested is a symmetrical linear resonant motor, and the host computer sets the mode selection signal to 0;
[0094] If the vibrator has different velocities and opposite directions during the forward and reverse vibration processes, the linear resonant motor to be tested is an asymmetric linear resonant motor, and the host computer sets the mode selection signal to 1.
[0095] Compared with the prior art, the linear resonant motor resonant frequency detection method and system provided in the embodiment of the present application simultaneously collects the peak value and zero-crossing time of the BEMF signal of the LRA at a higher sampling rate (48KHz) during the period when the driving waveform is turned off. A weighted average calculation method for the zero-crossing time interval is adopted, and the peak value or peak-to-peak difference is used as the weight of the zero-crossing signal time interval acquisition sequence, and weighted averaging is performed, thereby reducing the weight of the BEMF zero-crossing time interval under low signal-to-noise ratio, and can effectively improve the influence of the BEMF detection circuit noise on the zero-crossing jitter under low signal-to-noise ratio, thereby improving the detection accuracy of the resonant frequency of the linear resonant motor. In addition, the calculation of the free oscillation frequency takes into account the influence of the damping coefficient. Under the condition that the motor damping coefficient is unknown, the damping coefficient and free oscillation frequency of the motor are calculated simultaneously by iteratively calculating the collected data, thereby achieving a higher resonant motor resonant frequency detection accuracy than the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0097] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0098] Figure 1 A schematic diagram of the structure of a linear resonant motor resonant frequency detection system provided by an embodiment of the present invention;
[0099] Figure 2 A schematic diagram of a flow chart of a method for detecting the resonance frequency of a linear resonance motor provided by an embodiment of the present invention;
[0100] Figure 3 A schematic diagram of a symmetrical induced electromotive force waveform detection mode in a linear resonant motor resonant frequency detection method provided by an embodiment of the present invention;
[0101] Figure 4 A schematic diagram of an asymmetric induced electromotive force waveform detection mode in a linear resonant motor resonant frequency detection method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0102] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0103] In the existing detection method, the driver chip turns off the drive signal in the middle of providing the drive voltage waveform, allowing the LRA oscillator to oscillate freely for several cycles, and uses the acquisition circuit to collect the BEMF generated when the oscillator oscillates by itself. BEMF is a damped oscillation waveform. The damped oscillation frequency of the LRA is calculated by averaging the zero-crossing intervals of the induced electromotive force waveform and taking the inverse. Since the BEMF waveform is a damped oscillation waveform, as the number of cycles increases, the BEMF amplitude will gradually decay to below the noise threshold. Zero-crossing detection under low signal-to-noise ratio will be affected by noise interference and produce jitter. Even if it is averaged several times, it is still difficult to ensure accuracy.
[0104] In order to solve the above technical problems, Figure 1 As shown, an embodiment of the present application provides a linear resonant motor resonant frequency detection system including: a drive waveform generation module 01, a drive waveform acquisition module 02, an induced electromotive force waveform detection module 03, a weighted average zero-crossing time calculation module 04, and an iterative operation module 05.
[0105] Specifically, the drive waveform generation module 01 is used to play a waveform of several cycles at a preset frequency through the drive circuit 06, and then turn off the drive circuit 06; the drive waveform acquisition module 02 is used to acquire the voltage waveform at both ends of the linear resonant motor 07, obtain the induced electromotive force waveform generated when the vibrator oscillates freely, and send it to the induced electromotive force waveform detection module 03; the induced electromotive force waveform detection module 03 is used to detect the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform and send them to the weighted average zero-crossing time calculation module 04, where n is the sampling cycle number; the weighted average zero-crossing time calculation module 04 is used to use the peak signal acquisition sequence w[n] to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain the weighted average zero-crossing time. and sent to the iterative operation module 05; the iterative operation module 05 is used to use the weighted average zero crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] iteratively calculate the free oscillation frequency fn[k] and the free oscillation damping coefficient ξ[k] to obtain the final output resonant frequency of the linear resonant motor.
[0106] Compared with the prior art, the linear resonant motor resonant frequency detection system provided in the embodiment of the present application simultaneously collects the peak value and zero-crossing time of the BEMF signal of the LRA at a higher sampling rate (48KHz) during the period when the driving waveform is turned off. A weighted average calculation method for the zero-crossing time interval is adopted, and the peak value or peak-to-peak difference is used as the weight of the zero-crossing signal time interval acquisition sequence, and weighted averaging is performed, thereby reducing the weight of the BEMF zero-crossing time interval under low signal-to-noise ratio, and can effectively improve the influence of the BEMF detection circuit noise on the zero-crossing jitter under low signal-to-noise ratio, thereby improving the detection accuracy of the resonant frequency of the linear resonant motor. In addition, the calculation of the free oscillation frequency takes into account the influence of the damping coefficient. Under the condition that the motor damping coefficient is unknown, the damping coefficient and free oscillation frequency of the motor are calculated simultaneously by iteratively calculating the collected data, thereby achieving a higher resonant motor resonant frequency detection accuracy than the prior art.
[0107] Corresponding to the above-disclosed linear resonant motor resonant frequency detection system, the embodiment of the present invention further discloses a linear resonant motor resonant frequency detection method. The following describes in detail a linear resonant motor resonant frequency detection method disclosed in the embodiment of the present invention in combination with the above-described linear resonant motor resonant frequency detection system.
[0108] like Figure 2 As shown, an embodiment of the present application provides a linear resonant motor resonant frequency detection method which specifically includes the following steps.
[0109] The driving waveform generating module 01 is used to play a waveform of several cycles at a preset frequency through the driving circuit 06 , and then turn off the driving circuit 06 .
[0110] The driving waveform acquisition module 02 acquires the voltage waveform at both ends of the linear resonant motor 07 , obtains the induced electromotive force waveform generated when the vibrator oscillates freely, and sends it to the induced electromotive force waveform detection module 03 .
[0111] Specifically, the driving waveform acquisition module 02 in the embodiment of the present invention is an analog to digital converter. When the driving circuit 06 plays a waveform of several cycles at a preset frequency and then turns off the driving waveform, the analog to digital converter is turned on to collect the voltage waveform at both ends of the linear resonant motor 07, that is, the BEMF waveform.
[0112] The induced electromotive force waveform detection module 03 detects the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform and sends them to the weighted average zero-crossing time calculation module 04, where n is the sampling cycle number.
[0113] Furthermore, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, including: firstly, determining the type of the linear resonant motor to be tested. Specifically, determining the type of the linear resonant motor to be tested includes: determining whether the speed of the vibrator is the same and the direction is opposite during the forward and reverse vibration processes; if the speed of the vibrator is the same and the direction is opposite during the forward and reverse vibration processes, the linear resonant motor to be tested is a symmetrical type linear resonant motor, and the host computer sets the mode selection signal to 0; if the speed of the vibrator is different and the direction is opposite during the forward and reverse vibration processes, the linear resonant motor to be tested is an asymmetrical type linear resonant motor, and the host computer sets the mode selection signal to 1.
[0114] refer to Figure 3 If the linear resonance motor to be tested is a symmetrical type linear resonance motor, because the mode selection signal is 0, the induced electromotive force waveform detection module 03 enters the symmetrical induced electromotive force waveform detection mode; the absolute value of each peak voltage in the induced electromotive force waveform and the time interval between two adjacent out-of-phase zero-crossing points are collected and recorded according to the sampling period, wherein the sampling period is half of the change period of the induced electromotive force waveform; after each sampling period is completed, it is determined whether the absolute value of the recorded peak voltage is less than the preset voltage; if the absolute value of the recorded peak voltage is not less than the preset voltage, it is determined that the linear resonance motor is still in a vibration state, and sampling is performed in the next sampling period; if the absolute value of the recorded peak voltage is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately, and the peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0115] refer to Figure 4 If the linear resonant motor to be tested is an asymmetric linear resonant motor, because the mode selection signal is 1, the induced electromotive force waveform detection module 03 enters the asymmetric induced electromotive force waveform detection mode; the peak-to-peak value in the induced electromotive force waveform and the time interval between two adjacent in-phase zero-crossing points are collected and recorded according to the sampling period, wherein the sampling period is equal to the change period of the induced electromotive force waveform; after each sampling period, it is determined whether the recorded peak-to-peak value is less than the preset voltage; if the recorded peak-to-peak value is not less than the preset voltage, it is determined that the linear resonant motor is still in a vibrating state, and sampling is performed for the next sampling period; if the recorded peak-to-peak value is less than the preset voltage, it is determined that the linear resonant motor stops vibrating, and the collection is stopped immediately, and the peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
[0116] Preferably, whether it is a symmetrical induced electromotive force waveform detection mode or an asymmetrical induced electromotive force waveform detection mode, the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are detected from the induced electromotive force waveform, and it also includes: if the absolute value or peak-to-peak value of the recorded peak voltage is not less than the preset voltage, it is determined whether the sampling period exceeds the preset period; if the sampling period does not exceed the preset period, sampling of the next sampling period is performed; if the sampling period exceeds the preset period, the acquisition is stopped immediately, and the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are generated according to the recorded information.
[0117] The weighted average zero-crossing time calculation module 04 uses the peak signal acquisition sequence w[n] to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain the weighted average zero-crossing time And sent to the iterative operation module 05. Specifically, the weighted average zero-crossing time The calculation formula is:
[0118]
[0119] Wherein, n is an integer greater than or equal to 1.
[0120] In the embodiment of the present application, during the period when the driving waveform is turned off, the peak value and zero-crossing time of the BEMF signal of the LRA are collected at a higher sampling rate (48KHz). A weighted average calculation method for the zero-crossing time interval is adopted, and the peak value or peak-to-peak difference is used as the weight of the zero-crossing signal time interval collection sequence, and weighted averaging is performed, which reduces the weight of the BEMF zero-crossing time interval under low signal-to-noise ratio, and can effectively improve the influence of the BEMF detection circuit noise on the zero-crossing jitter under low signal-to-noise ratio, thereby improving the detection accuracy of the resonant frequency of the linear resonant motor.
[0121] Iterative operation module 05 uses weighted average zero crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iteratively calculated to obtain the final output resonant frequency of the linear resonant motor. Further, it specifically includes: assigning the initial value of the free oscillation damping coefficient ξ[0] to 0 and performing iterative calculation; the formula of the iterative calculation is:
[0122]
[0123]
[0124] Where k is the number of iterations, and the initial value of k is 0.
[0125] That is, first use the initial value of the free oscillation damping coefficient ξ[0] as 0 to calculate the initial value of the free oscillation frequency f n [0], using the initial value of the free oscillation frequency f n [0] Calculate the initial value of the free oscillation damping coefficient ξ[1], and then use the above iterative calculation formula to perform continuous calculations.
[0126] After each iteration is completed, the free oscillation frequency f is determined. n [k] and the free oscillation damping coefficient ξ[k] satisfy their respective convergence conditions. n The convergence conditions of [k] and free oscillation damping coefficient ξ[k] are:
[0127]
[0128]
[0129] Among them, f n (lower_limit) is the free oscillation frequency f n [k] The lower limit of the iterative operation convergence, f n (upper_limit) is the free oscillation frequency f n [k] is the upper limit of the iterative operation convergence, ξ[k](lower_limit) is the lower limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k], and ξ[k](upper_limit) is the upper limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k].
[0130] If the free oscillation frequency f n [k] or the free oscillation damping coefficient ξ[k] does not meet the corresponding convergence condition, then set k = k + 1 and perform the next iteration. If the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] satisfy the corresponding convergence conditions, then the iterative operation ends and the free oscillation frequency f obtained at this time is n [k] is the resonant frequency of the linear resonant motor as the final output.
[0131] In an embodiment of the present application, the calculation of the free oscillation frequency takes into account the influence of the damping coefficient. When the damping coefficient of the motor is unknown, the damping coefficient and free oscillation frequency of the motor are calculated simultaneously by iteratively calculating the collected data, thereby achieving a higher resonant motor resonant frequency detection accuracy than the prior art.
[0132] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for detecting the resonant frequency of a linear resonant motor, characterized in that: The method comprises: Playing a waveform for a number of cycles at a preset frequency through a driving circuit, and then turning off the driving circuit; The voltage waveform at both ends of the linear resonant motor is collected to obtain the waveform of the induced electromotive force generated when the vibrator oscillates freely; Detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, wherein n is a sampling cycle number; The peak signal acquisition sequence w[n] is used to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain a weighted average zero-crossing time Using the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iteratively calculated to obtain the final output resonant frequency of the linear resonant motor.
2. A linear resonant motor resonant frequency detection method as claimed in claim 1, characterized in that: Using the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] perform iterative operations on the free oscillation frequency fn[k] and the free oscillation damping coefficient ξ[k], including: Set the initial value of the free oscillation damping coefficient ξ[0] to 0 and perform iterative calculations; After each iteration is completed, the free oscillation frequency f is determined. n [k] and the free oscillation damping coefficient ξ[k] satisfy their respective convergence conditions; If the free oscillation frequency f n [k] or the free oscillation damping coefficient ξ[k] does not meet the corresponding convergence condition, then set k=k+1 and perform the next iterative operation; If the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] satisfy the corresponding convergence conditions, then the iterative operation ends and the free oscillation frequency f obtained at this time is n [k] is the resonant frequency of the linear resonant motor as the final output.
3. A linear resonant motor resonant frequency detection method as claimed in claim 2, characterized in that: The formula for the iterative operation is: Where k is the number of iterations, and the initial value of k is 0.
4. A linear resonant motor resonant frequency detection method as claimed in claim 3, characterized in that: The free oscillation frequency f n The convergence conditions of [k] and the free oscillation damping coefficient ξ[k] are: Among them, f n (lower_limit) is the free oscillation frequency f n [k] The lower limit of the iterative operation convergence, f n (upper_limit) is the free oscillation frequency f n [k] is the upper limit of the iterative operation convergence, ξ[k](lower_limit) is the lower limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k], and ξ[k](upper_limit) is the upper limit of the iterative operation convergence of the free oscillation damping coefficient ξ[k].
5. A linear resonant motor resonant frequency detection method as claimed in claim 4, characterized in that: The weighted average zero-crossing time The calculation formula is: Wherein, n is an integer greater than or equal to 1.
6. A linear resonant motor resonant frequency detection method as claimed in claim 5, characterized in that: Detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform includes: Determine the type of linear resonant motor to be tested; If the linear resonant motor to be tested is a symmetrical type linear resonant motor, the symmetrical induced electromotive force waveform detection mode is entered; Collect and record the absolute value of each peak voltage in the induced electromotive force waveform and the time interval between two adjacent out-of-phase zero-crossing points according to a sampling period, wherein the sampling period is half of the variation period of the induced electromotive force waveform; After each sampling cycle is completed, determining whether the absolute value of the recorded peak voltage is less than a preset voltage; If the absolute value of the recorded peak voltage is not less than the preset voltage, it is determined that the linear resonance motor is still in a vibration state, and sampling is performed in the next sampling cycle; If the absolute value of the recorded peak voltage is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
7. A linear resonant motor resonant frequency detection method as claimed in claim 6, characterized in that: Detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, further comprising: If the linear resonant motor to be tested is an asymmetric linear resonant motor, then the asymmetric induced electromotive force waveform detection mode is entered; Collect and record the peak-to-peak value of the induced electromotive force waveform and the time interval between two adjacent in-phase zero-crossing points according to a sampling period, wherein the sampling period is equal to the variation period of the induced electromotive force waveform; After each sampling cycle is completed, determining whether the recorded peak-to-peak value is less than a preset voltage; If the recorded peak-to-peak value is not less than the preset voltage, it is determined that the linear resonant motor is still in a vibrating state, and sampling is performed in the next sampling cycle; If the recorded peak-to-peak value is less than the preset voltage, it is determined that the linear resonance motor stops vibrating, and the collection is stopped immediately. The peak signal collection sequence w[n] and the zero-crossing signal time interval collection sequence Δt[n] are generated according to the recorded information.
8. A method for detecting the resonance frequency of a linear resonance motor as claimed in claim 6 or 7, characterized in that: Detecting a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, further comprising: If the absolute value or peak-to-peak value of the recorded peak voltage is not less than the preset voltage, determining whether the sampling period exceeds the preset period; If the sampling period does not exceed the preset period, sampling is performed in the next sampling period; If the sampling period exceeds the preset period, the acquisition is stopped immediately, and the peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are generated according to the recorded information.
9. A method for detecting the resonance frequency of a linear resonance motor as claimed in claim 6, characterized in that: Determine the type of linear resonant motor to be tested, including: Determine whether the oscillator has the same speed and opposite direction during forward and reverse vibration; If the oscillator has the same speed and opposite directions during the forward and reverse vibrations, the linear resonant motor to be tested is a symmetrical linear resonant motor, and the host computer sets the mode selection signal to 0; If the vibrator has different velocities and opposite directions during the forward and reverse vibration processes, the linear resonant motor to be tested is an asymmetric linear resonant motor, and the host computer sets the mode selection signal to 1.
10. A linear resonant motor resonant frequency detection system, characterized in that: The system comprises: A driving waveform generating module, used to play a waveform of several cycles at a preset frequency through a driving circuit, and then turn off the driving circuit; The driving waveform acquisition module is used to collect the voltage waveform at both ends of the linear resonant motor to obtain the induced electromotive force waveform generated when the vibrator oscillates freely; An induced electromotive force waveform detection module is used to detect a peak signal acquisition sequence w[n] and a zero-crossing signal time interval acquisition sequence Δt[n] from the induced electromotive force waveform, wherein n is a sampling cycle number; The weighted average zero-crossing time calculation module is used to use the peak signal acquisition sequence w[n] to perform weighted average calculation on the zero-crossing signal time interval acquisition sequence Δt[n] to obtain the weighted average zero-crossing time Iterative operation module, used to use the weighted average zero-crossing time The peak signal acquisition sequence w[n] and the zero-crossing signal time interval acquisition sequence Δt[n] are related to the free oscillation frequency f n [k] and the free oscillation damping coefficient ξ[k] are iteratively calculated to obtain the final output resonant frequency of the linear resonant motor.
Citation Information
Patent Citations
Handing resonances in power transmission system
CN104126261A
Integrated circuit and resonant frequency detection method and circuit
CN104215832A
Resonant frequency measurement method and measurement system of oscillator, and harmonic oscillator
CN107238755A
Method and system for detecting motor resonant frequency
CN111220263A
Online estimation method of direct-current capacitor ESR
CN111812409A
