CN117439487B - Electronic equipment, resonance frequency detection method and storage medium - Google Patents

Electronic equipment, resonance frequency detection method and storage medium Download PDF

Info

Publication number
CN117439487B
CN117439487B CN202311765322.0A CN202311765322A CN117439487B CN 117439487 B CN117439487 B CN 117439487B CN 202311765322 A CN202311765322 A CN 202311765322A CN 117439487 B CN117439487 B CN 117439487B
Authority
CN
China
Prior art keywords
linear
motor
sine wave
frequency
wave signals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311765322.0A
Other languages
Chinese (zh)
Other versions
CN117439487A (en
Inventor
李承宇
贺文钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311765322.0A priority Critical patent/CN117439487B/en
Publication of CN117439487A publication Critical patent/CN117439487A/en
Application granted granted Critical
Publication of CN117439487B publication Critical patent/CN117439487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/06Linear motors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • G01R31/343Testing dynamo-electric machines in operation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/16Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the circuit arrangement or by the kind of wiring

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The application provides an electronic device, a resonant frequency detection method and a storage medium, wherein the electronic device comprises a linear resonant motor driving chip and a linear resonant motor; the linear resonance motor driving chip is used for acquiring and mixing sine wave signals of at least two frequencies; obtaining an excitation waveform signal in a time domain; outputting an excitation waveform signal to the linear resonant motor; to move the linear resonant motor; the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor. The application obtains and mixes sine wave signals with at least two frequencies through the linear resonance motor driving chip, then uses the mixed sine wave signals as excitation waveform signals of the linear resonance motor, and detects the resonance frequency of the linear resonance motor, and compared with a mode of inputting a plurality of sine wave signals into the linear resonance motor one by one for measuring f0, the detection duration is reduced because the excitation waveform signals are mixed results of a plurality of sine wave signals.

Description

Electronic equipment, resonance frequency detection method and storage medium
Technical Field
The present application relates to the field of linear motors, and in particular, to an electronic device, a method for detecting resonant frequency, and a storage medium.
Background
The linear motor has the advantages of small size, quick start, low power consumption and the like, is commonly used for providing a tactile feedback effect on an intelligent terminal, and particularly, the linear motor is mainly a spring system consisting of a spring, a mass block with magnetism and a coil, wherein the spring suspends the coil inside the linear motor, and the coil is connected with the mass block with magnetism. When current flows through the coil, the coil generates a magnetic field, and correspondingly, when the current flowing through the coil changes, the direction and strength of the corresponding magnetic field also change, so that the mass block moves up and down in the changed magnetic field, and the vibration of the mass block is utilized to provide a tactile effect for a user.
The linear motor has a specific resonant frequency f0, and when the linear motor is at the natural frequency f0, the amplitude of vibration reaches the highest, and the vibration efficiency is optimal. In the related art, when detecting the linear motor f0, an external PC is required to generate an excitation waveform, the excitation waveform is further input into an MCU (Microcontroller Unit, a micro control unit), the MCU transmits the excitation waveform to a power amplifier to amplify power to obtain an analog signal, then the analog signal is added to two ends of the linear motor, vibration acceleration of the linear motor is acquired through an accelerometer, the vibration acceleration is transmitted to the MCU to be processed, and f0 of the linear motor is measured; wherein the excitation generated by the PC can only be loaded on the linear motor section by section for f0 detection, resulting in longer detection time.
Disclosure of Invention
The embodiment of the application aims to provide electronic equipment, a resonant frequency detection method and a storage medium, so as to reduce the f0 detection duration, and the specific technical scheme is as follows:
In a first aspect, an embodiment of the present application provides an electronic device, including a linear resonant motor driving chip and a linear resonant motor;
The linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor;
the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion;
the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor.
According to the application, the sine wave signals with at least two frequencies are obtained through the linear resonance motor driving chip and mixed, and then the mixed sine wave signals are used as excitation waveform signals of the linear resonance motor, so that the resonance frequency of the linear resonance motor is obtained through detection, and as the excitation waveform signals are mixed by a plurality of sine wave signals, compared with a mode of inputting the sine wave signals into the linear resonance motor one by one, the detection duration can be greatly reduced.
Optionally, the linear resonant motor driving chip is specifically configured to determine the sampling point number according to the sampling frequency and the sampling frequency resolution;
Determining the frequencies of various sine wave signals to be sampled;
determining the sampling number of sine wave signals with various frequencies according to the sampling number;
and acquiring sine wave signals with various frequencies according to the sampling number.
The embodiment of the application does not need to collect sine wave signals with various frequencies one by one and input the sine wave signals into the linear resonant motor as in the traditional technical scheme, so that the time required for sampling the sine wave signals is greatly shortened.
Optionally, the linear resonant motor driving chip is specifically configured to align a transverse axis of each of the sine wave signals, and add a longitudinal axis corresponding to the same transverse axis of each of the sine wave signals.
The time length of inputting the mixed signal into the linear resonance motor is far less than that of inputting the sine wave signals with different frequencies into the linear resonance motor one by one.
Optionally, the linear resonant motor driving chip is specifically configured to obtain a vibration acceleration in a motion process of the linear resonant motor;
determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor;
And determining the resonant frequency of the linear resonant motor according to the response signal.
After receiving the excitation waveform signal, the linear resonant motor is driven to move, and the accelerometer acquires the movement data of the linear resonant motor and sends the movement data of the linear resonant motor to the linear resonant motor driving chip. Specifically, the vibration acceleration of the linear resonance motor in the motion process is received by the linear resonance motor driving chip, and the vibration amplitude of the linear resonance motor can be determined by the linear resonance motor driving chip according to the vibration acceleration.
Optionally, the linear resonant motor driving chip is specifically configured to obtain response signals on various frequencies through fourier transform;
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
The response signal is a waveform with time as a horizontal axis and voltage as a vertical axis, the Fourier transform can up-convert the waveform from the time domain to the frequency domain, and the frequency domain diagram of the waveform is a coordinate with frequency as a horizontal axis and voltage as a vertical axis, so that the resonant frequency of the linear resonant motor can be obtained through more visual analysis. When the frequency of the input linear resonance motor is the resonance frequency, the linear resonance motor vibrates with the resonance frequency as the magnitude, and the amplitude of vibration reaches the highest value and the vibration efficiency is optimal when the linear resonance motor is at the natural frequency f0, so that the frequency value corresponding to the response signal with the largest amplitude can be determined through the image of the waveform on the frequency domain, and the resonance frequency of the linear resonance motor is obtained.
In a second aspect, an embodiment of the present application provides a method for detecting a resonant frequency, including:
acquiring sine wave signals of at least two frequencies;
mixing the sine wave signals in a time domain to obtain an excitation waveform signal;
Outputting the excitation waveform signal to a linear resonant motor so that the linear resonant motor moves according to the excitation waveform signal;
and determining the resonant frequency of the linear resonant motor according to the motion condition of the linear resonant motor.
Optionally, the acquiring the sine wave signals of at least two frequencies includes:
Determining the sampling point number according to the sampling frequency and the sampling frequency resolution;
Determining the frequencies of various sine wave signals to be sampled;
determining the sampling number of sine wave signals with various frequencies according to the sampling number;
and acquiring sine wave signals with various frequencies according to the sampling number.
Optionally, the mixing each sine wave signal in the time domain includes:
And aligning the transverse axes of the sine wave signals, and adding the longitudinal axes corresponding to the same transverse axis of the sine wave signals.
Optionally, the determining the resonant frequency of the linear resonant motor according to the motion condition of the linear resonant motor includes:
acquiring vibration acceleration in the motion process of the linear resonant motor;
determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor;
And determining the resonant frequency of the linear resonant motor according to the response signal.
Optionally, the determining the resonant frequency of the linear resonant motor according to the response signal includes:
Obtaining response signals on various frequencies through Fourier transformation;
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
In a third aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when executed by a processor implements any of the above-described resonant frequency detection methods.
The embodiment of the application has the beneficial effects that:
The electronic equipment provided by the embodiment of the application comprises a linear resonance motor driving chip and a linear resonance motor; the linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor; the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion; the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor. According to the application, the sine wave signals with at least two frequencies are obtained through the linear resonance motor driving chip and mixed, and then the mixed sine wave signals are used as excitation waveform signals of the linear resonance motor, so that the resonance frequency of the linear resonance motor is obtained through detection, and as the excitation waveform signals are mixed by a plurality of sine wave signals, compared with a mode of inputting the sine wave signals into the linear resonance motor one by one, the detection duration can be greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the application, and other embodiments may be obtained according to these drawings to those skilled in the art.
FIG. 1 is a schematic diagram of an excitation waveform signal according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a response signal in the time domain according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a response signal in a frequency domain according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a first method for detecting a resonant frequency according to an embodiment of the present application;
fig. 5 is a schematic diagram of a second flow chart of a method for detecting a resonant frequency according to an embodiment of the present application;
fig. 6 is a third flowchart of a method for detecting a resonant frequency according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
In order to clearly describe the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first instruction and the second instruction are for distinguishing different user instructions, and the sequence of the instructions is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In the present application, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The linear motor has the advantages of small size, quick start, low power consumption and the like, is commonly used for providing a tactile feedback effect on an intelligent terminal, and particularly, the linear motor is mainly a spring system consisting of a spring, a mass block with magnetism and a coil, wherein the spring suspends the coil inside the linear motor, and the coil is connected with the mass block with magnetism. When current flows through the coil, the coil generates a magnetic field, and correspondingly, when the current flowing through the coil changes, the direction and strength of the corresponding magnetic field also change, so that the mass block moves up and down in the changed magnetic field, and the vibration of the mass block is utilized to provide a tactile effect for a user.
The linear motor has a specific resonant frequency f0, and when the linear motor is at the natural frequency f0, the amplitude of vibration reaches the highest, and the vibration efficiency is optimal. In the related art, when detecting the linear motor f0, an external PC is required to generate an excitation waveform, the excitation waveform is further input into an MCU (Microcontroller Unit, a micro control unit), the MCU transmits the excitation waveform to a power amplifier to amplify power to obtain an analog signal, then the analog signal is added to two ends of the linear motor, vibration acceleration of the linear motor is acquired through an accelerometer, the vibration acceleration is transmitted to the MCU to be processed, and f0 of the linear motor is measured; wherein the excitation generated by the PC can only be loaded on the linear motor section by section for f0 detection, resulting in longer detection time.
In order to shorten the time consumption of the detection of the linear motor f0, first, in a first aspect of the embodiment of the present application, an electronic device is provided, including a linear resonant motor driving chip and a linear resonant motor;
The linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor;
the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion;
the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor.
The electronic equipment in the embodiment of the application can be a mobile phone or a tablet and the like.
The linear resonance motor driving chip can generate and apply an excitation waveform signal to drive the linear resonance motor, and when the linear resonance motor driving chip generates the excitation waveform signal, the linear resonance motor driving chip mixes sine wave signals with at least two frequencies to obtain a mixed signal, and the linear resonance motor is driven by the mixed signal. The amplitudes of the sine waves of different frequencies used for mixing may be the same. The linear resonant motor moves after receiving the excitation waveform signal, and the specific movement condition can be used for analyzing the resonant frequency of the linear resonant motor.
The electronic equipment provided by the embodiment of the application comprises a linear resonance motor driving chip and a linear resonance motor; the linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor; the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion; the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor. According to the application, the sine wave signals with at least two frequencies are obtained through the linear resonance motor driving chip and mixed, and then the mixed sine wave signals are used as excitation waveform signals of the linear resonance motor, so that the resonance frequency of the linear resonance motor is obtained through detection, and as the excitation waveform signals are mixed by a plurality of sine wave signals, compared with a mode of inputting the sine wave signals into the linear resonance motor one by one, the detection duration can be greatly reduced.
In one example, the linear resonant motor driving chip is specifically configured to determine the number of sampling points according to the sampling frequency and the sampling frequency resolution;
Determining the frequencies of various sine wave signals to be sampled;
determining the sampling number of sine wave signals with various frequencies according to the sampling number;
and acquiring sine wave signals with various frequencies according to the sampling number.
The frequency resolution of the sampling is calculated by dividing the sampling frequency by the number of sampling points, and the higher the frequency resolution of the sampling is, the greater the sampling precision is. The frequency resolution of the sampling represents the frequency sampling interval between two adjacent spectral lines in the spectrogram; while the inverse of the sampling frequency generally represents the time difference between two adjacent discrete data over the time domain. For example, when sampling is performed at a sampling frequency of 48kHZ, if the frequency resolution of the sampling is required to reach 2%, the number of sampling points can be determined to be 2400000 according to the sampling frequency and the frequency resolution of the sampling. If a sine wave with a frequency ranging from 155Hz to 185Hz is to be sampled, a sampling step size of 0.5Hz may be provided, and here, the sampling step size of 0.5Hz is taken as an example, and in a practical case, the sampling step size may be formulated according to specific requirements. If 10 cycles are sampled for each frequency, namely, 61 frequency points of 155Hz, 155.5Hz, 156Hz and 156.5Hz … … Hz, 185Hz, 10 waveforms are sampled for each frequency point, and according to the number of sampling points 2400000, the frequency is calculated, and 2400000/(61X 10) is sampled for each frequency, wherein the total is 3934 points. The required operating time was 3934/48kHz, i.e., 0.08s. Because the embodiment of the application does not need to collect sine wave signals with various frequencies one by one and input the sine wave signals into the linear resonant motor as in the traditional technical scheme, the time required by the embodiment of the application is only 0.08s, and compared with the time consumption of 8s in the traditional technology, the whole detection time of the resonant frequency of the linear resonant motor is greatly shortened.
In one example, the linear resonant motor driving chip is specifically configured to align the transverse axes of the sine wave signals, and add the longitudinal axes corresponding to the same transverse axis of each sine wave signal.
The acquired sine wave signals are sine functions with time as a horizontal axis and voltage as a vertical axis, and the time of inputting the mixed signals into the linear resonance motor is far less than the time of inputting the sine wave signals with different frequencies into the linear resonance motor one by adding the voltages corresponding to the same time axis in a mode of aligning the time axes of the sine wave signals.
In one example, the linear resonant motor driving chip is specifically configured to obtain a vibration acceleration during a motion process of the linear resonant motor;
determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor;
And determining the resonant frequency of the linear resonant motor according to the response signal.
After receiving the excitation waveform signal, the linear resonant motor is driven to move, and the accelerometer acquires the movement data of the linear resonant motor and sends the movement data of the linear resonant motor to the linear resonant motor driving chip. Specifically, the vibration acceleration of the linear resonance motor in the motion process is received by the linear resonance motor driving chip, and the vibration amplitude of the linear resonance motor can be determined by the linear resonance motor driving chip according to the vibration acceleration.
In one example, the linear resonant motor driving chip is specifically configured to obtain response signals at various frequencies through fourier transform;
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
The linear resonant motor is responsive to the excitation waveform signal to generate a response signal, and since the excitation waveform signal is a signal in the time domain, the response signal output by the linear resonant motor is a signal in the time domain. The response signal is a waveform with time as a horizontal axis and voltage as a vertical axis, the Fourier transform can up-convert the waveform from the time domain to the frequency domain, and the frequency domain diagram of the waveform is a coordinate with frequency as a horizontal axis and voltage as a vertical axis, so that the resonant frequency of the linear resonant motor can be obtained through more visual analysis. When the frequency of the input linear resonance motor is the resonance frequency, the linear resonance motor vibrates with the resonance frequency as the magnitude, and the amplitude of vibration reaches the highest value and the vibration efficiency is optimal when the linear resonance motor is at the natural frequency f0, so that the frequency value corresponding to the response signal with the largest amplitude can be determined through the image of the waveform on the frequency domain, and the resonance frequency of the linear resonance motor is obtained.
According to the embodiment of the application, the response signal is converted from the time domain to the frequency domain, each frequency point of the transverse shaft corresponds to the frequency of the sine wave acquired by the driving chip of the linear resonant motor one by one, and the maximum amplitude is obtained when the linear resonant motor vibrates at the resonant frequency due to the characteristic of the resonant frequency, so that the value of the resonant frequency of the linear resonant motor can be obtained through the image of the waveform on the frequency domain.
In one example, referring to fig. 1, for a mixed signal of different frequencies to be an excitation waveform signal in the time domain, fig. 2 is a response of a linear resonant motor in the time domain, a time domain diagram of the response signal is converted into a frequency domain diagram by fourier transformation, fig. 3 is obtained, and a resonant frequency of the linear resonant motor is determined by analyzing the frequency domain diagram of fig. 3.
In a second aspect, an embodiment of the present application further provides a method for detecting a resonant frequency, referring to fig. 4, including:
s101, acquiring sine wave signals of at least two frequencies.
The resonant frequency detection method provided by the embodiment of the application is applied to a linear resonant motor driving chip. Each of the linear resonant motors has a different resonant frequency, and in order to make the linear resonant motor operate at the resonant frequency to obtain the best vibration effect, the resonant frequency of the linear resonant motor needs to be measured. When a sine wave of a specific frequency is input to the linear resonant motor, the linear resonant motor vibrates at the same frequency under the driving of the sine wave. Since the purpose of the embodiment of the application is to measure the resonant frequency of the linear resonant motor, sine wave signals with various frequencies need to be acquired and input to the linear resonant motor, and the frequency of the sine wave signal of which input the resonant frequency of the linear resonant motor specifically belongs to is detected.
S102, mixing the sine wave signals in a time domain to obtain an excitation waveform signal.
According to the embodiment of the application, the sine wave signals are mixed in the time domain, the duration of the mixed sine wave signals is smaller than the cumulative sum of the sine wave signals, and the mixed sine wave signals are used as excitation waveform signals to be input into the linear resonance motor. For example, when 3 sine wave signals with frequencies of 50Hz, 100Hz and 200Hz are applied simultaneously, the 3 sine wave signals with frequencies are mixed in the time domain, and even if each waveform needs to scan 10 cycles, the time is only equivalent to 0.2s, which is far less than the time of inputting the 3 sine wave signals with frequencies of 50Hz, 100Hz and 200Hz into the linear resonant motor one by one for scanning.
And S103, outputting the excitation waveform signal to a linear resonance motor so as to enable the linear resonance motor to move according to the excitation waveform signal.
The linear resonance motor driving chip outputs an excitation waveform signal to the linear resonance motor, and the linear resonance motor moves under the driving of the excitation waveform signal.
S104, determining the resonant frequency of the linear resonant motor according to the motion condition of the linear resonant motor.
The electronic equipment provided by the embodiment of the application comprises a linear resonance motor driving chip and a linear resonance motor; the linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor; the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion; the linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor. According to the application, the sine wave signals with at least two frequencies are obtained through the linear resonance motor driving chip and mixed, and then the mixed sine wave signals are used as excitation waveform signals of the linear resonance motor, so that the resonance frequency of the linear resonance motor is obtained through detection, and as the excitation waveform signals are mixed by a plurality of sine wave signals, compared with a mode of inputting the sine wave signals into the linear resonance motor one by one, the detection duration can be greatly reduced.
In one example, the acquiring sine wave signals of at least two frequencies includes:
The number of sampling points is determined according to the sampling frequency and the frequency resolution of the sampling.
The frequency resolution of the sampling is calculated by dividing the sampling frequency by the number of sampling points, and the higher the frequency resolution of the sampling is, the greater the sampling precision is. The frequency resolution of the sampling represents the frequency sampling interval between two adjacent spectral lines in the spectrogram; while the inverse of the sampling frequency generally represents the time difference between two adjacent discrete data over the time domain. For example, when sampling is performed at a sampling frequency of 48kHZ, if the frequency resolution of the sampling is required to reach 2%, the number of sampling points can be determined to be 2400000 according to the sampling frequency and the frequency resolution of the sampling.
The frequencies of the various sine wave signals being sampled are determined.
The embodiment of the application can sample sine waves with the frequency ranging from 155Hz to 185Hz, the sampling step length can be regulated to be 0.5Hz during sampling, the sampling step length is only taken as an example, and in the actual situation, the sampling step length can be regulated according to specific requirements.
And determining the sampling number of sine wave signals with various frequencies according to the sampling number.
If 10 cycles are sampled for each frequency, namely, 61 frequency points of 155Hz, 155.5Hz, 156Hz and 156.5Hz … … Hz, 185Hz, 10 waveforms are sampled for each frequency point, and according to the number of sampling points 2400000, the frequency is calculated, and 2400000/(61X 10) is sampled for each frequency, wherein the total is 3934 points.
And acquiring sine wave signals with various frequencies according to the sampling number.
In one example, the mixing each of the sine wave signals in the time domain includes:
And aligning the transverse axes of the sine wave signals, and adding the longitudinal axes corresponding to the same transverse axis of the sine wave signals.
The acquired sine wave signals are sine functions with time as a horizontal axis and voltage as a vertical axis, and the time of inputting the mixed signals into the linear resonance motor is far less than the time of inputting the sine wave signals with different frequencies into the linear resonance motor one by adding the voltages corresponding to the same time axis in a mode of aligning the time axes of the sine wave signals.
In one example, the determining the resonant frequency of the linear resonant motor according to the motion condition of the linear resonant motor includes:
And acquiring vibration acceleration in the motion process of the linear resonant motor.
The linear resonance motor can move after receiving the excitation waveform signal, and the accelerometer can acquire vibration acceleration in the moving process of the linear resonance motor and send the vibration acceleration to the linear resonance motor driving chip.
And determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor.
The linear resonant motor driving chip can determine the waveform of the linear resonant motor in the time domain according to the vibration acceleration of the linear resonant motor, wherein the waveform is a response signal with time as the horizontal axis and voltage as the vertical axis.
And determining the resonant frequency of the linear resonant motor according to the response signal.
In one example, the determining the resonant frequency of the linear resonant motor from the response signal includes:
response signals at various frequencies are obtained by fourier transformation.
The response signals are generated by the movement of the linear resonant motor driven by the excitation waveform signals, and the linear resonance Ma Dahui responds to the response signals with different frequencies for the driving with different frequencies, but the response signals are all on the time domain, so that the response signals can be converted from the time domain to the frequency domain by means of Fourier transformation, and each frequency point of the transverse axis corresponds to the frequency of the sine wave collected by the driving chip of the linear resonant motor one by one.
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
The linear resonant motor is responsive to the excitation waveform signal to generate a response signal, and since the excitation waveform signal is a signal in the time domain, the response signal output by the linear resonant motor is a signal in the time domain. The response signal is a waveform with time as a horizontal axis and voltage as a vertical axis, the Fourier transform can up-convert the waveform from the time domain to the frequency domain, and the frequency domain diagram of the waveform is a coordinate with frequency as a horizontal axis and voltage as a vertical axis, so that the resonant frequency of the linear resonant motor can be obtained through more visual analysis. When the frequency of the input linear resonance motor is the resonance frequency, the linear resonance motor vibrates with the resonance frequency as the magnitude, and the amplitude of vibration reaches the highest value and the vibration efficiency is optimal when the linear resonance motor is at the natural frequency f0, so that the frequency value corresponding to the response signal with the largest amplitude can be determined through the image of the waveform on the frequency domain, and the resonance frequency of the linear resonance motor is obtained.
According to the embodiment of the application, the response signal is converted from the time domain to the frequency domain, each frequency point of the transverse shaft corresponds to the frequency of the sine wave acquired by the driving chip of the linear resonant motor one by one, and the maximum amplitude is obtained when the linear resonant motor vibrates at the resonant frequency due to the characteristic of the resonant frequency, so that the value of the resonant frequency of the linear resonant motor can be obtained through the image of the waveform on the frequency domain.
In one example, referring to fig. 5, during the detection of the resonant frequency, a digital circuit portion generates a driving waveform, the driving waveform is generated by a driving chip of a linear resonant motor, the driving waveform is mixed by sine waves of at least two frequencies, and then the driving waveform is modulated by a Pulse-width modulation (PWM) modulator, so as to obtain a modulated driving waveform, where PWM is an analog signal level digital coding method. Pulse width modulation, PWM, is one way to reduce the average power delivered by an electrical signal by dispersing the effective electrical signal into a discrete form. The waveforms of the corresponding amplitudes and frequencies to be synthesized can be equivalently obtained by changing the time width of the pulse according to the area equivalent rule. The digital control of the analog circuit can be realized to remarkably reduce the system cost and the power consumption. Many microcontrollers and Digital Signal Processors (DSPs) already include PWM controller chips, so that digital control can be implemented more easily. The PWM signal is a change in signal, energy, etc. that is adjusted by adjusting a change in duty cycle. And then the modulated driving waveform is loaded to two ends of the LRA of the linear resonant motor through a driving circuit of the analog circuit part, so that the detection of the resonant frequency of the linear resonant motor is completed. The specific process comprises the following steps: and acquiring motion data generated by the LRA by a data acquisition module, feeding the motion data back to an information feedback module, and performing low-pass filtering on the motion data to obtain the resonant frequency of the LRA.
In one example, referring to fig. 6, the resonant frequency detection process may include: excitation signal generation, excitation signal amplification, excitation signal collection, driving of a motor output, obtaining of a response signal in a time domain, and conversion of the response signal from the time domain to the frequency domain by means of an FFT (fast Fourier transform ) conversion algorithm, so as to obtain a response signal in the frequency domain.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the resonant frequency detection methods described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the resonant frequency detection methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the method embodiments, since they are substantially similar to the electronic device embodiments, the description is relatively simple, and reference is made to the description of the electronic device embodiments in part.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (9)

1. An electronic apparatus comprising a linear resonant motor drive chip and a linear resonant motor;
The linear resonance motor driving chip is used for acquiring sine wave signals of at least two frequencies; mixing the sine wave signals in a time domain to obtain an excitation waveform signal; outputting the excitation waveform signal to the linear resonant motor;
the linear resonance motor is used for responding to an excitation waveform signal applied by the linear resonance motor driving chip to perform motion;
The linear resonance motor driving chip is also used for determining the resonance frequency of the linear resonance motor according to the motion condition of the linear resonance motor;
the linear resonance motor driving chip is specifically used for determining the number of sampling points according to the sampling frequency and the sampling frequency resolution;
Determining the frequencies of various sine wave signals to be sampled;
determining the sampling number of sine wave signals with various frequencies according to the sampling number;
and acquiring sine wave signals with various frequencies according to the sampling number.
2. The electronic device of claim 1, wherein the linear resonant motor drive chip is specifically configured to align transverse axes of the sine wave signals and add longitudinal axes corresponding to the same transverse axis of each sine wave signal.
3. The electronic device of claim 1, wherein the linear resonant motor drive chip is specifically configured to obtain a vibration acceleration during movement of the linear resonant motor;
determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor;
And determining the resonant frequency of the linear resonant motor according to the response signal.
4. The electronic device of claim 3, wherein the linear resonant motor drive chip is specifically configured to obtain response signals at various frequencies by fourier transform;
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
5. A method of resonant frequency detection, the method comprising:
acquiring sine wave signals of at least two frequencies;
mixing the sine wave signals in a time domain to obtain an excitation waveform signal;
Outputting the excitation waveform signal to a linear resonant motor so that the linear resonant motor moves according to the excitation waveform signal;
determining the resonant frequency of the linear resonant motor according to the motion condition of the linear resonant motor;
the acquiring sine wave signals of at least two frequencies includes:
Determining the sampling point number according to the sampling frequency and the sampling frequency resolution;
Determining the frequencies of various sine wave signals to be sampled;
determining the sampling number of sine wave signals with various frequencies according to the sampling number;
and acquiring sine wave signals with various frequencies according to the sampling number.
6. The method of claim 5, wherein said mixing each of said sine wave signals in the time domain comprises:
And aligning the transverse axes of the sine wave signals, and adding the longitudinal axes corresponding to the same transverse axis of the sine wave signals.
7. The method of claim 5, wherein determining the resonant frequency of the linear resonant motor based on the motion of the linear resonant motor comprises:
acquiring vibration acceleration in the motion process of the linear resonant motor;
determining a response signal of the linear resonant motor according to the vibration acceleration, wherein the response signal represents the vibration amplitude of the linear resonant motor;
And determining the resonant frequency of the linear resonant motor according to the response signal.
8. The method of claim 7, wherein determining the resonant frequency of the linear resonant motor from the response signal comprises:
Obtaining response signals on various frequencies through Fourier transformation;
And determining a frequency value corresponding to the response signal with the largest amplitude to obtain the resonant frequency of the linear resonant motor.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 5-8.
CN202311765322.0A 2023-12-21 2023-12-21 Electronic equipment, resonance frequency detection method and storage medium Active CN117439487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311765322.0A CN117439487B (en) 2023-12-21 2023-12-21 Electronic equipment, resonance frequency detection method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311765322.0A CN117439487B (en) 2023-12-21 2023-12-21 Electronic equipment, resonance frequency detection method and storage medium

Publications (2)

Publication Number Publication Date
CN117439487A CN117439487A (en) 2024-01-23
CN117439487B true CN117439487B (en) 2024-05-10

Family

ID=89558678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311765322.0A Active CN117439487B (en) 2023-12-21 2023-12-21 Electronic equipment, resonance frequency detection method and storage medium

Country Status (1)

Country Link
CN (1) CN117439487B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014081352A (en) * 2012-09-27 2014-05-08 Daihen Corp Frequency analysis device, signal processing apparatus using the device, and high-frequency measurement instrument using the apparatus
CN108365706A (en) * 2018-01-26 2018-08-03 瑞声科技(南京)有限公司 The detection method and device of linear electric machine resonant frequency
CN109874398A (en) * 2017-01-04 2019-06-11 华为技术有限公司 A kind of driving method and terminal of linear motor
CN114548141A (en) * 2020-11-10 2022-05-27 华为技术有限公司 Method and device for generating waveform file, electronic equipment and readable storage medium
CN114964198A (en) * 2022-08-03 2022-08-30 中国船舶重工集团公司第七0七研究所 Time-sharing multiplexing-based resonant gyroscope rapid frequency tracking system and implementation method
CN116155143A (en) * 2021-12-24 2023-05-23 武汉市聚芯微电子有限责任公司 Method and device for acquiring motor parameters
CN116384031A (en) * 2021-12-24 2023-07-04 武汉市聚芯微电子有限责任公司 Simulation method and device for motor vibration effect

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014081352A (en) * 2012-09-27 2014-05-08 Daihen Corp Frequency analysis device, signal processing apparatus using the device, and high-frequency measurement instrument using the apparatus
CN109874398A (en) * 2017-01-04 2019-06-11 华为技术有限公司 A kind of driving method and terminal of linear motor
CN108365706A (en) * 2018-01-26 2018-08-03 瑞声科技(南京)有限公司 The detection method and device of linear electric machine resonant frequency
CN114548141A (en) * 2020-11-10 2022-05-27 华为技术有限公司 Method and device for generating waveform file, electronic equipment and readable storage medium
CN116155143A (en) * 2021-12-24 2023-05-23 武汉市聚芯微电子有限责任公司 Method and device for acquiring motor parameters
CN116384031A (en) * 2021-12-24 2023-07-04 武汉市聚芯微电子有限责任公司 Simulation method and device for motor vibration effect
CN114964198A (en) * 2022-08-03 2022-08-30 中国船舶重工集团公司第七0七研究所 Time-sharing multiplexing-based resonant gyroscope rapid frequency tracking system and implementation method

Also Published As

Publication number Publication date
CN117439487A (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN102374876B (en) Integrated vibration survey and analytic system
CN108151643B (en) Dynamic data measuring method and device based on vibrating wire type sensor
CN110907827B (en) Motor transient distortion measuring method and system
CN104155044A (en) Measuring device and measuring method for cable force of cable-stayed bridge based on mobile terminal
CN101865882B (en) Automatic measuring system for iron loss of magnetic material
CN104034962A (en) Precise servo mechanism resonance frequency testing system and testing method
CN102866372A (en) Methods for calibrating frequency of magnetic resonance device and corresponding magnetic resonance device
CN101556298B (en) Rectificative passive type load simulation device and method thereof
CN110426967B (en) Analog simulation method, device and storage medium for household load data
CN117439487B (en) Electronic equipment, resonance frequency detection method and storage medium
CN108507811A (en) A kind of energy-efficient permanent-magnetic synchronous tractor for elevator test platform
CN102749561A (en) Cloud service-based partial discharge transient-stage earth electric wave cloud detection method and device
CN109085414A (en) Voltage detection method and device
CN213336458U (en) Resonant frequency detection system
CN114236383A (en) Method and device for generating sweep frequency characteristic curve and storage medium
CN109470887A (en) A kind of earthquake instrument system accelerometer Special testing device and method
Scozzari et al. A novel method based on voltammetry for the qualitative analysis of water
CN101726630A (en) Bearing vibration checking instrument
CN105759156A (en) Multidirectional vibration energy collecting device performance test system and method thereof
CN106930964B (en) Piezoelectric fan intrinsic frequency measurement method and piezoelectric fan
CN116155143A (en) Method and device for acquiring motor parameters
CN103945306A (en) Detecting device and method for magnetic-force intensity parameter of loudspeaker
CN112667077A (en) Motor model parameter detection method and device, electronic equipment and medium
CN110579229A (en) Piezomagnetic sensor detection system based on frequency sweep detection
CN220649352U (en) Linear variable differential transformer type sensor device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant