BACKGROUND
1. Technical Field
The present disclosure relates to measurement circuits, and particularly to a measurement circuit for measuring a leakage current of a capacitor.
2. Description of Related Art
At present, capacitors as energy storage, filtering, and decoupling components are widely used. Thus, capacitors are indispensable electronic components of electronic devices. Leakage current of a capacitor needs to be measured for assuring the quality of the capacitor. However, a general apparatus for measuring the leakage current of the capacitor is costly.
BRIEF DESCRIPTION OF THE DRAWINGS
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present embodiments.
FIG. 1 is a block diagram of a measurement circuit for leakage current of a capacitor in accordance with an exemplary embodiment of the present disclosure.
FIG. 2 to FIG. 6 are circuit diagrams of the measurement circuit of FIG. 1.
DETAILED DESCRIPTION
The disclosure, including the drawing, is illustrated by way of example and not by way of limitation. References to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
Referring to FIG. 1, an exemplary embodiment of a measurement circuit 1 is shown. The measurement circuit 1 is used for measuring a leakage current of a capacitor 100. The measurement circuit 1 includes a control circuit 10, a charging circuit 20, a charging and discharging switch circuit 30, first to third amplifying circuits 40-42, a display unit 60, and an instruction input unit 50. The control circuit 10 receives a measurement instruction through the instruction input unit 50 and controls the charging circuit 20 to charge the capacitor 100 through the charging and discharging switch circuit 30 according to the measurement instruction. The second amplifying circuit 41 measures a charging voltage of the capacitor 100 during charging through the charging and discharging switch circuit 30, amplifies the measured voltage, and outputs the amplified voltage to the control circuit 10. The control circuit 10 controls the charging circuit 20 to regulate a charging current for charging the capacitor 100 according to the received charging voltage. The charging circuit 20 measures a voltage of the capacitor 100 and outputs a stop charging signal to the control circuit 10 when the voltage of the capacitor 100 reaches a saturation voltage. The control circuit 10 controls the charging circuit 20 to stop charging the capacitor 100. The third amplifying circuit 42 measures the saturation voltage of the capacitor 100 through the charging and discharging switch circuit 30, amplifies the measured voltage and outputs the amplified voltage to the control circuit 10. The control circuit 10 controls the display unit 60 to display the saturation voltage. The control circuit 10 controls the capacitor 100 to leakage discharge through the charging and discharging switch circuit 30. The first amplifying circuit 40 measures a leakage voltage of the capacitor 100 through the charging and discharging switch circuit 30 during discharging, amplifies the measured voltage and outputs the amplified voltage to the control circuit 10. The control circuit 10 controls the display unit 60 to display the leakage voltage of the capacitor 100.
Referring to FIG. 2, an embodiment of the control circuit 10 is shown. The control circuit 10 includes a microcontroller U1, capacitors C1-C8, resistors R0 and R1, an inductor L1, a voltage regulating diode Z1, and a crystal oscillator X1. An input output (I/O) pin PB0 of the microcontroller U1 is connected to the display unit 60. An I/O pin PB1 of the microcontroller U1 is connected to the instruction input unit 50. A voltage pin VCC of the microcontroller U1 is connected to a power source V1. A ground pin GND of the microcontroller U1 is grounded. A reset pin RESET of the microcontroller U1 is connected to the power source V1 through the resistor R0 and also grounded through the capacitor C3. The capacitor C4 is connected between the power source V1 and ground. A clock pin XTAL1 of the microcontroller U1 is grounded through the capacitor C2. A clock pin XTAL2 of the microcontroller U1 is grounded through the capacitor C1. The crystal oscillator X1 is connected between the clock pins XTAL1 and XTAL2 of the microcontroller U1. I/O pins PD2, PD5, and PD6, a data pin SDA, and a clock pin SCL of the microcontroller U1 are all connected to the charging circuit 20. I/O pins PD3 and PD4 of the microcontroller U1 are connected to the charging and discharging switch circuit 30. I/O pins PA0, PA1, and PA2 of the microcontroller U1 are respectively connected to the first to third amplifying circuits 40-41. A reference pin AREF of the microcontroller U1 is connected to a cathode and a control terminal of the voltage regulating diode Z1 and also connected to the power source V1 through the resistor R1. An anode of the voltage regulating diode Z1 is grounded. The capacitors C7 and C8 are connected in parallel between the control terminal of the voltage regulating diode Z1 and ground. An analog voltage pin AVCC of the microcontroller U1 is connected to the power source V1 through the inductor L1. The capacitors C5 and C6 are connected in parallel between the analog voltage pin AVCC of the microcontroller U1 and ground.
Referring to FIGS. 3 and 4, the charging circuit 20 includes capacitors C9-C14, a charging chip U2, a potentiometer U3, an inductor L2, resistors R2-R11, and field effect transistors (FETs) Q1 and Q2. The capacitor C11 is connected between I/O pins C+ and C− of the charging chip U2. An enable pin SHBN of the charging chip U2 is connected to a drain of the FET Q1 and also connected to the power source V1 through the resistor R2 and the inductor L2 in that order. The resistor R3 is connected between the drain of the FET Q1 and ground. A source of the FET Q1 is grounded. A gate of the FET Q1 is connected to the I/O pin PD2 of the microcontroller U1. The capacitor C9 is connected between the power source V1 and ground. The capacitor C10 is connected between a node between the resistor R2 and the inductor L2, and ground. An input pin VIN of the charging chip U2 is connected to the node between the resistor R2 and inductor L2. A control pin PGOOD of the charging chip U2 is connected to the I/O pin PD6 of the microcontroller U1 and also connected to the input pin VIN of the charging chip U2 through the resistor R4. A voltage regulating pin VSEL of the charging chip U2 is connected to a drain of the FET Q2 and also grounded through the resistors R5 and R6 in that order. The power source V1 is connected to a node between the resistors R5 and R6. A source of the FET Q2 is grounded. A gate of the FET Q2 is connected to the I/O pin PD5 of the microcontroller U1. A current regulating pin PROG of the charging chip U2 is connected to an I/O pin RH of the potentiometer U3 through the resistor R9. An I/O pin RW of the potentiometer U3 is connected to the current regulating pin PROG of the charging chip U2 and also grounded through the resistor R8. A voltage pin VDD of the potentiometer U3 is connected to the power source V1 and also grounded through the capacitor C14. A data pin SDA and a clock pin SCL of the potentiometer U3 are respectively connected to the data pin SDA and the clock pin SCL of the microcontroller U1. The resistor R7 is connected between the current regulating pin PGOG of the charging chip U2 and ground. A measuring pin COUT of the charging chip U2 is connected to a positive terminal of the capacitor 100 and also grounded through the resistors R10 and R11 in that order. The capacitors C12 and C13 are connected in parallel between the measuring pin COUT of the charging chip U2 and ground. A charging pin CX of the charging chip U2 is connected to a node between the resistors R10 and R11 and also connected to the charging and discharging switch circuit 30.
Referring to FIG. 5, the charging and discharging switch circuit 30 includes resistors R00 and R12, FETs Q3-Q6, and measuring resistors PR1 and PR2. A gate of the FET Q3 is connected to the I/O pin PD4 of the microcontroller U1. A source of the FET Q3 is grounded. A drain of the FET Q3 is connected to a gate of the FET Q4 and also connected to a power source V2 through the resistor R00. A source of the FET Q4 is connected to the positive terminal of the capacitor 100 and also connected to a source of the FET Q6 through the measuring resistor PR2. A negative terminal of the capacitor 100 is grounded. A drain of the FET Q4 is connected to the third amplifying circuit 42, and connected to a drain of the FET Q6 and the charging pin CX of the charging chip U2 through the measuring resistor PR1. A gate of the FET Q6 is connected to a drain of the FET Q5 and also connected to the power source V2 through the resistor R12. A gate of the FET Q5 is connected to the I/O pin PD3 of the microcontroller U1. A source of the FET Q5 is grounded. Two ends of the measuring resistor PR1 are connected to the first amplifying circuit 40. Two ends of the measuring resistor PR2 are connected to the second amplifying circuit 41.
Referring to FIG. 6, each of the first to third amplifying circuits 40-42 includes two voltage input terminals AA and BB, a voltage output terminal CC, resistors R13-R20, amplifiers U4-U8, capacitors C15-C19, and a variable resistor PCR. In detail, the voltage input terminals of the first amplifying circuit 40 are AA1 and BB1. The voltage input terminals of the second amplifying circuit 41 are AA2 and BB2. The voltage input terminals of the third amplifying circuit 42 are AA3 and BB3. The voltage output terminals of the first to third amplifying circuits 40-42 are respectively CC1, CC2, and CC3. A non-inverting input terminal of the amplifier U4 is connected to the voltage input terminal AA through the resistor R13. An output terminal of the amplifier U4 is connected to an inverting input terminal of the amplifier U4 and a non-inverting input terminal of the amplifier U5. The capacitor C15 is connected between the output terminal of the amplifier U4 and ground. The capacitor C16 is connected between the non-inverting input terminal and an inverting input terminal of the amplifier U5. A voltage terminal of the amplifier U5 is connected to the power source V3 and also grounded through the capacitor C17. An output terminal of the amplifier U5 is connected to a non-inverting input terminal of the amplifier U6 through the resistor R15. The resistor R14 is connected between the inverting input terminal and the output terminal of the amplifier U5. An output terminal of the amplifier U6 is connected to the voltage output terminal CC through the resistor R17. The resistor R16 is connected between the non-inverting input terminal and the output terminal of the amplifier U6. A non-inverting input terminal of the amplifier U8 is connected to the voltage input terminal BB through the resistor R20. An output terminal of the amplifier U8 is connected to an inverting input terminal of the amplifier U8 and an inverting input terminal of the amplifier U7. The capacitor C18 is connected between a non-inverting input terminal and the inverting input terminal of the amplifier U7. The capacitor C19 is connected between the output terminal of the amplifier U8 and ground. The resistor R19 is connected between the non-inverting input terminal and the output terminal of the amplifier U7. The variable resistor PCR is connected between the inverting input terminal of the amplifier U5 and the non-inverting input terminal of the amplifier U7. The output terminal of the amplifier U7 is connected to an inverting input terminal of the amplifier U6 through the resistor R18. The voltage input terminals AA1 and BB1 of the first amplifying circuit 40 are connected to two ends of the measuring resistor PR2. The voltage output terminal CC1 of the first amplifying circuit 40 is connected to the I/O pin PA0 of the microcontroller U1. The voltage input terminals AA2 and BB2 of the second amplifying circuit 41 are connected to two ends of the measuring resistor PR1. The voltage output terminal CC2 of the second amplifying circuit 41 is connected to the I/O pin PA1 of the microcontroller U1. The voltage input terminal AA3 of the third amplifying circuit 42 is connected to the drain of the FET Q4. The voltage input terminal BB3 of the third amplifying circuit 42 is grounded. The voltage output terminal CC3 of the third amplifying circuit 42 is connected to the I/O pin PA2 of the microcontroller U1.
In use, the microcontroller U1 receives a measurement instruction through the instruction input unit 50 and outputs a high level signal to the FET Q1 through the I/O pin PD2 according to the received measurement instruction. The FET Q1 is turned on. The charging chip U2 operates. The microcontroller U1 outputs a high level signal or a low level signal to the FET Q2 through the I/O pin PD5, to control the FET Q2 to be turned on or turned off for regulating the charging voltage. The microcontroller U1 outputs a low level signal to the FET Q3 through the I/O pin PD4 to control the FET Q3 to be turned off. A gate of the FET Q4 receives a high level signal from the power source V2 and is turned on. The microcontroller U1 outputs a high level signal to the FET Q5 through the I/O pin PD3 to control the FET Q5 to be turned on. The drain of the FET Q5 outputs a low level signal to the gate of the FET Q6 for controlling the FET Q6 to be turned off. The charging chip U2 charges the capacitor 100 through the charging pin CX, the measuring resistor PR1, and the FET Q4. The second amplifying circuit 41 measures a voltage of the measuring resistor PR1, amplifies the measured voltage, and outputs the amplified voltage to the microcontroller U1. The microcontroller U1 controls the potentiometer U3 through the clock pin SCL and the data pin SDA to regulate a charging current charging the capacitor 100.
The charging chip U2 measures a voltage of the capacitor 100 through the measuring pin COUT and outputs a stop charging signal to the microcontroller U1 through the control pin PGOOD when the voltage of the capacitor 100 reaches the saturation voltage. The microcontroller U1 outputs a high level signal to the FET Q3 through the I/O pin PD4 according to the received stop charging signal. The FET Q3 is turned on. The drain of the FET Q3 outputs a low level signal to the FET Q4. The FET Q4 is turned off. The charging chip U2 does not output charging voltage to the capacitor 100 through the charging pin CX. Namely, the charging chip U2 does not charge the capacitor 100. The third amplifying circuit 42 amplifies the saturation voltage of the capacitor 100 and outputs the amplified saturation voltage to the microcontroller U1. The microcontroller U1 controls the display unit 60 to display the saturation voltage of the capacitor 100. The microcontroller U1 outputs a low level signal to the FET Q5 through the I/O pin PD3. The FET Q5 is turned off. The gate of the FET Q6 receives a high level signal from the power source V2 and is turned on. The capacitor 100 leakage discharges through the measuring resistor PR2. The first amplifying circuit 40 measures a leakage voltage of the measuring resistor PR2, amplifies the measured leakage voltage, and outputs the amplified leakage voltage to the microcontroller U1. The microcontroller U1 controls the display unit 60 to display the leakage voltage of the capacitor 100. The leakage current of the capacitor 100 can be gained through the leakage voltage of the capacitor 10 and the resistance of the measuring resistor PR2.
The measurement circuit 1 charges the capacitor 100 through the charging circuit 20, controls the capacitor 100 to leakage discharge through the charging and discharging switch circuit 30 when the voltage of the capacitor 100 reaches a saturation voltage, and measures the leakage voltage of the capacitor 100 through the first amplifying circuit 40, to gain the leakage current of the capacitor 100.
Even though numerous characteristics and advantages of the disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in the matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.