Quality factor detection circuit and method based on oscillation circuit and electronic equipment

文档序号:1002187 发布日期:2020-10-23 浏览:9次 中文

阅读说明:本技术 基于振荡电路的品质因子检测电路、检测方法及电子设备 (Quality factor detection circuit and method based on oscillation circuit and electronic equipment ) 是由 李跃超 周迪 王勇 于 2020-05-27 设计创作,主要内容包括:本申请的实施例提供一种基于振荡电路的品质因子检测电路、检测方法及电子设备。涉及电子技术领域,能够满足快速高精度的获取Q值。该基于振荡电路的品质因子检测电路,包括:振荡电路、检测控制电路以及电压采样电路;其中,检测控制电路连接电源,检测控制电路连接振荡电路;振荡电路包括串联的电感和电容,电感的第一端连接检测控制电路,电感的第二端连接电容的第一端,电容的第二端连接公共电压端或连接检测控制电路;检测控制电路,用于将电感和电容与电源串联形成充电回路,为电容充电;还用于将电感和电容连接成LC振荡回路;或者,将电感和电容连接成LC振荡回路,并在LC振荡回路上串联预定电阻;电压采样电路连接电容的第一端。(The embodiment of the application provides a quality factor detection circuit and a quality factor detection method based on an oscillation circuit, and an electronic device. The electronic technical field is related to, and the Q value can be acquired quickly and accurately. The quality factor detection circuit based on the oscillation circuit comprises: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with the power supply and the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein the first end of the inductor is connected with the detection control circuit, the second end of the inductor is connected with the first end of the capacitor, and the second end of the capacitor is connected with the common voltage end or the detection control circuit; the detection control circuit is used for connecting the inductor and the capacitor in series with a power supply to form a charging loop to charge the capacitor; the inductor and the capacitor are connected into an LC oscillating circuit; or, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit; the voltage sampling circuit is connected with the first end of the capacitor.)

1. A quality factor detection circuit based on an oscillation circuit, comprising: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with a power supply and is connected with the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein a first end of the inductor is connected with the detection control circuit, a second end of the inductor is connected with a first end of the capacitor, and a second end of the capacitor is connected with a common voltage end or the detection control circuit;

the detection control circuit is used for connecting the inductor and the capacitor with the power supply in series to form a charging loop to charge the capacitor;

the detection control circuit is also used for connecting the inductor and the capacitor into an LC oscillating circuit; or, the inductor and the capacitor are connected to form an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit;

the voltage sampling circuit is connected with the first end of the capacitor and is used for sampling the voltage of the capacitor in an LC oscillating circuit formed by the inductor and the capacitor to obtain a first peak voltage, or sampling the voltage of the capacitor in the LC oscillating circuit formed by the inductor, the capacitor and the preset resistor to obtain a second peak voltage; wherein the first peak voltage and the second peak voltage are used for calculating a quality factor Q value of the inductor.

2. The oscillating circuit based quality factor detection circuit of claim 1, comprising: the detection control circuit comprises a first switch component, a second switch component and the preset resistor;

a first end of the first switch component is connected with the power supply, a second end of the first switch component is connected with the common voltage end or a second end of the capacitor, a third end of the first switch component is connected with a first end of the preset resistor, and a second end of the preset resistor is connected with a first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

when the first end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor;

when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor and the capacitor are connected into an LC (inductance-capacitance) oscillating circuit;

when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is disconnected with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit.

3. The oscillating circuit based quality factor detection circuit of claim 1, comprising: the detection control circuit comprises a first switch component, a second switch component and the preset resistor;

the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the first end of the preset resistor, the second end of the preset resistor is connected with the common voltage end or the second end of the capacitor, and the third end of the first switch component is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

when the first end of the first switch component is conducted with the third end of the first switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor;

when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor and the capacitor are connected into an LC (inductance-capacitance) oscillating circuit;

when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is disconnected with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit.

4. The oscillating circuit based quality factor detection circuit of claim 1, wherein the detection control circuit comprises a first switch component, a second switch component, a third switch component, and the predetermined resistance;

the first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor;

a first end of the predetermined resistor is connected with a second end of the first switch component, and a second end of the predetermined resistor is connected with a first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with the common voltage end or the second end of the capacitor;

when the first end of the first switch component is connected with the second end of the first switch component, the first end of the second switch component is disconnected with the second end of the second switch component, and the first end of the third switch component is disconnected with the second end of the third switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor;

when the first end of the first switch component is disconnected with the second end of the first switch component, the first end of the second switch component is disconnected with or conducted with the second end of the second switch component, and the first end of the third switch component is conducted with the second end of the third switch component, the inductor and the capacitor are connected into an LC oscillating circuit;

the first end of the first switch component is disconnected with the second end of the first switch component, the first end of the second switch component is connected with the second end of the second switch component, and when the first end of the third switch component is disconnected with the second end of the third switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit.

5. The oscillating circuit based quality factor detection circuit of claim 4, wherein the detection control circuit further comprises a fourth switching component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit;

when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor;

when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor and the capacitor are connected to form an LC oscillating loop;

when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor and the capacitor are connected into an LC oscillation loop, and a preset resistor is connected in series on the LC oscillation loop.

6. The oscillating circuit based quality factor detecting circuit according to any one of claims 1 to 5, wherein the first peak voltage is a maximum forward peak voltage of a damped oscillation voltage generated at the first end of the capacitor by an LC tank circuit formed by connecting the inductor and the capacitor; the second peak voltage is the maximum forward peak voltage of the damped oscillation voltage generated at the first end of the capacitor by an LC oscillation circuit formed by connecting the preset resistor, the inductor and the capacitor.

7. The oscillating circuit based quality factor detection circuit according to any of claims 1-5, wherein the voltage sampling circuit comprises any one of: the device comprises a voltage following circuit, a peak voltage sampling circuit, a wave-by-wave peak voltage sampling circuit and a voltage attenuation detection circuit.

8. A quality factor detection method based on an oscillation circuit is used for a quality factor detection circuit based on the oscillation circuit, and the quality factor detection circuit based on the oscillation circuit comprises the following steps: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with a power supply and is connected with the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein a first end of the inductor is connected with the detection control circuit, a second end of the inductor is connected with a first end of the capacitor, and a second end of the capacitor is connected with a common voltage end or the detection control circuit; the quality factor detection method based on the oscillation circuit comprises the following steps:

controlling the detection control circuit to connect the inductor and the capacitor in series with the power supply to form a charging loop to charge the capacitor;

the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a first peak voltage of the capacitor; or, the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, a preset resistor is connected in series on the LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a second peak voltage of the capacitor;

and calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

9. The oscillating circuit based quality factor detection method of claim 8, wherein the detection control circuit comprises a first switch component, a second switch component and the predetermined resistance; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the common voltage end or the second end of the capacitor, the third end of the first switch component is connected with the first end of the preset resistor, and the second end of the preset resistor is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling the first end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component;

controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the second end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component;

the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the second end of the first switch component to be connected with the third end of the first switch component, and controlling the first end of the second switch component to be disconnected with the second end of the second switch component.

10. The method of claim 8, comprising: the detection control circuit comprises a first switch component, a second switch component and the preset resistor; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the first end of the preset resistor, the second end of the preset resistor is connected with the common voltage end or the second end of the capacitor, and the third end of the first switch component is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling the first end of the first switch component to be conducted with the third end of the first switch component;

controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the second end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component;

the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the second end of the first switch component to be connected with the third end of the first switch component, and controlling the first end of the second switch component to be disconnected with the second end of the second switch component.

11. The oscillating circuit based quality factor detection method of claim 8, wherein the detection control circuit comprises a first switch component, a second switch component, a third switch component, and the predetermined resistance; the first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor; a first end of the predetermined resistor is connected with a second end of the first switch component, and a second end of the predetermined resistor is connected with a first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with the common voltage end or the second end of the capacitor;

control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling a first end of the first switch component to be connected with a second end of the first switch component, a first end of the second switch component to be disconnected with a second end of the second switch component, and a first end of the third switch component to be disconnected with a second end of the third switch component;

controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be disconnected with or conducted with the second end of the second switch component, and the first end of the third switch component to be conducted with the second end of the third switch component;

the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be connected with the second end of the second switch component, and the first end of the third switch component to be disconnected with the second end of the third switch component.

12. The oscillating circuit based quality factor detection method of claim 11, wherein the detection control circuit further comprises: a fourth switching component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit;

control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling a first end of the first switch component to be connected with a second end of the first switch component, a first end of the second switch component to be disconnected with a second end of the second switch component, a first end of the third switch component to be disconnected with a second end of the third switch component, and a first end of the fourth switch component to be connected with a second end of the fourth switch component;

controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be disconnected with or conducted with the second end of the second switch component, the first end of the third switch component to be conducted with the second end of the third switch component, and the first end of the fourth switch component to be conducted with the second end of the fourth switch component;

the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be connected with the second end of the second switch component, and controlling the first end of the third switch component to be disconnected with the second end of the third switch component, and the first end of the fourth switch component to be connected with the second end of the fourth switch component.

13. The method of any one of claims 8-12, wherein calculating the Q value of the inductor from the first sampled voltage and the second sampled voltage comprises:

calculating the equivalent inductance value of the inductor by adopting the following formula I, and calculating the equivalent impedance of the inductor by adopting the following formula II:

