An automatic temperature compensation circuit and method based on a thermal flowmeter

By combining a constant current source module, a Wheatstone virtual bridge arm, a digital-to-analog converter, and a differential amplifier module, the problem of low temperature compensation resolution in thermal flow meters is solved, achieving high precision and flexible automatic temperature compensation.

CN120907627BActive Publication Date: 2026-02-13CHENGDU RUIBAO ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511452951.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-13
Publication Date
2026-02-13
Estimated Expiration
2045-10-13

AI Technical Summary

Technical Problem

Existing temperature compensation methods for thermal flow meters have low resolution, complex and inflexible adjustment methods, and are difficult to effectively reduce the impact of external temperature changes on the flow meter's measurement accuracy.

Method used

A combination circuit consisting of a constant current source module, a Wheatstone virtual bridge arm, a digital-to-analog converter, and a differential amplifier module is used to achieve automatic temperature compensation for thermal flow meters through voltage conversion and correction compensation.

Benefits of technology

It improves the measurement accuracy and reliability of the flow meter, realizes automatic compensation for zero-point flow value and flow value, and has higher adjustment resolution and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120907627B_ABST
    Figure CN120907627B_ABST
Patent Text Reader

Abstract

The application discloses an automatic temperature compensation circuit and method based on a thermal flowmeter, and relates to the technical field of temperature compensation.The compensation circuit comprises a constant current source module for driving the thermal flowmeter, a Wheatstone virtual bridge arm for obtaining a change in the output voltage value of a digital-to-analog converter of a controller, performing voltage conversion according to the output voltage value, a first voltage and a second voltage output by the thermal flowmeter due to changes in the external temperature, and obtaining a third voltage, a digital-to-analog converter for performing correction and compensation on the third voltage according to a correction compensation value calculated by the controller, and a differential amplification module for performing amplification processing on the third voltage and a fourth voltage output by the thermal flowmeter by using a differential amplifier and outputting a compensated flow signal.The compensation circuit has a simple structure, higher reliability and precision, and compared with a digital potentiometer, the use of a digital-to-analog converter to change the output value of the Wheatstone virtual bridge arm has higher adjustment resolution.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of temperature compensation, in particular to an automatic temperature compensation circuit and method based on a thermal flowmeter. BACKGROUND

[0002] A non-contact thermal gas mass flowmeter (hereinafter referred to as a thermal flowmeter) has two or three groups of temperature-sensitive resistance wires wound on a capillary pipe in the flow sensor. By heating the resistance wire groups, the resistance wire groups maintain a certain temperature. When fluid passes through, the thermal balance between the resistance wire groups is broken, and the heat of the upstream resistance wire is transferred to the downstream resistance wire with the fluid, causing the resistance difference between the resistance wire groups to change. By measuring the change in resistance between the resistance wire groups, the corresponding change can be obtained, and the flow through the capillary pipe can be obtained, and the fluid flow through the thermal flowmeter can be obtained.

[0003] Since the thermal flowmeter obtains the current flow value by measuring the temperature change between the internal resistance wires of the sensor, environmental temperature and fluid temperature and other factors will greatly affect the measurement accuracy of the thermal flowmeter. For example, when the ambient temperature is 23 degrees Celsius, the thermal flowmeter shows zero flow when there is no flow, but when the ambient temperature is 35 degrees Celsius, the thermal flowmeter shows a flow of 5 SCCM when there is no flow. The reason is that due to the change in external temperature, the resistance of the resistance wire wound on the capillary pipe shifts, changing the thermal balance inside the flow sensor.

