Circuit for measuring weak capacitance changes in a capacitance sensor
By designing a weak capacitance change measurement circuit for a capacitance sensor, and using sine wave excitation and amplitude demodulation technology to automatically adjust the zeroing, the accuracy and dynamics of weak capacitance change measurement in the existing technology are solved, and high-precision and fast capacitance are achieved Change measurement.
Patent Information
- Application Number
- CN202010250220.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-01
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-04-01
AI Technical Summary
It is difficult for the prior art to accurately and dynamically measure weak capacitance changes, especially when the basic capacitance of the capacitance sensor is small and the capacitance changes are extremely weak, and it is greatly affected by parasitic capacitance and environmental changes.
A weak capacitance change measurement circuit for capacitance sensor is designed, including a microcontroller, a sine wave signal generator, a CA conversion circuit, a balance circuit, amplitude demodulation circuit, level offset circuit and sampling feedback circuit, which are excitated and amplitude through sine waves. Demodulation technology, automatic zero adjustment, outputs a DC voltage signal proportional to the relative rate of change of the capacitor, offsets the influence of static capacitors and improves measurement accuracy.
It realizes high-precision measurement of weak capacitance changes, is suitable for capacitive precision displacement sensors and pressure sensors, with high sensitivity and rapid measurement capabilities, reducing the need for manual debugging.
Smart Images