Figure FDA0002511857480000051

Figure FDA0002511857480000052

calculating the Q value of the inductor according to the equivalent inductance value and the equivalent impedance, wherein L1 is the equivalent inductance value of the inductor, R1 is the equivalent impedance of the inductor, Us is the output voltage of the power supply, U1 is the first sampling voltage, U2 is the second sampling voltage, R is the resistance value of the predetermined resistor, n is a positive integer, and Cp is the capacitance value of the capacitor.

14. The method of claim 13, wherein calculating the Q value of the inductor from the equivalent inductance value and the equivalent impedance comprises: calculating the Q value of the inductor by adopting the following formula III:

15. an oscillation circuit based quality factor detection apparatus for control of an oscillation circuit based quality factor detection circuit, the oscillation circuit based quality factor detection circuit comprising: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with a power supply and is connected with the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein a first end of the inductor is connected with the detection control circuit, a second end of the inductor is connected with a first end of the capacitor, and a second end of the capacitor is connected with a common voltage end or the detection control circuit; the quality factor detection device based on the oscillating circuit comprises: the method comprises the following steps:

the control module is used for controlling the detection control circuit to connect the inductor and the capacitor in series with the power supply to form a charging loop so as to charge the capacitor;

the control module is further configured to control the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and perform voltage sampling on the capacitor through the voltage sampling circuit to obtain a first peak voltage of the capacitor; or, the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, a preset resistor is connected in series on the LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a second peak voltage of the capacitor;

and the processing module is used for calculating the Q value of the inductor through the first peak voltage and the second peak voltage acquired by the voltage sampling circuit.

16. The oscillation circuit based quality factor detection apparatus of claim 15, wherein the detection control circuit comprises a first switch element, a second switch element, and the predetermined resistance; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the common voltage end or the second end of the capacitor, the third end of the first switch component is connected with the first end of the preset resistor, and the second end of the preset resistor is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

the control module is specifically configured to control a first end of the first switch component to be conducted with a third end of the first switch component, and a first end of the second switch component to be conducted with a second end of the second switch component;

the control module is specifically configured to control a second end of the first switch component to be conducted with a third end of the first switch component, and a first end of the second switch component to be conducted with a second end of the second switch component;

the control module is specifically configured to control the second end of the first switch component to be connected to the third end of the first switch component, and the first end of the second switch component to be disconnected from the second end of the second switch component.

17. The oscillation circuit based quality factor detection apparatus of claim 15, wherein the detection control circuit comprises a first switch element, a second switch element, and the predetermined resistance; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the first end of the preset resistor, the second end of the preset resistor is connected with the common voltage end or the second end of the capacitor, and the third end of the first switch component is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor;

the control module is specifically used for controlling the conduction of the first end of the first switch component and the third end of the first switch component;

the control module is specifically configured to control a second end of the first switch component to be conducted with a third end of the first switch component, and a first end of the second switch component to be conducted with a second end of the second switch component;

the control module is specifically configured to control the second end of the first switch component to be connected to the third end of the first switch component, and the first end of the second switch component to be disconnected from the second end of the second switch component.

18. The oscillation circuit based quality factor detection apparatus of claim 15, wherein the detection control circuit comprises a first switch element, a second switch element, a third switch element, and the predetermined resistance; the first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor; a first end of the predetermined resistor is connected with a second end of the first switch component, and a second end of the predetermined resistor is connected with a first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with the common voltage end or the second end of the capacitor;

the control module is specifically configured to control a first end of the first switch component to be connected to a second end of the first switch component, a first end of the second switch component to be disconnected from a second end of the second switch component, and a first end of the third switch component to be disconnected from a second end of the third switch component;

the control module is specifically configured to control a first end of the first switch component to be disconnected from a second end of the first switch component, a first end of the second switch component to be disconnected from a second end of the second switch component, and a first end of the third switch component to be connected to a second end of the third switch component;

the control module is specifically configured to control a first end of the first switch component to be disconnected from a second end of the first switch component, a first end of the second switch component to be connected to a second end of the second switch component, and a first end of the third switch component to be disconnected from a second end of the third switch component.

19. The oscillation circuit based quality factor detection apparatus of claim 18 wherein the detection control circuit further comprises a fourth switching component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit;

the control module is specifically configured to control a first end of the first switch assembly to be connected to a second end of the first switch assembly, a first end of the second switch assembly to be disconnected from a second end of the second switch assembly, a first end of the third switch assembly to be disconnected from a second end of the third switch assembly, and a first end of the fourth switch assembly to be connected to a second end of the fourth switch assembly;

the control module is specifically configured to control the first end of the first switch assembly to be disconnected from the second end of the first switch assembly, the first end of the second switch assembly to be disconnected from or connected to the second end of the second switch assembly, the first end of the third switch assembly to be connected to the second end of the third switch assembly, and the first end of the fourth switch assembly to be connected to the second end of the fourth switch assembly;

the control module is specifically used for controlling the disconnection of the first end of the first switch component and the second end of the first switch component, the conduction of the first end of the second switch component and the second end of the second switch component, the disconnection of the first end of the third switch component and the second end of the third switch component, and the conduction of the first end of the fourth switch component and the second end of the fourth switch component.

20. An electronic device, comprising: the oscillating circuit based quality factor detecting circuit according to any of claims 1 to 7 and the oscillating circuit based quality factor detecting apparatus according to any of claims 15 to 19, wherein the electronic device may be a transmitting end device or a receiving end device.

Technical Field

The present disclosure relates to the field of electronic technologies, and in particular, to a quality factor detection circuit, a quality factor detection method, and an electronic device based on an oscillation circuit.

Background

With the popularization of wireless charging technology, many wireless charging products emerge in the market, wherein the occupation rate of a mobile phone transmitting terminal based on Wireless Power Consortium (WPC) Qi standard is the largest.

In wireless charging product applications, the wireless charging product is usually in an open scene, for example: the mobile phone with the wireless charging function is charged by using the charger as an accessory, and the mobile phone and the charger are independent separable product forms. A Transmission (TX) device in an accessory needs to detect and identify a Reception (RX) device (usually installed inside an electronic device with a wireless charging function such as a mobile phone) placed in the accessory in real time, and when the reception device is identified, the transmission device starts to control charging to complete power transmission. Meanwhile, it is also necessary to determine whether there is a foreign object between the sending device and the receiving device, and if the foreign object cannot be detected accurately, there is a scenario where the foreign object (such as a bank card, an identity card, etc.) is damaged in the charging process, which severely restricts the development of the wireless charging industry, and therefore, the foreign object detection is also becoming a primary problem of wireless charging safety and is also a pain point in the industry.

The current wireless charging foreign matter detection capability is limited, the coverage area is small, a large number of foreign matters cannot be detected, the wireless charging safety is seriously threatened, and the further development of the industry is extremely unfavorable. Currently, the foreign matter detection method mainly used is a quality factor (Q) value detection method. The principle of the Q value detection method is as follows: when foreign matters exist between the sending device and the receiving device, parameters of an inductance coil of the sending device can be influenced, and further the Q value of the inductance coil is influenced, so that whether the foreign matters exist can be reflected by detecting the Q value of the inductance coil. Therefore, the accuracy of detecting the foreign object can be improved by improving the detection accuracy and the detection speed of the Q value, and therefore how to detect the Q value quickly and accurately becomes a problem to be solved at present.

Disclosure of Invention

The embodiment of the application provides a quality factor detection circuit and method based on an oscillation circuit, and an electronic device, which can meet the requirement of obtaining a Q value quickly and accurately.

In order to achieve the purpose, the technical scheme is as follows:

in a first aspect, a quality factor detection circuit based on an oscillation circuit is provided. The quality factor detection circuit includes: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with the power supply and the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein the first end of the inductor is connected with the detection control circuit, the second end of the inductor is connected with the first end of the capacitor, and the second end of the capacitor is connected with the common voltage end or the detection control circuit; the detection control circuit is used for connecting the inductor and the capacitor in series with a power supply to form a charging loop to charge the capacitor; the detection control circuit is also used for connecting the inductor and the capacitor into an LC oscillating circuit; or, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit; the voltage sampling circuit is connected with the first end of the capacitor and used for sampling the voltage of the capacitor in an LC oscillating circuit formed by the inductor and the capacitor to obtain a first peak voltage, or sampling the voltage of the capacitor in the LC oscillating circuit formed by the inductor, the capacitor and a preset resistor to obtain a second peak voltage; the first peak voltage and the second peak voltage are used for calculating the quality factor Q value of the inductor. In the above scheme, the detection control circuit can connect the inductor and the capacitor in series with the power supply to form a charging loop to charge the capacitor; in addition, the detection control circuit can also connect the inductor and the capacitor into an LC oscillating circuit; or the detection control circuit is used for connecting the inductor and the capacitor into an LC oscillating circuit, and connecting a preset resistor in series on the LC oscillating circuit; therefore, after the power supply charges the capacitor, the voltage sampling circuit can sample the voltage of the capacitor in an LC oscillating circuit formed by the inductor and the capacitor to obtain a first peak voltage; or after the power supply charges the capacitor, the voltage sampling circuit can sample the voltage of the capacitor in an LC oscillating circuit formed by the inductor, the capacitor and a preset resistor to obtain a second peak voltage; the first peak voltage and the second peak voltage may be used as a calculation of the quality factor Q of the inductor. It can be seen that according to the quality factor detection circuit based on the oscillation circuit, the frequency sweeping is not needed in the voltage sampling process, and the frequency of the damped oscillation of the LC oscillation circuit does not need to be detected, so that the limitation of the frequency sweeping or the damped oscillation of the LC oscillation circuit on the detection time can be avoided, in addition, the problem that the frequency of the damped oscillation of the LC oscillation circuit is difficult to detect due to hardware limitation can be avoided, and the requirement for obtaining the Q value quickly and accurately is met.