[0004] There are usually two methods to reduce the influence of external temperature change on the thermal flowmeter. The first method is to compensate through software. The external ambient temperature is measured by a temperature sensor, and a function of the external ambient and flow value change is established , and the flow value is compensated by the function . However, since the flow sensor of the thermal flowmeter is difficult to unify, the temperature compensation function of each flowmeter is different. If the temperature experiment is performed on each flowmeter to obtain the function , it will be very cumbersome and difficult to compensate. The second method is to compensate through hardware, as shown in Figure 1 . The principle is to use a temperature drift resistance with the same characteristics to act as one bridge arm of a Wheatstone bridge. When the external temperature changes, both the left and right bridge arms of the Wheatstone bridge change, thereby reducing the influence of the external temperature on the flowmeter. However, such temperature drift resistance is usually difficult to find, and the debugging is difficult. The program does not know the true state of the current flow sensor, and cannot compensate it through software.

[0005] An automatic temperature compensation circuit and method for a thermal flow meter, as disclosed in patent publication number CN117824771A, is shown. Figure 2 As shown, it uses a digital potentiometer to correct the flow sensor signal. When the ambient temperature changes, the program adjusts the potentiometer's setting to balance the Wheatstone bridge, thus achieving automatic temperature compensation. However, since most common digital potentiometers have only 256-bit and 1024-bit adjustment settings, their resolution is low. Furthermore, when the temperature changes, the program cannot directly determine how much the current potentiometer setting should be increased or decreased; therefore, prior experimentation is needed to determine the appropriate function. Subsequently, according to the function The compensation method for adjusting the digital potentiometer is not very flexible. Summary of the Invention

[0006] The purpose of this invention is to provide an automatic temperature compensation circuit and method based on a thermal flow meter, which solves the problems of low resolution, complex adjustment methods, and inflexible compensation methods in the prior art.

[0007] This invention is achieved through the following technical solution:

[0008] In a first aspect, the first embodiment of the present invention provides an automatic temperature compensation circuit based on a thermal flow meter, comprising: a constant current source module, a Wheatstone virtual bridge arm, a digital-to-analog converter, and a differential amplifier module;

[0009] The constant current source module is used to drive the thermal flow meter;

[0010] The Wheatstone virtual bridge arm is used to obtain the changed digital-to-analog converter output voltage value from the controller, and to perform voltage conversion based on the output voltage value, the first voltage and the second voltage output by the thermal flow meter due to changes in the external temperature, to obtain the third voltage.

[0011] The digital-to-analog converter is used to correct and compensate the third voltage according to the correction compensation value calculated by the controller;

[0012] The differential amplifier module uses a differential amplifier to amplify the third voltage and the fourth voltage output by the thermal flow meter, and outputs a compensated flow signal.

[0013] Furthermore, the Wheatstone virtual bridge arm includes a third amplifier, a fourth resistor, a fifth resistor, a seventh resistor, and a twelfth resistor, with the fifth, seventh, and twelfth resistors having the same resistance value.

[0014] Furthermore, the calculation formula for voltage conversion based on the output voltage value, the first voltage and the second voltage output by the thermal flow meter due to changes in external temperature is as follows:

[0015] ;

[0016] wherein, V1 is the voltage of the point V1, V2 is the voltage of the point V2, Vout is the output voltage value of the digital-to-analog converter, V3 is the voltage of the point V3, and is the output value of the virtual Wheatstone bridge arm.

[0017] Further, the positive input end of the differential amplification module is connected to a third voltage, the negative input end is connected to a fourth voltage, the two gain ends are connected through a resistor, the positive power supply end is connected to a power supply VCC, and the negative power supply end is connected to a power supply-VCC, and the output end of the differential amplification module outputs the compensated flow signal.

[0018] Further, the differential amplification module adopts an AD8226 instrument amplifier.

[0019] Further, the digital-to-analog converter adopts a digital-to-analog conversion chip model TPC116S1-VR.

[0020] In a second aspect, another embodiment of the present application provides an automatic temperature compensation method based on a thermal flowmeter, which is suitable for the automatic temperature compensation circuit based on the thermal flowmeter described in the first embodiment, and the method comprises the following steps.

[0021] Obtaining a flow signal collected by the thermal flowmeter;

[0022] Processing the flow signal through the automatic temperature compensation circuit based on the thermal flowmeter to obtain a processed flow signal;

