Capacitance measurement device and method

By designing a capacitance measurement device that includes a charging time acquisition circuit and a capacitor charging and discharging circuit, and using high-precision ADC and DAC, the problem that existing equipment cannot measure on-board capacitance with high precision is solved, achieving a small size and low cost. and high-precision capacitance measurements.

CN111856146BActive Publication Date: 2024-10-11INTELLIGENT AUTOMATION ZHUHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010604131.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-10-11
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

Existing capacitance testing equipment cannot achieve high accuracy, low cost and small size at the same time, especially it cannot effectively measure on-board capacitance.

Method used

A capacitance measurement device including an output capacitor charging voltage signal, a charging time acquisition circuit, a capacitor charging and discharging circuit and a voltage setting and acquisition circuit is designed. It uses 12bit DAC, 24bit ADC and MCU for accurate measurement, and uses the charging and discharging method. Measure the capacitance value.

Benefits of technology

It achieves small-volume, high-precision, low-cost capacitance value measurement, can quickly and accurately measure on-board capacitance and independent capacitance, reduces costs and improves measurement efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111856146B_ABST
    Figure CN111856146B_ABST
Patent Text Reader

Abstract

The present invention provides a capacitance value measuring device and method which are small in size, low in cost, high in measurement accuracy and can realize on-board capacitance measurement. The capacitance value measuring device of the present invention comprises a capacitance charging and discharging circuit (1) which outputs a capacitance charging voltage signal to a charging time acquisition circuit (3) and is used to discharge and charge a capacitance (C1) to be measured, a voltage setting and acquisition circuit (2) which is connected to the charging time acquisition circuit (3) and is used to set a charging start voltage and a charging end voltage and acquire the final fully charged voltage of the capacitance (C1) to be measured, and the charging time acquisition circuit, wherein the charging time acquisition circuit is used to calculate the charging time of the capacitance (C1) to be measured; the measurement method comprises the following steps: a. the capacitance to be measured is discharged, b. the capacitance to be measured starts to be charged, c. the charging voltage is set and acquired, d. the charging time is counted, and e. the capacitance value C of the capacitance to be measured is calculated. The present invention can be applied to the field of testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing, and in particular to a capacitance value measuring device and method. Background Art

[0002] With the development of the information age, various consumer electronic products are constantly updated, and the demand for consumer electronic measurement equipment is also increasing. At present, the functions of electronic products are diversified, and the functions that need to be tested also need to be more comprehensive, and the demand for measuring capacitance values ​​is increasing. There are also various capacitance test equipment on the market, but among these test equipment, the equipment that can achieve high-precision testing is large in size and expensive, such as the large-volume LCR instrument generally used. Small-volume equipment cannot measure on-board capacitance and has low accuracy. In general, the existing technology has the following problems: 1. The existing test equipment can meet the requirements of high precision and on-board capacitance, but it is large in size and expensive, costing tens of thousands of yuan; 2. The existing small-volume equipment can only measure independent capacitance, cannot measure on-board capacitance and has low accuracy.

[0003] In order to solve the above problems, it is urgent to design a capacitance measuring device that can achieve high precision, small size, low cost and can realize on-board capacitance measurement. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a capacitance value measuring device which has small size, low cost, high measurement accuracy and can realize on-board capacitance measurement.

[0005] The present invention also provides a method for measuring the capacitance value of a capacitor using the above-mentioned measuring device. The method has a simple process, convenient operation and low cost.

[0006] The technical solution adopted by the capacitance value measuring device of the present invention is that the device comprises

[0007] The capacitor charging and discharging circuit outputs the capacitor charging voltage signal to the charging time acquisition circuit and is used to discharge and charge the capacitor under test.

[0008] A voltage setting and acquisition circuit connected to the charging time acquisition circuit and used to set the charging start voltage and charging end voltage and acquire the final fully charged voltage of the measured capacitor, and

[0009] The charging time acquisition circuit is used to calculate the charging time of the capacitor under test.