In one possible design, a specific form of detection control circuit is provided. The detection control circuit includes: the circuit comprises a first switch component, a second switch component and a preset resistor. The first end of the first switch component is connected with a power supply, the second end of the first switch component is connected with a common voltage end or the second end of the capacitor, the third end of the first switch component is connected with the first end of the preset resistor, and the second end of the preset resistor is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; when the first end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor; when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit; when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is disconnected with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit. Wherein the first switch assembly comprises a single-pole double-throw type relay or is formed by connecting at least two switch devices; the second switching component includes a switching transistor or a relay. The aforementioned switching device or switching transistor may be a metal-oxide-semiconductor field-effect transistor (MOSFET).

In one possible design, a specific form of detection control circuit is provided. The detection control circuit comprises a first switch component, a second switch component and a preset resistor; the first end of the first switch component is connected with a power supply, the second end of the first switch component is connected with the first end of a preset resistor, the second end of the preset resistor is connected with a common voltage end or the second end of a capacitor, and the third end of the first switch component is connected with the first end of an inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; when the first end of the first switch component is conducted with the third end of the first switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor; when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is conducted with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit; when the second end of the first switch component is conducted with the third end of the first switch component and the first end of the second switch component is disconnected with the second end of the second switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit.

In one possible design, another form of detection control circuit is provided. The detection control circuit includes: the circuit comprises a first switch component, a second switch component, a third switch component and a preset resistor. The first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor; the first end of the preset resistor is connected with the second end of the first switch component, and the second end of the preset resistor is connected with the first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with a common voltage end or a second end of the capacitor; when the first end of the first switch component is connected with the second end of the first switch component, the first end of the second switch component is disconnected with the second end of the second switch component, and the first end of the third switch component is disconnected with the second end of the third switch component, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor; when the first end of the first switch component is disconnected with the second end of the first switch component, the first end of the second switch component is disconnected with or conducted with the second end of the second switch component, and the first end of the third switch component is conducted with the second end of the third switch component, the inductor and the capacitor are connected into an LC oscillating circuit; when the first end of the third switch component is disconnected with the second end of the third switch component, the inductor and the capacitor are connected into an LC oscillating circuit, and a preset resistor is connected in series on the LC oscillating circuit. The first switch assembly, the second switch assembly and the third switch assembly adopt relays or switch transistors.

In one possible design, another form of detection control circuit is provided. The detection control circuit also comprises a fourth switch component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit; when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor, the capacitor and the power supply are connected in series to form a charging loop to charge the capacitor; when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor and the capacitor are connected into an LC oscillating loop; when the first end of the fourth switch assembly is conducted with the second end of the fourth switch assembly, the inductor and the capacitor are connected into an LC oscillation circuit, and a preset resistor is connected in series on the LC oscillation circuit.

In one possible design, the first peak voltage is any peak voltage in the damped oscillation voltage generated at the first end of the capacitor by the LC oscillation circuit formed by connecting the inductor and the capacitor, and the second peak voltage is any peak voltage in the damped oscillation voltage generated at the first end of the capacitor by the LC oscillation circuit formed by connecting the predetermined resistor, the inductor and the capacitor, wherein the first peak voltage and the second peak voltage correspond to peak voltages of the same period in the damped oscillation voltage. For example, the first peak voltage is a peak voltage of the first period in its corresponding ringing voltage, and the second peak voltage is also a peak voltage of the first period in its corresponding ringing voltage. Of course, the peak voltage of the second period or the nth period may be used as the first peak voltage and the second peak voltage. Since the measurement result is more accurate when the peak voltage is higher, one solution to improve the detection accuracy is: the first peak voltage is the maximum forward peak voltage of the damped oscillation voltage generated at the first end of the capacitor by an LC oscillation circuit formed by connecting the inductor and the capacitor; the second peak voltage is the maximum positive peak voltage of the damped oscillation voltage generated at the first end of the capacitor by the LC oscillation circuit formed by connecting the preset resistor, the inductor and the capacitor.

In one possible design, the voltage sampling circuit includes any one of: the voltage-controlled oscillator comprises a voltage following circuit, a peak voltage sampling circuit, a wave-by-wave peak voltage sampling circuit, a voltage attenuation detection circuit and the like.

In a second aspect, a quality factor detection method based on an oscillation circuit is provided. Quality factor detection circuit for an oscillator-based circuit, the oscillator-based quality factor detection circuit comprising the steps of: the device comprises an oscillating circuit, a detection control circuit and a voltage sampling circuit; the detection control circuit is connected with a power supply and is connected with the oscillation circuit; the oscillating circuit comprises an inductor and a capacitor which are connected in series, wherein a first end of the inductor is connected with the detection control circuit, a second end of the inductor is connected with a first end of the capacitor, and a second end of the capacitor is connected with a common voltage end or the detection control circuit; the quality factor detection method based on the oscillation circuit comprises the following steps: controlling the detection control circuit to connect the inductor and the capacitor in series with the power supply to form a charging loop to charge the capacitor; the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a first peak voltage of the capacitor; or, the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, a preset resistor is connected in series on the LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a second peak voltage of the capacitor; and calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

In one possible design, the detection control circuit includes a first switch component, a second switch component, and the predetermined resistance; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the common voltage end or the second end of the capacitor, the third end of the first switch component is connected with the first end of the preset resistor, and the second end of the preset resistor is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling the first end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component; controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the second end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component; the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the second end of the first switch component to be connected with the third end of the first switch component, and controlling the first end of the second switch component to be disconnected with the second end of the second switch component.

The detection control circuit comprises a first switch component, a second switch component and the preset resistor; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the first end of the preset resistor, the second end of the preset resistor is connected with the common voltage end or the second end of the capacitor, and the third end of the first switch component is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling the first end of the first switch component to be conducted with the third end of the first switch component; controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the second end of the first switch component to be conducted with the third end of the first switch component, and controlling the first end of the second switch component to be conducted with the second end of the second switch component; the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the second end of the first switch component to be connected with the third end of the first switch component, and controlling the first end of the second switch component to be disconnected with the second end of the second switch component.

In one possible design, the detection control circuit includes a first switch component, a second switch component, a third switch component, and the predetermined resistance; the first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor; a first end of the predetermined resistor is connected with a second end of the first switch component, and a second end of the predetermined resistor is connected with a first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with the common voltage end or the second end of the capacitor; control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling a first end of the first switch component to be connected with a second end of the first switch component, a first end of the second switch component to be disconnected with a second end of the second switch component, and a first end of the third switch component to be disconnected with a second end of the third switch component; controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be disconnected with or conducted with the second end of the second switch component, and the first end of the third switch component to be conducted with the second end of the third switch component; the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be connected with the second end of the second switch component, and the first end of the third switch component to be disconnected with the second end of the third switch component.

In one possible design, the detection control circuit further includes: a fourth switching component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit; control the detection control circuit to connect the inductance and the capacitance in series with the power supply to form a charging loop, including: controlling a first end of the first switch component to be connected with a second end of the first switch component, a first end of the second switch component to be disconnected with a second end of the second switch component, a first end of the third switch component to be disconnected with a second end of the third switch component, and a first end of the fourth switch component to be connected with a second end of the fourth switch component; controlling the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, comprising: controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be disconnected with or conducted with the second end of the second switch component, the first end of the third switch component to be conducted with the second end of the third switch component, and the first end of the fourth switch component to be conducted with the second end of the fourth switch component; the control of the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and to connect a predetermined resistor in series on the LC oscillating circuit, includes: and controlling the first end of the first switch component to be disconnected with the second end of the first switch component, the first end of the second switch component to be connected with the second end of the second switch component, and controlling the first end of the third switch component to be disconnected with the second end of the third switch component, and the first end of the fourth switch component to be connected with the second end of the fourth switch component.

In one possible design, calculating the Q value of the inductor from the first sampled voltage and the second sampled voltage includes: calculating the equivalent inductance value of the inductor by adopting the following formula I, and calculating the equivalent impedance of the inductor by adopting the following formula II:

Figure BDA0002511857490000052

calculating the Q value of the inductor according to the equivalent inductance value and the equivalent impedance, wherein L1 is the equivalent inductance value of the inductor, R1 is the equivalent impedance of the inductor, Us is the output voltage of the power supply, U1 is the first sampling voltage, U2 is the second sampling voltage, R is the resistance value of the predetermined resistor, n is a positive integer, and Cp is the capacitance value of the capacitor.

In one possible design, calculating the Q value of the inductor from the equivalent inductance value and the equivalent impedance includes: calculating the Q value of the inductor by adopting the following formula III:

in a third aspect, an oscillation circuit based quality factor detection apparatus is provided for implementing the above various methods. The quality factor detection device based on the oscillation circuit comprises modules, units or means (means) corresponding to the implementation of the method, and the modules, units or means can be implemented by hardware, software or hardware to execute corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.