[0023] Judging whether to perform zero-point automatic zero compensation or flow temperature automatic compensation on the flow signal according to the processed flow signal to obtain a correction compensation value;

[0024] Transmitting the correction compensation value to the digital-to-analog converter;

[0025] Controlling the digital-to-analog converter to perform correction compensation on the output value of the virtual Wheatstone bridge arm according to the correction compensation value, so that the two input voltage values of the differential amplification module are equal, and the differential amplification module outputs the compensated flow signal.

[0026] Further, the specific method for judging whether to perform zero-point automatic zero compensation on the flow signal according to the processed flow signal comprises the following steps.

[0027] Obtaining a zero-point flow when the valves of the thermal flowmeter are all closed;

[0028] Judging whether the voltage value output by the differential amplification module is zero;

[0029] If not, the fifth voltage outputted by the current digital-to-analog converter is calculated according to the values of the acquired first voltage, second voltage and fourth voltage to ensure that the voltage values of the two input terminals of the differential amplification module are equal;

[0030] If yes, the output voltage value of the current digital-to-analog converter is kept;

[0031] The thermal flowmeter is controlled to display zero flow.

[0032] Further, the calculation formula for calculating the output voltage value of the current digital-to-analog converter according to the values of the acquired first voltage, second voltage and fourth voltage is:

[0033]

[0034] wherein, V1 is the voltage of the point V1, V2 is the voltage of the point V2, Vout is the output voltage value of the digital-to-analog converter, V4 is the voltage of the point V4.

[0035] Further, the specific method for judging the automatic compensation of flow temperature when adjusting the flow signal according to the processed flow signal comprises:

[0036] acquiring a relationship function between the change of ambient temperature and the output signal of the flow during adjustment, which is obtained according to temperature experiments in advance;

[0037] when the external temperature changes, acquiring the change value of the external temperature collected by the temperature sensor, and acquiring the output voltage change value of the thermal flowmeter after being amplified by the differential amplification module according to the relationship function;

[0038] according to the voltage change value and the voltage amplification multiple of the differential amplification module, calculating the corresponding change of the output voltage value of the digital-to-analog converter;

[0039] correcting and compensating the output value of the Wheatstone virtual bridge arm according to the corresponding change of the voltage value.

[0040] Compared with the prior art, the present application has the following advantages and beneficial effects:

[0041] The automatic temperature compensation circuit based on the thermal flowmeter provided by the embodiment of the present application has simple structure, higher reliability and precision, and compared with the digital potentiometer, the use of the digital-to-analog converter to change the output value of the Wheatstone virtual bridge arm has higher adjustment resolution.

[0042] ​The automatic temperature compensation method based on the thermal flowmeter provided by the embodiment of the application can automatically compensate the zero flow value and the flow value during adjustment of the thermal flowmeter, has higher flexibility and reliability compared with the traditional compensation method, and has higher adjustment resolution when using the digital-to-analog converter output value to change the output value of the Wheatstone virtual bridge arm. BRIEF DESCRIPTION OF DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor. In the drawings:

[0044] Figure 1 It is a traditional hardware compensation circuit diagram;

[0045] Figure 2 It is a circuit diagram of the automatic temperature compensation circuit for the thermal flowmeter disclosed in the patent application with publication number CN117824771A;

[0046] Figure 3 It is a principle block diagram of the automatic temperature compensation circuit based on the thermal flowmeter provided by the first embodiment of the application;

[0047] Figure 4 It is a circuit diagram of the automatic temperature compensation circuit based on the thermal flowmeter provided by the first embodiment of the application;

[0048] Figure 5 It is a flowchart of the automatic temperature compensation method based on the thermal flowmeter provided by another embodiment of the application;

[0049] Figure 6 It is a flowchart of the zero-point automatic zeroing compensation method in another embodiment of the application;

