A DC voltage acquisition circuit based on temperature compensation
By using the MCU module and computing circuit in the DC voltage acquisition circuit, the real-time offset and gain coefficients are determined based on the reference voltage and zero potential, and the DC voltage signal is temperature compensated, which solves the impact of temperature changes on the DC voltage acquisition and achieves low cost and simple temperature compensation effect.
Patent Information
- Application Number
- CN202410619427.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-05-20
AI Technical Summary
In the existing technology, during DC voltage signal collection, temperature changes cause the bias and gain of the op amp chip and resistor to change, resulting in inconsistent values collected from DC voltage signals of the same size, and the existing solutions have high hardware costs or complex implementation. , lack of simple and low-cost temperature compensation methods.
A DC voltage acquisition circuit based on temperature compensation is designed. Through the MCU module, operation circuit and AD conversion circuit, the reference voltage and zero potential are used to determine the real-time bias and gain coefficient of the operational amplifier, and the signal to be measured is temperature compensated to reduce the temperature. Effect of changes on acquisition voltage.
It is possible to reduce the impact of temperature changes on DC voltage acquisition without directly measuring the temperature, reduce hardware costs, simplify test methods, and reduce changes in the voltage to be measured caused by changes in the gain coefficient of the operational amplifier.
Smart Images

Figure CN118209780B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voltage acquisition, and in particular to a direct current voltage acquisition circuit based on temperature compensation. Background Art
[0002] When measuring DC voltage, since electronic components such as op amp chips and resistors are affected by temperature, temperature changes in the test system will cause changes in the bias voltage and gain of the op amp chips, ultimately resulting in different values for the same DC voltage signal. The worse the temperature performance of electronic components such as op amp chips and resistors, the greater the deviation in the values of the same DC voltage signal when the temperature changes.
[0003] At present, there are two main existing methods for dealing with the problem of the impact of temperature on DC voltage signal acquisition. One is to use electronic components such as operational amplifier chips and resistors with better temperature performance to directly reduce the impact of temperature on DC voltage signal acquisition to a range acceptable to users. The other is to add a temperature testing system, establish a corresponding relationship table between temperature and DC voltage acquisition values, and achieve indirect compensation for DC voltage acquisition values. However, the hardware cost of the first method is relatively high, and the second method is complicated to implement, and has high requirements for the consistency of temperature performance of electronic components such as operational amplifier chips and resistors.
[0004] Therefore, how to realize a DC voltage acquisition circuit that compensates for temperature on the basis of low hardware cost, simple test method, and no need for direct temperature measurement is a problem that needs to be solved urgently. Summary of the invention
[0005] The embodiment of the present invention provides a DC voltage acquisition circuit based on temperature compensation to solve the above technical problems in the prior art.
[0006] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not a general review, nor is it intended to identify key / important components or to describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.
[0007] According to an embodiment of the present invention, a direct current voltage acquisition circuit based on temperature compensation is provided.
[0008] In this embodiment, the DC voltage acquisition circuit based on temperature compensation includes: an MCU module, an operation circuit and an AD conversion circuit, wherein the MCU module is used to connect a reference voltage, a zero potential and a signal to be measured to the operation circuit; the operation circuit is used to determine the real-time bias and the real-time gain coefficient of the operational amplifier according to the reference voltage and the zero potential, respectively, and perform temperature compensation on the signal to be measured according to the real-time bias and the real-time gain coefficient to obtain the voltage of the signal to be measured after temperature compensation; the AD conversion circuit is used to convert the voltage analog signal of the signal to be measured obtained by the operation circuit after temperature compensation into a digital signal, and input the digital signal into the MCU module.
[0009] In this embodiment, the temperature-compensated DC voltage acquisition circuit also includes: a timing-controlled analog switch, the input end of the timing-controlled analog switch is connected to the reference voltage input end, the zero potential input end and the measured signal input end, and the output end of the timing-controlled analog switch is connected to the input end of the operation circuit; the timing-controlled analog switch is used to connect the reference voltage, the zero potential and the measured signal to the operation circuit in a predetermined timing according to the control of the MCU module.
[0010] In this embodiment, the operational circuit includes an operational amplifier 1, an operational amplifier 2, an operational amplifier 3, an operational amplifier 4 and a plurality of resistors, wherein:
[0011] The in-phase input terminal of the operational amplifier 1 is connected in parallel with a resistor 1 and a resistor 2, the input terminal of the resistor 1 is connected to the reference voltage input terminal, the output terminal of the resistor 2 is connected to the ground wire, the inverting input terminal of the operational amplifier 1 is connected in parallel with a resistor 3 and a resistor 4, the input terminal of the resistor 3 is connected to the input terminal of the signal to be measured, and the resistor 5 and the resistor 6 are connected between the input terminal of the signal to be measured and the reference voltage input terminal;
[0012] The non-inverting input terminal of the operational amplifier 2 is connected to the output terminal of the operational amplifier 1, the inverting input terminal of the operational amplifier 2 is connected to the output terminal of the resistor 4, and the output terminal of the operational amplifier 2 is connected to the output terminal of the resistor 4 and the differential input negative electrode of the AD conversion circuit;
[0013] The non-inverting input terminal of the operational amplifier 3 is connected between the resistor 5 and the resistor 6, the inverting input terminal of the operational amplifier 3 is connected in parallel with the resistor 7 and the resistor 8, the resistor 7 is connected to the differential input positive electrode of the AD conversion circuit, and the output terminal of the resistor 8 is grounded;
[0014] The non-inverting input terminal of the operational amplifier 4 is connected to the output terminal of the operational amplifier 3, and the inverting input terminal of the operational amplifier 4 and the output terminal of the operational amplifier 4 are both connected to the differential input positive electrode of the AD conversion circuit.
[0015] In this embodiment, the operational amplifier 1 and the operational amplifier 3 are of the same model, and the operational amplifier 2 and the operational amplifier 4 are of the same model.
[0016] In this embodiment, the AD conversion circuit includes an AD conversion chip, the differential input positive pole and the differential input negative pole of the AD conversion chip are connected to the operation circuit, and the AD conversion chip is connected to the AD reference voltage input terminal, the power supply input terminal and the clock signal input terminal, and the output terminal of the AD conversion chip is connected to the MCU module.
[0017] In this embodiment, the clock signal input end includes an active crystal oscillator and a frequency divider, the output end of the active crystal oscillator is connected to the input end of the frequency divider, and the output end of the frequency divider is connected to the AD conversion chip.
[0018] In this embodiment, the temperature-compensated DC voltage acquisition circuit also includes: a reference voltage circuit, used to provide a reference voltage and an AD reference voltage, wherein the reference voltage circuit includes a reference voltage chip, the input end of the reference voltage chip is connected to the input end of the fluctuating power supply voltage, the output end of the reference voltage chip is sequentially connected in series with high-precision resistor one, high-precision resistor two and high-precision resistor three, the AD reference voltage input end is connected between the high-precision resistor one and the high-precision resistor two; the reference voltage input end is connected between the high-precision resistor two and the high-precision resistor three.
[0019] In this embodiment, the temperature drift values of the high-precision resistor one, the high-precision resistor two and the high-precision resistor three are all 10ppm / °C, and the high-precision resistor one is a 900Ω resistor, the high-precision resistor two is a 2.1KΩ resistor, and the high-precision resistor three is a 2KΩ resistor.
[0020] In this embodiment, the calculation formula of the real-time offset is: , where represents the real-time bias of the operational amplifier, represents the gain factor of the operational amplifier, Indicates the voltage value of the signal to be measured; Indicates the actual voltage value detected.
[0021] In this embodiment, the calculation formula of the real-time gain coefficient is: , where represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. represents the output voltage of the operational circuit collected after the temperature changes, and k represents the gain coefficient of the operational amplifier.
[0022] In this embodiment, the voltage calculation formula of the signal to be measured after temperature compensation is:
[0023] , where Indicates the voltage value of the signal to be measured. represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. It represents the output voltage of the operation circuit collected after the temperature changes. Indicates the actual voltage value detected. Represents the real-time bias of the operational amplifier.
[0024] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:
[0025] The zero potential input terminal is connected to the operation circuit to obtain the real-time bias of the operational amplifier chip, and the reference voltage input terminal is connected to the operation circuit to obtain the real-time gain coefficient, and then the input terminal of the signal to be measured is connected to the operation circuit; the actual real-time voltage of the signal to be measured can be obtained through the real-time bias of the operational amplifier chip and the real-time gain coefficient, which greatly reduces the change of the calculated voltage to be measured caused by the change of the gain coefficient of the operation circuit due to temperature, so that the present invention has the advantages of lower hardware cost, simpler testing method, and no need to directly measure the temperature.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] Figure 1 is a schematic diagram showing a principle of a DC voltage acquisition circuit based on temperature compensation according to an exemplary embodiment;
[0029] Figure 2 is a timing diagram of a timing controlled analog switch according to an exemplary embodiment;
[0030] Figure 3 is a schematic diagram of a principle of an operation circuit according to an exemplary embodiment;
[0031] Figure 4 is a schematic diagram of a principle of an AD conversion circuit according to an exemplary embodiment;
[0032] Figure 5 is a schematic diagram showing a principle of a reference voltage circuit according to an exemplary embodiment.
[0033] In the figure:
[0034] 1. MCU module; 2. Timing control analog switch; 3. Operational circuit; 4. AD conversion circuit; 5. Reference voltage circuit; 6. Reference voltage input terminal; 7. Zero potential input terminal; 8. Measured signal input terminal; 9. Operational amplifier one; 10. Operational amplifier two; 11. Operational amplifier three; 12. Operational amplifier four; 13. Resistor one; 14. Resistor two; 15. Resistor three; 16. Resistor four; 17. Resistor five; 18. Resistor six; 19. Resistor seven; 20. Resistor eight; 21. AD conversion chip; 22. AD reference voltage input terminal; 23. Power supply input terminal; 24. Clock signal input terminal; 25. Active crystal oscillator; 26. Frequency divider; 27. Reference voltage chip; 28. Fluctuating power supply voltage input terminal; 29. High-precision resistor one; 30. High-precision resistor two; 31. High-precision resistor three. DETAILED DESCRIPTION
[0035] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.
[0036] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0037] As used herein, the term "plurality" means two or more than two, unless otherwise specified.
[0038] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0039] In this article, the term "and / or" is a description of the association relationship between objects, indicating that three relationships may exist. For example, A and / or B means: A or B, or, A and B.
[0040] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0041] Each module in the device or system of the present application can be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.
[0042] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0043] Figure 1An embodiment of a DC voltage acquisition circuit based on temperature compensation of the present invention is shown.
[0044] In this optional embodiment, the DC voltage acquisition circuit based on temperature compensation includes: an MCU module 1, a timing control analog switch 2, an operation circuit 3, an AD conversion circuit 4 and a reference voltage circuit 5, wherein the MCU module 1 is used to connect the reference voltage, the zero potential and the signal to be measured to the operation circuit 3; the input end of the timing control analog switch 2 is connected to the reference voltage input end 6, the zero potential input end 7 and the signal to be measured input end 8, and the output end of the timing control analog switch 2 is connected to the input end of the operation circuit 3; the timing control analog switch 2 is used to connect the reference voltage, the zero potential and the signal to be measured in a predetermined timing (such as Figure 2 As shown) is connected to the operation circuit 3; the operation circuit 3 is used to determine the real-time bias and real-time gain coefficient of the operational amplifier according to the reference voltage and the zero potential respectively, and to perform temperature compensation on the signal to be measured according to the real-time bias and the real-time gain coefficient to obtain the voltage of the signal to be measured after temperature compensation; the AD conversion circuit 4 is used to convert the voltage analog signal of the signal to be measured after temperature compensation obtained by the operation circuit 3 into a digital signal, and input the digital signal to the MCU module 1; the reference voltage circuit 5 is used to provide a reference voltage and an AD reference voltage.
[0045] In this alternative embodiment, if Figure 3As shown, the operational circuit 3 includes an operational amplifier 19, an operational amplifier 210, an operational amplifier 311, an operational amplifier 412 and a plurality of resistors, wherein the in-phase input terminal of the operational amplifier 19 is connected in parallel with a resistor 13 and a resistor 214, the input terminal of the resistor 13 is connected to the reference voltage input terminal 6, the output terminal of the resistor 214 is connected to the ground line, the inverting input terminal of the operational amplifier 19 is connected in parallel with a resistor 315 and a resistor 416, the input terminal of the resistor 315 is connected to the input terminal of the signal to be measured 8, and a resistor 517 and a resistor 618 are connected between the input terminal of the signal to be measured 8 and the reference voltage input terminal 6; the in-phase input terminal of the operational amplifier 210 is connected to the output terminal of the operational amplifier 19, the output terminal of the operational amplifier 210 ... to the ground line, the inverting input terminal of the operational amplifier 19 is connected to the ground line, the inverting input terminal of the operational amplifier 19 is connected to the ground line, the inverting input terminal of the operational amplifier 19 is connected to the ground line, the inverting input terminal of the operational amplifier 19 is connected to the ground line, the inverting input terminal of the operational amplifier 19 is connected to The inverting input terminal is connected to the output terminal of the resistor four 16, and the output terminal of the operational amplifier two 10 is connected to the output terminal of the resistor four 16 and the negative electrode of the differential input of the AD conversion circuit 4; the non-inverting input terminal of the operational amplifier three 11 is connected between the resistor five 17 and the resistor six 18, and the inverting input terminal of the operational amplifier three 11 is connected in parallel with the resistor seven 19 and the resistor eight 20, the resistor seven 19 is connected to the positive electrode of the differential input of the AD conversion circuit 4, and the output terminal of the resistor eight 20 is grounded; the non-inverting input terminal of the operational amplifier four 12 is connected to the output terminal of the operational amplifier three 11, and the inverting input terminal of the operational amplifier four 12 and the output terminal of the operational amplifier four 12 are both connected to the positive electrode of the differential input of the AD conversion circuit 4.
[0046] In specific applications, the operational amplifier 1 9 and the operational amplifier 3 11 are of the same model, such as: both can use the operational amplifier model OPA2188AID, and the operational amplifier 2 10 and the operational amplifier 4 12 are of the same model, such as: both can use the operational amplifier model OPA2340UA.
[0047] According to the virtual short principle of the operational amplifier, it can be known that the currents at the in-phase and inverting ends of operational amplifier 1 9, operational amplifier 2 10, operational amplifier 3 11, and operational amplifier 4 12 can be approximately equivalent to 0, so it can be obtained that the currents flowing through resistor 1 13 and resistor 2 14 are equal, the currents flowing through resistor 5 17 and resistor 6 18 are equal, the currents flowing through resistor 3 15 and resistor 4 16 are equal, and the currents flowing through resistor 7 19 and resistor 8 20 are equal. According to the virtual short principle of the operational amplifier, it can be known that the potential of the in-phase and inverting ends of operational amplifier 1 9 is the same, the potential of the in-phase and inverting ends of operational amplifier 2 10 is the same, the potential of the in-phase and inverting ends of operational amplifier 3 11 is the same, and the potential of the in-phase and inverting ends of operational amplifier 4 12 is the same. According to the above two principles, the positive voltage of the differential input of the AD chip of the AD conversion circuit 4 can be obtained. , AD chip differential input negative voltage of AD conversion circuit 4 , so the gain coefficient of the operational circuit is In the formula, Indicates the voltage value of the signal to be measured; Indicates the actual voltage value detected.
[0048] In addition, in practical applications, the resistor 13, the resistor 4, the resistor 16, the resistor 5, the resistor 17 and the resistor 7, the resistor 19 can all be 9 kΩ resistors, and the resistor 2, the resistor 14, the resistor 3, the resistor 15, the resistor 6, the resistor 18 and the resistor 8, the resistor 20 can all be 10 kΩ resistors.
[0049] In this alternative embodiment, if Figure 4 As shown, the AD conversion circuit 4 includes an AD conversion chip 21, the differential input positive electrode and the differential input negative electrode of the AD conversion chip 21 are connected to the operation circuit 3, and the AD conversion chip 21 is connected to the AD reference voltage input terminal 22, the power supply input terminal 23 and the clock signal input terminal 24, and the output terminal of the AD conversion chip 21 is connected to the MCU module 1. The clock signal input terminal 24 includes an active crystal oscillator 25 and a frequency divider 26, the output terminal of the active crystal oscillator 25 is connected to the input terminal of the frequency divider 26, and the output terminal of the frequency divider 26 is connected to the AD conversion chip 21.
[0050] In specific applications, a 5V power supply can be selected as the power supply, and the AD conversion chip 21 can select an AD conversion chip of model ADS1251U, the active crystal oscillator 25 is an active crystal oscillator of 13.824MHZ, and the model of the frequency divider 26 is 74HC393PW. When in use, the active crystal oscillator 25 outputs a 13.824MHZ clock signal, which is divided by the frequency divider 26 to become a 2.304MHZ clock signal, providing a normal working clock for the AD conversion chip 21. The 4.1V AD reference voltage provided by the reference voltage circuit 5 enables the AD conversion chip 21 to effectively identify / convert analog test data within the range of 0-4.1V. The MCU module 1 sends a data conversion / reading instruction to the AD conversion chip 21, which enables the AD conversion chip 21 to convert the analog test data into digital test data and transmit it back to the MCU module 1.
[0051] In this alternative embodiment, if Figure 5As shown, the reference voltage circuit 5 includes a reference voltage chip 27, the input end of the reference voltage chip 27 is connected to the fluctuating power supply voltage input end 28, the output end of the reference voltage chip 27 is sequentially connected in series with a high-precision resistor 1 29, a high-precision resistor 2 30 and a high-precision resistor 3 31, the AD reference voltage input end 22 is connected between the high-precision resistor 1 29 and the high-precision resistor 2 30; the reference voltage input end 6 is connected between the high-precision resistor 2 30 and the high-precision resistor 3 31. The temperature drift values of the high-precision resistor 1 29, the high-precision resistor 2 30 and the high-precision resistor 3 31 are all 10ppm / ℃, and the high-precision resistor 1 29 is a 900Ω resistor, the high-precision resistor 2 30 is a 2.1KΩ resistor, and the high-precision resistor 3 31 is a 2KΩ resistor. The temperature performance of the reference voltage circuit is stable. By comparing the reference voltage outputted by it with the sampling voltage in the test system, the relationship between the sampling voltage and the temperature can be obtained, thereby realizing temperature compensation.
[0052] In specific applications, due to the voltage value collected by MCU module 1 is the voltage to be measured The voltage value is obtained by linear transformation of the sampling circuit, so the collected voltage value can be used The k value is mainly related to the gain of the test system, and the b value is mainly related to the bias of the op amp chip. When the temperature changes, the gain of the test system and the bias of the op amp chip will also change, causing the k and b values used for calculation to change, and eventually the same DC voltage signal will have different values collected at different temperatures.
[0053] The present invention uses the MCU module 1 according to Figure 2 The timing is used to control the timing control analog switch 2, and GND (operational circuit ground, zero potential), 2V reference voltage (2V reference voltage generated by the voltage reference chip that is minimally affected by temperature), and the signal to be measured are connected to the operation circuit 3 in turn. When zero potential is connected to the operation circuit 3, the input of the operation circuit 3 is 0. However, due to the bias of the operational amplifier chip (operational amplifier), the actual output of the operation circuit is not 0 and its size is directly related to the bias of the operational amplifier chip. When the temperature changes, the bias of the operational amplifier chip will also change. At this time, the zero potential signal is connected to the sampling circuit, and the corresponding input is 0, that is, , the corresponding output is ( will change with temperature). Substitute the above information into the calculation formula for the collected voltage In, you can get
[0054] The b value obtained in this way will change with temperature. Compared with the original method of fixing the b value, it can greatly reduce the change in the calculated voltage to be measured caused by the change in the bias of the op amp chip due to temperature. The calculation formula for the real-time bias is: , where represents the real-time bias of the operational amplifier, k represents the gain factor of the operational amplifier, Indicates the voltage value of the signal to be measured; Indicates the actual voltage value detected.
[0055] When the 2V reference voltage is connected to the operation circuit 3, the input of the operation circuit 3 is 2V, and the final output needs to be multiplied by the gain coefficient k of the operation circuit 3, that is, When the temperature changes, the resistance values of the resistors in the operation circuit 3 will change, causing the gain coefficient k to change. At this time, by collecting the 2V reference voltage, the changed gain coefficient can be obtained. Substituting it into the voltage calculation formula to be measured, we can get , where Indicates the voltage value of the signal to be measured. represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. It represents the output voltage of the operation circuit collected after the temperature changes. Indicates the actual voltage value detected. Indicates the real-time bias of the operational amplifier. This can greatly reduce the change in the calculated measured voltage caused by the change in the gain coefficient of the operational circuit due to temperature.
[0056] The calculation formula of real-time gain coefficient is: , where represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. represents the output voltage of the operational circuit collected after the temperature changes, and k represents the gain coefficient of the operational amplifier.
[0057] In addition, the reference voltage circuit 5 converts the fluctuating power supply voltage into a stable 5V output through the reference voltage chip 27 (LT1027E5). The corresponding voltage is then obtained through a high-precision resistor voltage divider with low temperature drift. By taking advantage of the high impedance of the input end of the operational amplifier chip, the current obtained from the voltage divider circuit is extremely small and will hardly affect the 5V output, thus ensuring the stability of the reference voltage of the AD conversion chip and the 2V reference voltage.
[0058] The present invention is not limited to the structures which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A DC voltage acquisition circuit based on temperature compensation, It is characterized in that include: MCU module, operation circuit and AD conversion circuit, among which, MCU module, used for connecting the reference voltage, zero potential and the signal to be measured to the operation circuit; A timing control analog switch, wherein the input end of the timing control analog switch is connected to the reference voltage input end, the zero potential input end and the input end of the signal to be measured, and the output end of the timing control analog switch is connected to the input end of the operation circuit; the timing control analog switch is used to connect the reference voltage, the zero potential and the signal to be measured to the operation circuit in a predetermined timing according to the control of the MCU module; An operational circuit, used for determining a real-time bias and a real-time gain coefficient of the operational amplifier according to a reference voltage and a zero potential, respectively, and performing temperature compensation on the signal to be measured according to the real-time bias and the real-time gain coefficient to obtain a voltage of the signal to be measured after temperature compensation; An AD conversion circuit is used to convert the voltage analog signal of the signal to be measured obtained by the operation circuit after temperature compensation into a digital signal, and input the digital signal into the MCU module; A reference voltage circuit, for providing a reference voltage and an AD reference voltage, wherein the reference voltage circuit comprises a reference voltage chip, the input end of the reference voltage chip is connected to the input end of the fluctuating power supply voltage, the output end of the reference voltage chip is sequentially connected in series with a high-precision resistor 1, a high-precision resistor 2 and a high-precision resistor 3, the AD reference voltage input end is connected between the high-precision resistor 1 and the high-precision resistor 2; the reference voltage input end is connected between the high-precision resistor 2 and the high-precision resistor 3; the temperature drift values of the high-precision resistor 1, the high-precision resistor 2 and the high-precision resistor 3 are all 10ppm / °C, and the high-precision resistor 1 is a 900Ω resistor, the high-precision resistor 2 is a 2.1KΩ resistor, and the high-precision resistor 3 is a 2KΩ resistor; The operational circuit includes an operational amplifier 1, an operational amplifier 2, an operational amplifier 3, an operational amplifier 4 and a plurality of resistors. The in-phase input terminal of the operational amplifier 1 is connected in parallel with resistor 1 and resistor 2, the input terminal of the resistor 1 is connected to the reference voltage input terminal, the output terminal of the resistor 2 is connected to the ground wire, the inverting input terminal of the operational amplifier 1 is connected in parallel with resistor 3 and resistor 4, the input terminal of the resistor 3 is connected to the input terminal of the signal to be measured, and resistor 5 and resistor 6 are connected between the input terminal of the signal to be measured and the reference voltage input terminal; the in-phase input terminal of the operational amplifier 2 is connected to the output terminal of the operational amplifier 1, the inverting input terminal of the operational amplifier 2 The output end of the operational amplifier 2 is connected to the output end of the resistor 4, the output end of the operational amplifier 2 is connected to the output end of the resistor 4 and the negative electrode of the differential input of the AD conversion circuit; the non-inverting input end of the operational amplifier 3 is connected between the resistor 5 and the circuit 6, the inverting input end of the operational amplifier 3 is connected in parallel with the resistor 7 and the resistor 8, the resistor 7 is connected to the positive electrode of the differential input of the AD conversion circuit, and the output end of the resistor 8 is grounded; the non-inverting input end of the operational amplifier 4 is connected to the output end of the operational amplifier 3, the inverting input end of the operational amplifier 4 and the output end of the operational amplifier 4 are both connected to the positive electrode of the differential input of the AD conversion circuit; The operational amplifier 1 and the operational amplifier 3 are of the same model, and the operational amplifier 2 and the operational amplifier 4 are of the same model; the currents at the in-phase and in-phase ends of the operational amplifier 1, the operational amplifier 2, the operational amplifier 3, and the operational amplifier 4 are approximately equivalent to 0, the currents flowing through the resistor 1 (13) and the resistor 2 (14) are equal, the currents flowing through the resistor 3 (15) and the resistor 4 (16) are equal, the currents flowing through the resistor 5 (17) and the resistor 6 (18) are equal, and the currents flowing through the resistor 7 (19) and the resistor 8 (20) are equal; the potentials of the in-phase and in-phase ends of the amplifier 1 (9) are the same, the potentials of the in-phase and in-phase ends of the operational amplifier 2 (10) are the same, the potentials of the in-phase and in-phase ends of the operational amplifier 3 (11) are the same, and the potentials of the in-phase and in-phase ends of the operational amplifier 4 (12) are the same; The AD conversion circuit includes an AD conversion chip, the differential input positive electrode and the differential input negative electrode of the AD conversion chip are connected to the operation circuit, and the AD conversion chip is connected to the AD reference voltage input terminal, the power supply input terminal and the clock signal input terminal, and the output terminal of the AD conversion chip is connected to the MCU module; the clock signal input terminal includes an active crystal oscillator and a frequency divider, the output terminal of the active crystal oscillator is connected to the input terminal of the frequency divider, and the output terminal of the frequency divider is connected to the AD conversion chip; AD conversion circuit AD chip differential input positive voltage , AD chip differential input negative voltage of AD conversion circuit , the gain factor of the operational circuit ; In the formula, Indicates the voltage value of the signal to be measured; Indicates the actual voltage value detected; The timing control analog switch is controlled by the MCU module according to the timing sequence, and GND, 2V reference voltage, and the signal to be measured are connected to the operation circuit in turn; when the zero potential is connected to the operation circuit, the input of the operation circuit is 0; however, due to the existence of the operational amplifier bias, the actual output of the operation circuit is not 0 and its size is directly related to the bias of the operational amplifier chip; When the temperature changes, the bias of the operational amplifier will also change; at this time, the zero potential signal is connected to the sampling circuit, and the corresponding input is 0, that is, = 0, the corresponding output is = ; Substitute the above information into the calculation formula for the collected voltage In, get The b value obtained will change with temperature. Compared with the original fixed b value method, the temperature is greatly reduced, which causes the bias of the op amp chip to change, resulting in the change of the calculated voltage to be measured. The calculation formula for the real-time bias is: , where represents the real-time bias of the operational amplifier, represents the gain factor of the operational amplifier, Indicates the voltage value of the signal to be measured; Indicates the actual voltage value detected; When the 2V reference voltage is connected to the operational circuit, the input of the operational circuit is 2V, and the final output needs to be multiplied by the gain coefficient k of the operational circuit, that is, ; When the temperature changes, the resistance values of each resistor in the operation circuit will change, causing the gain coefficient k to change; at this time, by collecting the 2V reference voltage, the changed gain coefficient is obtained ; Substitute it into the voltage calculation formula to be measured, and we get , where Indicates the voltage value of the signal to be measured. represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. It represents the output voltage of the operation circuit collected after the temperature changes. Indicates the actual voltage value detected. Indicates the real-time bias of the operational amplifier; a significant reduction in temperature causes the gain coefficient of the operational circuit to change, resulting in a change in the calculated voltage to be measured; the calculation formula for the real-time gain coefficient is: , , where represents the real-time gain factor of the operational amplifier, It represents the output voltage of the operation circuit under the reference voltage of N volts. It represents the output voltage of the operation circuit collected after the temperature changes. represents the gain factor of the operational amplifier; In addition, the reference voltage circuit converts the fluctuating power supply voltage into a stable 5V output through a reference voltage chip; the corresponding voltage is then obtained through a high-precision resistor divider with low temperature drift. By utilizing the high impedance characteristic of the op amp chip input, the current divided from the voltage divider circuit is extremely small and will not affect the 5V output, thus ensuring the stability of the AD conversion chip reference voltage and the 2V reference voltage.