In a fourth aspect, an oscillation circuit based quality factor detection apparatus is provided, including: a processor and a memory; the memory is configured to store computer instructions that, when executed by the processor, cause the oscillation circuit based quality factor detection apparatus to perform the method of any of the above aspects.

In a fifth aspect, an oscillation circuit based quality factor detection apparatus is provided, including: a processor; the processor is used for connecting with the memory and executing the method of any one of the above aspects according to the instructions after reading the instructions in the memory.

In a sixth aspect, there is provided a computer readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of any of the above aspects.

In a seventh aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the above aspects.

In an eighth aspect, an oscillation circuit based quality factor detection apparatus (which may be a chip or a system-on-chip, for example) is provided, which comprises a processor configured to implement the functions recited in any of the above aspects. In one possible design, the quality factor detection device based on the oscillation circuit further includes a memory for storing necessary program instructions and data. When the quality factor detection device based on the oscillation circuit is a chip system, the quality factor detection device can be formed by a chip, and can also comprise a chip and other discrete devices.

In a ninth aspect, there is provided an electronic device comprising: as described above, the electronic device may be a receiving end device or a transmitting end device.

For technical effects brought by any one of the design manners in the second aspect to the eighth aspect, reference may be made to the technical effects brought by different design manners in the first aspect, and details are not described herein.

Drawings

Fig. 1 is a schematic structural diagram of a wireless charging system according to an embodiment of the present disclosure;

fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of a wireless charging system according to another embodiment of the present application;

fig. 4 is a schematic structural diagram of a wireless charging circuit according to another embodiment of the present disclosure;

fig. 5a is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to an embodiment of the present application;

fig. 5b is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to another embodiment of the present application;

fig. 6 is a schematic flowchart of a quality factor detection method based on an oscillation circuit according to an embodiment of the present disclosure;

fig. 7a is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 7b is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 8 is a waveform diagram of a ringing voltage Uc provided in an embodiment of the present application;

fig. 9 is an equivalent circuit diagram of a charging loop formed by connecting an inductor L and a capacitor C in series with a power supply according to an embodiment of the present application;

fig. 10 is an equivalent circuit diagram of an LC tank circuit in which an inductor and a capacitor are connected and a predetermined resistor is connected in series with the LC tank circuit according to an embodiment of the present application;

fig. 11 is a waveform diagram of a ringing voltage Uc according to another embodiment of the present application;

fig. 12 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 13 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 14 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to another embodiment of the present application;

fig. 15 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 16 is a schematic waveform diagram of a ringing voltage Uc according to yet another embodiment of the present application;

fig. 17 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to yet another embodiment of the present application;

fig. 18 is a schematic structural diagram of a quality factor detection circuit based on an oscillation circuit according to another embodiment of the present application;

FIG. 19 is a graph illustrating the damping curve of the ringing voltage of a capacitor C according to an embodiment of the present application;

fig. 20 is a schematic structural diagram of an oscillation circuit based quality factor detection apparatus according to an embodiment of the present disclosure;

fig. 21 is a schematic structural diagram of a quality factor detection apparatus based on an oscillation circuit according to yet another embodiment of the present disclosure.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.

In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature.

Further, in the present application, directional terms such as "upper" and "lower" are defined with respect to a schematically-disposed orientation of components in the drawings, and it is to be understood that these directional terms are relative concepts that are used for descriptive and clarity purposes and that will vary accordingly with respect to the orientation in which the components are disposed in the drawings.

In this application, unless otherwise expressly stated or limited, the term "connected" may mean an electrical connection that enables signal transmission, and "connected" may mean a direct electrical connection or an indirect electrical connection through an intermediate.

The embodiment of the present application is applied to a wireless charging system, wherein the wireless charging system includes an electronic device 01 and a charger 02 as shown in fig. 1, wherein the charger 02 serves as a transmitting-end device, and the electronic device 01 serves as a receiving-end device. The electronic device includes a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiving function, an intelligent wearable product (e.g., a smart watch, a smart bracelet), a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, and the like. The electronic equipment can also be electronic products such as a wireless charging electric automobile, a wireless charging household small-sized electric appliance (such as a soybean milk machine and a sweeping robot), an unmanned aerial vehicle and the like. The embodiment of the present application does not specifically limit the specific form of the electronic device. For convenience of description, the electronic device 01 will be described as an example of a mobile phone shown in fig. 1.

In order to wirelessly charge the electronic device 01, as shown in fig. 1, a wireless charging reception circuit 20 and a battery 50 connected to the wireless charging reception circuit 20 are provided in the electronic device 01. As an example, the electronic device 01, as shown in fig. 2, mainly includes a Display Panel (DP) 10. The display screen 10 may be a Liquid Crystal Display (LCD) screen or an Organic Light Emitting Diode (OLED) display screen. This is not a limitation of the present application. The electronic device 01 further includes a middle frame 11 and a housing 12 as shown in fig. 2. The display screen 10 and the casing 12 are respectively located at two sides of the middle frame 11, the back of the display screen 10 faces the casing 12, and the display screen 10 and the casing 12 are connected through the middle frame 11. The wireless charging receiving circuit 20, and the battery 50 may be disposed on a side surface of the middle frame 11 facing the housing 12.

The charger 02 includes a wireless charging circuit 30 provided in the charger 02 as shown in fig. 1, and a power supply 40 connected to the wireless charging circuit 30. The power supply 40 is used to supply charging power. In some embodiments of the present application, the power supply 40 may be a power adapter. The power supply 40 can convert 220V ac power into dc power (e.g., 5V or 10V, etc.) according to the charging power requirement, and transmit the dc power to the wireless charging circuit 30.

When the side of the housing 12 of the electronic device 01 is placed on the charger 02, in order to wirelessly charge the electronic device 01, as shown in fig. 3, the wireless charging circuit 30 includes a voltage converter 301 and a TX oscillating circuit 302, and the voltage converter 301 may be a Direct Current (DC) to Alternating Current (AC) converter, i.e., DC/AC converter. The wireless charging reception circuit 20 further includes an RX oscillation circuit 201 and a rectification circuit 202.

In this way, the voltage converter 301 is connected to the power source 40, and can convert the dc power output from the power source 40 into ac power. Further, the TX oscillation circuit 302 is connected to the voltage converter 301. The TX oscillating circuit 302 may generate an alternating magnetic field after receiving the alternating current output from the voltage converter 301. The RX oscillation circuit 201 receives the alternating magnetic field and outputs an alternating current, thereby enabling the power of the TX oscillation circuit 301 to be transmitted to the RX oscillation circuit 201.

The RX oscillating circuit 201 is connected to a rectifying circuit 202, and the rectifying circuit 202 can rectify the ac power output from the rectifying circuit 202 to generate a rectified voltage Vrect. In addition, the wireless charge receiving apparatus 20 further includes at least one stage of voltage conversion circuit 203 connected to the rectifying circuit 202. The voltage conversion circuit 203 can convert the rectified voltage Vrect into a charging voltage (for example, 3.7V) of the battery 20. After the charging voltage is applied to both ends of the battery 50, the current output from the voltage conversion circuit 203 can charge the battery 50.

In some embodiments of the present application, the voltage conversion circuit 203 includes a DC/DC conversion circuit. The DC/DC conversion circuit may be a Buck (Buck) circuit or a Switched Capacitor (SC) circuit. The input-output voltage ratio of the Buck circuit can be flexibly adjusted, for example, the input-output voltage ratio can be set to a decimal. The ratio of the input voltage to the output voltage of the SC circuit is an integer, but the SC circuit can withstand a high input-output voltage difference and has high voltage conversion efficiency. As shown in fig. 4, a schematic diagram of a wireless charging circuit 30 is provided, wherein the voltage converter 301 comprises switching transistors Q1-Q4, wherein Q1 is connected in series with Q2 to form a first bridge in parallel with the power source (power source output voltage Us), and Q3 is connected in series with Q4 to form a second bridge in parallel with the power source; wherein, the TX oscillation circuit 302 comprises a series TX resonant capacitor C as shown in FIG. 4TXAnd an inductor 311 (inductor coil), wherein the TX resonant capacitor CTXAnd the inductor 311 is connected in series between the intermediate node n1 of the first bridge and the intermediate node n2 of the second bridge. Therefore, the voltage converter 301 converts the dc power outputted from the power source 40 into ac power, and transmits the ac power to the TX oscillating circuit 303, so that high-frequency ac power is generated in the inductor.

In addition, in order to control the charging process, wireless communication may be established between the wireless charging circuit 30 and the wireless charging receiving circuit 20, in which case, as shown in fig. 3, the wireless charging circuit 30 may include a Transmit (TX) communication circuit 303, and the wireless charging receiving circuit 20 may include a Receive (RX) communication circuit 204. The TX communication circuit 303 and the RX communication circuit 204 may be wirelessly connected through bluetooth (bluetooth), wireless-broadband (WiFi), Zigbee (Zigbee), Radio Frequency Identification (RFID), long-range (long range ) and Near Field Communication (NFC), so that wireless communication between the wireless charging circuit 30 and the wireless charging receiving circuit 20 may be established. In this way, a control signal or charging data may be transmitted between the TX communication circuit 303 and the RX communication circuit 204. Wherein the charging data may be used to indicate the type of charging. For example, the charging data may be a charging protocol, such as wireless charging standard Qi (wireless power consortium, WPC), such as bpp (basic power profile) protocol, or epp (extended power profile) protocol.

