A discrete analog measurement system for AC voltage effective value
By designing a discrete analog measurement system, using multiple compensation circuits and mode switching, the measurement accuracy of AC voltage is improved, and the problem of low measurement accuracy of medium and low frequency and high frequency in the prior art is solved, and the measurement accuracy of six and a half digits is achieved and temperature float decreases.
Patent Information
- Application Number
- CN202411287796.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-09-14
AI Technical Summary
The existing AC voltage measurement technology has low measurement accuracy at low and high frequencies, which cannot meet the needs of high-precision measurement.
A discrete analog system for measuring the effective value of AC voltage is designed, including signal conditioning circuit, absolute value circuit, logarithmic amplifier, feedback logarithmic amplifier, anti-logarithmic amplifier, filter, sampling and holding circuit, output buffer, ADC The conversion module and frequency measurement circuit can improve measurement accuracy and reduce the impact of temperature drift through a variety of compensation circuits and mode switching.
High-precision measurement of AC voltage is achieved, and the measurement accuracy reaches six and a half digits, solving the problem of large measurement errors between low and high frequency, and reducing the influence of ripple and temperature drift effect.
Smart Images

Figure CN118795205B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of AC voltage measurement, and in particular relates to a discrete analog system for measuring the effective value of AC voltage. Background Art
[0002] With the rapid development of measurement technology in modern science and technology, the requirements for measurement uncertainty are getting higher and higher, among which AC voltage measurement is a particularly important technology. The current AC voltage measurement technology mostly uses integrated chips. Although this method greatly simplifies the circuit structure and has a larger measurable bandwidth, the integrated chip can add fewer compensation circuits, which makes the circuit have a large conversion error for low-frequency and high-frequency AC signals. The measurement accuracy of the measured signal is relatively low, which sometimes cannot meet the needs of scientific research on high-precision measurement. Summary of the invention
[0003] The object of the present invention is to provide a discrete analog system for measuring the effective value of an alternating current voltage, so as to solve the problem of low measurement accuracy of the alternating current voltage at low frequencies and high frequencies in the prior art.
[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0005] A discrete analog measurement system for AC voltage effective value includes: a signal conditioning circuit, an absolute value circuit, a logarithmic amplifier, a feedback logarithmic amplifier, an anti-logarithmic amplifier, a filter, a sample-and-hold circuit, an output buffer, an ADC conversion module, a frequency measurement circuit and a microprocessor, wherein:
[0006] A signal conditioning circuit, the input end of which is used to receive the signal to be measured, and the output end of which is connected to the input end of the absolute value circuit;
[0007] An absolute value circuit, wherein the input end is connected to the output end of the signal conditioning circuit, and the output end is connected to the input end of the logarithmic amplifier;
[0008] A logarithmic amplifier, wherein the input end is connected to the output end of the signal conditioning circuit and the output end of the absolute value circuit, and the input end is connected to the input end of the anti-logarithmic amplifier;
[0009] A feedback logarithmic amplifier, wherein the input end is connected to the output end of the output buffer, and the output end is connected to the input end of the anti-logarithmic amplifier;
[0010] An anti-logarithmic amplifier, the output of which is connected to the input of the filter;
[0011] A filter, the output end of which is connected to the input end of a sample-and-hold circuit;
[0012] A sample-and-hold circuit, wherein an output terminal is connected to an input terminal of an output buffer;
[0013] An output buffer, the output end of which is connected to the input end of the ADC conversion module and the input end of the feedback logarithmic amplifier;
[0014] ADC conversion module, connected to the microprocessor;
[0015] The frequency measurement circuit has an input end connected to the output end of the signal conditioning circuit and an output end connected to the microprocessor.
[0016] Furthermore, the signal conditioning circuit comprises a DC coupling mode selector, an input resistor and capacitor, a bootstrap input follower, a low-frequency chopper amplifier, a high-frequency amplifier, a class AB power amplifier, a plurality of feedback resistors and corresponding switches, wherein:
[0017] A DC coupling mode selector, one end of which is connected to the signal input terminal and the other end is connected to the input resistor and capacitor;
[0018] One end of the input resistor and capacitor is connected to the DC coupling mode selector, and the other end is connected to one end of the feedback resistor and the input end of the bootstrap input follower and the low-frequency chopper amplifier in a parallel structure;
[0019] After the bootstrap input follower is connected in parallel with the low-frequency chopper amplifier, the output end is connected to the input end of the high-frequency amplifier;
[0020] The output end of the high frequency amplifier is connected to the input end of the class AB power amplifier;
[0021] Feedback resistors with different resistance values are connected in parallel with corresponding switches, and both ends are connected to the output end of the input resistor and capacitor and the output end of the class A and B power amplifier respectively;
[0022] The output end of the class AB power amplifier is connected to the input end of the absolute value circuit.
[0023] Furthermore, the class AB power amplifier includes an NPN transistor, a first PNP transistor, a second PNP transistor, a first diode, a second diode, a second resistor and a third resistor; wherein the base of the first PNP transistor is connected to the output end of the high-frequency amplifier, the emitter of the first PNP transistor is connected to the first end of the second resistor, the collector of the first PNP transistor is connected to the base of the NPN transistor and the first end of the first diode, the second end of the first diode is connected to the first end of the second diode, the second end of the second diode is connected to the first end of the third resistor and the base of the second PNP transistor, the collector of the second PNP transistor is connected to the second end of the third resistor and then to the negative pole of the power supply; the emitter of the second PNP transistor is connected to the emitter of the NPN transistor and to the output end; the second end of the second resistor is connected to the collector of the NPN transistor and to the positive pole of the power supply.
[0024] Furthermore, the absolute value circuit, logarithmic amplifier, feedback logarithmic amplifier, anti-logarithmic amplifier and filter together constitute an AC signal effective value conversion circuit to convert the AC signal into a corresponding effective value signal value.
[0025] Furthermore, the absolute value circuit includes a sixth resistor connected to a sixth switch of an input terminal Vin, the other end of the sixth resistor is connected to an input terminal of a first operational amplifier, the other end of the first operational amplifier is grounded, a third diode and a seventh resistor are connected in parallel between the input terminal and the output terminal of the first operational amplifier, the output terminal of the first operational amplifier is connected to one end of a fourth diode, and the other end of the fourth diode is connected between the sixth switch and the sixth resistor.
[0026] Further, the logarithmic amplifier includes a twenty-fifth resistor and an eighth resistor, one end of the twenty-fifth resistor is connected between the sixth switch and the sixth resistor, and one end of the eighth resistor is connected between the sixth resistor and the input end of the third diode;
[0027] The other ends of the twenty-fifth resistor and the eighth resistor are respectively connected to two input ends of the second operational amplifier, and the eighth diode is connected between an input end and an output end of the second operational amplifier.
[0028] Furthermore, the anti-logarithmic amplifier includes a third operational amplifier, a first triode, a ninth resistor and a third capacitor, the emitter of the first triode is connected to the output end of the second operational amplifier, the collector of the first triode is connected to an input end of the third operational amplifier, and the base of the first triode is connected to the feedback logarithmic amplifier. The ninth resistor and the third capacitor are connected in parallel between the input end and the output end of the third operational amplifier.
[0029] Further, the filter includes a tenth resistor, an eleventh resistor and a twelfth resistor connected in series, the tenth resistor is connected to the output end of the third operational amplifier, the connection between the tenth resistor and the eleventh resistor is connected to one end of the fourth capacitor, the other end of the fourth capacitor is connected to an input end of the fourth operational amplifier, the other end of the fourth operational amplifier is grounded, the output end of the fourth operational amplifier is connected to one end of the fifth capacitor, the other end of the fifth capacitor is connected between the eleventh resistor and the twelfth resistor, and the other end of the twelfth resistor is connected to the input end of the sample and hold circuit.
[0030] Further, the feedback logarithmic amplifier includes a seventh operational amplifier, a second triode, a fifth diode, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, and a seventeenth resistor, wherein one end of the sixteenth resistor is connected to the base of the first triode and the emitter of the second triode, the other end of the sixteenth resistor is connected to the output end of the seventh operational amplifier, the output end of the seventh operational amplifier is connected to one end of the fifth diode, the other end of the fifth diode, the collector of the second triode, and an input end of the seventh operational amplifier are connected to the output end of the output buffer; the input end of the seventh operational amplifier connected to the output end of the output buffer is connected to one end of the fourteenth resistor, the other end of the fourteenth resistor is connected to the connection between the thirteenth resistor and the seventeenth resistor, the thirteenth resistor is connected to the power supply, the other end of the seventeenth resistor is connected to one end of the fifteenth resistor, and the other end of the fifteenth resistor is connected to the other input end of the seventh operational amplifier; the base of the second triode is connected between an eighteenth resistor and a nineteenth resistor connected in series, the other end of the nineteenth resistor is grounded, and the other end of the eighteenth resistor is connected to the output end of the output buffer.
[0031] Further, the sampling and holding circuit includes a fifth operational amplifier, a first field effect transistor, a second field effect transistor, a third field effect transistor, a second NPN transistor, a first holding capacitor, a second holding capacitor, a twenty-second resistor, a twenty-third resistor, a sixth diode and a seventh diode; wherein,
[0032] A fifth operational amplifier comprises a first input terminal for receiving an input signal; a second input terminal connected to the output terminal to form a follower;
[0033] The first field effect transistor comprises a control terminal for receiving a control voltage; a drain electrode coupled to a first terminal of a first holding capacitor, a source electrode of the second field effect transistor and a source electrode of a third field effect transistor, and a second terminal of the first holding capacitor is grounded;
[0034] The second field effect tube comprises a control terminal for receiving a control voltage; a drain coupled to the first input terminal of the fifth operational amplifier and the second holding capacitor; and a second terminal of the second holding capacitor is grounded.
[0035] A third field effect transistor comprises a control terminal for receiving a control voltage; a drain coupled to an output terminal of a fifth operational amplifier;
[0036] A first holding capacitor, a first end of which is coupled between the drain of the first field effect transistor and the source of the second field effect transistor;
[0037] A second holding capacitor, a first end of which is coupled between the drain of the second field effect transistor and the first input end of the fifth operational amplifier;
[0038] The output end of the fifth operational amplifier is connected to the base of the second NPN transistor, the collector of the second NPN transistor is connected to the first end of the twenty-second resistor, the second end of the twenty-second resistor is connected to the positive electrode of the power supply, the emitter of the second NPN transistor is connected to the first end of the seventh diode, the second end of the seventh diode is connected to the first end of the twenty-third resistor and the first end of the sixth diode, the second end of the twenty-third resistor is connected to the negative electrode of the power supply, and the second end of the sixth diode is connected to the control ends of the first field effect transistor and the second field effect transistor.
[0039] The working principle of the present invention is:
[0040] The signal conditioning circuit divides the measured signal into five ranges: 0~200mV, 200mV~2V, 2V~20V, 20V~200V, and 200V~1000V. The feedback resistor value is switched according to the range of the measured signal to form different ratios to adjust the signal amplitude. The ratios are 10:1, 1:1, 1:10, 1:100, and 1:500. The signal amplitude is limited to 0~2V and input into the subsequent circuit to ensure the normal operation of the circuit.
[0041] The absolute value circuit converts the signal output by the signal conditioning circuit into a full-wave rectified signal that can be recognized by the logarithmic amplifier, wherein the amplitude of the signal is first reversed, the negative offset is removed by the unidirectional conductive characteristic of the diode, and the signal is converted into a half-wave rectified signal, which is then superimposed with the input signal to form a full-wave rectified signal.
[0042] The full-wave rectified signal output by the absolute value circuit is converted into a signal waveform with a corresponding double logarithmic value; the feedback logarithmic amplifier converts the effective value at the output end of the output buffer into a corresponding logarithmic waveform; the output results of the two are input into the anti-logarithmic amplifier together, and the anti-logarithmic amplifier subtracts and performs exponential operations to obtain the form of the division of the two; and then the DC form is obtained by filtering through a filter.
[0043] The characteristics of the input signal can be temporarily maintained through the sampling and holding circuit, and the entire measurement system can be formed into three measurement modes by turning on and off the switch to eliminate the influence of the operational amplifier gain drift of the effective value measurement circuit over time and temperature, thereby improving the circuit accuracy.
[0044] The ADC conversion module sets the sampling rate to sample the output results of different modes of each cycle of the circuit three times, and inputs them into the microprocessor for analysis.
[0045] The frequency measurement circuit module converts the AC waveform output by the signal conditioning circuit into a square wave that can be recognized by the microprocessor through the zero-crossing detection circuit, and then inputs it into the microprocessor.
[0046] Compared with the prior art, the advantages of the present invention are: the entire signal conditioning circuit of the present invention has a large number of compensation capacitors to solve the problem of low measurement accuracy of AC voltage at low and high frequencies. In addition, the entire measurement system of the present invention is divided into three working modes to solve the problem caused by ripples in the measurement process and the problem that the gain coefficient of the entire RMS-DC conversion circuit may drift with time and temperature.
[0047] The signal conditioning circuit of the present invention can select the corresponding feedback resistor according to the switching of the gear position to convert the AC voltage of 0~1000V into the AC signal of 0~2V of the same frequency; the absolute value circuit, the logarithmic amplifier, the feedback logarithmic amplifier, the anti-logarithmic amplifier, and the filter together form a circuit for simulating the calculation of the AC effective value, and convert the voltage output by the signal conditioning circuit into an effective value; the sampling and holding circuit module and the output buffer record the signal for multiple times through switch switching to obtain the result; the ADC conversion module sets the sampling rate to sample the output results of different modes of each cycle of the circuit three times; the frequency measurement circuit converts the AC signal conditioned and output by the signal conditioning circuit into a square wave of the same frequency; the microprocessor can calculate the corresponding frequency through the equal-precision frequency measurement method, and at the same time, the signal measurement value calculated through the data results of different modes can solve the problem of large high-frequency measurement errors in the prior art through the method of compensating in the medium and high frequency bands, and the measurement accuracy can reach six and a half digits. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of a module structure provided in an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of the structure of a signal conditioning circuit module provided by an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of the structure of a discrete effective value conversion circuit module provided by an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of the structure of a sample-and-hold circuit provided in an embodiment of the present invention;
[0052] Figure 5 Schematic diagram of three working modes provided by the embodiment of the present invention: (a) A mode, (b) B mode, (c) C mode;
[0053] Figure 6 Output waveforms of the absolute value circuit provided by the embodiment of the present invention (a) input signal waveform, (b) half-wave rectification waveform, (c) full-wave rectification waveform;
[0054] Figure 7 The output waveform of the logarithmic amplifier provided by the embodiment of the present invention;
[0055] Numbers in the figure: 101 signal conditioning circuit; 102 absolute value circuit; 103 logarithmic amplifier; 104 anti-logarithmic amplifier; 105 filter; 106 sample and hold circuit; 107 output buffer; 108 feedback logarithmic amplifier; 109 ADC conversion module; 110 frequency measurement circuit; 111 microprocessor; S1 DC coupling mode selector; R1 first resistor; C1 first capacitor, C2 second capacitor, 201 bootstrap input follower; 202 low frequency chopper amplifier; 203 high frequency amplifier; 204 Class A and B power amplifier; R4 first feedback resistor; R5 second feedback resistor; R6 third feedback resistor; R7 fourth feedback resistor; S3 first switch; S4 second switch; S5 third switch; S6 fourth switch; S7 fifth switch; T2 NPN transistor; T1 is the first PNP transistor; T3 is the second PNP transistor; D1 is the first diode; D2 is the second diode; R2 is the second resistor; R3 is the third resistor; R8 is the fourth resistor; R9 is the fifth resistor; S301 is the sixth switch; R300 is the sixth resistor; R301 is the seventh resistor; M301 is the first operational amplifier; D301 is the third diode; D302 is the fourth diode; S302 is the ninth switch; R302 is the twenty-fifth resistor; R303 is the eighth resistor; M302 is the second operational amplifier; D303 is the eighth diode; M303 is the third operational amplifier; Q301 is the first transistor; R304 is the ninth resistor; C301 is the third capacitor; R305 is the tenth resistor; R306 is the eleventh resistor; R307 is the twelfth resistor; C302 is the fourth capacitor; M304 is the fourth operational amplifier; C303 is the fifth capacitor; M307 is the seventh operational amplifier; Q302 is the second transistor; D304 is the fifth diode; R312 is the thirteenth resistor; R314 is the fourteenth resistor; R315 is the fifteenth resistor; R316 is the sixteenth resistor; R313 is the seventeenth resistor; R310 is the eighteenth resistor; R311 is the nineteenth resistor; S304 is the seventh switch; S305 is the eighth switch; M306 is the sixth operational amplifier; R308 is the twentieth resistor; R309 is the twenty-first resistor;
[0056] M305 is the fifth operational amplifier; Q401 is the first field effect transistor; Q402 is the second field effect transistor; Q403 is the third field effect transistor; Q404 is the second NPN transistor; C3041 is the first holding capacitor; C3042 is the second holding capacitor; R401 is the twenty-second resistor; R402 is the twenty-third resistor; D401 is the sixth diode; D402 is the seventh diode. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0059] like Figure 1 As shown, a discrete analog measurement system for measuring the effective value of AC voltage includes: a signal conditioning circuit 101, an absolute value circuit 102, a logarithmic amplifier 103, a feedback logarithmic amplifier 108, an anti-logarithmic amplifier 104, a filter 105, a sample and hold circuit 106, an output buffer 107, an ADC conversion module 109, a frequency measurement circuit 110 and a microprocessor 111, wherein:
[0060] The signal conditioning circuit 101 has an input end for receiving a signal to be measured and an output end connected to an input end of an absolute value circuit 102;
[0061] An absolute value circuit 102, whose input end is connected to the output of the signal conditioning circuit 101, and whose output end is connected to the logarithmic amplifier 103;
[0062] A logarithmic amplifier 103, an input end of which is connected to the output of the signal conditioning circuit 101 and the output of the absolute value circuit 102, and an input end of which is connected to the input end of the anti-logarithmic amplifier 104;
[0063] A feedback logarithmic amplifier 108, having an input end connected to the output end of the output buffer 107, and an input end connected to the anti-logarithmic amplifier 104;
[0064] An anti-logarithmic amplifier 104, two input terminals of which are respectively connected to the output terminals of the two logarithmic amplifiers, and an output terminal of which is connected to the input terminal of the filter 105;
[0065] The filter 105 has an input end connected to the output end of the anti-logarithmic amplifier 104 and an output end connected to the sample and hold circuit 106;
[0066] A sample and hold circuit 106, the input end of which is connected to the output end of the filter 105, and the output end of which is connected to the output buffer 107;
[0067] An output buffer 107, whose input end is connected to the output of the sampling and holding circuit 106, and whose output end is connected to the input end of the ADC conversion module 109 and the feedback logarithmic amplifier 108;
[0068] The ADC conversion module 109 is connected to the subsequent microprocessor 111;
[0069] The frequency measurement circuit 110 has an input end connected to the output end of the signal conditioning circuit 101 and an output end connected to the microprocessor.
[0070] like Figure 2 As shown, a discrete analog measurement system for measuring the effective value of an AC voltage, a signal conditioning circuit 101 includes a DC coupling mode selector S1, an input resistor and a capacitor, the input resistor and the capacitor include a first resistor R1 and a second capacitor C2 connected in parallel, a bootstrap input follower 201, a low-frequency chopper amplifier 202, a high-frequency amplifier 203, a class AB power amplifier 204, a first feedback resistor R4, a second feedback resistor R5, a third feedback resistor R6, a fourth feedback resistor R7 and a first switch S3, a second switch S4, a third switch S5, a fourth switch S6 and a fifth switch S7:
[0071] A DC coupling mode selector S1, one end of which is connected to the signal input end, and the other end of which is connected to the input resistor and capacitor. The DC coupling mode selector S1 is connected in parallel with the first capacitor C1. When the DC coupling mode selector S1 is disconnected, the circuit is in a pure AC measurement mode. When the DC coupling mode selector S1 is closed, the circuit is in a DC coupling mode.
[0072] The bootstrap input follower 201 is connected in parallel with the low-frequency chopper amplifier 202 , one end of which is connected to the input resistor and capacitor, and the other end of which is connected to the high-frequency amplifier 203 .
[0073] The input resistor and capacitor serve as the input resistor and capacitor of the signal conditioning circuit 101, and play the role of amplifier attenuation and protection;
[0074] The output end of the high frequency amplifier 203 is connected to the class AB power amplifier 204. The bandwidth gain product of the high frequency amplifier 203 used in this embodiment is as high as 13 MHz, which meets the frequency band requirement.
[0075] The class AB power amplifier 204 includes an NPN transistor T2. A first PNP transistor T1, a second PNP transistor T3, a first diode D1, a second diode D2, a second resistor R2 and a third resistor R3; wherein the base of the first PNP transistor T1 is connected to the output end of the high-frequency amplifier 203, the emitter of the first PNP transistor T1 is connected to the first end of the second resistor R2, the collector of the first PNP transistor T1 is connected to the base of the NPN transistor T2 and the first end of the first diode D1, the second end of the first diode D1 is connected to the first end of the second diode D2, the second end of the second diode D2 is connected to the first end of the third resistor R3 and the base of the second PNP transistor T3, the collector of the second PNP transistor T3 is connected to the second end of the third resistor R3 and then connected to the negative electrode of the power supply; the emitter of the second PNP transistor T3 is connected to the emitter of the NPN transistor T2 and to the output end; the second end of the second resistor R2 is connected to the collector of the NPN transistor T2 and to the positive electrode of the power supply.
[0076] A plurality of groups of feedback resistors in parallel with different ranges are connected between the input end of the parallel structure of the bootstrap input follower 201 and the low-frequency chopper amplifier 202 and the output end of the class AB power amplifier 204, and each feedback resistor is connected in series with a switch, including a first feedback resistor R4 and a second switch S4 connected in series, a second feedback resistor R5 and a third switch S5 connected in series, a third feedback resistor R6 and a fourth switch S6 connected in series, a fourth feedback resistor R7 and a fifth switch S7 connected in series; one end of the output end of the class AB power amplifier 204 is connected to a first end of a fourth resistor R8, and the other end of the fourth resistor R8 is connected to one end of the first switch S3 and one end of a fifth resistor R9, the other end of the first switch S3 is connected between the first feedback resistor R4 and the second switch S4, and the other end of the fifth resistor R9 is grounded.
[0077] The feedback resistor, input resistor and capacitor, bootstrap input follower 201, low-frequency chopper amplifier 202 and high-frequency amplifier 203 together form a reverse amplifier to adjust the signal; the Class AB power amplifier 204 is a first diode D1 and a second diode D2 that produce a stable voltage drop for the first PNP transistor T1 and the NPN transistor T2 in static state, so that they are in a slightly conductive state. By properly adjusting the second resistor R2 and the third resistor R3, the upper and lower parts of the circuit can be made symmetrical. The output voltage is 0 in static state. After the signal is connected, even if the input signal is very small, the output signal can follow the result of the input signal.
[0078] The signal conditioning circuit 101 divides the measured signal into five ranges: 0~200mV, 200mV~2V, 2V~20V, 20V~200V, and 200V~1000V. The feedback resistor value is switched according to the range of the measured signal to form different ratios to adjust the signal amplitude. The ratios are 10:1, 1:1, 1:10, 1:100, and 1:500. The signal amplitude is limited to 0~2V and input to the subsequent circuit to ensure the normal operation of the circuit. The first resistor R1 is 1MΩ, and the 1MΩ input resistor is composed of four 250kΩ resistors in series. The basic range is 2V range, the gain is 1, and the first feedback resistor R4 is two 500kΩ resistors. For the three high voltage ranges, in order to ensure the normal operation of the subsequent circuit, the high voltage signal needs to be attenuated. The resistance values of the second feedback resistor R5 , the third feedback resistor R6 , and the fourth feedback resistor R7 are 109 kΩ (20 V), 11.1 kΩ (200 V), and 2.4 kΩ (1 kV), respectively.
[0079] In addition, the output end of the signal conditioning circuit 101 has a very small bias voltage to ensure good DC coupling characteristics, and the long-term bias voltage stability of the low-frequency chopper amplifier 202 used in the signal conditioning circuit 101 can reach, meeting the low bias voltage requirement. In addition, the bandwidth gain product of the high-frequency amplifier 203 used in the circuit can reach 13MHz, and has low noise performance in all frequency bands.
[0080] like Figure 3 As shown, a circuit schematic diagram of a discrete analog measurement system for measuring the effective value of an AC voltage includes an absolute value circuit 102, a logarithmic amplifier 103, a feedback logarithmic amplifier 108, an anti-logarithmic amplifier 104, and a filter 105, wherein the absolute value circuit 102 includes a sixth resistor R300 connected to a sixth switch S301 of an input terminal Vin, the other end of the sixth resistor R300 is connected to an input terminal of a first operational amplifier M301, the other end of the first operational amplifier M301 is grounded, a third diode D301 and a seventh resistor R301 are connected in parallel between the input terminal and the output terminal of the first operational amplifier M301, and the output terminal of the first operational amplifier M301 is grounded. The output end is connected to one end of the fourth diode D302, and the other end of the fourth diode D302 is connected between the sixth switch S301 and the sixth resistor R300. When the AC signal is positive, the third diode D301 is turned on and the fourth diode D302 is turned off. At this time, the output of the absolute value circuit 102 is 0. When the AC signal is negative, the fourth diode D302 is turned on and the third diode D301 is turned off. At this time, the first operational amplifier M301 and the sixth resistor R300 and the seventh resistor R301 form an inverse proportional amplifier, and the sixth resistor R300 and the seventh resistor R301 have the same resistance value, which can ensure that the output value is the negative value of the input value. Therefore, the waveforms of the half-wave rectification obtained in the two processes are as follows: Figure 6 As shown in (a) in .
[0081] The logarithmic amplifier 103 includes a twenty-fifth resistor R302 and an eighth resistor R303. One end of the twenty-fifth resistor R302 is connected between the sixth switch S301 and the sixth resistor R300. One end of the eighth resistor R303 is connected between the sixth resistor R300 and the input end of the third diode D301.
[0082] The other ends of the twenty-fifth resistor R302 and the eighth resistor R303 are respectively connected to the two input ends of the second operational amplifier M302. The eighth diode D303 is connected between one input end and the output end of the second operational amplifier M302. The logarithmic amplifier 103 fully rectifies the output value of the AC signal. Convert to logarithmic value The feedback logarithmic amplifier 108 feeds back the output value of the entire circuit. And convert it to logarithmic value The two pairs of values are subtracted through the first transistor Q301. .
[0083] The anti-logarithmic amplifier 104 includes a third operational amplifier M303, a first transistor Q301, a ninth resistor R304 and a third capacitor C301. The emitter of the first transistor Q301 is connected to the output end of the second operational amplifier M302, the collector of the first transistor Q301 is connected to an input end of the third operational amplifier M303, and the base of the first transistor Q301 is connected to the feedback logarithmic amplifier 108. The ninth resistor R304 and the third capacitor C301 are connected in parallel between the input end and the output end of the third operational amplifier M303. The anti-logarithmic amplifier 104 converts the results of the two logarithmic amplifiers into the result of dividing the two. .
[0084] The filter 105 is a bandpass Bessel filter, including a tenth resistor R305, an eleventh resistor R306 and a twelfth resistor R307 connected in series, the tenth resistor R305 is connected to the output end of the third operational amplifier M303, the connection between the tenth resistor R305 and the eleventh resistor R306 is connected to one end of the fourth capacitor C302, the other end of the fourth capacitor C302 is connected to an input end of the fourth operational amplifier M304, the other end of the fourth operational amplifier M304 is grounded, the output end of the fourth operational amplifier M304 is connected to one end of the fifth capacitor C303, the other end of the fifth capacitor C303 is connected between the eleventh resistor R306 and the twelfth resistor R307, and the other end of the twelfth resistor R307 is connected to the input end of the sampling and holding circuit 106. The low-pass cutoff frequency is determined by the tenth resistor R305 and the fourth capacitor C302, and the high-pass cutoff frequency is determined by the twelfth resistor R307 and the fifth capacitor C303. It is worthwhile that the two cutoff frequencies meet the frequency band requirement of the entire circuit. In addition, the resistance values of the tenth resistor R305 and the twelfth resistor R307 can be changed by a multiplexer to change the filtering frequency.
[0085] The feedback logarithmic amplifier 108 includes a seventh operational amplifier M307, a second transistor Q302, a fifth diode D304, a thirteenth resistor R312, a fourteenth resistor R314, a fifteenth resistor R315, a sixteenth resistor R316, and a seventeenth resistor R313, wherein one end of the sixteenth resistor R316 is connected to the base of the first transistor Q301 and the emitter of the second transistor Q302, the other end of the sixteenth resistor R316 is connected to the output end of the seventh operational amplifier M307, the output end of the seventh operational amplifier M307 is connected to one end of the fifth diode D304, the other end of the fifth diode D304, the collector of the second transistor Q302, and one input end of the seventh operational amplifier M307 and the output buffer The output end of the seventh operational amplifier M307 is connected to the output end of the output buffer 107; the input end of the seventh operational amplifier M307 connected to the output end of the output buffer 107 is connected to one end of a fourteenth resistor R314, the other end of the fourteenth resistor R314 is connected to the connection between the thirteenth resistor R312 and the seventeenth resistor R313, the thirteenth resistor R312 is connected to the power supply, the other end of the seventeenth resistor R313 is connected to one end of a fifteenth resistor R315, and the other end of the fifteenth resistor R315 is connected to the other input end of the seventh operational amplifier M307; the base of the second triode Q302 is connected between an eighteenth resistor R310 and a nineteenth resistor R311 connected in series, the other end of the nineteenth resistor R311 is grounded, and the other end of the eighteenth resistor R310 is connected to the output end of the output buffer 107.
[0086] The output end of the sampling and holding circuit 106 is connected to one end of the seventh switch S304, one end of the eighth switch S305 is connected to the output end of the third operational amplifier M303, and the other end of one end of the eighth switch S305 and the other end of the seventh switch S304 are connected to an input end of the output buffer 107.
[0087] The output buffer 107 includes a sixth operational amplifier M306, a twentieth resistor R308 and a twenty-first resistor R309, the twentieth resistor R308 and the twenty-first resistor R309 are connected in series at the output end of the sixth operational amplifier M306, the other end of the twenty-first resistor R309 is grounded, and one input end of the sixth operational amplifier M306 is connected to the connection between the twentieth resistor R308 and the twenty-first resistor R309; the output end of the sixth operational amplifier M306 is connected between the sixth switch S301 and the sixth resistor R300 through the ninth switch S302.
[0088] The absolute value circuit 102 , the logarithmic amplifier 103 , the feedback logarithmic amplifier 108 , the anti-logarithmic amplifier 104 , and the filter 105 together constitute an AC signal effective value conversion circuit, which converts the AC signal into a corresponding effective value signal value.
[0089] The measurement principle of the effective value conversion circuit is to use the absolute value circuit 102 to perform full-wave rectification on the output signal of the signal conditioning circuit 101 to obtain the input signal of the logarithmic amplifier 103 ( ), square the instantaneous value of the signal, convert it to a logarithmic value, and then double it , the logarithm of the output and feedback DC voltage of this part The two signals are passed to the anti-logarithmic amplifier 104, where the logarithm of the square of the input signal is subtracted from the logarithm of the true RMS output ( ), while the anti-logarithmic amplifier 104 realizes the anti-logarithmic function, and the division of the two is obtained in the form Filter 105 averages the processed results , generating the effective value of a stable periodic signal .
[0090] Figure 6 The output result of the absolute value circuit 102 is shown as follows. Figure 6 (a) is a half-wave rectified waveform. The positive offset of the output voltage of the signal conditioning circuit 101 is removed by half-wave rectification, and the negative offset is inverted by the rectifier. The amplitude of the rectifier output can be adjusted using a DC-DC conversion control, which can change the rectifier gain incrementally by about 2 times. The rectifier output and the preamplifier output are then added to obtain a full-wave rectified waveform such as Figure 6 As shown in (b), Figure 7 The output result of the logarithmic amplifier 103 is shown.
[0091] like Figure 4 As shown, a discrete analog measurement system for measuring the effective value of an AC voltage, the sampling and holding circuit 106 includes a fifth operational amplifier M305, a first field effect transistor Q401, a second field effect transistor Q402, a third field effect transistor Q403, a second NPN transistor Q404, a first holding capacitor C3041, a second holding capacitor C3042, a twenty-second resistor R401, a twenty-third resistor R402, a sixth diode D401 and a seventh diode D402; wherein,
[0092] The fifth operational amplifier M305 comprises a first input terminal for receiving an input signal; a second input terminal connected to the output terminal to form a follower;
[0093] The first field effect transistor Q401 includes a control terminal for receiving a control voltage; a drain coupled to a first terminal of the first holding capacitor C3041, a source of the second field effect transistor Q402 and a source of the third field effect transistor Q403, and a second terminal of the first holding capacitor C3041 is grounded;
[0094] The second field effect transistor Q402 comprises a control terminal for receiving a control voltage; a drain coupled to the first input terminal of the fifth operational amplifier M305 and the second holding capacitor C3042; and a second terminal of the second holding capacitor C3042 is grounded.
[0095] The third field effect transistor Q403 comprises a control terminal for receiving a control voltage; a drain coupled to the output terminal of the fifth operational amplifier M305;
[0096] A first holding capacitor C3041, a first end of which is coupled between the drain of the first field effect transistor Q401 and the source of the second field effect transistor Q402;
[0097] A second holding capacitor C3042, a first end of which is coupled between the drain of the second field effect transistor Q401 and the first input end of the fifth operational amplifier M305;
[0098] The output end of the fifth operational amplifier M305 is connected to the base of the second NPN transistor Q404, the collector of the second NPN transistor Q404 is connected to the first end of the twenty-second resistor R401, the second end of the twenty-second resistor R401 is connected to the positive electrode of the power supply, the emitter of the second NPN transistor Q404 is connected to the first end of the seventh diode D402, the second end of the seventh diode D402 is connected to the first end of the twenty-third resistor R402 and the first end of the sixth diode D401, the second end of the twenty-third resistor R402 is connected to the negative electrode of the power supply, and the second end of the sixth diode D401 is connected to the control ends of the first field effect transistor Q401 and the second field effect transistor Q402.
[0099] The function of the sampling and holding circuit 106 is: the characteristics of the input signal can be temporarily maintained by the sampling and holding circuit 106, and the entire measurement system is formed into three measurement modes by the on and off of the switch, so as to eliminate the influence of the operational amplifier gain drift of the effective value measurement circuit over time and temperature, and improve the circuit accuracy. When the first field effect tube Q401 is turned off, the residual leakage caused by the capacitance between its source and drain will couple the signal, and in this invention, this feedthrough is shunted to the third field effect tube Q403, and the grounding when turned on reduces the feedthrough. In the present invention, the gate of the second field effect tube Q402 is clamped at about -7V, and the offset voltage caused is constant, which has no effect on the linear error of the sampling circuit. The offset voltage generated by the first holding capacitor C3041 is related to the input signal, and when switching to the holding mode, the first holding capacitor C3041 is coupled to the third field effect tube Q403 and connected to the output signal, and the amplitude of the output signal is the same as that of the first holding capacitor C3041, and the direction is opposite, so the offset voltage generated can be eliminated. At the same time, in the sampling mode, since the control ends of the first field effect transistor Q401 and the second field effect transistor Q402 are suspended, their three ends are at the same potential, and the field effect transistor capacitor has no charge. After entering the holding mode, the charge transferred from the field effect transistor capacitor to the holding capacitor is the same for any value of the input signal, and no dielectric absorption error will occur.
[0100] The function of the ADC conversion module 109 is as follows: the ADC conversion module 109 sets the sampling rate to sample the output results of different modes of each cycle of the circuit three times, each sampling is 0.1s, and inputs them into the microprocessor for analysis.
[0101] The frequency measurement circuit 110 converts the AC waveform output by the signal conditioning circuit 101 into a square wave that can be recognized by the microprocessor through the zero-crossing detection circuit, and then inputs the square wave into the microprocessor.
[0102] like Figure 5 As shown, there are three working modes of the invented system. Figure 5 (a) in the figure corresponds to mode A. Figure 3 as well as Figure 4 The sixth switch S301, the first field effect transistor Q401, the second field effect transistor Q402, and the seventh switch S304 are closed, the ninth switch S302, the third field effect transistor Q403, and the eighth switch S305 are opened, and the conditioned AC signal enters the absolute value circuit 102, the logarithmic amplifier 103, the anti-logarithmic amplifier 104, is filtered by the filter 105, and is output through the output buffer 107 to obtain the first measurement result Z1. Figure 5 As shown in (b), the B mode corresponds to Figure 3 Combination Figure 4The ninth switch S302, the third field effect transistor Q403, and the seventh switch S304 are closed, and the sixth switch S301, the first field effect transistor Q401, the second field effect transistor Q402, and the eighth switch S305 are opened. In the A mode, the sampling and holding module has a holding value. The holding value of the sampling and holding module is directly outputted and sampled once by the ADC. The holding value is outputted separately through the output buffer 107 to obtain the second measurement result Z2. Figure 5 (c) in the figure is the C mode, corresponding to Figure 3 To combine Figure 4 The ninth switch S302, the third field effect transistor Q403, and the eighth switch S305 are closed, the sixth switch S301, the first field effect transistor Q401, the second field effect transistor Q402, and the seventh switch S304 are opened, and the sampling and holding module is sequentially passed through the absolute value circuit 102, the logarithmic amplifier 103, and the anti-logarithmic amplifier 104, and finally outputted through the output buffer 107 to obtain the result Z3. The value held by the sampling and holding module is sampled once by the ADC through the result of the effective value conversion circuit, and the ratio of the two sampling results is , which is the gain coefficient of the effective value conversion circuit. Substituting it into the first result Z1 can eliminate the influence of the gain coefficient of the effective value conversion circuit drifting with temperature and time on the result. The final correction formula is:
[0103] .
[0104] It should be noted that, in the present invention, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0105] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A discrete analog measurement system for the effective value of AC voltage, characterized in that: It includes: signal conditioning circuit, absolute value circuit, logarithmic amplifier, feedback logarithmic amplifier, anti-logarithmic amplifier, filter, sampling and holding circuit, output buffer, ADC conversion module, frequency measurement circuit and microprocessor, wherein: A signal conditioning circuit, the input end of which is used to receive the signal to be measured, and the output end of which is connected to the input end of the absolute value circuit; An absolute value circuit, wherein the input end is connected to the output end of the signal conditioning circuit, and the output end is connected to the input end of the logarithmic amplifier; A logarithmic amplifier, wherein the input end is connected to the output end of the signal conditioning circuit and the output end of the absolute value circuit, and the input end is connected to the input end of the anti-logarithmic amplifier; A feedback logarithmic amplifier, wherein the input end is connected to the output end of the output buffer, and the output end is connected to the input end of the anti-logarithmic amplifier; An anti-logarithmic amplifier, the output of which is connected to the input of the filter; A filter, the output end of which is connected to the input end of a sample-and-hold circuit; A sample-and-hold circuit, wherein an output terminal is connected to an input terminal of an output buffer; An output buffer, the output end of which is connected to the input end of the ADC conversion module and the input end of the feedback logarithmic amplifier; ADC conversion module, connected to the microprocessor; A frequency measurement circuit, wherein the input end is connected to the output end of the signal conditioning circuit, and the output end is connected to the microprocessor; The signal conditioning circuit comprises a DC coupling mode selector, an input resistor and capacitor, a bootstrap input follower, a low-frequency chopper amplifier, a high-frequency amplifier, a class AB power amplifier, a plurality of feedback resistors and corresponding switches, wherein: A DC coupling mode selector, one end of which is connected to the signal input terminal and the other end is connected to the input resistor and capacitor; One end of the input resistor and capacitor is connected to the DC coupling mode selector, and the other end is connected to one end of the feedback resistor and the input end of the bootstrap input follower and the low-frequency chopper amplifier in a parallel structure; After the bootstrap input follower is connected in parallel with the low-frequency chopper amplifier, the output end is connected to the input end of the high-frequency amplifier; The output end of the high frequency amplifier is connected to the input end of the class AB power amplifier; Feedback resistors with different resistance values are connected in parallel with corresponding switches, and both ends are connected to the output end of the input resistor and capacitor and the output end of the class A and B power amplifier respectively; The output end of the class AB power amplifier is connected to the input end of the absolute value circuit.
2. The discrete analog system for measuring the effective value of AC voltage according to claim 1, characterized in that: The class AB power amplifier includes an NPN transistor, a first PNP transistor, a second PNP transistor, a first diode, a second diode, a second resistor and a third resistor; wherein the base of the first PNP transistor is connected to the output end of the high-frequency amplifier, the emitter of the first PNP transistor is connected to the first end of the second resistor, the collector of the first PNP transistor is connected to the base of the NPN transistor and the first end of the first diode, the second end of the first diode is connected to the first end of the second diode, the second end of the second diode is connected to the first end of the third resistor and the base of the second PNP transistor, the collector of the second PNP transistor is connected to the second end of the third resistor and then to the negative pole of the power supply; the emitter of the second PNP transistor is connected to the emitter of the NPN transistor and to the output end; the second end of the second resistor is connected to the collector of the NPN transistor and to the positive pole of the power supply.
3. The discrete analog system for measuring the effective value of AC voltage according to claim 1, characterized in that: The absolute value circuit, logarithmic amplifier, feedback logarithmic amplifier, anti-logarithmic amplifier and filter together form an AC signal effective value conversion circuit to convert the AC signal into a corresponding effective value signal value.
4. The discrete analog system for measuring the effective value of AC voltage according to claim 1, characterized in that: The absolute value circuit includes a sixth resistor connected to a sixth switch of an input terminal Vin, the other end of the sixth resistor is connected to an input terminal of a first operational amplifier, the other end of the first operational amplifier is grounded, a third diode and a seventh resistor are connected in parallel between the input terminal and the output terminal of the first operational amplifier, the output terminal of the first operational amplifier is connected to one end of a fourth diode, and the other end of the fourth diode is connected between the sixth switch and the sixth resistor.
5. The discrete analog system for measuring the effective value of AC voltage according to claim 4, characterized in that: The logarithmic amplifier includes a twenty-fifth resistor and an eighth resistor, one end of the twenty-fifth resistor is connected between the sixth switch and the sixth resistor, and one end of the eighth resistor is connected between the sixth resistor and the input end of the third diode; The other ends of the twenty-fifth resistor and the eighth resistor are respectively connected to two input ends of the second operational amplifier, and the eighth diode is connected between an input end and an output end of the second operational amplifier.
6. The discrete analog system for measuring the effective value of AC voltage according to claim 5, characterized in that: The anti-logarithmic amplifier includes a third operational amplifier, a first triode, a ninth resistor and a third capacitor, the emitter of the first triode is connected to the output end of the second operational amplifier, the collector of the first triode is connected to an input end of the third operational amplifier, and the base of the first triode is connected to the feedback logarithmic amplifier; A ninth resistor and a third capacitor connected in parallel are connected between the input terminal and the output terminal of the third operational amplifier.
7. The discrete analog system for measuring the effective value of AC voltage according to claim 6, characterized in that: The filter includes a tenth resistor, an eleventh resistor and a twelfth resistor connected in series, the tenth resistor is connected to the output end of the third operational amplifier, the connection between the tenth resistor and the eleventh resistor is connected to one end of the fourth capacitor, the other end of the fourth capacitor is connected to an input end of the fourth operational amplifier, the other end of the fourth operational amplifier is grounded, the output end of the fourth operational amplifier is connected to one end of the fifth capacitor, the other end of the fifth capacitor is connected between the eleventh resistor and the twelfth resistor, and the other end of the twelfth resistor is connected to the input end of the sampling and holding circuit.
8. The discrete analog system for measuring the effective value of AC voltage according to claim 7, characterized in that: The feedback logarithmic amplifier includes a seventh operational amplifier, a second triode, a fifth diode, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, and a seventeenth resistor, wherein one end of the sixteenth resistor is connected to the base of the first triode and the emitter of the second triode, the other end of the sixteenth resistor is connected to the output end of the seventh operational amplifier, the output end of the seventh operational amplifier is connected to one end of the fifth diode, the other end of the fifth diode, the collector of the second triode, and an input end of the seventh operational amplifier are connected to the output end of the output buffer; the input end of the seventh operational amplifier connected to the output end of the output buffer is connected to one end of the fourteenth resistor, the other end of the fourteenth resistor is connected to the connection between the thirteenth resistor and the seventeenth resistor, the thirteenth resistor is connected to a power supply, the other end of the seventeenth resistor is connected to one end of the fifteenth resistor, and the other end of the fifteenth resistor is connected to the other input end of the seventh operational amplifier; the base of the second triode is connected between an eighteenth resistor and a nineteenth resistor connected in series, the other end of the nineteenth resistor is grounded, and the other end of the eighteenth resistor is connected to the output end of the output buffer.
9. The discrete analog system for measuring the effective value of AC voltage according to claim 8, characterized in that: The sampling and holding circuit includes a fifth operational amplifier, a first field effect transistor, a second field effect transistor, a third field effect transistor, a second NPN transistor, a first holding capacitor, a second holding capacitor, a twenty-second resistor, a twenty-third resistor, a sixth diode and a seventh diode; wherein, A fifth operational amplifier comprises a first input terminal for receiving an input signal; a second input terminal connected to the output terminal to form a follower; The first field effect transistor comprises a control terminal for receiving a control voltage; a drain electrode coupled to a first terminal of a first holding capacitor, a source electrode of the second field effect transistor and a source electrode of a third field effect transistor, and a second terminal of the first holding capacitor is grounded; The second field effect transistor comprises a control terminal for receiving a control voltage; a drain coupled to the first input terminal of the fifth operational amplifier and the second holding capacitor; and a second terminal of the second holding capacitor is grounded; A third field effect transistor comprises a control terminal for receiving a control voltage; a drain coupled to an output terminal of a fifth operational amplifier; A first holding capacitor, a first end of which is coupled between the drain of the first field effect transistor and the source of the second field effect transistor; A second holding capacitor, a first end of which is coupled between the drain of the second field effect transistor and the first input end of the fifth operational amplifier; The output end of the fifth operational amplifier is connected to the base of the second NPN transistor, the collector of the second NPN transistor is connected to the first end of the twenty-second resistor, the second end of the twenty-second resistor is connected to the positive electrode of the power supply, the emitter of the second NPN transistor is connected to the first end of the seventh diode, the second end of the seventh diode is connected to the first end of the twenty-third resistor and the first end of the sixth diode, the second end of the twenty-third resistor is connected to the negative electrode of the power supply, and the second end of the sixth diode is connected to the control ends of the first field effect transistor and the second field effect transistor.