[0010] Furthermore, the charging time acquisition circuit includes a first instrument amplifier, a window comparator, an XOR gate logic device, an AND gate circuit and an MCU, the first instrument amplifier receives the capacitor charging voltage signal output by the capacitor charging and discharging circuit, the first instrument amplifier outputs a voltage signal to the window comparator, the input end of the window comparator is also connected to the voltage setting and acquisition circuit, the window comparator outputs two signals to the XOR gate logic device, the XOR gate logic device outputs a signal to the AND gate circuit, the MCU generates a clock signal to the input end of the AND gate circuit, and the output end of the AND gate circuit is connected to the MCU.

[0011] Furthermore, the voltage setting and acquisition circuit includes a DAC and an ADC, the DAC calls the 12-bit DAC built into the MCU, and the ADC is a 24-bit ADC chip.

[0012] In addition, the capacitor charging and discharging circuit includes a reference power supply, a second instrument amplifier, a current limiting resistor, a discharge relay, a discharge resistor and a charging relay. The reference power supply outputs a voltage and then inputs it into the input end of the second instrument amplifier. The current limiting resistor is arranged at the output end of the second instrument amplifier. Both ends of the discharge resistor are connected to the discharge relay. One end of the charging relay is connected between the second instrument amplifier and the discharge relay. The other end of the charging relay is connected to the charging time acquisition circuit.

[0013] Furthermore, the model of the MCU is selected from STM32F103RCT6.

[0014] Furthermore, a conduction relay is also provided at the front end of the first instrument amplifier.

[0015] The method for measuring capacitance using the above-mentioned capacitance measuring device comprises the following steps:

[0016] a. The measured capacitor is discharged: first, the discharge relay is closed, and the measured capacitor is discharged through the discharge resistor. After the discharge is completed, the discharge relay is disconnected;

[0017] b. The measured capacitor starts to charge: the MCU starts to output a clock signal of a set frequency to the AND gate circuit, the charging relay closes and starts to charge the measured capacitor, and the capacitor charging voltage signal enters the window comparator through the first instrument amplifier;

[0018] c. Charging voltage setting and acquisition: the DAC sets the charging start voltage and charging end voltage of the window comparator, and the ADC acquires the voltage value set by the DAC and the voltage value when the measured capacitor is finally fully charged;

[0019] d. Charging time statistics: Before the measured capacitor starts to charge, both output terminals A and B of the window comparator output high levels. When the charging voltage reaches the set starting voltage, the output terminal A of the window comparator changes from a high level to a low level. At this time, the XOR gate logic device changes from a low level to a high level. Its output and the clock signal output by the MCU are ANDed in the AND gate circuit and then output to the MCU for time statistics.

[0020] e. After the MCU obtains the time, the capacitance C of the capacitor to be measured is calculated by the following formula:

