A quality factor detection circuit, method, device and electronic equipment
By designing a quality factor detection circuit for wireless charging, using waveform filtering and digital-to-analog conversion technology, the quality factor Q during the wireless charging process is calculated, which solves the problem of metal foreign objects affecting detection accuracy and improves detection accuracy and safety. .
Patent Information
- Application Number
- CN202111391546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-23
AI Technical Summary
During the wireless charging process, the presence of metal foreign objects causes eddy current effects, increases the unsafety of the charging process, reduces the accuracy of the quality factor Q, and affects detection accuracy.
A quality factor detection circuit is designed, including a waveform filter circuit, a resonant circuit, a detection circuit and a main control circuit. The self-oscillation signal is generated through the resonant circuit, and the negative values in the signal are eliminated using the waveform filter circuit and transmitted to the digital-to-analog converter for processing. Analysis, the control chip counts the number of wave peaks to calculate the quality factor Q to improve detection accuracy.
It effectively improves the detection accuracy of the quality factor Q, reduces the node time measurement error, and enhances the safety and accuracy of the wireless charging process.
Smart Images

Figure CN114252702B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of information processing, and in particular to a quality factor detection circuit, method, device and electronic equipment. Background Art
[0002] The quality factor Q, also called the Q factor, is usually used in optical communication systems, where the optical signal-to-noise ratio is an important indicator for measuring the performance of the optical path. However, the current high-speed transmission system has a strong nonlinear effect, which has a significant impact on the system. Under the same circumstances, the magnitude of the nonlinear effect will cause significant changes in the system. In other words, high-speed systems with a rate of 10G or above cannot measure the performance of the system more accurately, so the quality factor Q is introduced to measure the system performance.
[0003] In addition to being used in optical communication systems, the quality factor Q can also be used in charging circuits, specifically in wireless charging coil circuits. Since the wireless charging coil is equivalent to an inductor, during the wireless charging process, an alternating current is applied to the coil, causing the magnetic field on the coil to change. This change in the magnetic field can affect the magnetic change of another receiving coil, while generating the same alternating current in the receiving coil. The receiving coil end circuit then processes the generated alternating current to charge. In the wireless charging coil circuit here, the quality factor Q refers to the quality factor of the inductor.
[0004] During wireless charging, if there is a piece of foreign metal between the two coils, the alternating magnetic field will generate an eddy current effect, which will heat the foreign metal, increasing the insecurity of the charging process. The proximity of the foreign metal will absorb some of the magnetic energy, causing the inductance to decrease. Because the foreign metal absorbs the magnetic energy, the inductance of the coil decreases, which leads to a decrease in the quality factor Q of the two coils.
[0005] That is to say, the quality factor Q can be calculated to determine whether there is a metal foreign body in the magnetic field area of the wireless charging coil. The calculation of the quality factor Q is also related to factors such as frequency and voltage. The resonant network in the wireless charging coil circuit can generate self-oscillation. During the self-oscillation process, the quality factor Q is calculated: it is calculated by the voltage at the highest point at the beginning of the self-oscillation, a preset voltage value, and the node time to reach the preset voltage value. During the self-oscillation process, the starting voltage can be easily detected by the built-in digital-to-analog converter ADC. At this time, only a voltage value needs to be specified to allow it to have sufficient time to reach the preset voltage value through the attenuation of the self-oscillation. However, there are many measurement interferences in the measurement of the node time. Large interference will directly lead to an increase in the node time measurement error, resulting in a reduction in the accuracy of the detection quality factor Q. Another method of calculating the quality factor Q is to multiply the node time in the formula by the fixed frequency, which is the number of cycles. That is, the quality factor Q can be directly calculated by calculating the number of cycles, but the calculation of the number of cycles requires accurate detection, otherwise the measurement error of the number of cycles will increase, resulting in a reduction in the accuracy of the detection quality factor Q. Summary of the invention
[0006] A first aspect of an embodiment of the present application provides a quality factor detection circuit, comprising:
[0007] Waveform filtering circuit, resonance circuit, detection circuit, power supply and main control circuit;
[0008] The power supply is connected to the resonant circuit and the main control circuit respectively;
[0009] The main control circuit includes a digital-to-analog converter ADC and a control chip. The digital-to-analog converter is used to analyze the waveform transmitted by the detection circuit and transmit the analysis result to the control chip. The control chip is used to calculate the quality factor.
[0010] The waveform filtering circuit includes a first diode D2, a second diode D3, a voltage stabilizing diode D1 and a resistor R1;
[0011] The resonant circuit is connected to the main control circuit, and the resonant circuit is used to form a circuit self-oscillation signal;
[0012] A first end of the resistor R1 is connected to the resonant circuit;
[0013] The second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, and the detection circuit is used to receive the signal output after being processed by the waveform filtering circuit and transmit it to the digital-to-analog converter ADC of the main control circuit;
[0014] The anode of the first diode D3 is connected to the cathode of the second diode D2 and the cathode of the voltage stabilizing diode D1 respectively;
[0015] The positive pole of the voltage zener diode is grounded;
[0016] The cathode of the second diode is grounded;
[0017] The detection circuit is connected to the main control circuit, which is used to control the resonant circuit to form a self-oscillation signal. The main control circuit is also used to calculate the quality factor using the control chip.
[0018] Optionally, the resonant circuit includes a MOS transistor Q1, a MOS transistor Q2, a MOS transistor Q3, a MOS transistor Q4, an inductor Lp, a capacitor Cp, a diode D1, a first diode, a second diode, a third diode and a fourth diode;
[0019] The MOS tube Q1 is connected to the first diode via the source and the drain;
[0020] The MOS tube Q2 is connected to the second diode via the source and drain;
[0021] The MOS tube Q3 is connected to the third diode via the source and the drain;
[0022] The MOS tube Q4 is connected to the fourth diode via the source and the drain;
[0023] The first end of the inductor Lp is connected to the control circuit and the gate of the MOS tube Q1 respectively;
[0024] The first end of the capacitor Cp is connected to the source of the MOS transistor Q2 and the drain of the MOS transistor Q3 respectively;
[0025] After the drain of the MOS tube Q1 and the drain of the MOS tube Q2 are connected, they are connected to the control circuit;
[0026] The source of the MOS tube Q3 and the source of the MOS tube Q4 are grounded respectively;
[0027] After the second end of the inductor Lp and the second end of the capacitor Cp are connected, a connection point between the second end of the inductor Lp and the second end of the capacitor Cp is connected to the diode D1;
[0028] The diode D1 is connected to the first resistor R1 of the waveform filtering circuit;
[0029] The control circuit is connected to the gate of the MOS transistor Q1, the gate of the MOS transistor Q2, the gate of the MOS transistor Q3 and the gate of the MOS transistor Q4 respectively, and is used to control the conduction and disconnection of the MOS transistors Q1, Q2, Q3 and Q4.
[0030] A second aspect of the embodiment of the present application provides a quality factor detection method, comprising:
[0031] Using a resonant circuit to generate a self-oscillating signal;
[0032] The self-oscillation signal of the resonant circuit is subjected to valley elimination processing by a waveform filtering circuit. The waveform filtering circuit includes a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1. The resonant circuit is connected to the main control circuit. The resonant circuit is used to form a circuit self-oscillation signal. The first end of the resistor R1 is connected to the resonant circuit. The second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit. The detection circuit is used to receive the signal output after being processed by the waveform filtering circuit and transmit it to the digital-to-analog converter ADC of the main control circuit. The anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1. The anode of the voltage-stabilizing diode is grounded, the cathode of the second diode is grounded, and the detection circuit is connected to the main control circuit.
[0033] The self-oscillation signal is converted into a signal by the detection circuit and transmitted to the digital-to-analog converter ADC in the main control circuit;
[0034] The converted self-oscillation signal is analyzed by a digital-to-analog converter ADC in the control circuit to calculate the number of peaks of the waveform corresponding to the self-oscillation signal;
[0035] The quality factor is calculated based on the number of wave peaks through the control chip in the control circuit.
[0036] A third aspect of the embodiments of the present application provides a quality factor detection device, including:
[0037] A generating unit, configured to generate a self-oscillating signal using a resonant circuit;
[0038] an elimination unit, used for performing valley elimination processing on the self-oscillation signal of the resonant circuit through a waveform filtering circuit, the waveform filtering circuit comprising a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1, the resonant circuit is connected to the main control circuit, the resonant circuit is used for forming a circuit self-oscillation signal, the first end of the resistor R1 is connected to the resonant circuit, the second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, the detection circuit is used for receiving the signal output after being processed by the waveform filtering circuit, and transmitting it to the digital-to-analog converter ADC of the main control circuit, the anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1, the anode of the voltage-stabilizing diode is grounded, the cathode of the second diode is grounded, and the detection circuit is connected to the main control circuit;
[0039] A conversion unit, used to convert the self-oscillation signal through a detection circuit and transmit the signal to a digital-to-analog converter ADC in a main control circuit;
[0040] An analysis unit, used to perform waveform analysis on the converted self-oscillation signal through a digital-to-analog converter ADC in the control circuit, and calculate the number of peaks of the waveform corresponding to the self-oscillation signal;
[0041] The detection unit is used to calculate the quality factor according to the number of wave peaks through the control chip in the control circuit.
[0042] A third aspect of the present application provides an electronic device, characterized in that it includes:
[0043] Processor, memory, input-output unit, and bus;
[0044] The processor is connected to the memory, the input and output unit, and the bus;
[0045] The memory stores a program, and the processor calls the program to execute the second aspect and any optional quality factor detection method of the second aspect.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium on which a program is stored. When the program is executed on a computer, the program performs the second aspect and any optional method for calculating a quality factor detection method in the second aspect.
[0047] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0048] In this embodiment, the quality factor detection circuit includes a waveform filtering circuit, a resonant circuit, a detection circuit, a power supply and a main control circuit. The power supply is connected to the resonant circuit and the main control circuit respectively. The main control circuit includes a digital-to-analog converter ADC and a control chip. The waveform filtering circuit includes a first diode D2, a second diode D3, a voltage regulator diode D1 and a resistor R1. The resonant circuit is connected to the main control circuit. The first end of the resistor R1 is connected to the resonant circuit. The second end of the resistor R1 is connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit respectively. The anode of the first diode D3 is connected to the cathode of the second diode D2 and the cathode of the voltage regulator diode D1 respectively; the anode of the voltage regulator diode is grounded; the cathode of the second diode is grounded. The detection circuit is connected to the main control circuit. Among them, the waveform generated by the resonant circuit in the process of self-oscillation is filtered through the waveform filtering circuit, and the negative values in the waveform are eliminated through multiple components, leaving only positive values. At this time, the detection circuit converts the filtered signal and transmits it to the digital-to-analog converter ADC of the main control circuit for analysis. The control chip can analyze the number of peaks, which is the number of oscillation cycles, and indirectly and accurately calculates the number of cycles, thereby improving the accuracy of the detection quality factor. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of an embodiment of a quality factor detection circuit of the present application;
[0050] Figure 2 A schematic diagram of an embodiment of a resonant circuit of the present application;
[0051] Figure 3 A schematic diagram of an embodiment of a method for detecting a quality factor of the present application;
[0052] Figure 4 A schematic diagram of an embodiment of a quality factor detection device of the present application;
[0053] Figure 5 This is a schematic diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION
[0054] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0055] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0056] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0057] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0058] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0059] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0060] In the prior art, during the wireless charging process, if there is a piece of metal foreign matter between the two coils, the metal foreign matter will generate an eddy current effect due to the alternating magnetic field. Since the eddy current effect will heat the metal foreign matter, the insecurity of the charging process will increase. The proximity of the foreign metal will absorb part of the magnetic energy, causing the inductance to decrease. Because the metal foreign matter absorbs the magnetic energy, the inductance of the coil decreases, which leads to a decrease in the quality factor of the two coils.
[0061] That is to say, the quality factor can be calculated to determine whether there is a metal foreign body in the magnetic field area of the wireless charging coil. The calculation of the quality factor is also related to factors such as frequency and voltage. The resonant network in the wireless charging coil circuit can generate self-oscillation. During the self-oscillation process, the quality factor is calculated: it is calculated by the voltage at the highest point at the beginning of the self-oscillation, a preset voltage value, and the node time to reach the preset voltage value. During the self-oscillation process, the starting voltage can be easily detected by the built-in ADC. At this time, only a voltage value needs to be specified to allow it to have sufficient time to reach the preset voltage value through the attenuation of the self-oscillation. However, there are many measurement interferences in the measurement of the node time. Large interference will directly lead to an increase in the error of the node time measurement, resulting in a reduction in the accuracy of the quality factor. Another method of calculating the quality factor is to multiply the node time in the formula by the fixed frequency, which is the number of cycles. That is, the quality factor can be directly calculated by calculating the number of cycles, but the calculation of the number of cycles requires accurate detection, otherwise the measurement error of the number of cycles will increase, resulting in a reduction in the accuracy of the quality factor.
[0062] Based on this, the embodiments of the present application disclose a quality factor detection circuit, method, device and electronic equipment for improving the accuracy of detecting the quality factor.
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0064] The method of the present application can be applied to a server, a device, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as an example of a terminal.
[0065] See also Figure 1 to Figure 2 , the present application provides an embodiment of a quality factor detection circuit, comprising:
[0066] Waveform filtering circuit 1, resonance circuit 2, detection circuit 3, power supply 4 and main control circuit 5;
[0067] The power supply 4 is connected to the resonant circuit 2 and the main control circuit 5 respectively;
[0068] The main control circuit 5 includes a digital-to-analog converter ADC and a control chip. The digital-to-analog converter is used to analyze the waveform transmitted by the detection circuit and transmit the analysis result to the control chip. The control chip is used to calculate the quality factor.
[0069] The waveform filtering circuit 1 includes a first diode D2, a second diode D3, a voltage stabilizing diode D1 and a resistor R1;
[0070] The resonant circuit 2 and the main control circuit 5, the resonant circuit 2 is used to form a circuit self-oscillation signal;
[0071] A first end of the resistor R1 is connected to the resonant circuit 2;
[0072] The second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit 3, and the detection circuit 3 is used to receive the signal output after being processed by the waveform filtering circuit 1, and transmit it to the digital-to-analog converter ADC of the main control circuit 5;
[0073] The anode of the first diode D3 is connected to the cathode of the second diode D2 and the cathode of the voltage stabilizing diode D1 respectively;
[0074] The positive pole of the voltage zener diode is grounded;
[0075] The cathode of the second diode is grounded;
[0076] The detection circuit 3 is connected to the main control circuit 5. The main control circuit 5 is used to control the resonance circuit 2 to form a self-oscillation signal. The main control circuit 5 is also used to calculate the quality factor using a control chip.
[0077] The main control circuit 5 is a collection of circuits including a control chip and a digital-to-analog converter ADC. One of the main functions of the main control circuit 5 is to control the resonant circuit 2 to make it resonate. When the main control circuit 5 disconnects the control of the resonant circuit 2, the resonant circuit 2 will start to self-oscillate, and the frequency of the oscillation is the self-oscillation frequency. In addition, all the energy in the resonant circuit 2 will be consumed in the circuit and converted into heat energy. The function of the waveform filtering circuit 1 is to filter the resonant signal of the resonant circuit 2, and then transmit the filtered signal to the detection circuit 3 for signal conversion processing, and then transmit it to the digital-to-analog converter ADC and the control chip inside the control circuit 5 for voltage analysis and quality factor detection.
[0078] Among them, the waveform filtering circuit 1 includes a first diode D2, a second diode D3, a voltage regulator diode D1 and a resistor R1, and the connection method is: the first end of the resistor R1 is connected to the resonant circuit 2, and the second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit 3. The detection circuit 3 is used to receive the signal output after being processed by the waveform filtering circuit 1, and transmit it to the digital-to-analog converter ADC of the main control circuit 5.
[0079] The waveform filtering circuit 1, under the action of the first diode D2, the second diode D3, the voltage stabilizing diode D1 and the resistor R1, performs waveform filtering on the signal generated by the self-oscillation of the resonant circuit 2, so that the negative parameters (troughs) in the waveform diagram are eliminated, leaving only the positive parameters (peaks) that are easy to detect. The waveform filtering circuit 1 outputs the waveform-filtered signal to the detection circuit 3 for conversion, which can be transmitted by the detection circuit 3 to the digital-to-analog converter ADC and the control chip inside the main control circuit 5 for voltage analysis and quality factor detection.
[0080] The principle of using the number of peaks N to detect the quality factor is as follows:
[0081] Assume that a resistor, a capacitor and an inductor are connected in series in a circuit. If there is an alternating current in the circuit, u C is the capacitor voltage, u R is the resistance voltage, u L is the inductor voltage, C is the capacitance value, L is the inductance value, and R is the resistance value. At this time, assume that the constant The self-oscillation frequency is f, and assuming that the angular velocity related to the self-oscillation frequency f is w0, then Capacitor voltage u C The general solution can be defined as u C =Ae pt , A is a constant, p is an unknown number, t is time, then:
[0082]
[0083]
[0084] Since the resonance circuit 2 will only resonate under the underdamped condition, it can be determined that p1 and p2 are a pair of conjugate complex roots, and the resonance U0(t) in the resonance circuit 2 can be expressed as:
[0085]
[0086] Among them, k is an unknown number that needs to be calculated. Then assume is an unknown number and needs to be solved. At this time, the initial condition u C (0 + )=U0, Then U0 is the capacitor voltage value when the resonant network 2 starts to oscillate, which can be measured by the digital-to-analog converter ADC in the main control circuit 5. is the integrated value of the capacitor voltage when the resonant network 2 starts to oscillate, then the resonance U0(t) in the circuit can be expressed as:
[0087]
[0088] because And the quality factor can be expressed as Then we have:
[0089]
[0090]
[0091]
[0092]
[0093] in, Since we only need to count the peaks, we can take the amplitude coefficient, that is, the envelope expression, and then we can let the voltage u C for:
[0094]
[0095]
[0096] Since w0=2πfT, f is the self-oscillation frequency, T is the total duration, and T is the node time, then:
[0097]
[0098] Since N = f*T, the quality factor Q-Factor can also be expressed as:
[0099]
[0100] Since U c , U0 can be calculated or measured according to the circuit, and π is a constant, so we have:
[0101]
[0102] Q=KN
[0103] At this time, the quality factor can be calculated only by accurately finding the number of peaks N through the main control circuit 5. The embodiment of the present application increases the accuracy of calculating the number of cycles, thereby improving the accuracy of detecting the quality factor.
[0104] Optional, please refer to Figure 2 , the resonant network 2 includes a MOS transistor Q1, a MOS transistor Q2, a MOS transistor Q3, a MOS transistor Q4, an inductor Lp, a capacitor Cp, a diode D1, a first diode, a second diode, a third diode and a fourth diode;
[0105] The MOS tube Q1 is connected to the first diode via the source and the drain;
[0106] The MOS tube Q2 is connected to the second diode via the source and drain;
[0107] The MOS tube Q3 is connected to the third diode via the source and the drain;
[0108] The MOS tube Q4 is connected to the fourth diode via the source and the drain;
[0109] The first end of the inductor Lp is connected to the control circuit and the gate of the MOS tube Q1 respectively;
[0110] The first end of the capacitor Cp is connected to the source of the MOS transistor Q2 and the drain of the MOS transistor Q3 respectively;
[0111] After the drain of the MOS tube Q1 and the drain of the MOS tube Q2 are connected, they are connected to the control circuit;
[0112] The source of the MOS tube Q3 and the source of the MOS tube Q4 are grounded respectively;
[0113] After the second end of the inductor Lp and the second end of the capacitor Cp are connected, a connection point between the second end of the inductor Lp and the second end of the capacitor Cp is connected to the diode D1;
[0114] The diode D1 is connected to the first resistor R1 of the waveform filtering circuit;
[0115] The control circuit is connected to the gate of the MOS transistor Q1, the gate of the MOS transistor Q2, the gate of the MOS transistor Q3 and the gate of the MOS transistor Q4 respectively, and is used to control the conduction and disconnection of the MOS transistors Q1, Q2, Q3 and Q4.
[0116] One of the functions of the main control circuit 4 is to control the on and off of four MOS transistors, namely, MOS transistor Q1 , MOS transistor Q2 , MOS transistor Q3 , and MOS transistor Q4 .
[0117] when Figure 2 When the gates of MOS tubes Q1 and Q4 are turned on, and the gates of MOS tubes Q2 and Q3 are turned off, a forward current is generated in the inductor Lp and the capacitor Cp in the resonant circuit 2; when the gates of MOS tubes Q1 and Q4 are turned off, and the gates of MOS tubes Q2 and Q3 are turned on, a reverse current is generated in Lp and Cp in the resonant circuit 2. The AC signal generated by this alternating conduction process causes the resonant circuit 2 to start resonating. When the generation of the AC signal stops, the resonant circuit 2 starts the self-oscillation process, and the self-oscillation frequency is f. The resonant energy in the resonant circuit 2 is all consumed in its circuit and converted into heat energy.
[0118] See also Figure 3 The present application provides an embodiment of a quality factor detection method, comprising:
[0119] 301. Generate a self-oscillation signal using a resonant circuit;
[0120] 302. A trough elimination process is performed on the self-oscillation signal of the resonant circuit by means of a waveform filtering circuit. The waveform filtering circuit includes a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1. The resonant circuit is connected to the main control circuit. The resonant circuit is used to form a circuit self-oscillation signal. The first end of the resistor R1 is connected to the resonant circuit. The second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit. The detection circuit is used to receive the signal output after being processed by the waveform filtering circuit and transmit it to the digital-to-analog converter ADC of the main control circuit. The anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1. The anode of the voltage-stabilizing diode is grounded. The cathode of the second diode is grounded. The detection circuit is connected to the main control circuit.
[0121] 303. Perform signal conversion on the self-oscillation signal through the detection circuit and transmit it to the digital-to-analog converter ADC in the main control circuit;
[0122] 304. Performing waveform analysis on the converted self-oscillation signal through a digital-to-analog converter ADC in the control circuit, and calculating the number of peaks of the waveform corresponding to the self-oscillation signal;
[0123] 305. The quality factor is calculated according to the number of wave peaks by using a control chip in the control circuit.
[0124] See also Figure 4 The present application provides an embodiment of a quality factor detection device, comprising:
[0125] A generating unit 401, configured to generate a self-oscillating signal using a resonant circuit;
[0126] The elimination unit 402 is used to perform valley elimination processing on the self-oscillation signal of the resonant circuit through a waveform filtering circuit, the waveform filtering circuit includes a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1, the resonant circuit is connected to the main control circuit, the resonant circuit is used to form a circuit self-oscillation signal, the first end of the resistor R1 is connected to the resonant circuit, the second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, the detection circuit is used to receive the signal output after being processed by the waveform filtering circuit, and transmit it to the digital-to-analog converter ADC of the main control circuit, the anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1, the anode of the voltage-stabilizing diode is grounded, the cathode of the second diode is grounded, and the detection circuit is connected to the main control circuit;
[0127] The conversion unit 403 is used to convert the self-oscillation signal through the detection circuit and transmit it to the digital-to-analog converter ADC in the main control circuit;
[0128] The analysis unit 404 is used to perform waveform analysis on the converted self-oscillation signal through the digital-to-analog converter ADC in the control circuit, and calculate the number of peaks of the waveform corresponding to the self-oscillation signal;
[0129] The detection unit 405 is used to calculate the quality factor according to the number of peaks through the control chip in the control circuit.
[0130] See also Figure 5 , the present application provides an electronic device, including:
[0131] Processor 501 , memory 502 , input / output unit 503 , and bus 504 .
[0132] The processor 501 is connected to the memory 502 , the input and output unit 503 , and the bus 504 .
[0133] The memory 502 stores a program, and the processor 501 calls the program to execute the following steps: Figure 3 A quality factor detection method in .
[0134] The present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed on a computer, the program performs the following steps: Figure 3 A quality factor detection method in .
[0135] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0136] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0138] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A quality factor detection circuit, It is characterized in that include: Waveform filtering circuit, resonance circuit, detection circuit, power supply and main control circuit; The power supply is connected to the resonant circuit and the main control circuit respectively; The main control circuit includes a digital-to-analog converter ADC and a control chip, the digital-to-analog converter is used to analyze the waveform diagram transmitted by the detection circuit and transmit the analysis result to the control chip, and the control chip is used to calculate the quality factor; The waveform filtering circuit includes a first diode D2, a second diode D3, a voltage stabilizing diode D1 and a resistor R1; The resonant circuit is connected to the main control circuit, and the resonant circuit is used to form a circuit self-oscillation signal; The first end of the resistor R1 is connected to the resonant circuit; The second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, and the detection circuit is used to receive the signal output after being processed by the waveform filtering circuit and transmit it to the digital-to-analog converter ADC of the main control circuit; The anode of the first diode D3 is connected to the cathode of the second diode D2 and the cathode of the voltage stabilizing diode D1 respectively; The positive electrode of the voltage stabilizing diode is grounded; The cathode of the second diode is grounded; The detection circuit is connected to the main control circuit, the main control circuit is used to control the resonant circuit to form a self-oscillation signal, and the main control circuit is also used to calculate the quality factor using the control chip.
2. The detection circuit according to claim 1, It is characterized in that The resonant circuit includes a MOS transistor Q1, a MOS transistor Q2, a MOS transistor Q3, a MOS transistor Q4, an inductor Lp, a capacitor Cp, a diode D1, a first diode, a second diode, a third diode and a fourth diode; The MOS transistor Q1 is connected to the first diode via a source and a drain; The MOS transistor Q2 is connected to the second diode via a source and a drain; The MOS tube Q3 is connected to the third diode via a source and a drain; The MOS tube Q4 is connected to the fourth diode via a source and a drain; The first end of the inductor Lp is connected to the control circuit and the gate of the MOS transistor Q1 respectively; The first end of the capacitor Cp is connected to the source of the MOS transistor Q2 and the drain of the MOS transistor Q3 respectively; After the drain of the MOS transistor Q1 is connected to the drain of the MOS transistor Q2, it is connected to the control circuit; The source of the MOS transistor Q3 and the source of the MOS transistor Q4 are grounded respectively; After the second end of the inductor Lp and the second end of the capacitor Cp are connected, a connection point between the second end of the inductor Lp and the second end of the capacitor Cp is connected to the diode D1; The diode D1 is connected to the resistor R1 of the waveform filtering circuit; The control circuit is connected to the gate of the MOS transistor Q1, the gate of the MOS transistor Q2, the gate of the MOS transistor Q3 and the gate of the MOS transistor Q4 respectively, and the control circuit is used to control the conduction and disconnection of the MOS transistor Q1, the MOS transistor Q2, the MOS transistor Q3 and the MOS transistor Q4.
3. A detection method based on the detection circuit of any one of claims 1 and 2, It is characterized in that include: Using a resonant circuit to generate a self-oscillating signal; The self-oscillation signal of the resonant circuit is subjected to valley elimination processing by a waveform filtering circuit, wherein the waveform filtering circuit comprises a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1, the resonant circuit is connected to the main control circuit, the resonant circuit is used to form a circuit self-oscillation signal, the first end of the resistor R1 is connected to the resonant circuit, the second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, the detection circuit is used to receive the signal output after being processed by the waveform filtering circuit, and transmit it to the digital-to-analog converter ADC of the main control circuit, the anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1, the anode of the voltage-stabilizing diode is grounded, the cathode of the second diode is grounded, and the detection circuit is connected to the main control circuit; The detection circuit performs signal conversion on the self-oscillation signal and transmits the signal to the digital-to-analog converter ADC in the main control circuit; Performing waveform analysis on the converted self-oscillation signal by means of a digital-to-analog converter ADC in the control circuit, and calculating the number of peaks of the waveform corresponding to the self-oscillation signal; The quality factor is calculated by the control chip in the control circuit according to the number of the peaks.
4. A detection device based on the detection circuit according to any one of claims 1 and 2, It is characterized in that include: A generating unit, configured to generate a self-oscillating signal using a resonant circuit; an elimination unit, used for performing valley elimination processing on the self-oscillation signal of the resonant circuit through a waveform filtering circuit, the waveform filtering circuit comprising a first diode D2, a second diode D3, a voltage-stabilizing diode D1 and a resistor R1, the resonant circuit is connected to the main control circuit, the resonant circuit is used to form a circuit self-oscillation signal, the first end of the resistor R1 is connected to the resonant circuit, the second end of the resistor R1 is respectively connected to the cathode of the first diode D3, the anode of the second diode D2 and the detection circuit, the detection circuit is used to receive the signal output after being processed by the waveform filtering circuit, and transmit it to the digital-to-analog converter ADC of the main control circuit, the anode of the first diode D3 is respectively connected to the cathode of the second diode D2 and the cathode of the voltage-stabilizing diode D1, the anode of the voltage-stabilizing diode is grounded, the cathode of the second diode is grounded, and the detection circuit is connected to the main control circuit; a conversion unit, used for performing signal conversion on the self-oscillation signal through the detection circuit, and transmitting the signal to the digital-to-analog converter ADC in the main control circuit; An analysis unit, configured to perform waveform analysis on the converted self-oscillation signal through a digital-to-analog converter ADC in the control circuit, and calculate the number of peaks of the waveform corresponding to the self-oscillation signal; The detection unit is used to calculate the quality factor according to the number of peaks through the control chip in the control circuit.
5. An electronic device, It is characterized in that include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the detection method according to claim 3.