Figure CN111238546B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of sensor measurement, and in particular to a circuit for measuring weak capacitance changes of a capacitance sensor. Background Art
[0002] The basic principle of capacitive sensors is to convert a certain physical quantity, such as displacement, area, dielectric, etc., into capacitance, and then indirectly measure the desired physical quantity by measuring the capacitance. Capacitive sensors have a very wide range of uses. Especially in the field of high-precision detection, capacitive sensors have an irreplaceable position. Capacitive sensors have the advantages of high sensitivity and fast response, but the measurement circuit is relatively complex. In most cases, the capacitance change of the capacitive sensor is relatively weak, and the circuit is easily affected by its own parasitic parameters and environmental changes, which makes the problem more complicated.
[0003] Common weak capacitance measurement techniques include DC charge and discharge method, AC bridge method, V / T conversion method and negative feedback AC excitation method based on operational amplifier. DC charge and discharge method uses DC excitation, and the measurement accuracy is easily affected by the offset voltage drift of the amplifier. In addition, this method requires the use of electronic switches to quickly charge and discharge the capacitor, and the circuit accuracy is easily affected by the charge injection effect of the electronic switch. The zero adjustment of the AC bridge method is cumbersome and easily affected by the parasitic capacitance of the circuit. Complex shielding measures are required during the actual implementation. This method is difficult to measure the weak changes of small capacitance. The V / T conversion method uses the measurement of the charging and discharging time of the capacitor to measure the capacitance value. Like the DC charge and discharge method, the measurement accuracy is easily affected by the DC voltage drift of the circuit and the charge injected by the electronic switch; from some public literature, the circuit with the highest measurement accuracy in the actual application of weak capacitance detection is the negative feedback AC excitation method based on the operational amplifier. This method has high resolution and strong resistance to parasitic capacitance. There is also a high-voltage bilateral excitation detection method, which requires a high-frequency and high-voltage excitation signal and is only used for specific objects and occasions, with many restrictions.
[0004] The above capacitance detection methods are mostly used for static capacitance measurement. However, in many applications, it is necessary to measure the change of the relative capacitance change over time.
[0005] In some practical applications, due to reasons such as structure and materials, the basic capacitance of the sensor is relatively small, about the order of pF, which is much smaller than the parasitic capacitance of the cable. The capacitance change is even smaller, about the order of femtofarad. How to accurately and dynamically measure the weak capacitance change is a very difficult technical problem. Summary of the invention
[0006] In order to solve the above technical problems, an object of the present invention is to disclose a slight capacitance change measurement circuit of a capacitance sensor, which is used to accurately detect the slight capacitance change of the capacitance sensor.
[0007] The objective of the present invention is achieved through the following technical solutions:
[0008] A weak capacitance change measurement circuit of a capacitance sensor comprises a single-chip microcomputer, a sine wave signal generator, a CA conversion circuit, a balancing circuit, an amplitude demodulation circuit, a level shift circuit and a sampling feedback circuit; the single-chip microcomputer outputs a square wave signal to the input end of the sine wave signal generator, and the output end of the sine wave signal generator is respectively connected to the input end of the balancing circuit, the first input end of the CA conversion circuit, and the first input end of the amplitude demodulation circuit; the output end of the balancing circuit is connected to the second input end of the CA conversion circuit; the output end of the CA conversion circuit is connected to the second input end of the amplitude demodulation circuit, and the output end of the amplitude demodulation circuit is connected to the first input end of the level shift circuit; the single-chip microcomputer outputs an offset to the second input end of the level shift circuit, and the output end of the level shift circuit is connected to the first on-chip analog-to-digital converter of the single-chip microcomputer; the sampling feedback circuit samples the sine wave signals output by the CA conversion circuit, the balancing circuit and the amplitude demodulation circuit, respectively, and inputs the signal amplitude into the second on-chip analog-to-digital converter of the single-chip microcomputer after obtaining the signal amplitude through a root mean square circuit.
[0009] Furthermore, the sine wave signal generator converts the square wave signal from the single chip microcomputer into a sine excitation signal and then outputs it.
[0010] Furthermore, the amplitude demodulation circuit comprises a phase shift circuit, a first fixed gain device (K1), a second fixed gain device (K2), an analog multiplier, a first low-pass filter circuit and a second low-pass filter circuit; the input end of the phase shift circuit serves as the second input end of the amplitude demodulation circuit, the output end of the phase shift circuit is connected to the second input end of the analog multiplier after passing through the second fixed gain device (K2), the sinusoidal wave signal output by the CA conversion circuit is sequentially input to the first input end of the analog multiplier after passing through the first fixed gain device (K1) and the first low-pass filter circuit, and the output end of the analog multiplier is connected to the level shift circuit after passing through the second low-pass filter circuit.
[0011] Furthermore, the CA conversion circuit comprises a first capacitor (Cz), a second capacitor (Cr), a first resistor (R0) and a first operational amplifier (U1-B); the inverting input terminal of the first operational amplifier (U1-B) serves as the first input terminal of the CA conversion circuit, one end of the first capacitor (Cz) serves as the second input terminal of the CA conversion circuit, and the other end of the first capacitor (Cz) is connected to the inverting input terminal of the first operational amplifier (U1-B); the non-inverting input terminal of the first operational amplifier (U1-B) is grounded, and the output terminal of the first operational amplifier (U1-B) serves as the output terminal of the CA conversion circuit; the first resistor (R0) and the second capacitor (Cr) are respectively connected between the output terminal of the inverting input terminal of the first operational amplifier (U1-B).
[0012] Furthermore, the phase shift circuit comprises a second resistor (R1), a third resistor (R2), a second operational amplifier (U1-A), a first digital potentiometer (U3) and a third capacitor (C1); one end of the third resistor (R2) is connected to one end of the first digital potentiometer (U3) and serves as an input end of the phase shift circuit; the other end of the third resistor (R2) is connected to one end of the second resistor (R1) and an inverting input end of the second operational amplifier (U1-A); the other end of the first digital potentiometer (U3) is connected to one end of the third capacitor (C1) and a non-inverting input end of the second operational amplifier (U1-A); the other end of the third capacitor (C1) is grounded; the other end of the second resistor (R1) is connected to the output end of the second operational amplifier (U1-A) and serves as the output end of the phase shift circuit.
[0013] Furthermore, the balancing circuit comprises a fourth resistor (R3), a second digital potentiometer (U4), and a third operational amplifier (U7-B); one end of the fourth resistor (R3) serves as an input end of the balancing circuit, and the other end of the fourth resistor (R3) is connected to an inverting input end of the third operational amplifier (U7-B); a non-inverting input end of the third operational amplifier (U7-B) is grounded, and an output end of the third operational amplifier (U7-B) serves as an output end of the balancing circuit; and the second digital potentiometer (U4) is connected between the inverting input end and the output end of the third operational amplifier (U7-B).
[0014] Furthermore, the sampling feedback circuit includes a multi-way selection switch and a root mean square circuit, one end of the multi-way selection switch is respectively connected to the output end of the CA conversion circuit, the output end of the balancing circuit, the output end of the first low-pass filter circuit and the output end of the second fixed gain device (K2), the other end of the multi-way selection switch is connected to the input end of the root mean square circuit, and the output end of the root mean square circuit is connected to the second on-chip analog-to-digital converter of the single-chip microcomputer.
[0015] Furthermore, the level shift circuit is an adding circuit.
[0016] The present invention is different from the detection schemes of most capacitive sensors, which can only detect static capacitance values. The measuring circuit of the present invention has strong adaptability to capacitive sensors. For capacitive sensors with initial capacitance values (also called static capacitance values) within a certain range, the measuring circuit of the present invention can automatically adjust to zero under the control of a single-chip microcomputer without manual debugging, and has high measurement accuracy and fast speed. It is particularly suitable for capacitive sensors with particularly weak capacitance changes, such as capacitive precision displacement sensors, pressure sensors, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A circuit block diagram of a circuit for measuring a slight capacitance change of a capacitance sensor of the present invention;
[0018] Figure 2 A circuit schematic diagram of a CA conversion circuit of the present invention;
[0019] Figure 3 is a circuit schematic diagram of the phase shift circuit of the present invention;
[0020] Figure 4 It is a circuit principle diagram of the balancing circuit of the present invention. Specific embodiments
[0021] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0022] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0023] Embodiment 1
[0024] The capacitance-voltage conversion method used in the present invention is based on the AC negative feedback method of capacitance measurement, and a large number of improvements are made on this basis, so that the circuit directly outputs a DC voltage signal proportional to the relative change rate of capacitance. First, the capacitance change of the capacitance sensor (the change relative to the initial capacitance value) is converted into the amplitude of a sine wave (excitation signal), and the amplitude is proportional to the relative change rate of capacitance of the capacitance sensor. After the effect of the static capacitance of the capacitance sensor is offset, the CA conversion circuit output only contains the capacitance change of the capacitance sensor. The capacitance change is detected by an analog multiplier, and finally passes through a low-pass filter to output a DC signal proportional to the relative change rate of capacitance of the sensor. The circuit can also indirectly measure the absolute capacitance of the sensor.
[0025] Figure 1 The circuit block diagram of the weak capacitance change measurement circuit of the capacitance sensor of the present invention includes a single-chip microcomputer MCU, a sine wave signal generator, a CA conversion circuit, a balancing circuit, an amplitude demodulation circuit, a level shift circuit and a sampling feedback circuit. The MCU has an IO port, and outputs a square wave signal DS0 through the IO port. The MCU has control bus interfaces BUS0, BUS1, and BUS2, and outputs a control signal DS1 through the control bus interface BUS0, outputs a control signal DS2 through the control bus interface BUS1, and outputs a control signal DS3 through the control bus interface BUS2. The MCU also has an on-chip analog-to-digital converter ADC0 / ADC1 and an on-chip digital-to-analog converter DAC0. The MCU can also be implemented by other control circuits with the same function. The sine wave signal generator has an input end and an output end. The CA conversion circuit has a first input end, a second input end and an output end. The balancing circuit has an input end and an output end. The amplitude demodulation circuit has a first input end, a second input end and an output end. The level shift circuit has a first input end, a second input end and an output end. The sampling feedback circuit has an input end and an output end.
[0026] The MCU outputs a square wave signal DS0 to the input end of the sine wave signal generator through the IO port. The output end of the sine wave signal generator is respectively connected to the input end of the balancing circuit, the first input end of the CA conversion circuit, and the first input end of the amplitude demodulation circuit. The capacitance sensor to be measured is connected between the output end of the sine wave signal generator and the first input end of the CA conversion circuit. The output end of the balancing circuit is connected to the second input end of the CA conversion circuit. The output end of the CA conversion circuit is connected to the second input end of the amplitude demodulation circuit, and the output end of the amplitude demodulation circuit is connected to the first input end of the level shift circuit. The MCU outputs the offset to the second input end of the level shift circuit through the on-chip digital-to-analog converter DAC0, and the output end of the level shift circuit finally outputs a useful DC signal to the on-chip analog-to-digital converter ADC0 of the MCU. The sampling feedback circuit samples the sine wave signals output by the CA conversion circuit, the balancing circuit, and the amplitude demodulation circuit, respectively, and outputs the signal amplitude to the second on-chip analog-to-digital converter ADC1 of the MCU after obtaining the signal amplitude through the root mean square circuit.
[0027] The sine wave signal generator outputs a sine wave signal with stable amplitude and frequency, providing an initial signal source for the entire measurement circuit. After the sine wave signal generator converts the square wave signal DS0 from the MCU into a sine wave signal AS0, the sine wave signal AS0 is input to the input end of the balancing circuit and the first input end of the amplitude demodulation circuit as a sine excitation signal, and the sine excitation signal is input to the first input end of the CA conversion circuit after passing through the equivalent capacitance of the capacitive sensor.
[0028] The function of the CA conversion circuit is to convert the capacitance (C) of the capacitive sensor into a voltage (signal amplitude A), and it is the core circuit of the present invention. The CA conversion circuit is based on the AC negative feedback method, which is one of the basic methods for weak capacitance detection. However, the difference is that the basic circuit is configured as an addition circuit, through which the static capacitance of the capacitive sensor can be offset, thereby only outputting a sinusoidal signal AS2 related to the weak capacitance change. The circuit schematic diagram of the CA conversion circuit is shown in FIG. Figure 2 As shown, it includes capacitor Cz, capacitor Cr, resistor R0 and operational amplifier U1-B. In the figure, Cx is the equivalent capacitor of the capacitive sensor; the inverting input terminal of the operational amplifier U1-B serves as the first input terminal of the CA conversion circuit, one end of the capacitor Cz serves as the second input terminal of the CA conversion circuit, and the other end of the capacitor Cz is connected to the inverting input terminal of the operational amplifier U1-B; the non-inverting input terminal of the operational amplifier U1-B is grounded, and the output terminal of the operational amplifier U1-B serves as the output terminal of the CA conversion circuit; the resistor R0 and the capacitor Cr are respectively connected between the inverting input terminal and the output terminal of the operational amplifier U1-B.
[0029] The function of the balancing circuit is to generate a balanced signal (i.e., sine wave signal AS1) whose amplitude is controlled by the MCU and is inverse to the input signal, and adjust the amplitude of the signal to make it proportional to the amplitude of AS0, thereby offsetting the effect of the static capacitance of the capacitive sensor. The balancing circuit includes an inverter and a gain control circuit. The function of the inverter in the balancing circuit is to reverse the phase of the input sine wave signal by 180°. The specific circuit schematic is shown in the figure below. Figure 4 As shown, it includes a resistor R3, a digital potentiometer U4, and an operational amplifier U7-B; one end of the resistor R3 is used as the input end of the balancing circuit to input the sine wave signal AS0, and the other end of the resistor R3 is connected to the inverting input end of the operational amplifier U7-B; the positive input end of the operational amplifier U7-B is grounded, and the output end of the operational amplifier U7-B is used as the output end of the balancing circuit; the digital potentiometer U4 is connected between the inverting input end and the output end of the operational amplifier U7-B. The amplitude of the sine wave signal output by the balancing circuit is controlled by controlling the resistance value of the digital potentiometer U4.
[0030] The function of the amplitude demodulation circuit is to amplify the sinusoidal signal AS2 related to the weak capacitance change output by the CA conversion circuit and output it to the level shift circuit after amplitude demodulation. The amplitude demodulation circuit includes a phase shift circuit, a fixed gain device K2, a fixed gain device K1, an analog multiplier, a low-pass filter circuit 1 and a low-pass filter circuit 2. The input end of the phase shift circuit serves as the second input end of the amplitude demodulation circuit, and the output end of the phase shift circuit is connected to the second input end of the analog multiplier after passing through the fixed gain K2. The sinusoidal signal output by the CA conversion circuit is input to the first input end of the analog multiplier after passing through the fixed gain K1 and the low-pass filter circuit 1 in turn, and the output end of the analog multiplier is connected to the level shift circuit after passing through the low-pass filter circuit 2.
[0031] The function of the phase shift circuit is to change the phase of the sine wave signal AS0 and output a sine wave signal with the opposite phase and equal amplitude to AS0. The circuit schematic is shown in the figure below. Figure 3 As shown, it includes resistor R1, resistor R2, operational amplifier U1-A, digital potentiometer U3, and capacitor C1. One end of resistor R2 is connected to one end of digital potentiometer U3 and serves as the input end of the phase shift circuit to input the sine wave signal AS0. The other end of resistor R2 is connected to one end of resistor R1 and the inverting input end of operational amplifier U1-A. The other end of digital potentiometer U3 is connected to one end of capacitor C1 and the non-inverting input end of operational amplifier U1-A, and the other end of capacitor C1 is grounded. The other end of resistor R1 is connected to the output end of operational amplifier U1-A and serves as the output end of the phase shift circuit to output the phase-shifted sine wave signal SHIFT1, and SHIFT1 is opposite in phase to AS0.
[0032] The sampling feedback circuit includes an n:1 multi-way selection switch and a root mean square circuit. The n:1 switch is respectively connected to the sine wave signal AS2 output by the CA conversion circuit, the sine wave signal AS1 output by the gain control circuit, the sine wave signal AS3' output by the low-pass filter circuit 1, and the sine wave signal AS4 output by the phase shift circuit after the fixed gain K2. The n:1 switch selects one path and outputs it to the root mean square circuit. The output end of the root mean square circuit is connected to the on-chip analog-to-digital converter ADC1 of the MCU. The sampling feedback circuit is used to collect the sine wave signals AS1, AS2, AS3', and AS4 respectively, and it only works when zeroing.
[0033] Combination Figures 1 to 4 Explain the circuit principle of the present invention:
[0034] The MCU outputs a square wave signal DS0 to the sine signal generator through the IO port. The sine signal generator receives the square wave signal DS0 output by the single-chip microcomputer, and outputs a sine wave signal AS0 with stable amplitude and frequency after low-pass filtering, providing the initial signal source for the entire system. In this example, the signal generator is implemented by passing the square wave signal through a low-pass filter to remove harmonics and retain the fundamental frequency sine signal. The sine wave can also be obtained by other methods. The amplitude of the sine wave signal AS0 is expressed as:
[0035] f AS0 =A 0 ·sin(ωt) formula (1)
[0036] A 0 is the amplitude of the sinusoidal signal AS0, ω is the angular frequency, and the phase is defined as 0.
[0037] The balancing circuit is actually equivalent to an inverting amplifier circuit. The sine wave signal AS0 is inverted after passing through the resistor R3 and the operational amplifier U7-B, and then the amplitude of the sine wave signal is adjusted by adjusting the resistance of the digital potentiometer U4. Finally, a balanced signal AS1 is output through the output end of the operational amplifier U7-B to offset the sine wave signal generated by the static capacitance of the capacitive sensor. The phase of the balanced signal AS1 is inverted from the initial signal source, and the amplitude is controlled by the digital potentiometer. The resistance value of the digital potentiometer is controlled by the MCU through the data bus DS2. The amplitude of the balanced signal AS1 can be expressed as:
[0038] f AS1 =-G·A 0 ·sin(ωt) formula (2)
[0039] Where G is the gain value, and the MUC controls the resistance of the digital potentiometer through the data bus DS2, thereby controlling the size of G.
[0040] The CA conversion circuit converts the measured capacitance (C) of the capacitive sensor into a voltage (signal amplitude A), and is the core circuit of the solution. The CA conversion circuit is based on the AC negative feedback method, one of the basic methods for weak capacitance detection, but the difference is that the basic circuit is configured as an addition circuit. The addition circuit can offset the effect of the static capacitance of the capacitive sensor.
[0041] Figure 2 The capacitor Cz is the balancing capacitor, Cx is the equivalent capacitor of the capacitance sensor to be measured, Cr is the reference capacitor, and R0 is the DC error negative feedback resistor. Under certain conditions, the amplitude of the output sinusoidal signal AS2 of the CA conversion circuit is expressed as:
[0042]
[0043] Where Cz is the balance capacitance value, Cr is the reference capacitance value, C 0 is the static capacitance value, △C is the capacitance change of the equivalent capacitance of the capacitance sensor to be measured relative to the static capacitance (i.e. Cx-C 0 ).
[0044] The above formula consists of two parts. The first part is related to the static capacitance, balance capacitance and gain value of the sensor, and the second part is only related to the capacitance change of the capacitive sensor.
[0045] The gain value G can be controlled by MUC. When the capacitance change of the capacitive sensor is zero, adjust G until f AS2 The output is 0, which means that the automatic zeroing is completed. This process is called the zeroing process. At this time, there are:
[0046] C 0 =G·C Z Formula (4)
[0047] When C 0 =G·C Z When f AS2 It can be expressed as:
[0048]
[0049] The amplitude A1 of the balanced signal AS1 when zero adjustment is completed is collected through the sampling feedback circuit. The amplitude of the system excitation signal source AS0 is a fixed value A0 (known quantity), so the static capacitance of the sensor can be calculated:
[0050]
[0051] After zeroing is completed, the MCU will store the parameters of the balancing circuit and load these two parameters before each subsequent measurement to put the circuit in a zeroing state.
[0052] After loading the zero adjustment parameters, when the capacitance value of the capacitance sensor changes (relative to the static capacitance value), the sine wave signal input to the first input terminal of the CA conversion circuit will change slightly, and will be affected by the capacitance change of the capacitance sensor and the static capacitance of the capacitance sensor. The output caused by the static capacitance is offset by the AS1 signal through addition (via the addition circuit in the CA conversion circuit). Therefore, the purpose of the CA conversion circuit is to remove the effect of the static capacitance value of the capacitance sensor, so that the output sine wave signal AS2 only contains the component of the capacitance change.
[0053] The sine wave signal AS2 passes through a fixed gain device K1 and then passes through a low-pass filter 1 to obtain a sine wave signal AS3. The low-pass filter 1 filters out part of the noise carried by the sine wave signal AS2. After passing through the low-pass filter 1, a sine wave AS3' related to the capacitance change is obtained.
[0054] The input signal of the phase shift circuit is the sine wave signal AS0 output by the signal generator. After the AS0 signal passes through the phase shift circuit and the fixed gain K2, it outputs a phase-adjustable signal AS4. This signal can be called a reference signal. Through the bus DS3, the MCU can adjust the phase of the reference signal AS4.
[0055] The two input terminals of the analog multiplication circuit are input AS3' and AS4 respectively, and the output terminal outputs AS3. In this example, a single-chip universal four-quadrant analog multiplier integrated circuit is selected to implement it. The output signal of the analog multiplication circuit is proportional to the product of the two input signals. In order to eliminate the influence of DC errors in the signal, the input signal can be coupled by capacitors.
[0056] The purpose of the analog multiplication circuit is to measure the amplitude f of the weak sine wave signal AS3. AS3 , the output is:
[0057]
[0058] Where K 1 The fixed gain value set for the fixed gain circuit K1, K 2 The fixed gain value set for the fixed gain circuit K2.
[0059] It can be seen from formula (7) that AS3 consists of two terms. The first term is a DC term, whose value is proportional to the capacitance change rate of the capacitive sensor. The second term is an AC term, whose frequency is a multiple of the excitation frequency. After the AS3 signal passes through the subsequent low-pass filter circuit 2, the AC term is filtered out, and a sinusoidal signal AS7 of a DC quantity proportional to the capacitance change rate of the sensor is obtained. This method has a very high noise suppression capability and high measurement accuracy when measuring the amplitude of a weak sine wave.
[0060] The expression of the sine wave signal AS7 is:
[0061]
[0062] In order to obtain the highest sensitivity of the measurement circuit, the phase shift circuit needs to be adjusted so that the phase difference between signals AS4 and AS3' is Approaching 0.
[0063] The sampling feedback circuit is used to collect the amplitude of each sinusoidal signal during zeroing. It only works during zeroing, and a longer measurement time can be allowed to achieve higher measurement accuracy. Therefore, the response time requirement for the sampling feedback circuit is not high, and it can be implemented with a general root mean square circuit. Use an n:1 multiplexer to time-share the same root mean square circuit to measure the amplitude of multiple sinusoidal signals. During the zeroing process, the amplitudes of AS1, AS2, AS3' and AS4 are measured by the root mean square circuit in a time-shared manner, and the measurement result AS6 is fed back to the on-chip analog-to-digital converter ADC1 of the MCU. Under the judgment of the algorithm, the MCU determines whether the circuit has achieved zeroing based on the amplitudes of AS1, AS2, AS3' and AS4.
[0064] The DC output signal of the amplitude demodulation circuit is input to the level shift circuit, which makes an appropriate offset to the output signal to reduce the occupation of the actual zero adjustment residual error on the useful input range of the ADC (analog-to-digital converter). The level shift circuit receives the offset output by the microcontroller DAC (digital-to-analog converter) and the output DC signal of the amplitude demodulation circuit, and finally outputs a useful DC signal to the microcontroller ADC.
[0065] The level shift circuit is implemented with an adder circuit, and its offset AS8 comes from the output of the DAC0 on the microcontroller. Therefore, the offset can be adjusted by the microcontroller. After the sine wave signal AS7 passes through the level shift circuit, the final measurement result AS9 is obtained and collected by the microcontroller ADC. The output result can be expressed as:
[0066]
[0067] In formula (9), Vref is the ADC reference voltage, V Zero is the zero adjustment error, V AS8 is the offset control voltage output by the microcontroller, and its value range is 0~Vref, so the offset adjustment range of the level shift circuit is Can cope with circuit zeroing errors in All situations in between.
[0068] The connection described in the present invention refers to an electrical connection, which may be a direct electrical connection or an indirect electrical connection through a certain device.
[0069] The above is only for explaining the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention without creative work should be included in the protection scope of the present invention.
Claims
1. A circuit for measuring the slight capacitance change of a capacitance sensor, characterized in that: It includes a single chip microcomputer, a sine wave signal generator, a CA conversion circuit, a balancing circuit, an amplitude demodulation circuit, a level shift circuit and a sampling feedback circuit, wherein: The CA conversion circuit comprises a first capacitor (Cz), a second capacitor (Cr), a first resistor (R0) and a first operational amplifier (U1-B); the inverting input terminal of the first operational amplifier (U1-B) serves as the first input terminal of the CA conversion circuit, one end of the first capacitor (Cz) serves as the second input terminal of the CA conversion circuit, and the other end of the first capacitor (Cz) is connected to the inverting input terminal of the first operational amplifier (U1-B); the non-inverting input terminal of the first operational amplifier (U1-B) is grounded, and the output terminal of the first operational amplifier (U1-B) serves as the output terminal of the CA conversion circuit; the first resistor (R0) and the second capacitor (Cr) are respectively connected between the output terminal of the inverting input terminal of the first operational amplifier (U1-B); The balancing circuit comprises a fourth resistor (R3), a second digital potentiometer (U4), and a third operational amplifier (U7-B); one end of the fourth resistor (R3) serves as an input end of the balancing circuit, and the other end of the fourth resistor (R3) is connected to an inverting input end of the third operational amplifier (U7-B); a non-inverting input end of the third operational amplifier (U7-B) is grounded, and an output end of the third operational amplifier (U7-B) serves as an output end of the balancing circuit; and the second digital potentiometer (U4) is connected between the inverting input end and the output end of the third operational amplifier (U7-B); The amplitude demodulation circuit comprises a phase shift circuit, a first fixed gain device (K1), a second fixed gain device (K2), an analog multiplier, a first low-pass filter circuit and a second low-pass filter circuit; the input end of the phase shift circuit serves as the second input end of the amplitude demodulation circuit, the output end of the phase shift circuit is connected to the second input end of the analog multiplier after passing through the second fixed gain device (K2), the sine wave signal output by the CA conversion circuit is sequentially input to the first input end of the analog multiplier after passing through the first fixed gain device (K1) and the first low-pass filter circuit, and the output end of the analog multiplier is connected to the level shift circuit after passing through the second low-pass filter circuit; The level shift circuit is an adding circuit; The sampling feedback circuit comprises a multi-way selection switch and a root mean square circuit, one end of the multi-way selection switch is respectively connected to the output end of the CA conversion circuit, the output end of the balancing circuit, the output end of the first low-pass filter circuit and the output end of the second fixed gain device (K2), the other end of the multi-way selection switch is connected to the input end of the root mean square circuit, and the output end of the root mean square circuit is connected to the second on-chip analog-to-digital converter of the single-chip microcomputer; The single-chip microcomputer outputs a square wave signal to the input end of the sine wave signal generator, and the output end of the sine wave signal generator is respectively connected to the input end of the balancing circuit, the first input end of the CA conversion circuit, and the first input end of the amplitude demodulation circuit; the output end of the balancing circuit is connected to the second input end of the CA conversion circuit; the output end of the CA conversion circuit is connected to the second input end of the amplitude demodulation circuit, and the output end of the amplitude demodulation circuit is connected to the first input end of the level shift circuit; the single-chip microcomputer outputs an offset to the second input end of the level shift circuit, and the output end of the level shift circuit is connected to the first on-chip analog-to-digital converter of the single-chip microcomputer; the sampling feedback circuit samples the sine wave signals output by the CA conversion circuit, the balancing circuit, and the amplitude demodulation circuit, respectively, and outputs the signal amplitude to the second on-chip analog-to-digital converter of the single-chip microcomputer after the signal amplitude is obtained by the root mean square circuit.
2. The weak capacitance change measurement circuit of the capacitance sensor according to claim 1, characterized in that: The sine wave signal generator converts the square wave signal from the single chip microcomputer into a sine excitation signal and then outputs it.
3. The weak capacitance change measurement circuit of the capacitance sensor according to claim 1, characterized in that: The phase shift circuit comprises a second resistor (R1), a third resistor (R2), a second operational amplifier (U1-A), a first digital potentiometer (U3) and a third capacitor (C1); one end of the third resistor (R2) is connected to one end of the first digital potentiometer (U3) and serves as an input end of the phase shift circuit; the other end of the third resistor (R2) is connected to one end of the second resistor (R1) and an inverting input end of the second operational amplifier (U1-A); the other end of the first digital potentiometer (U3) is connected to one end of the third capacitor (C1) and a non-inverting input end of the second operational amplifier (U1-A); the other end of the third capacitor (C1) is grounded; the other end of the second resistor (R1) is connected to the output end of the second operational amplifier (U1-A) and serves as the output end of the phase shift circuit.
Citation Information
Patent Citations
A weak capacitive detection circuit of MEMS device
CN101551420A
Circuit for detecting dynamic weak capacitance of MEMS device
CN102109556A
Digital bridge capacitive measuring module
CN104296786A
Ultrahigh-precision rapid micro-capacitance measurement system
CN110501575A
Electromagnetic transponder reader
CN1467920A