In addition, as shown in fig. 3, the wireless charging circuit 20 further includes an RX controller 205 connected to the RX communication circuit 204. The RX controller 205 may identify a charging protocol sent by the TX controller 304 to the RX communication circuit 204 via the TX communication circuit 303 to determine a charging type of the electronic device 01, for example, the charging type may be a first charging type (e.g., low power charging suitable for slow charging) or a second charging type (e.g., high power charging suitable for fast charging).

In addition, in order to realize foreign object detection, the embodiment of the application provides a quality factor detection circuit based on an oscillation circuit. The oscillation circuit may be a TX oscillation circuit of the wireless charging circuit in the charger or an RX oscillation circuit in the mobile phone. Referring to fig. 5a and 5b, an embodiment of the present application provides an oscillation circuit based quality factor detection circuit, including: an oscillation circuit 501, a detection control circuit 502, and a voltage sampling circuit 503.

Wherein, the detection control circuit 502 is connected to the power supply 504, the detection control circuit 502 is connected to the oscillation circuit 501, the oscillation circuit 501 includes an inductor L and a capacitor C connected in series, wherein a first end of the inductor L is connected to the detection control circuit 502, a second end of the inductor L is connected to a first end of the capacitor C, and a second end of the capacitor C is connected to a common voltage terminal (for example, a negative electrode of the power supply 504, as shown in fig. 5 b) or the detection control circuit 502 (as shown in fig. 5 a); a detection control circuit 502, configured to connect the inductor L and the capacitor C in series with the power supply 504 to form a charging loop, so as to charge the capacitor C; the detection control circuit 502 is further configured to connect the inductor L and the capacitor C to form an LC oscillating circuit; or, the detection control circuit 502 is configured to connect the inductor L and the capacitor C to form an LC tank, and connect a predetermined resistor in series with the LC tank; the voltage sampling circuit 503 is connected to a first end of the capacitor C, and is configured to sample a voltage of the capacitor C in an LC tank formed by the inductor L and the capacitor C to obtain a first peak voltage, and sample a voltage of the capacitor C in an LC tank formed by the inductor L, the capacitor C, and a predetermined resistor to obtain a second peak voltage, where the first peak voltage and the second peak voltage are used to calculate a quality factor Q value of the inductor L.

The difference between fig. 5a and fig. 5b is that the second terminal of the capacitor C is directly connected to the detection control circuit 502, or when the detection circuit 502 and the oscillation circuit 501 are connected to the same common voltage terminal, the second terminal of the capacitor C may also be directly connected to the common voltage terminal.

Referring to fig. 6, a quality factor detection method based on an oscillation circuit is provided, which is used for the quality factor detection circuit based on the oscillation circuit shown in fig. 5, and specifically includes the following steps:

601. the control detection control circuit connects the inductor and the capacitor in series with the power supply to form a charging loop to charge the capacitor.

602. The control detection control circuit connects the inductor and the capacitor into an LC oscillation circuit, and the voltage sampling circuit samples the voltage of the capacitor to obtain a first peak voltage U1 of the capacitor.

603. The control detection control circuit connects the inductor and the capacitor into an LC oscillating circuit, a preset resistor is connected in series on the LC oscillating circuit, and the voltage sampling circuit samples the voltage of the capacitor to obtain a second peak voltage U2 of the capacitor.

It is understood that step 602 or 603 is optionally performed after step 601, i.e. step 602 is performed after step 601 is performed, or step 603 is performed after step 601 is performed, so that after the capacitor is charged for the first time, step 602 is performed, step 603 is performed after the capacitor is charged for the second time, of course, after the capacitor is charged for the first time, step 603 is performed, or step 602 is performed after the capacitor is charged for the second time.

604. And calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

In one example, the first peak voltage is any peak voltage in the damped oscillation voltage generated at the first end of the capacitor by the LC oscillation circuit formed by connecting the inductor and the capacitor, and the second peak voltage is any peak voltage in the damped oscillation voltage generated at the first end of the capacitor by the LC oscillation circuit formed by connecting the predetermined resistor, the inductor and the capacitor, wherein the first peak voltage and the second peak voltage correspond to peak voltages of the same period in the damped oscillation voltage. For example, the first peak voltage is a peak voltage of the first period in its corresponding ringing voltage, and the second peak voltage is also a peak voltage of the first period in its corresponding ringing voltage. Of course, the peak voltage of the second period or the nth period may be used as the first peak voltage and the second peak voltage. Since the measurement result is more accurate as the peak voltage is higher, a preferable solution to improve the detection accuracy is: the first peak voltage is the maximum positive peak voltage of the damped oscillation voltage generated at the first end of the capacitor by an LC oscillation circuit formed by connecting an inductor and the capacitor; the second peak voltage is the maximum positive peak voltage of the damped oscillation voltage generated at the first end of the capacitor by an LC oscillation circuit formed by connecting a preset resistor, an inductor and the capacitor.

In this application, step 604 may specifically use the following formula i to calculate the equivalent inductance value L1 of the inductor L, and use the following formula ii to calculate the equivalent impedance R1 of the inductor L:

Figure BDA0002511857490000091

calculating the Q value of the inductor according to the equivalent inductance value L1 and the equivalent impedance R1, wherein L1 is the equivalent inductance value of the inductor L, R1 is the equivalent impedance of the inductor L, Us is the output voltage of the power supply (meanwhile, Us is the voltage value of the full capacitor C), U1 is the first sampling voltage, U2 is the second sampling voltage, R is the resistance value of the predetermined resistor, n is a positive integer, and Cp is the capacitance value of the capacitor C. The Q value of the inductor is calculated according to the equivalent inductance value L1 and the equivalent impedance R1, and the Q value of the inductor L is calculated by adopting the following formula III:

in the above scheme, the detection control circuit 502 may connect the inductor L and the capacitor C in series with the power supply 504 to form a charging loop to charge the capacitor C; in addition, the detection control circuit 502 can also connect the inductor L and the capacitor C to form an LC oscillation circuit; or, the detection control circuit 502 is configured to connect the inductor L and the capacitor C to form an LC tank, and connect a predetermined resistor in series with the LC tank; therefore, after the capacitor C is charged by the power supply, the voltage sampling circuit can sample the voltage of the capacitor C in an LC oscillation loop formed by the inductor L and the capacitor C to obtain a first peak voltage; or after the power supply charges the capacitor C, the voltage sampling circuit may sample the voltage of the capacitor C in an LC oscillating circuit formed by the inductor L, the capacitor C, and a predetermined resistor to obtain a second peak voltage; the first peak voltage and the second peak voltage may be used as a calculation of the quality factor Q of the inductor L. It can be seen that according to the quality factor detection circuit based on the oscillation circuit, compared with the prior art, the sampling process of the voltage does not need to sweep frequency and detect the frequency of the damped oscillation of the LC oscillation circuit, so that the limitation of the frequency of the sweep frequency or the damped oscillation of the LC oscillation circuit on the detection time can be avoided, in addition, the problem that the frequency of the damped oscillation of the LC oscillation circuit is difficult to detect due to hardware limitation can be avoided, and the requirement of obtaining the Q value with high speed and high precision is met.

In one example, referring to fig. 7a, there is provided a schematic illustration of a detection control circuit 502, the detection control circuit 502 including a first switch assembly K1, a second switch assembly K2, and a predetermined resistance R; a first terminal (1) of the first switch module K1 is connected to the power supply 504 (as shown in fig. 7a, it may be a positive terminal (+) of the power supply 504), a second terminal (2) of the first switch module K1 is connected to a second terminal of the capacitor C, or may be a common voltage terminal (for example, a negative terminal of the power supply), a third terminal (3) of the first switch module K1 is connected to a first terminal of the predetermined resistor R, and a second terminal of the predetermined resistor R is connected to a first terminal of the inductor L; a first terminal of the second switching element K2 is connected to a first terminal of a predetermined resistance R, and a second terminal of the second switching element K2 is connected to a second terminal of the predetermined resistance R. When the first terminal of the first switch module K1 is conducted with the third terminal of the first switch module K1 and the first terminal of the second switch module K2 is conducted with the second terminal of the second switch module K2, the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop to charge the capacitor C; in addition, as shown in fig. 7a, to avoid the charging circuit oscillation, a charging resistor R0 is connected in series between the positive electrode of the power supply 504 and the first end of the first switch component K1. When the second end of the first switch assembly K1 is conducted with the third end of the first switch assembly K1 and the first end of the second switch assembly K2 is conducted with the second end of the second switch assembly K2, the inductor L and the capacitor C are connected into an LC oscillation loop; when the second terminal of the first switch assembly K1 is connected to the third terminal of the first switch assembly K1 and the first terminal of the second switch assembly K2 is disconnected from the second terminal of the second switch assembly K2, the inductor L and the capacitor C are connected to form an LC tank, and a predetermined resistor R is connected in series to the LC tank. Wherein the first switching assembly K1 comprises a single pole double throw type relay or is formed by at least two switching devices connected, for example by two switching transistors; the second switching component K2 comprises a switching transistor or relay. The aforementioned switching device or switching transistor may be a metal-oxide-semiconductor field-effect transistor (MOSFET).