[0050] Figure 7 It is a flowchart of the flow temperature automatic compensation during adjustment in another embodiment of the application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the application more clear and explicit, the application will be further described in detail below in combination with the embodiments and drawings. The exemplary embodiments of the application and the description thereof are only used to explain the application, and should not be regarded as a limitation on the application.

[0052] As Figure 3 , 4As shown, the first embodiment of the present application provides an automatic temperature compensation circuit based on a thermal flowmeter, which comprises a constant current source module, a Wheatstone virtual bridge arm, a digital-to-analog converter and a differential amplification module. The constant current source module is used to drive a flow sensor and comprises a fourth amplifier U4, a first resistor R1, a second resistor R2, a third resistor R3, an eighth resistor R8 and a MOS tube Q1. The MOS tube Q1 is an N-channel MOS tube. The third resistor R3 and the eighth resistor R8 are two groups of resistance wires on the thermal flowmeter, serving as a bridge arm of a Wheatstone bridge. The positive power supply end of the fourth amplifier U4 is connected to a power supply VCC, the negative power supply end is connected to a power supply-VCC, the positive input end is connected to a VREF end, the negative input end is connected to one end of the second resistor R2, the other end of the second resistor R2 is grounded, the output end of the fourth amplifier U4 is connected to the gate of the MOS tube Q1, the drain of the MOS tube Q1 is connected to one end of the first resistor R1, the other end of the first resistor R1 is connected to the power supply VCC, the source of the MOS tube Q1 is connected to one end of the third resistor R3 and connected to an ADC1 of a controller and a first voltage end V1, the other end of the third resistor R3 is connected to one end of the eighth resistor R8 and an ADC3 of the controller, the ADC3 end is connected to one end of a sixth resistor in the differential amplification module, and the other end of the eighth resistor R8 is connected to an ADC2 of the controller and a second voltage end V2. The Wheatstone virtual bridge arm serves as another bridge arm of the Wheatstone bridge and comprises a third amplifier U3, a fourth resistor R4, a fifth resistor R5, a seventh resistor R7 and a twelfth resistor R12. The fifth resistor R5, the seventh resistor R7 and the twelfth resistor R12 have equal resistance values and perform voltage conversion. The calculation formula of the voltage conversion is as follows:

[0053] ;

[0054] wherein, V1 is the voltage of a point V1, V2 is the voltage of a point V2, Vout is the output voltage value of the digital-to-analog converter, V3 is the voltage of a point V3, and is the output value of the Wheatstone virtual bridge arm.

[0055] The digital-to-analog converter U2 compensates the voltage V3 of the Wheatstone virtual bridge arm part, and the digital-to-analog converter U2 adopts a digital-to-analog conversion chip model TPC116S1-VR. The differential amplification module is used for amplifying the signal output by the thermal flowmeter, and includes a first amplifier U1, a sixth resistor R6, a ninth resistor R9, a tenth resistor R10 and an eleventh resistor R11. The positive input end of the differential amplification module is connected with the third voltage V3, the negative input end is connected with the fourth voltage V4, the two gain ends are connected through the ninth resistor R9, the positive power supply end is connected with a power supply VCC, the negative power supply end is connected with a power supply-VCC, and the reference end is grounded. The output end of the differential amplification module outputs the compensated flow signal through the tenth resistor R10. The U1 selects an AD8226 instrument amplifier, and the calculation formula of the amplification multiple G is as follows:

[0056] ;

[0057] wherein, R9.

[0058] The AD8226 is a low-cost, wide power range instrument amplifier, which can set any gain between 1 and 1000 with only one external resistor, so as to adjust the amplification multiple. The output signal of the AD8226 is as follows: , and the calculation formula is as follows:

[0059]

[0060] wherein, and are the voltages of the V3 point and the V4 point respectively, is the reference voltage of the digital-to-analog converter U2.

