Piecewise linearization correction circuit with temperature compensation
By designing a segmented linearization correction circuit with temperature compensation, using a gain selection circuit and an operational amplifier, the problem of nonlinear signal output by a platinum resistance flow meter is solved, and stable signal linearization and temperature compensation in a wide temperature range are achieved. Improved instrument measurement accuracy.
Patent Information
- Application Number
- CN202410691551.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-13
AI Technical Summary
In a thermal mass flow meter using a platinum resistor, as the flow rate changes, the output signal of the resistor is a nonlinear signal, while the signal received by the conventional industrial control system is linear, and changes in ambient temperature lead to large instrument measurement errors.
A piecewise linearization correction circuit with temperature compensation is designed, including a gain selection circuit and an operational amplifier. Through a combination of multiple gain selection channels and transistors, the gain is dynamically adjusted according to the size of the sensing signal to achieve piecewise linearization of the signal. Correction, and using the negative temperature characteristics of the PN junction for temperature compensation.
It achieves stable output in a wide temperature range, reduces the number of components, improves circuit reliability, maintains signal linearity under temperature changes, and reduces measurement errors.
Smart Images

Figure CN118640984A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of temperature compensation, and in particular to a piecewise linearization correction circuit with temperature compensation. Background Art
[0002] When using a platinum resistance thermal mass flowmeter to collect flow signals, the output signal of the resistor is a nonlinear signal as the flow changes, while the 4-20mA signal received by the DCS (Distributed Control System) industrial control system used in conventional industrial sites is linear, so the nonlinear signal of the sensor needs to be converted into a linear signal. At the same time, because the environment in which conventional integrated industrial instruments are located changes drastically, temperature sensitivity will cause large instrument measurement errors. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide a piecewise linearization correction circuit with temperature compensation, so as to solve at least one problem existing in the prior art.
[0004] To achieve the above-mentioned object and other related objects, the present invention provides a piecewise linearization correction circuit with temperature compensation, the correction circuit comprising: a gain selection circuit and an operational amplifier;
[0005] The gain selection circuit includes a plurality of gain selection channels, each of which corresponds to a gain multiple;
[0006] The positive input terminal of the operational amplifier is connected to the output terminal of the sensor for receiving the sensing signal collected by the sensor; the reverse input terminal of the operational amplifier is connected to the output terminal of the gain selection circuit, and the gain of the operational amplifier is determined based on the conduction conditions of the multiple gain selection channels, and the conduction conditions of the gain selection channels are determined based on the size of the sensing signal.
[0007] In one embodiment of the present invention, the sensing signal includes a front-end signal, a middle-end signal, and a final-end signal, the slope of the front-end signal gradually increases, and the slope of the final-end signal gradually decreases; the multiple gain selection channels include a first gain selection unit and a second gain selection unit; when the sensor collects the front-end signal, one or more gain selection channels in the first gain selection unit are turned on; when the sensor collects the back-end signal, one or more gain selection channels in the second gain selection unit are turned on.
[0008] In one embodiment of the present invention, the gain selection channel of the first gain selection unit includes:
[0009] The first transistor has a collector connected to a first voltage, an emitter connected to a second voltage via a resistor, and a base connected to a first bias voltage.
[0010] In one embodiment of the present invention, the gain selection channel of the first gain selection unit further includes:
[0011] The base of the second transistor is connected to the emitter of the first transistor, the collector of the second transistor is connected to the second voltage, and the emitter of the second transistor is connected to the reverse input terminal of the operational amplifier via a resistor.
[0012] In one embodiment of the present invention, the first transistor is an NPN transistor, and the second transistor is a PNP transistor.
[0013] In one embodiment of the present invention, the gain selection channel of the second gain selection unit includes:
[0014] The third transistor has an emitter connected to the third voltage via a resistor, a collector connected to the fourth voltage, and a base connected to the second bias voltage.
[0015] In one embodiment of the present invention, the gain selection channel of the second gain selection unit further includes:
[0016] The fourth transistor has a base connected to the emitter of the third transistor, a collector connected to the third voltage, and an emitter connected to the inverting input terminal of the operational amplifier via a resistor.
[0017] In one embodiment of the present invention, the third transistor is a PNP transistor, and the fourth transistor is an NPN transistor.
[0018] In one embodiment of the present invention, the correction circuit also includes: a plurality of voltage-dividing resistors and a reference voltage source, wherein the plurality of voltage-dividing resistors are connected in series and then connected in parallel with the reference voltage source; and one or more of the voltage-dividing resistors provide a conduction voltage for the plurality of gain selection channels.
[0019] In one embodiment of the present invention, the correction circuit further includes:
[0020] The gain resistor is connected in parallel between the output terminal and the inverting input terminal of the operational amplifier.
[0021] As described above, the present application provides a piecewise linearization correction circuit with temperature compensation, which has the following features:
[0022] Beneficial effects:
[0023] The present invention discloses a temperature-compensated piecewise linearization correction circuit, the correction circuit comprising: a gain selection circuit and an operational amplifier; the gain selection circuit comprises a plurality of gain selection channels, each of which corresponds to a gain multiple; the positive input terminal of the operational amplifier is connected to the output terminal of the sensor, for receiving the sensing signal collected by the sensor; the reverse input terminal of the operational amplifier is connected to the output terminal of the gain selection circuit, the gain of the operational amplifier is determined based on the conduction conditions of the plurality of gain selection channels, and the conduction conditions of the gain selection channels are determined based on the magnitude of the sensing signal. The present invention discloses a temperature-compensated piecewise linearization correction circuit, which can perform piecewise linearization correction on signals with nonlinear characteristics, and also has a temperature compensation function, and can have a stable output within a wide temperature range.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A schematic diagram of a signal collected by a sensor according to an embodiment of the present application;
[0027] Figure 2 A schematic diagram of a piecewise linearization correction circuit with temperature compensation according to an embodiment of the present application;
[0028] Figure 3 A circuit diagram of a piecewise linearization correction circuit with temperature compensation according to an embodiment of the present application;
[0029] Figure 4 FIG. 4 is a schematic diagram of a compensated signal according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0031] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0032] Although the terms "first", "second", "A", "B", etc. may be used herein to describe various elements, these elements should not be limited by these terms and are only used to distinguish one element from another. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the following technology. The term "and / or" includes a combination of multiple related items or any item in the multiple related items.
[0033] As used herein, unless the context indicates otherwise, the singular form is intended to include the plural form, and it will be understood that the term "comprising" means the presence of stated features, quantities, steps, operations, elements, or combinations thereof, but does not exclude the presence or addition of one or more other features, quantities, steps, operations, elements, components, or combinations thereof.
[0034] Before describing the drawings in detail, it is intended to clarify that the division of components in this specification is divided only by the main function of each component. That is, two or more components to be described below can be combined into one component, or can be divided into two or more components according to more detailed functions. In addition to the main function of the component, each component to be described below can also perform some or all of the functions of other components, and some of the main functions of each component can be exclusively performed by other components.
[0035] When using a platinum resistance thermal mass flowmeter to collect flow signals, the output signal of the resistor is a nonlinear signal as the flow changes, while the 4-20mA signal received by the DCS (Distributed Control System) industrial control system used in conventional industrial sites is linear, so the nonlinear signal of the sensor needs to be converted into a linear signal. At the same time, because the environment in which conventional integrated industrial instruments are located changes drastically, temperature sensitivity will cause large instrument measurement errors.
[0036] See also Figure 1 , Figure 1 is the sensor input signal diagram, Figure 1It can be seen that the overall slope of the sensor's input signal first increases from small, the linearity is approximately unchanged in the middle section, and finally decreases from large to small. In order to linearize the overall signal, the nonlinear parts on both sides can be linearized based on the middle section. According to the characteristics of the sensor, it is necessary to provide a larger gain at the beginning of the first half and then gradually reduce it. As the signal reaches the linear region, the gain remains unchanged, and the gain in the second half changes from small to large. Based on this, the present application proposes a piecewise linearization correction circuit with temperature compensation. In addition to being able to perform piecewise linearization correction on signals with nonlinear characteristics, it also has a temperature compensation function and can have a stable output within a wide temperature range. At the same time, compared with linearization correction circuits using multiplexers and multiple groups of operational amplifiers and analog switches, the present invention reduces the number of components used and improves the overall reliability of the circuit.
[0037] See also Figure 2 , Figure 2 A piecewise linearization correction circuit with temperature compensation according to an embodiment of the present application includes: a gain selection circuit and an operational amplifier;
[0038] The gain selection circuit includes a plurality of gain selection channels, each of which corresponds to a gain multiple;
[0039] The positive input terminal of the operational amplifier is connected to the output terminal of the sensor for receiving the sensing signal collected by the sensor; the reverse input terminal of the operational amplifier is connected to the output terminal of the gain selection circuit, and the gain of the operational amplifier is determined based on the conduction conditions of the multiple gain selection channels, and the conduction conditions of the gain selection channels are determined based on the size of the sensing signal.
[0040] In one embodiment, the sensing signal includes a front-end signal, a middle-end signal, and a final-end signal, the slope of the front-end signal gradually increases, and the slope of the final-end signal gradually decreases; the multiple gain selection channels include a first gain selection unit and a second gain selection unit; when the sensor collects the front-end signal, one or more gain selection channels in the first gain selection unit are turned on; when the sensor collects the back-end signal, one or more gain selection channels in the second gain selection unit are turned on.
[0041] It should be noted that the correction circuit selects one or more gain selection channels from multiple compensation modules as target gain selection channels according to the slope of the voltage amplitude of the sensing signal. For example, at the beginning of the signal, that is, the slope of the front-end signal increases from a small value, and a larger gain needs to be provided, and then gradually decreases. Therefore, more gain selection channels are used as target gain selection channels, and corresponding gain multiples are provided through the target gain selection channels; as the slope of the sensing signal gradually increases, the gain provided by the corresponding correction circuit needs to be reduced. Therefore, three gain selection channels are used as target gain selection channels. As the time of using the signal increases, fewer and fewer gain selection channels are required. Similarly, for the latter signal, its correction method is similar to that of the former signal, and will not be repeated here.
[0042] In one embodiment, the gain selection channel of the first gain selection unit includes:
[0043] The first transistor has a collector connected to a first voltage, an emitter connected to a second voltage via a resistor, and a base connected to a first bias voltage.
[0044] It should be noted that the first transistor can be called a gain switching transistor, which is used for gain selection. When the first transistor is turned on, the corresponding gain selection channel is turned on.
[0045] In one implementation, the gain selection channel of the first gain selection unit further includes:
[0046] The base of the second transistor is connected to the emitter of the first transistor, the collector of the second transistor is connected to the second voltage, and the emitter of the second transistor is connected to the reverse input terminal of the operational amplifier via a resistor.
[0047] It should be noted that the first transistor is an NPN transistor, and the second transistor is a PNP transistor.
[0048] like Figure 3 As shown, the gain selection channel is explained by taking transistor Q80 and transistor Q81 as examples. Transistor Q80 is used as the first transistor, and resistor R271 is connected in parallel between its collector and base, its emitter is connected to the second voltage through resistor R245, and its collector is connected to the first voltage; transistor Q81 is used as the second transistor, and its base is connected to the emitter of transistor Q80, its collector is connected to the second voltage, and its emitter is connected to the reverse input terminal of the operational amplifier through resistor R276. Figure 3 There are four gain selection channels in total, and the composition of each gain selection channel is the same.
[0049] exist Figure 3In the embodiment, transistor Q80 and transistor Q81 serve as a gain selection channel, transistor Q82 and transistor Q83 serve as a gain selection channel, transistor Q84 and transistor Q85 serve as a gain selection channel, and transistor Q86 and transistor Q87 serve as a gain selection channel.
[0050] According to the signal collected by the sensor, one or more of the first gain selection channels are selected as the target gain selection channel.
[0051] It should be noted that the first voltage can provide a bias voltage for the transistor, and the second voltage is a “0” voltage.
[0052] In one embodiment, the gain selection channel of the second gain selection unit includes:
[0053] The third transistor has an emitter connected to the third voltage via a resistor, a collector connected to the fourth voltage, and a base connected to the second bias voltage.
[0054] In one embodiment, the gain selection channel of the second gain selection unit further includes:
[0055] The fourth transistor has a base connected to the emitter of the third transistor, a collector connected to the third voltage, and an emitter connected to the inverting input terminal of the operational amplifier via a resistor.
[0056] It should be noted that the third transistor is a PNP transistor, and the fourth transistor is an NPN transistor.
[0057] like Figure 3 As shown, the second gain selection channel is explained by taking transistor Q94 and transistor Q95 as examples. Transistor Q94 is used as the third transistor, and resistor R259 is connected in parallel between its collector and base, its emitter is connected to the third voltage through resistor R252, and its collector is connected to the fourth voltage; transistor Q95 is used as the fourth transistor, and its base is connected to the emitter of transistor Q95, its collector is connected to the third voltage, and its emitter is connected to the reverse input terminal of the operational amplifier through the second gain resistor (resistor R272). Figure 3 There are four gain selection channels in total, and the composition of each gain selection channel is the same.
[0058] Transistor Q94 and transistor Q95 serve as a gain selection channel, transistor Q92 and transistor Q93 serve as a gain selection channel, transistor Q91 and transistor Q90 serve as a gain selection channel, and transistor Q89 and transistor Q88 serve as a gain selection channel.
[0059] According to the signal collected by the sensor, one or more gain selection channels are selected from the above-mentioned gain selection channels as the target gain selection channel.
[0060] It should also be noted that the third voltage can provide a bias voltage for the transistor, and the bias voltage can be the same as the first voltage or different from the first voltage, while the second voltage is a "0" voltage.
[0061] It should also be noted that the first transistor, the second transistor, the third transistor and the fourth transistor are all triodes.
[0062] It should be noted that the first transistor and the third transistor can be used as gain switching transistors, and the second transistor and the fourth transistor can be used as temperature compensation transistors. The temperature compensation transistor uses the negative temperature characteristics of the PN junction to compensate for temperature. When the temperature changes, the Vbe junction voltage of the gain switching transistor will change, and the Vbe of the temperature compensation transistor will also change accordingly with the temperature. The temperature changes of the two transistors are combined together to offset each other, thereby achieving segmented linear compensation at different temperatures.
[0063] It should be noted that the overall slope of the sensor's input signal first increases from small to large, the linearity remains approximately unchanged in the middle section, and then decreases from large to small. In order to linearize the overall signal, the nonlinear parts on both sides can be linearized based on the middle section. According to the sensor characteristics, it is necessary to provide a larger gain at the beginning of the first half and then gradually reduce it. As the signal reaches the linear region, the gain remains unchanged, and the gain in the second half increases from small to large. Therefore, it is necessary to use multiple first transistors to compensate for the first half of the sensor signal, and multiple third transistors to compensate for the second half of the sensor signal.
[0064] In one embodiment, the correction circuit further includes:
[0065] The correction circuit also includes:
[0066] The gain resistor is connected in parallel between the output terminal and the inverting input terminal of the operational amplifier.
[0067] It should also be noted that in Figure 3 In the circuit, resistors R272, R257, R255, R253, R273, R274, R275, and R276 are used to set the signal gain of different intervals;
[0068] U34 uses different voltage gains according to the input signal voltage range to correct the nonlinear signal;
[0069] Transistors Q81, Q83, Q85, Q87, Q88, Q90, Q92, and Q94 are transistors for gain switching. They start to conduct after reaching the segmented voltage interval. After conduction, the output gain of the operational amplifier can be changed.
[0070] Transistors Q80, Q82, Q84, Q86, Q89, Q91, Q93, and Q95 are temperature compensation transistors. The negative temperature characteristic of the PN junction is used to compensate for temperature. When the temperature changes, the Vbe junction voltage of the gain switching transistor will change, and the Vbe of the temperature compensation transistor will also change accordingly with the temperature. The temperature changes of the two transistors are combined to offset each other, so segmented linear compensation can be achieved at different temperatures.
[0071] When the sensor signal voltage is in the middle section, the gain switching transistors are not turned on, and the operational amplifier gain is 1; when the voltage gradually decreases from the middle section, the gain switching transistors Q88, Q90, Q92, and Q94 are turned on in sequence, and the signal gain increases accordingly; when the voltage gradually increases from the middle section, the gain switching transistors Q87, Q85, Q83, and Q81 are turned on in sequence, and the signal gain increases accordingly. The gain of the input signal in different intervals is shown in Table 1.
[0072] Table 1 Input signal gain comparison table
[0073]
[0074] According to the circuit simulation, the segmented linearization circuit is verified under the temperature change of -40 ~ 85℃. The simulation results are as follows Figure 4 As shown in the figure, it can be seen that under temperature changes, the output of the piecewise linearization correction circuit with temperature compensation basically does not change with temperature. The nonlinear error at the lowest and highest points mainly comes from the insufficient number of segments, which can be solved by increasing the number of segments.
[0075] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A piecewise linearization correction circuit with temperature compensation, It is characterized in that The correction circuit comprises: a gain selection circuit and an operational amplifier; The gain selection circuit includes a plurality of gain selection channels, each of which corresponds to a gain multiple; The positive input terminal of the operational amplifier is connected to the output terminal of the sensor for receiving the sensing signal collected by the sensor; the reverse input terminal of the operational amplifier is connected to the output terminal of the gain selection circuit, and the gain of the operational amplifier is determined based on the conduction conditions of the multiple gain selection channels, and the conduction conditions of the gain selection channels are determined based on the size of the sensing signal.
2. The piecewise linearization correction circuit with temperature compensation according to claim 1, It is characterized in that The sensing signal includes a front-end signal, a middle-end signal, and a final-end signal, the slope of the front-end signal gradually increases, and the slope of the final-end signal gradually decreases; the multiple gain selection channels include a first gain selection unit and a second gain selection unit; when the sensor collects the front-end signal, one or more gain selection channels in the first gain selection unit are turned on; when the sensor collects the back-end signal, one or more gain selection channels in the second gain selection unit are turned on.
3. The piecewise linearization correction circuit with temperature compensation according to claim 2, It is characterized in that The gain selection channel of the first gain selection unit includes: The first transistor has a collector connected to a first voltage, an emitter connected to a second voltage via a resistor, and a base connected to a first bias voltage.
4. The piecewise linearization correction circuit with temperature compensation according to claim 3, It is characterized in that The gain selection channel of the first gain selection unit also includes: The base of the second transistor is connected to the emitter of the first transistor, the collector of the second transistor is connected to the second voltage, and the emitter of the second transistor is connected to the reverse input terminal of the operational amplifier via a resistor.
5. The piecewise linearization correction circuit with temperature compensation according to claim 4, It is characterized in that The first transistor is an NPN transistor, and the second transistor is a PNP transistor.
6. The piecewise linearization correction circuit with temperature compensation according to claim 2, It is characterized in that The gain selection channel of the second gain selection unit includes: The third transistor has an emitter connected to the third voltage via a resistor, a collector connected to the fourth voltage, and a base connected to the second bias voltage.
7. The piecewise linearization correction circuit with temperature compensation according to claim 6, It is characterized in that The gain selection channel of the second gain selection unit also includes: The fourth transistor has a base connected to the emitter of the third transistor, a collector connected to the third voltage, and an emitter connected to the inverting input terminal of the operational amplifier via a resistor.
8. The piecewise linearization correction circuit with temperature compensation according to claim 7, It is characterized in that The third transistor is a PNP transistor, and the fourth transistor is an NPN transistor.
9. The piecewise linearization correction circuit with temperature compensation according to claim 1, It is characterized in that The correction circuit also includes: a plurality of voltage-dividing resistors and a reference voltage source, wherein the plurality of voltage-dividing resistors are connected in series and then connected in parallel with the reference voltage source; and one or more of the voltage-dividing resistors provide a conduction voltage for the plurality of gain selection channels.
10. The piecewise linearization correction circuit with temperature compensation according to claim 1, It is characterized in that The correction circuit also includes: The gain resistor is connected in parallel between the output terminal and the inverting input terminal of the operational amplifier.