In one example, as shown with reference to fig. 7b, unlike fig. 7a, the predetermined resistance R may be connected at other positions in this example. The detection control circuit 502 includes a first switch component K1, a second switch component K2, and a predetermined resistor R; a first terminal (1) of the first switch component K1 is connected to the power supply 504 (as shown in fig. 7b, it may be a positive terminal (+) of the power supply 504), a second terminal (2) of the first switch component K1 is connected to a first terminal of a predetermined resistor R, a second terminal of the predetermined resistor R is connected to a second terminal of a capacitor C, or may be a common voltage terminal (for example, a negative terminal of the power supply) or a detection control circuit, and a third terminal (3) of the first switch component K1 is connected to a first terminal of an inductor L; a first terminal of the second switching element K2 is connected to a first terminal of a predetermined resistance R, and a second terminal of the second switching element K2 is connected to a second terminal of the predetermined resistance R. When the first terminal of the first switch component K1 is conducted with the third terminal of the first switch component K1, the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop to charge the capacitor C; in addition, as shown in fig. 7b, to avoid the charging circuit oscillation, a charging resistor R0 is connected in series between the positive electrode of the power supply 504 and the first end of the first switch component K1. When the second end of the first switch assembly K1 is conducted with the third end of the first switch assembly K1 and the first end of the second switch assembly K2 is conducted with the second end of the second switch assembly K2, the inductor L and the capacitor C are connected into an LC oscillation loop; when the second terminal of the first switch assembly K1 is connected to the third terminal of the first switch assembly K1 and the first terminal of the second switch assembly K2 is disconnected from the second terminal of the second switch assembly K2, the inductor L and the capacitor C are connected to form an LC tank, and a predetermined resistor R is connected in series to the LC tank.

An embodiment of the present application provides a quality factor detection method based on an oscillation circuit, which is used for the quality factor detection circuit based on the oscillation circuit shown in fig. 7a, and specifically includes the following steps:

701. controlling the first terminal of the first switch component K1 to be conducted with the third terminal of the first switch component K1, and controlling the first terminal of the second switch component K2 to be conducted with the second terminal of the second switch component K2; the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop for charging the capacitor C.

When the first terminal of the first switch element K1 is connected to the third terminal of the first switch element K1 and the first terminal of the second switch element K2 is connected to the second terminal of the second switch element K2, the power supply and the first switch element cooperate to form a step signal, and a voltage signal Us is input to the oscillation circuit.

702. Controlling the second terminal of the first switch component K1 to be conducted with the third terminal of the first switch component K1, and controlling the first terminal of the second switch component K2 to be conducted with the second terminal of the second switch component K2; the voltage sampling circuit 503 samples the voltage of the capacitor to obtain a first peak voltage U1 of the capacitor.

In step 701, the power supply completes charging the capacitor C, and in this step, the power supply is turned off and stops charging when the second terminal of the first switch component K1 and the third terminal of the first switch component K1 are connectedAnd charging a capacitor C, namely connecting the inductor and the capacitor into an LC oscillation circuit, wherein the LC oscillation circuit is only connected with the inductor and the capacitor, and the voltage of the LC oscillation circuit can generate damping oscillation due to the fact that the capacitor C is charged in the 701 step, wherein when the capacitor C discharges, the voltage Uc of the first end of the capacitor C is in damping oscillation. The voltage sampling circuit 503 samples the voltage of the capacitor to obtain a first peak voltage of the capacitor, which is an exemplary first peak voltage, as shown in fig. 8, which shows a ringing voltage Uc at the first end of the capacitor, and the first peak voltage may be a maximum forward peak voltage U1. It should be noted that the first peak voltage may be any peak voltage in the damped oscillation voltage generated at the first end of the capacitor by the LC tank circuit formed by connecting the inductor and the capacitor. The detection control circuit 502 may connect the inductor L and the capacitor C in series with the power supply 504 to form a charging loop, and an equivalent circuit thereof is shown in fig. 9, and as can be known from the damped oscillation principle, the expression of the xth peak after Us (-Us) is:wherein the content of the first and second substances,

Figure BDA0002511857490000112

representing a damped oscillation damping ratio; when x is odd, U1xIs a positive peak; and when x is even, U1xIs a negative peak.

703. Controlling the first terminal of the first switch component K1 to be conducted with the third terminal of the first switch component K1, and controlling the first terminal of the second switch component K2 to be conducted with the second terminal of the second switch component; the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop for charging the capacitor C.

704. Controlling the second terminal of the first switching element K1 to be connected with the third terminal of the first switching element K1 and the first terminal of the second switching element K2 to be disconnected with the second terminal of the second switching element K2; the voltage sampling circuit 503 samples the voltage of the capacitor to obtain a second peak voltage U2 of the capacitor.

In step 703, the power supply completes charging the capacitor C, and in this step, the power supply is turned off and stops charging when the second terminal of the first switch component K1 and the third terminal of the first switch component K1 are connectedAnd charging a capacitor C, namely connecting the preset resistor, the inductor and the capacitor into an LC oscillating circuit, wherein the LC oscillating circuit is connected with the preset resistor, the inductor and the capacitor. The voltage sampling circuit 503 samples the voltage of the capacitor to obtain a second peak voltage U2 of the capacitor, which may be an exemplary second peak voltage U2, which may be a maximum positive peak voltage U2. Due to the fact that the predetermined resistor is connected in series in the LC oscillating circuit, the amplitude of the damped oscillation voltage at the first end of the capacitor is reduced relative to that in FIG. 8. The second peak voltage may be any peak voltage of a damped oscillation voltage generated at the first end of the capacitor by an LC oscillation circuit formed by connecting a predetermined resistor, an inductor and a capacitor. The detection control circuit 502 can control the inductor and the capacitor to be connected into an LC oscillating circuit, and a predetermined resistor is connected in series on the LC oscillating circuit, an equivalent circuit of the circuit is shown in fig. 10, and as can be known from the damped oscillation principle, an expression of the xth peak after Us (-Us) is:

Figure BDA0002511857490000121

wherein

Figure BDA0002511857490000122

Representing a damped oscillation damping ratio; when x is odd, U2xIs a positive peak; and when x is even, U2xIs a negative peak.

Then, in steps 702 and 703, the first peak voltage U1 and the second peak voltage U2 may correspond to peak voltages of the ringing voltage with the same period. Thus, referring to FIG. 11, for example, the first peak voltage U1 may be the first peak voltage after Us in its corresponding ringing voltage, such as the first period peak voltage U1 in FIG. 111Of course, the first peak voltage U1 may also adopt the peak voltage U1 of the second period or the nth periodn. Similarly, the second peak voltage U2 may be a peak voltage having the same period as the first peak voltage U1. Wherein, when n in the first formula and the second formula takes 1, the value of U1 is U11And the value of U2 is U21

705. And calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

The specific manner of this step may be referred to the above example and is not described herein again.

An embodiment of the present application provides a quality factor detection method based on an oscillation circuit, which is used for the quality factor detection circuit based on the oscillation circuit shown in fig. 7b, and specifically includes the following steps:

801. controlling the first terminal of the first switch component K1 to be conducted with the third terminal of the first switch component K1; the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop for charging the capacitor C.

When the first terminal of the first switch element K1 is conducted to the third terminal of the first switch element K1, the power supply cooperates with the first switch element to form a step signal, and a voltage signal Us is input to the oscillating circuit.

802. Controlling the second terminal of the first switch component K1 to be conducted with the third terminal of the first switch component K1, and controlling the first terminal of the second switch component K2 to be conducted with the second terminal of the second switch component K2; the voltage sampling circuit 503 samples the voltage of the capacitor to obtain a first peak voltage U1 of the capacitor.

For the detailed description of this step, reference may be made to the description of step 702, which is not repeated herein.

803. And controlling the first end of the first switch component K1 to be conducted with the third end of the first switch component K1, and connecting the inductor L and the capacitor C in series with the power supply 504 to form a charging loop to charge the capacitor C.

804. Controlling the second terminal of the first switching element K1 to be connected with the third terminal of the first switching element K1 and the first terminal of the second switching element K2 to be disconnected with the second terminal of the second switching element K2; the voltage sampling circuit 503 samples the voltage of the capacitor to obtain a second peak voltage U2 of the capacitor.

For the detailed description of this step, reference may be made to the description of step 704, which is not repeated herein.

805. And calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

The specific manner of this step may be referred to the above example and is not described herein again.

In another example, referring to fig. 12, the detection control circuit 502 includes a first switching element M1, a second switching element M2, a third switching element M3, and a predetermined resistance R.

A first terminal of the first switch module R1 is connected to the power supply 504 (for example, the positive electrode (+) of the power supply 504), and a second terminal of the first switch module M1 is connected to the first terminal of the inductor L; a first terminal of the predetermined resistor R is connected to the second terminal of the first switch module M1, a second terminal of the predetermined resistor R is connected to the first terminal of the second switch module M2, a first terminal of the third switch module M3 is connected to the second terminal of the first switch module M1, a second terminal of the second switch module M2 and a second terminal of the third switch module M3 are connected to the common voltage terminal, which is connected to the second terminal of the capacitor C, and may also be connected to a common voltage terminal (e.g., the negative pole (-) of the power supply 504).