[0061] When the external temperature changes, the fourth voltage V4 changes due to the temperature drift of the third resistor R3 and the eighth resistor R8 on the thermal flowmeter. At this time, the controller outputs the output value of the digital-to-analog converter U2, and the voltage is calculated through the Wheatstone virtual bridge arm, so as to change the third voltage V3, so that the output voltage value of the differential amplification module remains unchanged. Compared with the traditional hardware temperature compensation, the compensation circuit has the advantages of simple structure, high reliability and high precision. Compared with the digital potentiometer, the use of the digital-to-analog converter to change the output value of the Wheatstone virtual bridge arm has higher adjustment resolution, simple adjustment method and high flexibility.

[0062] As shown in Figure 5 , another embodiment of the present application provides an automatic temperature compensation method based on a thermal flowmeter, which is suitable for the automatic temperature compensation circuit based on the thermal flowmeter described in the above embodiment. The method comprises the following steps:

[0063] acquiring the flow signal collected by the thermal flowmeter;

[0064] The processed flow signal is obtained by processing the flow signal through an automatic temperature compensation circuit based on a thermal flowmeter;

[0065] The modified compensation value is obtained by determining whether to perform zero-point automatic zero compensation or flow temperature automatic compensation on the flow signal according to the processed flow signal;

[0066] The modified compensation value is transmitted to a digital-to-analog converter;

[0067] The output value of the Wheatstone virtual bridge arm is modified and compensated according to the modified compensation value by the control data converter, so that the two input voltage values of the differential amplification module are equal, and the differential amplification module outputs the compensated flow signal.

[0068] As shown in Figure 6 The specific method for determining whether to perform zero-point automatic zero compensation on the flow signal according to the processed flow signal includes:

[0069] When the valves of the thermal flowmeter are all closed, the zero-point flow is obtained;

[0070] It is determined whether the voltage value output by the differential amplification module is zero;

[0071] If not, the fifth voltage output by the current digital-to-analog converter is calculated according to the values of the first voltage, the second voltage and the fourth voltage to ensure that the two input voltage values of the differential amplification module are equal;

[0072] If yes, the output voltage value of the current digital-to-analog converter is maintained;

[0073] The thermal flowmeter displays the flow as zero.

[0074] The zero-point automatic zero compensation method specifically includes: zeroing the flowmeter at a standard temperature, changing the output value fifth voltage V5 of the digital-to-analog converter U2 to make the output value of the differential amplification module U1 zero, that is, adjusting the output value of the digital-to-analog converter U2 to make the voltage values of V3 and V4 equal, and collecting the output voltage value of the differential amplification module U1 through an ADC analog-to-digital converter or an ADC of the controller, which is the voltage value when the flow is zero. The output value V5 of the digital-to-analog converter U2 can be determined by collecting the voltages of V1 point, V2 point and V4 point through the controller, as shown in formula 3.

[0075] ;

[0076] Among them, V1 is the voltage of the V1 point, V2 is the voltage of the V2 point, V5 is the output voltage value of the digital-to-analog converter, V4 is the voltage of the V4 point.

[0077] When the outside temperature changes, the thermal flowmeter sensor changes the voltage of V1, V2 and V4 points due to the temperature drift of the resistance wire, at this time, the controller collects the voltage values of V1, V2 and V4 points, and calculates the voltage value V5 of the current digital-to-analog converter output through the formula, to ensure that the voltage values of V3 and V4 are equal, and the output value of the differential amplification module U1 is still zero, that is, the output flow value of the thermal flowmeter at this time is still zero.

[0078] As shown in Figure 7 , the specific method for automatically compensating the flow temperature when adjusting the flow signal according to the processed flow signal comprises:

[0079] obtaining a relationship function between the change of the ambient temperature and the output signal of the flow during adjustment, which is obtained in advance according to a temperature experiment;

[0080] when the outside temperature changes, obtaining the change value of the outside temperature collected by the temperature sensor, and obtaining the change value of the output voltage of the thermal flowmeter after being amplified by the differential amplification module according to the relationship function;

[0081] according to the voltage change value and the voltage amplification multiple of the differential amplification module, calculating the corresponding change of the output voltage value of the digital-to-analog converter;