[0021] C=(t2–t1) / ((Vinf / Vref)*Rref*Ln((Vinf-V2) / (Vinf-V1)),

[0022] Among them, t1 is the start time of capacitor charging, t2 is the end time of capacitor charging, V1 is the set charging start voltage, V2 is the set charging end voltage, Vref is the voltage of the reference power supply, Vinf is the final charging voltage of the measured capacitor C1, and Rref=R112 is the current limiting resistor.

[0023] Furthermore, the method also includes a calibration step: using an LCR meter as a calibrator, after measuring the capacitance value, obtaining the measured capacitance value and comparing it with the capacitance value measured by the LCR meter to obtain an error value, and then recording the error value in the FLASH of the MCU for compensation during testing.

[0024] The beneficial effects of the present invention are as follows: the present invention uses an integrated circuit to measure the capacitance value, which greatly reduces the volume of the measuring device, and the devices involved are all conventional devices, the overall price is cheap, and the cost is greatly reduced; at the same time, a 24-bit ADC voltage sampling circuit and a 12-bit DAC voltage setting circuit are used, which greatly improves the measurement accuracy; in addition, the capacitance value measurement is achieved through three unit circuits of capacitor charging and discharging, voltage setting and acquisition, and charging time acquisition, and the on-board capacitance and independent capacitance can be accurately measured through the RC charging and discharging method, which can be suitable for the occasion of on-board capacitance measurement.

[0025] In addition, the method of the present invention can quickly measure the capacitance value with high precision through the coordinated operation of three unit circuits: capacitor charging and discharging, voltage setting and collection, and charging time collection, thereby improving measurement efficiency and measurement accuracy and relatively reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a principle structure block diagram of the present invention;

[0027] Figure 2 It is a signal waveform diagram of output signals of each circuit or device of the present invention;

[0028] Figure 3 is a schematic diagram of the capacitor charging and discharging circuit;

[0029] Figure 4 is a schematic diagram of the MCU and its peripheral circuits;

[0030] Figure 5 4 is a schematic diagram of the charging time acquisition circuit. DETAILED DESCRIPTION

[0031] like Figure 1-5 As shown, the device of the present invention includes a capacitor charging and discharging circuit 1 which outputs a capacitor charging voltage signal to a charging time acquisition circuit 3 and is used to discharge and charge the capacitor C1 under test, a voltage setting and acquisition circuit 2 which is connected to the charging time acquisition circuit 3 and is used to set the charging start voltage and the charging end voltage and acquire the final fully charged voltage of the capacitor C1 under test, and the charging time acquisition circuit 3, wherein the charging time acquisition circuit 3 is used to calculate the charging time of the capacitor C1 under test.

[0032] The charging time acquisition circuit 3 includes a first instrument amplifier U1, a window comparator 31, an XOR gate logic device 32, an AND gate circuit 33 and an MCU34. The first instrument amplifier U1 receives the capacitor charging voltage signal output by the capacitor charging and discharging circuit 1, and the first instrument amplifier U1 outputs a voltage signal to the window comparator 31. The input end of the window comparator 31 is also connected to the voltage setting and acquisition circuit 2. The window comparator 31 outputs two signals A and B to the XOR gate logic device 32, and the XOR gate logic device 32 outputs a signal to the AND gate circuit 33. The MCU34 generates a clock signal to the input end of the AND gate circuit 33, and the output end of the AND gate circuit 33 is connected to the MCU34. A conduction relay K21 is also provided at the front end of the first instrument amplifier U1. In this embodiment, the model of the MCU is selected from STM32F103RCT6. In this embodiment, the capacitor charging voltage is buffered by the first instrument amplifier U1 and noise suppressed before being connected to the window comparator. The input clock is generated by the MCU, and the clock frequency can be set. The higher the clock frequency, the higher the accuracy. The clock output after the AND gate circuit is connected to the clock capture input of the MCU for timing. When the timing is completed, the MCU uses the capacitor charging formula to calculate the capacitance value.

[0033] The voltage setting and acquisition circuit 2 includes a DAC 21 and an ADC 22. The DAC 21 calls the 12-bit DAC built into the MCU 34, and the ADC 22 is a 24-bit ADC chip. In this embodiment, the voltage setting uses the built-in 12-bit DAC (digital analog converter) of the STM32 MCU, which can set the precise charging start voltage and charging end voltage for capacitance measurement, and the minimum resolution of the voltage setting can reach 1mV. The voltage acquisition uses a 24-bit high-precision ADC (analog-to-digital converter) chip, and the accuracy of the 24-bit ADC can reach 1uV, ensuring that the accurate voltage value can be collected to improve the system accuracy.

[0034] The capacitor charging and discharging circuit 1 includes a reference power supply U30, a second instrument amplifier U31, a current limiting resistor R112, a discharge relay K23, a discharge resistor R206 and a charging relay K24. The reference power supply U30 outputs a voltage and then inputs it into the input end of the second instrument amplifier U31. The current limiting resistor R112 is arranged at the output end of the second instrument amplifier U31. Both ends of the discharge resistor R206 are connected to the discharge relay K23. One end of the charging relay K24 is connected between the second instrument amplifier U31 and the discharge relay K23. The other end of the charging relay K24 is connected to the charging time acquisition circuit 3. In this embodiment, the reference power supply U30 provides a 5V standard voltage. The capacitor charging and discharging circuit 1 is mainly composed of the reference power supply U30, and a precision reference power supply is used to provide a 5V voltage. After being buffered and noise suppressed by the second instrument amplifier U31, the current limiting resistor R112 is connected to achieve constant current charging. Discharging is performed after the discharge relay K23 is closed. When the discharge relay K23 is disconnected and the charging relay K24 is closed, the capacitor under test is charged.

[0035] The method for measuring capacitance using the above-mentioned capacitance measuring device comprises the following steps:

[0036] a. The measured capacitor is discharged: first, the discharge relay K23 is closed, and the measured capacitor C1 is discharged through the discharge resistor R206. After the discharge is completed, the discharge relay K23 is disconnected;

[0037] b. The measured capacitor starts to charge: the MCU 34 starts to output a clock signal of a set frequency to the AND gate circuit 33, the charging relay K24 closes and starts to charge the measured capacitor C1, and the capacitor charging voltage signal enters the window comparator 31 through the first instrument amplifier U1;

[0038] c. Charging voltage setting and acquisition: the DAC21 sets the charging start voltage and charging end voltage of the window comparator 31, and the ADC22 acquires the voltage value set by the DAC21 and the voltage value when the measured capacitor is finally fully charged;

[0039] d. Charging time statistics: Before the measured capacitor C1 starts to charge, the two output terminals A and B of the window comparator 31 both output high levels. When the charging voltage reaches the set starting voltage, the output terminal A of the window comparator 31 changes from a high level to a low level. At this time, the XOR gate logic device 32 changes from a low level to a high level. Its output is ANDed with the clock signal output by the MCU34 in the AND gate circuit 33 and then output to the MCU34 for time statistics;

[0040] e. After the MCU obtains the time, the capacitance C of the capacitor to be measured is calculated by the following formula:

[0041] C=(t2–t1) / ((Vinf / Vref)*Rref*Ln((Vinf-V2) / (Vinf-V1)),

[0042] Among them, t1 is the start time of capacitor charging, t2 is the end time of capacitor charging, V1 is the set charging start voltage, V2 is the set charging end voltage, Vref is the voltage of the reference power supply, Vinf is the final charging voltage of the measured capacitor C1, and Rref=R112 is the current limiting resistor.

[0043] In order to provide a stable and high-precision capacitance measurement circuit, this system adopts calibration to achieve this goal. Because the ADC has full-scale error and there are errors such as equivalent capacitance on the link, the circuit is calibrated to make up for the shortcomings of the circuit. The calibration steps are: using an LCR meter as a calibrator, after measuring the capacitance value, the measured capacitance value is compared with the capacitance value measured by the LCR meter to obtain the error value, and then the error value is recorded in the FLASH of the MCU34 for compensation during testing.

[0044] The device and method of the present invention have high precision, and adopt 24-bit-ADC and 12-bit-DAC to ensure the resolution of 1uA or 1uV; it relies on high-bandwidth operational amplifier and MCU processing to improve the response speed; in addition, the circuit of the present invention has high integration, stability and reliability, and is easy to transplant; and the cost is low, and the cost of the entire circuit is less than 200 RMB.

Claims

1. A capacitance value measuring device, characterized in that: It includes A capacitor charging and discharging circuit (1) outputs a capacitor charging voltage signal to a charging time acquisition circuit (3) and is used to discharge and charge a measured capacitor (C1), a voltage setting and acquisition circuit (2) connected to the charging time acquisition circuit (3) and used for setting the charging start voltage and the charging end voltage and acquiring the final fully charged voltage of the capacitor (C1) under test, and The charging time acquisition circuit (3) is used to calculate the charging time of the measured capacitor (C1); the charging time acquisition circuit (3) comprises a first instrumentation amplifier (U1), a window comparator (31), an XOR gate logic device (32), an AND gate circuit (33) and an MCU (34); the first instrumentation amplifier (U1) receives the capacitor charging voltage signal output by the capacitor charging and discharging circuit (1); the first instrumentation amplifier (U1) outputs a voltage signal to the window comparator (31); the input end of the window comparator (31) is also connected to the voltage setting and acquisition circuit (2); the window comparator (31) outputs two signals (A, B) to the XOR gate logic device (32); the XOR gate logic device (32) outputs a signal to the AND gate circuit (33); the MCU (34) generates a clock signal to the input end of the AND gate circuit (33); the output end of the AND gate circuit (33) is connected to the MCU (34).

2. The capacitance measuring device according to claim 1, characterized in that: The voltage setting and acquisition circuit (2) comprises a DAC (21) and an ADC (22), wherein the DAC (21) calls a 12-bit DAC built into the MCU (34), and the ADC (22) is a 24-bit ADC chip.

3. A capacitance measurement device according to claim 2, characterized in that: The capacitor charging and discharging circuit (1) comprises a reference power supply (U30), a second instrument amplifier (U31), a current limiting resistor (R112), a discharge relay (K23), a discharge resistor (R206) and a charging relay (K24); the reference power supply (U30) outputs a voltage which is then input into an input end of the second instrument amplifier (U31); the current limiting resistor (R112) is arranged at an output end of the second instrument amplifier (U31); two ends of the discharge resistor (R206) are connected to the discharge relay (K23); one end of the charging relay (K24) is connected between the second instrument amplifier (U31) and the discharge relay (K23); and the other end of the charging relay (K24) is connected to the charging time acquisition circuit (3).

4. A capacitance measuring device according to claim 2 or 3, characterized in that: The model of the MCU is selected from STM32F103RCT6.

5. The capacitance measuring device according to claim 1, characterized in that: A conduction relay (K21) is also provided at the front end of the first instrument amplifier (U1).

6. A method for measuring capacitance using the capacitance measuring device as claimed in claim 3, characterized in that: The method comprises the following steps: a. The measured capacitor is discharged: first, the discharge relay (K23) is closed, and the measured capacitor (C1) is discharged through the discharge resistor (R206). After the discharge is completed, the discharge relay (K23) is disconnected; b. The measured capacitor starts to charge: the MCU (34) starts to output a clock signal of a set frequency to the AND gate circuit (33), the charging relay (K24) closes and starts to charge the measured capacitor (C1), and the capacitor charging voltage signal enters the window comparator (31) through the first instrument amplifier (U1); c. Charging voltage setting and acquisition: the DAC (21) sets the charging start voltage and charging end voltage of the window comparator (31), and the ADC (22) acquires the voltage value set by the DAC (21) and the voltage value when the measured capacitor is finally fully charged; d. Charging time statistics: before the measured capacitor (C1) starts to charge, both output terminals A and B of the window comparator (31) output high levels. When the charging voltage reaches the set starting voltage, the output terminal A of the window comparator (31) changes from a high level to a low level. At this time, the XOR gate logic device (32) changes from a low level to a high level. Its output is ANDed with the clock signal output by the MCU (34) in the AND gate circuit (33) and then output to the MCU (34) for time statistics. e. After the MCU obtains the time, the capacitance C of the capacitor to be measured is calculated by the following formula: C=(t2–t1) / ((Vinf / Vref)*Rref*Ln((Vinf-V2) / (Vinf-V1)), Among them, t1 is the start time of capacitor charging, t2 is the end time of capacitor charging, V1 is the set charging start voltage, V2 is the set charging end voltage, Vref is the voltage of the reference power supply, Vinf is the final charging voltage of the measured capacitor C1, and Rref=R112 is the current limiting resistor.

7. The method according to claim 6, characterized in that It also includes a calibration step: using an LCR meter as a calibrator, after measuring the capacitance value of the capacitor, obtaining the measured capacitance value and comparing it with the capacitance value measured by the LCR meter to obtain an error value, and then recording the error value in the FLASH of the MCU (34) for compensation during testing.