When the first terminal of the first switch element M1 is connected to the second terminal of the first switch element M1, the first terminal of the second switch element M2 is disconnected from the second terminal of the second switch element M2, and the first terminal of the third switch element M3 is disconnected from the second terminal of the third switch element M3, the inductor L and the capacitor C are connected in series with the power supply 504 to form a charging loop to charge the capacitor C; when the first end of the first switch component M1 is disconnected from the second end of the first switch component M1, the first end of the second switch component M2 is disconnected from the second end of the second switch component M2, and the first end of the third switch component M3 is connected to the second end of the third switch component M3, the inductor L and the capacitor C are connected to form an LC oscillation circuit; when the first terminal of the first switching element M1 is disconnected from the second terminal of the first switching element M1, the first terminal of the second switching element M2 is connected to the second terminal of the second switching element M2, and the first terminal of the third switching element M3 is disconnected from the second terminal of the third switching element M3, the inductor L and the capacitor C are connected to form an LC tank, and a predetermined resistor R is connected in series to the LC tank. Illustratively, the first switch assembly, the second switch assembly and the third switch assembly employ relays or switching transistors.

An embodiment of the present application provides a quality factor detection method based on an oscillation circuit, which is used for the quality factor detection circuit based on the oscillation circuit shown in fig. 12, and specifically includes the following steps:

901. controlling the first terminal of the first switch element M1 to be connected to the second terminal of the first switch element M1, the first terminal of the second switch element M2 to be disconnected from the second terminal of the second switch element M2, and the first terminal of the third switch element M3 to be disconnected from the second terminal of the third switch element M3; the inductor and the capacitor are connected in series with a power supply to form a charging loop to charge the capacitor C.

902. Controlling the first terminal of the first switching element M1 to be disconnected from the second terminal of the first switching element M1, the first terminal of the second switching element M2 to be disconnected from or connected to the second terminal of the second switching element, and the first terminal of the third switching element M3 to be connected to the second terminal of the third switching element; and voltage sampling is carried out on the capacitor through the voltage sampling circuit, and a first peak voltage of the capacitor is obtained.

903. Controlling the first terminal of the first switch element M1 to be connected to the second terminal of the first switch element M1, the first terminal of the second switch element M2 to be disconnected from the second terminal of the second switch element M2, and the first terminal of the third switch element M3 to be disconnected from the second terminal of the third switch element M3; the inductor and the capacitor are connected in series with a power supply to form a charging loop to charge the capacitor.

904. Controlling the first terminal of the first switch element M1 to be disconnected from the second terminal of the first switch element M1, the first terminal of the second switch element M2 to be connected to the second terminal of the second switch element M2, and the first terminal of the third switch element M3 to be disconnected from the second terminal of the third switch element M3; and voltage sampling is carried out on the capacitor through the voltage sampling circuit, and second peak voltage of the capacitor is obtained.

905. And calculating the Q value of the inductor through the first peak voltage and the second peak voltage.

The specific principles of steps 901-905 are similar to those of steps 701-705, and refer to the above description specifically, which is not repeated herein.

In addition, the detection control circuit 502 further includes a fourth switch component M4; the first terminal of the fourth switching element M4 is connected to the second terminal of the capacitor C, and the second terminal of the fourth switching element M4 is connected to the common voltage terminal or the detection control circuit 502. Of course, when the detection control circuit 502 includes the fourth switch element M4, in the above steps 901-904, it is necessary to control M4 to be in a conducting state.

It should be noted that, in order to save circuit cost, when the quality factor detection circuit based on the oscillation circuit shown in fig. 12 is used in the charger, the third switching component M3 may be used in combination with the switching transistor Q2 of the lower arm in the first bridge in fig. 4; in addition, the fourth switching assembly M4 may connect the negative (-) of the power supply with the switching transistor Q4 of the lower leg in the second bridge of fig. 4. That is, as shown in fig. 13, M1, M2, R0, and R are added directly on the basis of fig. 4, wherein the connection relationship among M1, M2, R0, and R refers to the detailed description in fig. 12, and is not repeated here. Of course, when the quality factor detection circuit based on the oscillation circuit includes the switching transistor Q4, it is necessary to control the Q4 to be in the on state in the above steps 901-904. It should be noted that the quality factor detection circuit based on the oscillation circuit provided by the embodiment of the present application may be the same as or different from the wireless charging circuit provided in fig. 4, as shown in fig. 13, when the two sources are different, the quality factor detection circuit based on the oscillation circuit uses the voltage source Us, and the wireless charging circuit uses the voltage source Udc.

Further, the voltage sampling circuit includes any one of: the device comprises a voltage following circuit, a peak voltage sampling circuit, a wave-by-wave peak voltage sampling circuit and a voltage attenuation detection circuit.

As shown in fig. 14, there is provided a schematic diagram of a voltage sampling circuit, the voltage sampling circuit being a voltage follower circuit, the voltage follower circuit comprising: the voltage follower g1 and the diode D1 can sample the peak voltage of the capacitor C by connecting the diode D1 to the 1 terminal of g1, because the voltages at the 3 terminal and the 1 terminal of the voltage follower g1 are equal. As shown in fig. 15, another schematic diagram of a voltage sampling circuit is provided, the voltage sampling circuit is a peak voltage sampling circuit, the peak voltage sampling circuit includes diodes D2 and C1, and the voltage value at C1 is maintained at the peak voltage along with the ringing voltage output at the first end of the capacitor C by the unidirectional conduction of the diode D2 and the energy storage of C1. As shown in fig. 16, providing a plot of the ringing voltage on the first end of the capacitor C, and the voltage of C1, it can be seen that the voltage on C1 remains stable at the peak voltage U1. When the wave-by-wave peak voltage sampling circuit is adopted as the voltage sampling circuit, as shown in fig. 17, the wave-by-wave peak voltage sampling circuit is used for acquiring the peak of each period of the damped oscillation voltage one by one, so that U1 may also be the peak voltage of the first period of the curve of the damped oscillation voltage acquired by the wave-by-wave peak voltage sampling circuit, or may also be the peak voltage of the second even nth period of the curve of the damped oscillation voltage, the difference with fig. 14 is that the wave-by-wave peak voltage sampling circuit shown in fig. 17 further includes a delay switch Ky connected to the 3 end of the voltage follower g1, wherein the delay switch Ky may be selectively turned on at different delays to connect the first end of the capacitor C to the 3 end of the voltage follower g1, thereby realizing the acquisition of the peak of each period of the damped oscillation voltage.

As shown in fig. 18, there is provided a schematic diagram of still another voltage sampling circuit, the voltage sampling circuit being a voltage decay detection circuit, the voltage decay detection circuit comprising: the voltage follower comprises a voltage follower g1, resistors R2-R6, a diode D1 and capacitors C2 and C3; wherein the terminal 4 of the voltage follower g1 is connected with the negative pole (-) of the power supply V11, the terminal 5 is connected with the positive pole (+) of the power supply V11, the terminal 3 is connected with the first terminal of the capacitor C through the resistor R2, the terminal 1 is connected with the anode of the diode D1, the cathode of the diode D1 is connected with the terminal 2 of the voltage follower g1 through the resistor R3, the cathode of the diode D1 is also connected with the first terminal of the resistor R4, the second terminal of R4 is connected with the negative pole (-) of the power supply V11 through the capacitor C2, the second terminal of R4 is connected with the negative pole (-) of the power supply V11 through the resistor R6, the second terminal of R4 is connected with the first terminal of the resistor R5, the second terminal of R5 is connected with the negative pole (-) of the power supply, wherein the voltage of the capacitor C3 can be sampled through the second terminal (Vo) of R5, the voltage of the capacitor C3 is the attenuation curve of the ringing voltage of the capacitor C, as shown in fig. 19, it can be seen that the maximum voltage at C3 is the peak voltage U1. Of course, the voltage sampling circuits shown in fig. 14, 16 and 17 only include the necessary components for explaining the circuit principle, and in some aspects, other peripheral components may be provided. In addition, the circuits in fig. 14, 15, 17, and 18 except for the voltage sampling circuit portion are described by taking the circuit in the schematic diagram in fig. 7 as an example; when used as an example, the circuits of fig. 14, 15, 17, and 18 except for the voltage sampling circuit portion may be replaced with the circuits shown in fig. 12 or 13.

It is to be understood that the quality factor detection method based on the oscillation circuit provided in the above embodiments may be implemented by a quality factor detection apparatus based on the oscillation circuit, and the above method and/or steps may also be implemented by a component (e.g., a chip or a circuit) that can be used in the quality factor detection apparatus based on the oscillation circuit.

It is understood that, in order to implement the above functions, the quality factor detection apparatus based on the oscillation circuit includes a hardware structure and/or a software module corresponding to each function. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

In the embodiment of the present application, the functional modules of the quality factor detection apparatus based on the oscillation circuit may be divided according to the above method embodiments, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.

Fig. 20 is a schematic diagram showing a structure of a quality factor detection device based on an oscillation circuit. The quality factor detection device based on the oscillation circuit comprises a control module 2001 and a processing module 2002.

A control module 2001, configured to control the detection control circuit to connect the inductor and the capacitor in series with the power supply to form a charging loop, so as to charge the capacitor;

the control module 2001 is further configured to control the detection control circuit to connect the inductor and the capacitor into an LC oscillating circuit, and perform voltage sampling on the capacitor through the voltage sampling circuit to obtain a first peak voltage of the capacitor; or, the detection control circuit is controlled to connect the inductor and the capacitor into an LC oscillation circuit, a preset resistor is connected in series on the LC oscillation circuit, and the voltage sampling circuit is used for sampling the voltage of the capacitor to obtain a second peak voltage of the capacitor;