[0082] correcting and compensating the output value of the Wheatstone virtual bridge arm according to the corresponding change of the voltage value.

[0083] The flow temperature is automatically compensated during adjustment. First, the temperature sensor and the thermal flowmeter compensation circuit need to be combined for temperature experiment. When the outside ambient temperature changes t℃, the signal value output by the thermal flowmeter after being amplified by the differential amplification module U1 changes xmV when the same flow passes through, and the relationship function x(t) between the change of the ambient temperature and the output signal of the flow during adjustment is obtained. Secondly, according to the calculation formula of V3, when the output voltage value of the digital-to-analog converter U2 increases or decreases 1mV, the voltage at the positive end input of the differential amplification module, i.e. V3, increases or decreases 1 / 3mV. When the outside temperature changes, the controller obtains the change value of the outside temperature through the temperature sensor, and obtains the change size of the output voltage value of the thermal flowmeter after being amplified by the differential amplification module U1 through the function x(t), which is xmV. The controller controls the output voltage value of the digital-to-analog converter U2 to change mV in the opposite direction, and G is the voltage amplification multiple of the differential amplification module U1. , R9 is 49.4KΩ. For example, when R9 = 49.4KΩ, when the ambient temperature changes 10℃, the signal value of the thermal flowmeter after being amplified by the differential amplification module changes +5mV at this time, and the output voltage value of the digital-to-analog converter U2 should change-2.5mV. According to the corresponding change of the voltage value, the output value of the Wheatstone virtual bridge arm is corrected and compensated, so that the voltage values of V3 and V4 are equal.

[0084] The automatic temperature compensation method based on the thermal flowmeter provided by the embodiment of the present application can automatically compensate the zero flow value and the flow value during adjustment of the thermal flowmeter, has higher flexibility and reliability compared with the traditional compensation method, and has higher adjustment resolution for changing the output value of the Wheatstone virtual bridge arm by using the output value of the digital-to-analog converter.

[0085] The above specific embodiments further specifically explain the purposes, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. An automatic temperature compensation circuit for a thermal flow meter, comprising: The application relates to a kind of automatic temperature compensation circuit based on thermal flowmeter, comprising: Constant current source module, Wheatstone virtual bridge arm, digital-to-analog converter and differential amplifier module; The constant current source module is used to drive the thermal flowmeter; The Wheatstone virtual bridge arm is used to obtain the change digital-to-analog converter output voltage value of the controller output, and the third voltage is obtained by voltage conversion according to the output voltage value, the first voltage and the second voltage output by the thermal flowmeter due to the change of external temperature; The Wheatstone virtual bridge arm comprises a third amplifier, a fourth resistor, a fifth resistor, a seventh resistor and a twelfth resistor, the fifth resistor, the seventh resistor and the twelfth resistor have the same resistance, the sixth pin and the seventh pin of the third amplifier are connected to one end of the fifth resistor, the eighth pin and the ninth pin of the third amplifier are connected to one end of the seventh resistor, the twelfth pin and the fourteenth pin of the third amplifier are connected to one end of the twelfth resistor, the other end of the fifth resistor, the other end of the seventh resistor and the other end of the twelfth resistor are respectively connected to the second pin of the third amplifier, the fourth resistor is connected between the third pin and the first pin of the third amplifier, the first pin of the third amplifier is V3 point, the fifth pin of the third amplifier is V1 point, the tenth pin of the third amplifier is V2 point, the thirteenth pin of the third amplifier is V5 point, and the third amplifier is connected to the digital-to-analog converter through the thirteenth pin; The calculation formula for voltage conversion according to the output voltage value, the first voltage and the second voltage output by the thermal flowmeter due to the change of external temperature is: ; wherein, V1 is the voltage at point V1, V2 is the voltage at point V2, Vout is the output voltage value of the digital-to-analog converter, V3 is the voltage at point V3, which is the output value of the virtual Wheatstone bridge arm. The digital-to-analog converter is used to correct and compensate the third voltage according to the correction compensation value calculated by the controller; The differential amplifier module is used to amplify the third voltage and the fourth voltage output by the thermal flowmeter, and output the compensated flow signal.