and the processing module 2002 is configured to calculate a Q value of the inductor according to the first peak voltage and the second peak voltage obtained by the voltage sampling circuit.

Optionally, the detection control circuit includes a first switch component, a second switch component and the predetermined resistor; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the common voltage end or the second end of the capacitor, the third end of the first switch component is connected with the first end of the preset resistor, and the second end of the preset resistor is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; the control module 2001 is specifically configured to control a first end of the first switch component to be conducted with a third end of the first switch component, and a first end of the second switch component to be conducted with a second end of the second switch component; the control module 2001 is specifically configured to control the conduction between the second terminal of the first switch component and the third terminal of the first switch component, and the conduction between the first terminal of the second switch component and the second terminal of the second switch component; the control module is specifically configured to control the second end of the first switch component to be connected to the third end of the first switch component, and the first end of the second switch component to be disconnected from the second end of the second switch component.

Optionally, the detection control circuit includes a first switch component, a second switch component, and the predetermined resistor; the first end of the first switch component is connected with the power supply, the second end of the first switch component is connected with the first end of the preset resistor, the second end of the preset resistor is connected with the common voltage end or the second end of the capacitor, and the third end of the first switch component is connected with the first end of the inductor; the first end of the second switch component is connected with the first end of the preset resistor, and the second end of the second switch component is connected with the second end of the preset resistor; the control module 2001 is specifically configured to control the first end of the first switch component and the third end of the first switch component to be conducted; the control module 2001 is specifically configured to control the conduction between the second terminal of the first switch component and the third terminal of the first switch component, and the conduction between the first terminal of the second switch component and the second terminal of the second switch component; the control module 2001 is specifically configured to control the second end of the first switch component and the third end of the first switch component to be turned on, and the first end of the second switch component and the second end of the second switch component to be turned off.

Optionally, the detection control circuit includes a first switch component, a second switch component, a third switch component, and the predetermined resistance; the first end of the first switch component is connected with the power supply, and the second end of the first switch component is connected with the first end of the inductor; a first end of the predetermined resistor is connected with a second end of the first switch component, and a second end of the predetermined resistor is connected with a first end of the second switch component; the first end of the third switch component is connected with the second end of the first switch component, and the second end of the second switch component and the second end of the third switch component are connected with the common voltage end or the second end of the capacitor C; the control module 2001 is specifically configured to control a first end of the first switch component to be connected to a second end of the first switch component, a first end of the second switch component to be disconnected from a second end of the second switch component, and a first end of the third switch component to be disconnected from a second end of the third switch component; the control module 2001 is specifically configured to control the first end of the first switch component to be disconnected from the second end of the first switch component, the first end of the second switch component to be disconnected from or connected to the second end of the second switch component, and the first end of the third switch component to be connected to the second end of the third switch component; the control module 2001 is specifically configured to control the first end of the first switch component to be disconnected from the second end of the first switch component, the first end of the second switch component to be connected to the second end of the second switch component, and the first end of the third switch component to be disconnected from the second end of the third switch component.

Optionally, the detection control circuit further includes a fourth switch component; the first end of the fourth switch component is connected with the second end of the capacitor, and the second end of the fourth switch component is connected with the common voltage end or the detection control circuit; the control module 2001 is specifically configured to control a first terminal of the first switch assembly to be connected to a second terminal of the first switch assembly, a first terminal of the second switch assembly to be disconnected from a second terminal of the second switch assembly, a first terminal of the third switch assembly to be disconnected from a second terminal of the third switch assembly, and a first terminal of the fourth switch assembly to be connected to a second terminal of the fourth switch assembly; the control module 2001 is specifically configured to control the first terminal of the first switch component to be disconnected from the second terminal of the first switch component, the first terminal of the second switch component to be disconnected from or connected to the second terminal of the second switch component, the first terminal of the third switch component to be connected to the second terminal of the third switch component, and the first terminal of the fourth switch component to be connected to the second terminal of the fourth switch component; the control module 2001 is specifically configured to control the disconnection between the first end of the first switch component and the second end of the first switch component, the conduction between the first end of the second switch component and the second end of the second switch component, the disconnection between the first end of the third switch component and the second end of the third switch component, and the conduction between the first end of the fourth switch component and the second end of the fourth switch component.

Optionally, the processing module 2002 is specifically configured to calculate an equivalent inductance value of the inductor by using the following formula one, and calculate an equivalent impedance of the inductor by using the following formula two:

and calculating the Q value of the inductor according to the equivalent inductance value and the equivalent impedance, wherein L1 is the equivalent inductance value of the inductor, R1 is the equivalent impedance of the inductor, Us is the output voltage of the power supply, U1 is the first sampling voltage, U2 is the second sampling voltage, R is the resistance value of a preset resistor, and Cp is the capacitance value of a capacitor.

Optionally, the processing module 2002 is specifically configured to calculate a Q value of the inductor by using the following formula three:

all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.

In the present embodiment, the quality factor detection device based on an oscillation circuit is presented in a form in which the respective functional blocks are divided in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality.

As shown in fig. 21, an embodiment of the present application provides a hardware structure diagram of a quality factor detection apparatus based on an oscillation circuit.

The quality factor detection device based on the oscillation circuit includes at least one processor (exemplarily illustrated in fig. 20 by including one processor 2101) and at least one interface circuit 2103 (exemplarily illustrated in fig. 21 by including one interface circuit 2103). Optionally, the quality factor detection apparatus based on the oscillation circuit may further include at least one memory (exemplarily illustrated in fig. 21 by including one memory 2102).

The processor 2101, the memory 2102 and the interface circuit 2103 are connected by a communication line. The communication link may include a path for transmitting information between the aforementioned components.

The processor 2101 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control the execution of programs in accordance with the present teachings. In a particular implementation, the processor 2101 may also include multiple CPUs as an example, and the processor 2101 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, or processing cores that process data (e.g., computer program instructions).

The memory 2102 may be a device having a storage function. Such as, but not limited to, read-only memory (ROM) or other types of static storage devices that may store static information and instructions, Random Access Memory (RAM) or other types of dynamic storage devices that may store information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 2102 may be separate and connected to the processor 2101 by a communication line. The memory 2102 may also be integrated with the processor 2101.

The memory 2102 is used for storing computer-executable instructions for executing the scheme of the application, and is controlled by the processor 2101 to execute. Specifically, the processor 2101 is configured to execute computer-executable instructions stored in the memory 2102, thereby implementing the quality factor detection method based on an oscillating circuit described in the embodiments of the present application.

Or, optionally, in this embodiment of the application, the processor 2101 may also perform processing-related functions in the quality factor detection method based on the oscillation circuit provided in the embodiments described below in this application, and the interface circuit 2103 is responsible for being connected with other components to implement transmission of signals, for example, control over each switching component, specifically, a control signal for detecting on or off of a switching component in the control circuit; for example, the peak voltage generated by the transmission voltage sampling circuit is not particularly limited in this embodiment of the present application.

Optionally, the computer execution instruction in the embodiment of the present application may also be referred to as an application program code or a computer program code, which is not specifically limited in the embodiment of the present application.

In particular implementations, processor 2101 may include one or more CPUs such as CPU0 and CPU1 in fig. 21 as an example.

In a specific implementation, as an embodiment, the quality factor detection apparatus based on the oscillation circuit may include a plurality of processors, for example, the processor 2101 and the processor 2104 in fig. 21. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).

Among them, the processor 2101 in the quality factor detection apparatus based on an oscillating circuit shown in fig. 21 may cause the quality factor detection apparatus based on an oscillating circuit to perform the method in the above-described method embodiments by calling up the computer-executable instructions stored in the memory 2102. Specifically, the functions/implementation processes of the control module 2001 and the processing module 2002 in fig. 20 can be implemented by the processor 2101 in the quality factor detection apparatus based on an oscillation circuit shown in fig. 21 calling a computer execution instruction stored in the memory 2102. Since the quality factor detection apparatus based on the oscillation circuit provided in this embodiment can perform the above method, the technical effects obtained by the quality factor detection apparatus can refer to the above method embodiments, and are not described herein again.

Optionally, an embodiment of the present application further provides an oscillation circuit-based quality factor detection apparatus (for example, the oscillation circuit-based quality factor detection apparatus may be a chip or a system-on-chip), where the oscillation circuit-based quality factor detection apparatus includes a processor, and is configured to implement the method in any one of the method embodiments described above. In one possible design, the quality factor detection device based on the oscillation circuit further includes a memory. The memory is used for storing necessary program instructions and data, and the processor can call the program codes stored in the memory to instruct the quality factor detection device based on the oscillation circuit to execute the method in any one of the above method embodiments. Of course, the memory may not be included in the quality factor detection device based on the oscillation circuit. When the quality factor detection device based on the oscillation circuit is a chip system, the quality factor detection device may be composed of a chip, or may include a chip and other discrete devices, which is not specifically limited in this embodiment of the present application.

Further, an embodiment of the present application provides an electronic device including: in the quality factor detection circuit based on the oscillation circuit and the quality factor detection apparatus based on the oscillation circuit, the electronic device may be a transmitting end device or a receiving end device.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, 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. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by a computer or can comprise one or more data storage devices, such as a server, a data center, etc., that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others. In the embodiment of the present application, the computer may include the aforementioned apparatus.

While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

38页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种直流电容ESR的在线估算方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!