2. The automatic temperature compensation circuit based on a thermal flow meter according to claim 1, characterized in that The positive input end of the differential amplifier module is connected to the third voltage, the negative input end is connected to the fourth voltage, the two gain ends are connected through a resistor, the positive power supply end is connected to the power supply VCC, and the negative power supply end is connected to the power supply-VCC, and the output end of the differential amplifier module outputs the compensated flow signal.

3. The automatic temperature compensation circuit based on a thermal flow meter of claim 1, wherein, The differential amplifier module adopts AD8226 instrument amplifier.

4. The automatic temperature compensation circuit based on a thermal flow meter of claim 1, wherein, The digital-to-analog converter adopts a digital-to-analog conversion chip model TPC116S1-VR.

5. A method of automatic temperature compensation based on a thermal flow meter, characterized in that, The application relates to a kind of automatic temperature compensation circuit based on thermal flowmeter, comprising: Obtaining the flow signal collected by the thermal flowmeter; Processing the flow signal through the automatic temperature compensation circuit based on the thermal flowmeter to obtain the processed flow signal; According to the processed flow signal, the zero-point automatic zero compensation or the flow temperature automatic compensation when adjusting the flow signal is determined to obtain the correction compensation value; The correction compensation value is transmitted to the digital-to-analog converter. The control digital-to-analog converter corrects and compensates the output value of the Wheatstone virtual bridge arm according to the correction compensation value, so that the two input voltage values of the differential amplification module are equal when zero-point automatic zero compensation is performed, and when flow temperature automatic compensation is performed during adjustment, the differential amplification module uses a differential amplifier to amplify the third voltage and the fourth voltage output by the thermal flowmeter, and outputs the compensated flow signal.

6. The automatic temperature compensation method based on a thermal flow meter according to claim 5, characterized in that, The specific method for judging whether to perform zero-point automatic zero compensation on the flow signal according to the processed flow signal comprises: acquiring the zero flow when all the valves of the thermal flowmeter are in a closed state; judging whether the voltage value output by the differential amplification module is zero; if not, calculating the fifth voltage output by the current digital-to-analog converter according to the values of the first voltage, the second voltage and the fourth voltage to ensure that the voltage values of the two input terminals of the differential amplification module are equal; if yes, keeping the output voltage value of the current digital-to-analog converter; controlling the thermal flowmeter to display the flow as zero.

7. The automatic temperature compensation method based on a thermal flow meter according to claim 6, characterized in that, The calculation formula for calculating the output voltage value of the current digital-to-analog converter according to the values of the first voltage, the second voltage and the fourth voltage is: ; wherein, is the voltage at point V1, is the voltage at point V2, is the output voltage value of the digital-to-analog converter, is the voltage at point V4.

8. The automatic temperature compensation method based on a thermal flow meter according to claim 5, characterized in that, The specific method for judging whether to perform flow temperature automatic compensation on the flow signal during adjustment according to the processed flow signal comprises: acquiring a relationship function between the change of the ambient temperature and the flow output signal during adjustment according to a temperature experiment in advance; when the external temperature changes, acquiring the change value of the external temperature collected by the temperature sensor, and acquiring the change value of the output voltage of the thermal flowmeter after amplification by the differential amplification module according to the relationship function; calculating the corresponding change of the output voltage value of the digital-to-analog converter according to the voltage change value and the voltage amplification multiple of the differential amplification module; correcting and compensating the output value of the Wheatstone virtual bridge arm according to the corresponding change of the voltage value.

Citation Information

Patent Citations

  • Method and system for dynamic compensation of bi-directional flow sensor during respiratory therapy

    CN101121050A

  • Automatic temperature compensation circuit and compensation method for thermal flowmeter

    CN117824771A