Gas concentration detection method, device, equipment and medium

文档序号:1844567 发布日期:2021-11-16 浏览:6次 中文

阅读说明:本技术 气体浓度检测方法、装置、设备及介质 (Gas concentration detection method, device, equipment and medium ) 是由 李兴华 陈秀梅 卢洪钰 于 2021-09-27 设计创作,主要内容包括:本申请涉及一种气体浓度检测方法、装置、设备及介质,属于气体浓度检测的技术领域,其方法包括获取气体传感器在单种气体环境下测量得到单种气体的浓度时产生的第一电压;获取在单种气体环境下测量的单种气体的第一标准体积浓度,根据第一标准体积浓度和第一电压确定单种气体的浓度电压关系;获取气体传感器在包含有单种气体的混合气体环境下测量得到单种气体的浓度时输出的第二电压;获取气体传感器在包含有单种气体的混合气体环境下测量得到干扰单种气体的气体的浓度时输出的第三电压;根据第二电压、第三电压和浓度电压关系确定混合气体中单种气体的第二标准体积浓度。本申请具有在混合气体环境下,提升多种气体浓度的检测准确性的效果。(The application relates to a gas concentration detection method, a device, equipment and a medium, belonging to the technical field of gas concentration detection, wherein the method comprises the steps of acquiring a first voltage generated when a gas sensor measures the concentration of single gas in a single gas environment; acquiring a first standard volume concentration of a single gas measured in a single gas environment, and determining a concentration-voltage relation of the single gas according to the first standard volume concentration and a first voltage; acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured under the mixed gas environment containing the single gas; acquiring a third voltage output by the gas sensor when the concentration of the gas interfering the single gas is measured under the mixed gas environment containing the single gas; and determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration voltage relation. This application has under the mist environment, promotes the effect of the detection accuracy of multiple gas concentration.)

1. A gas concentration detection method, comprising:

acquiring a first voltage generated when the gas sensor measures the concentration of a single gas in a single gas environment;

acquiring a first standard volume concentration of the single gas measured under the single gas environment, and determining a concentration-voltage relationship of the single gas according to the first standard volume concentration and the first voltage;

acquiring a second voltage output by the gas when the concentration of the single gas is measured in a mixed gas environment containing the single gas;

acquiring a third voltage output by a gas sensor when the gas sensor measures the concentration of the gas interfering with the single gas in a mixed gas environment containing the single gas;

determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration voltage relation.

2. The method of claim 1, wherein said determining a concentration-voltage relationship for said individual gases from said first normalized volume concentration and said first voltage comprises:

fitting a concentration-voltage curve according to the first standard volume concentration and the first voltage;

and determining the concentration-voltage relation of the single gases according to the concentration-voltage curve.

3. The method of claim 2, wherein said determining a concentration-voltage relationship for said individual gases from said concentration-voltage curve comprises:

judging whether the concentration voltage curve is approximate to a straight line;

if so, determining the function relation of the concentration voltage curve as the concentration voltage relation;

if not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

4. The method of claim 1, wherein said determining a second standard volume concentration of said individual gas in the mixed gas from said second voltage, said third voltage, and said concentration-voltage relationship comprises:

acquiring a fourth voltage according to a voltage-voltage relationship among the second voltage, the third voltage and the fourth voltage, wherein the fourth voltage is generated when the gas sensor measures the concentration of the single gas in a mixed gas environment containing the single gas;

and determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and the concentration voltage relation.

5. The method of claim 4, wherein said determining a second standard volume concentration of said individual gas in the mixed gas from said second voltage, said third voltage, and said concentration voltage relationship further comprises:

acquiring a third standard volume concentration of the single gas measured in a mixed gas environment containing the single gas, and re-determining a concentration-voltage relationship of the single gas according to the third standard volume concentration and the fourth voltage;

determining a second normalized volume concentration of the single gas in the mixed gas based on the fourth voltage and the re-determined concentration-voltage relationship.

6. A gas concentration detection apparatus, characterized by comprising:

the first acquisition module is used for acquiring a first voltage generated when the gas sensor measures the concentration of a single gas under the environment of the single gas;

a first determining module for obtaining a first standard volume concentration of the single gas measured under the single gas environment, and determining a concentration-voltage relationship of the single gas according to the first standard volume concentration and the first voltage;

the second acquisition module is used for acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured under the mixed gas environment containing the single gas;

the third acquisition module is used for acquiring a third voltage output by the gas sensor when the gas sensor measures the concentration of the gas interfering with the single gas in a mixed gas environment containing the single gas; and

a second determination module for determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration-voltage relationship.

7. The apparatus of claim 6, wherein the first determining module is specifically configured to:

fitting a concentration-voltage curve according to the first standard volume concentration and the first voltage;

determining the concentration-voltage relationship of the single gas according to the concentration-voltage curve;

wherein the first determining module is further specifically configured to:

judging whether the concentration voltage curve is approximate to a straight line;

if so, determining the function relation of the concentration voltage curve as the concentration voltage relation;

if not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

8. The apparatus of claim 6, wherein the second determining module is specifically configured to:

acquiring a fourth voltage according to a voltage-voltage relationship among the second voltage, the third voltage and the fourth voltage, wherein the fourth voltage is generated when the gas sensor measures the concentration of the single gas in a mixed gas environment containing the single gas;

determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and the concentration-voltage relation;

wherein the second determining module is further specifically configured to:

acquiring a third standard volume concentration of the single gas measured in a mixed gas environment containing the single gas, and re-determining a concentration-voltage relationship of the single gas according to the third standard volume concentration and the fourth voltage;

determining a second normalized volume concentration of the single gas in the mixed gas based on the fourth voltage and the re-determined concentration-voltage relationship.

9. A gas concentration detection apparatus comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method of any one of claims 1 to 5.

10. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes the method of any one of claims 1 to 5.

Technical Field

The present disclosure relates to the field of gas concentration detection technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting a gas concentration.

Background

A gas sensor is a transducer that converts a certain gas volume fraction into a corresponding electrical signal, and reflects the concentration of the gas, for example, by a voltage value, so that the concentration of the measured gas can be queried using the gas sensor.

However, at present, when a single gas is detected, the single gas is generally interfered by other gases, for example, in an air quality micro-station, the concentration of the gas is detected by using a device integrated with a plurality of gas sensors, and the gases are mixed together to influence each other, so that the accuracy of the device for detecting the concentrations of a plurality of different gases is reduced.

Disclosure of Invention

In order to improve the detection accuracy of various gas concentrations in a mixed gas environment, the application provides a gas concentration detection method, a device, equipment and a medium.

In a first aspect, the present application provides a gas concentration detection method, which adopts the following technical scheme:

a gas concentration detection method, comprising:

acquiring a first voltage generated when the gas sensor measures the concentration of a single gas in a single gas environment;

acquiring a first standard volume concentration of the single gas measured under the single gas environment, and determining a concentration-voltage relationship of the single gas according to the first standard volume concentration and the first voltage;

acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured in a mixed gas environment containing the single gas;

acquiring a third voltage output by a gas sensor when the gas sensor measures the concentration of the gas interfering with the single gas in a mixed gas environment containing the single gas;

determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration voltage relation.

By adopting the technical scheme, under the single gas environment, the voltage output by the gas sensor when the concentration of the single gas is measured is equal to the generated first voltage, and the voltage is accurate, so that the concentration voltage relation of the single gas obtained by the first voltage is accurate; in the mixed gas environment, when the concentration of a single gas is detected, the interference of other gases can be caused, so that the measured concentration and the voltage output by the gas sensor when the concentration is measured are inaccurate; the voltage generated when the gas sensor measures the concentration of the single gas in the mixed gas environment containing the single gas is determined through the second voltage and the third voltage, and the accurate second standard volume concentration of the single gas is obtained through the relation between the generated voltage and the concentration voltage, so that the interference of other gases on the concentration detection of the detected single gas can be better reduced in the mixed gas environment, and the detection accuracy of the concentration of each single gas is improved.

Preferably, said determining a concentration-voltage relationship for said individual gases from said first standard volume concentration and said first voltage comprises:

fitting a concentration-voltage curve according to the first standard volume concentration and the first voltage;

and determining the concentration-voltage relation of the single gases according to the concentration-voltage curve.

Preferably, the determining the concentration-voltage relationship of the individual gases from the concentration-voltage curve comprises:

judging whether the concentration voltage curve is approximate to a straight line;

if so, determining the function relation of the concentration voltage curve as the concentration voltage relation;

if not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

By adopting the technical scheme, the more the concentration voltage curve is approximate to a straight line, the more accurate the determined concentration voltage relationship is, so that when the concentration voltage curve is not approximate to a straight line, the concentration voltage curve is divided into a plurality of sections of approximate straight lines, and the function relation of the plurality of sections of approximate straight lines is determined as the concentration voltage relationship, so that the determined concentration voltage relationship is more accurate.

Preferably, the determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration-voltage relationship comprises:

acquiring a fourth voltage according to a voltage-voltage relationship among the second voltage, the third voltage and the fourth voltage, wherein the fourth voltage is generated when the gas sensor measures the concentration of the single gas in a mixed gas environment containing the single gas;

and determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and the concentration voltage relation.

Preferably, the determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration-voltage relationship further comprises:

acquiring a third standard volume concentration of the single gas measured in a mixed gas environment containing the single gas, and re-determining a concentration-voltage relationship of the single gas according to the third standard volume concentration and the fourth voltage;

determining a second normalized volume concentration of the single gas in the mixed gas based on the fourth voltage and the re-determined concentration-voltage relationship.

In a second aspect, the present application provides a gas concentration detection apparatus, which adopts the following technical solution:

a gas concentration detection apparatus comprising:

the first acquisition module is used for acquiring a first voltage generated when the gas sensor measures the concentration of a single gas under the environment of the single gas;

a first determining module for obtaining a first standard volume concentration of the single gas measured under the single gas environment, and determining a concentration-voltage relationship of the single gas according to the first standard volume concentration and the first voltage;

the second acquisition module is used for acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured under the mixed gas environment containing the single gas;

the third acquisition module is used for acquiring a third voltage output by the gas sensor when the gas sensor measures the concentration of the gas interfering with the single gas in a mixed gas environment containing the single gas; and

a second determination module for determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration-voltage relationship.

By adopting the technical scheme, under the single gas environment, the voltage output by the gas sensor when the concentration of the single gas is measured is equal to the generated first voltage, and the voltage is accurate, so that the concentration voltage relation of the single gas obtained by the first voltage is accurate; in the mixed gas environment, when the concentration of a single gas is detected, the interference of other gases can be caused, so that the measured concentration and the voltage output by the gas sensor when the concentration is measured are inaccurate; the voltage generated when the gas sensor measures the concentration of the single gas in the mixed gas environment containing the single gas is determined through the second voltage and the third voltage, and the accurate second standard volume concentration of the single gas is obtained through the relation between the generated voltage and the concentration voltage, so that the interference of other gases on the concentration detection of the detected single gas can be better reduced in the mixed gas environment, and the detection accuracy of the concentration of the multiple single gases is improved.

Preferably, the first determining module is specifically configured to:

fitting a concentration-voltage curve according to the first standard volume concentration and the first voltage;

determining the concentration-voltage relationship of the single gas according to the concentration-voltage curve;

wherein the first determining module is further specifically configured to:

judging whether the concentration voltage curve is approximate to a straight line;

if so, determining the function relation of the concentration voltage curve as the concentration voltage relation;

if not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

Preferably, the second determining module is specifically configured to:

acquiring a fourth voltage according to a voltage-voltage relationship among the second voltage, the third voltage and the fourth voltage, wherein the fourth voltage is generated when the gas sensor measures the concentration of the single gas in a mixed gas environment containing the single gas;

determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and the concentration-voltage relation;

wherein the second determining module is further specifically configured to:

acquiring a third standard volume concentration of the single gas measured in a mixed gas environment containing the single gas, and re-determining a concentration-voltage relationship of the single gas according to the third standard volume concentration and the fourth voltage;

determining a second normalized volume concentration of the single gas in the mixed gas based on the fourth voltage and the re-determined concentration-voltage relationship.

In a third aspect, the present application provides a gas concentration detection apparatus, which adopts the following technical scheme:

a gas concentration detection apparatus comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the gas concentration detection method of any one of the first aspects.

In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:

a computer-readable storage medium storing a computer program that can be loaded by a processor and executes the gas concentration detection method according to any one of the first aspect.

Drawings

Fig. 1 is a schematic flow chart of a gas concentration detection method provided in an embodiment of the present application.

Fig. 2 is a block diagram of a gas concentration detection apparatus according to an embodiment of the present application.

Fig. 3 is a schematic structural diagram of a gas concentration detection apparatus according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.

The present embodiment provides a gas concentration detection method applied to a gas concentration detection apparatus, as shown in fig. 1, whose main flow is described as follows (steps S101 to S105):

step S101: a first voltage generated when the gas sensor measures the concentration of a single gas in a single gas environment is obtained.

In the present embodiment, the single gas atmosphere refers to an atmosphere containing only one single gas; under the single gas environment, the gas sensor measures the concentration of the single gas as a first mass concentration C1

In the case where only a single gas is introduced, the gas concentration detecting apparatus acquires data including the first mass concentration C of the single gas to be measured once per minute1Unit thereof is ug/m3Indicating, output Zero-point voltage Zero1Output sensitivity Coeff1And the molecular weight WM of the gas, and the first voltage V of the measured gas is calculated through the data1. Wherein the first voltage V1Obtaining a first mass concentration C for measurement1The voltage output by the gas sensor. The first mass concentration C is measured because the gas is not interfered by other gases under the environment of a single gas1The voltage output by the gas sensor is equal to the first mass concentration C obtained by measurement1The voltage generated by the gas sensor (the voltage generated by the gas sensor is the exact voltage).

A first voltage V1The calculation formula of (a) is as follows:

V1=(C1*22.4/(WM*Coeff1))+Zero1

for example, when the only gas introduced is CO gas, the first mass concentration of CO gas is C1(CO), the molecular weight of the CO gas, WM (CO), being equal to 28, the gas concentration detection deviceOutput Zero voltage Zero when obtaining CO gas by detection1(CO) 774mV, output sensitivity Coeff1(CO) was 2.46.

Calculating and measuring to obtain a first mass concentration C according to the following formula1First voltage V generated by gas sensor during (CO)1(CO):

V1(CO)=(C1(CO)*22.4/(WM(CO)*Coeff1(CO)))+Zero1(CO)=(C1(CO)*22.4/(28*2.46))+774mV。

When only one gas is introduced as SO2、NO2、O3Or TVOC gas, the method of calculating the first voltage of the corresponding gas sensor and the first voltage V of the gas sensor for measuring CO gas described above1The principle of (CO) is the same and will not be described in detail here.

Step S102: a first standard volume concentration of the individual gas measured in the individual gas environment is obtained, and a concentration-voltage relationship of the individual gas is determined based on the first standard volume concentration and the first voltage.

In this example, the first standard volume concentration CAThe volume concentration of a single gas, measured in ppb in a single gas environment for standard equipment. This volume concentration is considered as an accurately measured volume concentration. However, the standard equipment is 1 equipment which can only detect one gas and is high in cost, and in this embodiment, the gas sensor for the gas concentration detection equipment is a PID sensor, and one gas concentration detection equipment can detect a plurality of gases such as CO and SO2、NO2、O3And TVOC gas, and the equipment cost is low.

It is noted that, generally, the mass concentration of the measured gas is directly measured and displayed by the gas sensor in the gas concentration detection device, and the mass concentration and the volume concentration are different unit expressions of the gas, and can be converted into each other.

Specifically, the volume concentration is defined as C ', the mass concentration is defined as C, and the formula for converting the mass concentration C into the volume concentration C' is as follows:

C′=C*22.4/WM;

where 22.4 is the average molar volume of air in the standard state.

Taking the volume concentration of CO C' (CO) as an example:

C′(CO)=C(CO)*22.4/WM(CO)。

it should be noted that, in general, when converting the mass concentration C into the volume concentration C', the atmospheric ambient temperature and the atmospheric pressure are also required, but in the present embodiment, the detected gas is detected as an indoor environment, and the changes of the atmospheric ambient temperature and the atmospheric pressure are negligible.

In the later stage calculation of this embodiment, the first voltage V needs to be obtained1With a first standard volume concentration CATherefore, in order to facilitate the later calculation, the gas concentration detection apparatus is set to measure the first mass concentration C of a single gas at the gas sensor1Then, the first voltage V is directly applied1And calculating, uploading and displaying.

Next, since the gas concentration detection apparatus can upload data every minute, the first voltage V can be acquired every minute1And simultaneously, the first standard volume concentration C uploaded by the standard equipment is also obtained in real timeA

According to the acquired first voltage V1And a first standard volume concentration CAAnd fitting a concentration voltage curve. Specifically, a matlab curve fitting method is adopted to obtain a first voltage V1As abscissa data, first standard volume concentration CAA concentration voltage curve was fitted to the ordinate data.

Judging whether the concentration voltage curve is approximate to a straight line;

(1) if yes, determining the function relation of the concentration voltage curve as the concentration voltage relation.

In particular, a first standard volume concentration CAAnd a first voltage V1The relationship between them is:

CA=A*V1-B;

wherein A and B are constants.

And due to CA=Coeff2*(V1-Zero2)=Coeff2*V1-Coeff2*Zero2

Wherein Coeff2Obtaining a first mass concentration C for detection1Actual sensitivity of time, Zero2Obtaining a first mass concentration C for detection1The actual zero voltage of time.

Accordingly, Coeff2=A,Zero2=B/Coeff2

Taking CO gas as an example, the functional relation of the concentration voltage curve obtained by experiments is as follows:

CA(CO)=2.2237V1(CO)-1342.8≈2.2237(V1(CO)-604);

from this functional relationship, Coeff2(CO)=2.2237,Zero2(CO)≈604mV。

Similarly, experiments have shown that when the single gas is SO2、NO2Or O3The concentration-voltage curve is also approximately linear. The details are as follows:

when the single gas is SO2When in gas:

CA(SO2)=0.4393V1(SO2)-219.02≈0.4393*(V1(SO2)-498);

from this functional relationship, Coeff2(SO2)=0.4393,Zero2(SO2)=498mV。

When the single gas is NO2When in gas:

CA(NO2)=0.4299V1(NO2)-315.3≈0.4299*(V1(NO2)-733);

from this functional relationship, Coeff2(NO2)=0.4299,Zero2(NO2)=733mV。

When the single gas is O3When in gas:

CA(O3)=0.4267V1(O3)-328.47≈0.4267*(V1(O3)-770);

from this functional relationship, Coeff2(O3)=0.4267,Zero2(O3)=770mV。

(2) If not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

Taking the TVOC gas as an example, if the overall concentration-voltage curve is not similar to a straight line, the concentration-voltage curve of the TVOC gas is divided into a plurality of sections of similar straight lines.

Specifically, the first voltage V is applied1(TVOC) when the concentration voltage curve is greater than or equal to 400mV, as an approximate straight line, the function relation of the approximate straight line is as follows:

CA(TVOC)=6.636V1(TVOC)+1102.3;

applying a first voltage V1(TVOC) a concentration voltage curve at 200mV or more and less than 400mV as an approximation straight line having a functional relationship as follows:

CA(TVOC)=11.485V1(TVOC)-715.67;

applying a first voltage V1(TVOC) a concentration voltage curve at 130mV or more and less than 200mV as an approximation straight line having a functional relationship as follows:

CA(TVOC)=13.968V1(TVOC)-1303.6;

applying a first voltage V1(TVOC) concentration voltage curve at 120mV or more and 130mV or less as an approximate line having a functional relationship of:

CA(TVOC)=19.592V1(TVOC)-2343.1;

applying a first voltage V1(TVOC) the concentration voltage curve at less than 120mV being taken as an approximation line, the function of which is:

CA(TVOC)=5.2135V1(TVOC)-566.45。

step S103: and acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured under the mixed gas environment containing the single gas.

Step S104: and acquiring a third voltage output by the gas sensor when the gas sensor measures the concentration of the gas interfering the single gas in the mixed gas environment containing the single gas.

Step S105: and determining a second standard volume concentration of the single gas in the mixed gas according to the second voltage, the third voltage and the concentration voltage relation.

Next, steps S103 to S105 will be collectively explained and explained as follows:

acquiring a second mass concentration of the single gas measured by the gas sensor in the mixed gas environment containing the single gas, and determining a first volume concentration C of the single gas measured by the gas sensor in the mixed gas environment containing the single gas according to the second mass concentration2(ii) a Obtaining a third mass concentration of the gas disturbing the single gas measured by the gas sensor in the mixed gas environment containing the single gas, and determining a second volume concentration C of the gas disturbing the single gas measured by the gas sensor in the mixed gas environment containing the single gas according to the third mass concentration3. Determining a first volume concentration C from the second mass concentration2Determining a second volumetric concentration C based on the third mass concentration3The principle of (2) is consistent with the principle of converting the mass concentration C into the volume concentration C' in step S102, and is not described herein again.

For the convenience of later calculation, the gas concentration detection device is set to directly measure the first volume concentration C after the gas sensor measures the second mass concentration of the single gas2Calculating, uploading and displaying; after the gas sensor measures the third mass concentration of the single gas, the second volume concentration C is directly measured3And calculating, uploading and displaying. Corresponding to the concentration measured by the gas sensor being the first volume concentration C2And a second volume concentration C3

Determining according to the second mass concentrationMeasuring to obtain a first volume concentration C2Second voltage V output by time gas sensor2(ii) a Determining a second volumetric concentration C measured from the third mass concentration3Third voltage V output by time gas sensor3. Calculating to obtain a second voltage V according to the second mass concentration2According to the third mass concentration to obtain a third voltage V3Is the same as that according to C in step S1011Calculating to obtain V1The principle of (A) is consistent, and the detailed description is omitted.

Under the mixed gas environment, when the single gas to be measured is interfered by other gases, the second mass concentration measured by the gas sensor is inaccurate, and the first volume concentration C determined by the second mass concentration2And a second voltage V2Is inaccurate, and the first volume concentration C is determined and measured by acquiring accurate voltage2Fourth voltage V generated by time gas sensor4

In this example, the second standard volume concentration CBThe accurate concentration of the single gas is calculated under the mixed gas environment containing the single gas.

As can be appreciated from step S102,

second standard volume concentration C of CO gasB(CO) and a fourth voltage V4The relationship between (CO) is:

CB(CO)=2.2237(V4(CO)-604);

SO2second standard volume concentration C of gasB(SO2) And a fourth voltage V4(SO2) The relationship between them is:

CB(SO2)=0.4393*(V4(SO2)-498);

NO2second standard volume concentration C of gasB(NO2) And a fourth voltage V4(NO2) The relationship between them is:

CB(NO2)=0.4299*(V4(NO2)-733);

O3first of a gasTwo standard volume concentrations CB(O3) And a fourth voltage V4(O3) The relationship between them is:

CB(O3)=0.4267*(V4(O3)-770);

second standard volume concentration C of TVOC gasB(TVOC) and fourth voltage V4The relationship between (TVOC) is:

when the fourth voltage V4(TVOC) of 400mV or more:

CB(TVOC)=6.636V4(TVOC)+1102.3;

when the fourth voltage V4(TVOC) 200mV or more and less than 400 mV:

CB(TVOC)=11.485V4(TVOC)-715.67;

when the fourth voltage V4(TVOC) 130mV or more and 200mV or less:

CB(TVOC)=13.968V4(TVOC)-1303.6;

when the fourth voltage V4(TVOC) 120mV or more and 130mV or less:

CB(TVOC)=19.592V4(TVOC)-2343.1;

when the fourth voltage V4(TVOC) less than 120 mV:

CB(TVOC)=5.2135V4(TVOC)-566.45。

passing through the second standard volume concentration CBAnd a fourth voltage V4The relationship between them can be known, in order to obtain the accurate volume concentration, i.e. the second standard volume concentration CBFirst, the fourth voltage V is obtained4

In particular, in CO, SO2、NO2、O3And the TVOC five gases, which gas sensors measuring a single gas are interfered by other gases.

With SO2Gas as an example, measuring SO2Gas sensor of gas is subjected to NO2And O3The effect of two gases: in the presence of SO only2Introducing NO in the gas environment2Gas, during which SO is detected separately2And NO2Volume concentration of gas in the presence of NO2After the gas, with NO2Increase of gas, measured SO2The volume concentration of the gas is gradually reduced, so that the linear fitting is carried out on the concentrations of the two gases, the fitting first-order coefficient is less than 0, and NO can be obtained2Gas pair measurement of SO2Is negatively responsive.

In the presence of SO only2Introducing O in a gas environment3Gas, during which SO is detected separately2And O3Volume concentration of gas in the presence of O3After the gas, with O3Increase of gas, measured SO2The volume concentration of the gas is gradually reduced, so that the linear fitting is carried out on the concentrations of the two gases, the fitting first-order coefficient is less than 0, and O can be obtained3Gas pair measurement of SO2Is negatively responsive.

In the presence of SO only2Firstly introducing NO in the gas environment2Gas, then O is introduced3Gas, during which process SO is detected in real time2、NO2And O3Volume concentration of three gases in the presence of NO2And O3After the gas, with NO2And O3Increase of gas, measured SO2The volume concentration of the gas is gradually reduced, linear fitting is carried out on the three gases, and the fitting coefficient is smaller than 0.

In summary, NO2And O3Gas pair measurement of SO2Is negatively responsive.

SO is obtained through calculation and measurement by a matlab curve fitting method2First volume concentration C of gas2(SO2) Fourth voltage V generated by time gas sensor4(SO2) And measuring to obtain SO2First volume concentration C of gas2(SO2) Second voltage V output by time gas sensor2(SO2) Measuring to obtain NO2Second volumetric concentration C of gas3(NO2) Third voltage V output by time gas sensor3(NO2) Measured to obtain O3Second volumetric concentration C of gas3(O3) Third voltage V output by time gas sensor3(O3) With respect to the voltage-voltage relationship, and determining the voltage-voltage relationship as a fourth voltage V4(SO2) And a second voltage V2(SO2) A third voltage V3(NO2) A third voltage V3(O3) Voltage-voltage relationship between.

The voltage-voltage relationship obtained by data fitting is:

V4(SO2)=0.7634*V2(SO2)+0.9244*V3(NO2)+0.6098*V3(O3)-1272.3。

by measuring SO2The gas sensor of the gas obtains a second voltage V2(SO2) (ii) a By measuring NO2The gas sensor of the gas obtains a third voltage V3(NO2) (ii) a By measuring O3The gas sensor of the gas obtains a third voltage V3(O3) (ii) a Will V2(SO2)、V3(NO2) And V3(O3) Substituting into the above voltage-voltage relation to obtain a fourth voltage V4(SO2)。

According to a fourth voltage V to further increase4The second standard volume concentration C obtainedBIn this embodiment, the concentration-voltage relationship is further determined.

Specifically, a third standard volume concentration C of the single gas measured by the standard equipment in the mixed gas environment containing the single gas is obtainedCAnd the third standard volume concentration CCThe concentration is considered to be accurate.

Based on matlab curve fitting method, according to the obtained fourth voltage V4And a third standard volume concentration CCConcentration-voltage curves were fitted. Note that the fourth voltage V at this time4And thirdStandard volume concentration CCCorresponding to the data obtained from the detection of the same single gas.

Judging whether the concentration-voltage curve is approximate to a straight line; if so, taking the corresponding functional relation of the concentration-voltage curve or the functional relation of a plurality of approximate straight lines divided by the concentration-voltage curve as the re-determined concentration-voltage relation, and if not, dividing the concentration-voltage curve into a plurality of approximate straight lines and taking the functional relation of the plurality of approximate straight lines divided by the concentration-voltage curve as the re-determined concentration-voltage relation.

With SO2Gas is taken as an example: according to the obtained fourth voltage V4(SO2) And a third standard volume concentration CC(SO2) Fitting a concentration-voltage curve which is not approximate to a straight line, dividing the concentration-voltage curve into a plurality of approximate straight lines, and taking the functional relation of the plurality of approximate straight lines divided by the concentration-voltage curve as the re-determined SO2Concentration voltage relationship of the gas.

Wherein, is derived from SO2The functional relation of a plurality of approximate straight lines divided by the concentration-voltage curve of the gas is specifically as follows:

will V4(SO2) The concentration-voltage curve when the concentration is more than or equal to 600mV is taken as an approximate straight line, and the functional relation of the approximate straight line is as follows:

CC(SO2)=0.5139*V4(SO2)-205.36;

when V is4(SO2) The concentration-voltage curve at less than 600mV is taken as an approximate line, and the functional relation of the approximate line is as follows:

CC(SO2)=0.776*(V4(SO2)-471)。

therefore, when V4(SO2) A second standard volume concentration C of 600mV or moreB(SO2) The calculation formula of (2) is as follows:

CB(SO2)=0.5139*V4(SO2)-205.36;

when V is4(SO2) A second standard volume concentration C of less than 600mVB(SO2) The calculation formula of (2) is as follows:

CB(SO2)=0.776*(V4(SO2)-471)。

the fourth voltage V to be obtained4(SO2) Substituted into the corresponding second standard volume concentration CB(SO2) In the calculation formula (2), SO is obtained2Second standard volume concentration C of gasB(SO2)。

When the third mass concentration measured by the gas sensor is inaccurate when the gas interfering with the single gas is also interfered by other gases, the second volume concentration C determined by the third mass concentration3And a third voltage V3Is inaccurate, and the accurate voltage of the gas interfering with the single gas is required to be obtained and taken as the third voltage V3For calculating a second standard volume concentration C of a single gasB. Thus, the gas interfering with the individual gas is used as the measured individual gas whose measured volume concentration is the first volume concentration C2The volume concentration of the gas interfering with the single gas is the second volume concentration C3Then obtaining a measurement to obtain a first volume concentration C2Fourth voltage V generated by time gas sensor4I.e. the exact voltage, the fourth voltage V4And the above calculation V4(SO2) The principle of (2) is the same, and the detailed description is omitted here.

When individual gases interfere with each other, e.g. NO2Gas and O3Mutual interference among gases: in the presence of NO only2Introducing O in a gas environment3Gas, with O3Increase of gas, measured NO2The higher the gas volume concentration, and therefore, O3Gas pair measurement of NO2The gas sensor of the gas is positively responsive; firstly containing only O3Introducing NO in the gas environment2Gas with NO2Increase of gas, measured O3The higher the gas volume concentration, and therefore, the NO2Gas pair measurement O3Gas sensors for gases are also positively responsive.

Thus, the measurement in the above gives NO2Second volumetric concentration C of gas3(NO2) Third voltage V output by time gas sensor3(NO2) And measuring to obtain O3Second volumetric concentration C of gas3(O3) Third voltage V output by time gas sensor3(O3) Is inaccurate when the measurement to obtain NO is required2Second volumetric concentration C of gas3(NO2) The voltage generated by the gas sensor and the measurement result O3Second volumetric concentration C of gas3(O3) The voltage generated by the gas sensor is used as the accurate voltage.

Specifically, when O3Detecting O when the gas is a single gas to be measured3O measured by gas sensor of gas volume concentration3The volume concentration of the gas is a first volume concentration C2(O3),NO2Gas as interference detection O3Gas of gas sensor for gas volume concentration, detecting NO2NO measured by gas sensor of gas volume concentration2The volume concentration of the gas being the second volume concentration C3(NO2)。

In the introduction of NO2Before the gas, the first volume concentration C2(O3) A stable value, the calculated second voltage V2(O3) Is also a stable value, and the stable value is taken as the initial voltage VInitial(O3). In the introduction of NO2After the gas, the first volume concentration C2(O3) At this time, the first volume concentration C is calculated and measured2(O3) Second voltage V output by time gas sensor2(O3) The calculation principle of which is as described above with reference to the first mass concentration C1Calculating to obtain a first voltage V1The principle of (A) is consistent, and the detailed description is omitted.

According to VInitial(O3) And V2(O3) Calculating and measuring to obtain a first volume concentration C2(O3) Influenced voltage V of time gas sensorInfluence of(O3) The concrete formula is as follows:

Vinfluence of(O3)=V2(O3)-VInitial(O3)。

Calculation of measured NO2Second volumetric concentration C of gas3(NO2) Third voltage V output by time gas sensor3(NO2) According to the acquired VInfluence of(O3) And V3(NO2) Fitting the first curve and determining the functional relationship of the first curve as:

Vinfluence of(O3)=1.9891*V3(NO2)-1514。(1)

However, when measuring NO2Gas sensors for gases are also subjected to O3Gas influence, so that, in practical calculations, NO is measured2First volume concentration C of gas2(NO2) Fourth voltage V generated by time gas sensor4(NO2) Substitution of V in formula (1)3(NO2). After substitution, the following formula is obtained:

Vinfluence of(O3)=1.9891*V4(NO2)-1514。(2)

When NO is present2Detection of NO when gas is a single gas to be measured2NO measured by gas sensor of gas volume concentration2The volume concentration of the gas is a first volume concentration C2(NO2),O3Gas as interference detection of NO2Gas of gas sensor for gas volume concentration, detecting O3O measured by gas sensor of gas volume concentration3The volume concentration of the gas being the second volume concentration C3(O3)。

At the introduction of O3Before the gas, the first volume concentration C2(NO2) Is a stable value, then calculatedTo a second voltage V2(NO2) Is also a stable value, and the stable value is taken as the initial voltage VInitial(NO2). At the introduction of O3After the gas, the first volume concentration C2(NO2) At this time, the first volume concentration C is calculated and measured2(NO2) Second voltage V output by time gas sensor2(NO2) The calculation principle of which is as described above with reference to the first mass concentration C1Calculating to obtain a first voltage V1The principle of (A) is consistent, and the detailed description is omitted.

According to VInitial(NO2) And V2(NO2) Calculating and measuring to obtain a first volume concentration C2(NO2) Influenced voltage V of time gas sensorInfluence of(NO2) The concrete formula is as follows:

Vinfluence of(NO2)=V2(NO2)-VInitial(NO2)。

Calculated and measured to obtain O3Second volumetric concentration C of gas3(O3) Third voltage V output by time gas sensor3(O3) According to the acquired VInfluence of(NO2) And V3(O3) Fitting a second curve and determining the functional relationship of the second curve as:

Vinfluence of(NO2)=0.9205*V3(O3)-712.89。(3)

However, when measuring O3Gas sensors for gases are also subjected to NO2Gas influence, so that in practical calculations, it is necessary to obtain O by measurement3First volume concentration C of gas2(O3) Fourth voltage V generated by time gas sensor4(O3) Substitution of V in formula (3)3(O3). After substitution, the following formula is obtained:

Vinfluence of(NO2)=0.9205*V4(O3)-712.89。(4)

In a gasIn the actual measurement of the sensor, NO is measured2The voltage value of the gas sensor is not only influenced by NO2The influence of the gas is also influenced by O3Influence of gas (positive response), likewise, O is measured3The voltage value of the gas sensor is not only influenced by O3Influence of gases, also by NO2Influence of gas (positive response).

Thus, the measurement yields O3First volume concentration C of gas2(O3) Second voltage V output by time gas sensor2(O3) Is equal to obtaining O by measurement3First volume concentration C of gas2(O3) Fourth voltage V generated by time gas sensor4(O3) And measuring to obtain a first volume concentration C2(O3) Influenced voltage V of time gas sensorInfluence of(O3) According to the formula (2), the second voltage V2(O3) The calculation formula of (a) is as follows:

V2(O3)=V4(O3)+Vinfluence of(O3)=V4(O3)+1.9891*V4(NO2)-1514。(5)

Similarly, NO is measured2First volume concentration C of gas2(NO2) Second voltage V output by time gas sensor2(NO2) Is equal to obtaining measured NO2First volume concentration C of gas2(NO2) Fourth voltage V generated by time gas sensor4(NO2) And measuring to obtain a first volume concentration C2(NO2) Influenced voltage V of time gas sensorInfluence of(NO2) According to the formula (4), the second voltage V2(NO2) The calculation formula of (a) is as follows:

V2(NO2)=V4(NO2)+Vinfluence of(NO2)=V4(NO2)+0.9205*V4(O3)-712.89。(6)

Calculated by equations (5) and (6):

V2(NO2)=V4(NO2)+(V2(O3)-(1.9891*V4(NO2)-1514))*0.9205-712.89;

V2(NO2)-680.747-V2(O3)*0.9205≈V4(NO2)-1.83*V4(NO2);

then measured to obtain NO2Fourth voltage V generated by the gas sensor when the volume concentration of the gas is4(NO2) And measuring to obtain O3Fourth voltage V generated by the gas sensor when the volume concentration of the gas is4(O3) The calculation formula of (2). The specific calculation formula is as follows:

V4(NO2)=(V2(NO2)-680.747-V2(O3)*0.9205)/(-0.83);

V4(O3)=V2(O3)-((V2(NO2)-680.747-V2(O3)*0.9205)/(-0.83))*1.9891+1514。

notably, when NO is present2Detection of NO when gas is a single gas to be measured2NO measured by gas sensor of gas volume concentration2The volume concentration of the gas is a first volume concentration C2(NO2) Measuring to obtain a first volume concentration C2(NO2) The voltage output by the time gas sensor is a second voltage V2(NO2);O3Gas as interference detection of NO2Gas of gas sensor for gas volume concentration, detecting O3O measured by gas sensor of gas volume concentration3The volume concentration of the gas being the second volume concentration C3(O3) Measuring to obtain a second volume concentration C3(O3) The voltage output by the time gas sensor is a third voltage V3(O3)。

When O is present3Gas (es)As a single gas to be measured, O is detected3O measured by gas sensor of gas volume concentration3The volume concentration of the gas is a first volume concentration C2(O3) Measuring to obtain a first volume concentration C2(O3) The voltage output by the time gas sensor is a second voltage V2(O3);NO2Gas as interference detection O3Gas of gas sensor for gas volume concentration, detecting NO2NO measured by gas sensor of gas volume concentration2The volume concentration of the gas being the second volume concentration C3(NO2) Measuring to obtain a second volume concentration C3(NO2) The voltage output by the time gas sensor is a third voltage V3(NO2)。

Therefore, when NO is present2Determining NO measured when the gas is a single gas to be measured2Fourth voltage V generated by the gas sensor when the volume concentration of the gas is4(NO2) Is a voltage-voltage relation, and the voltage-voltage relation is determined as the measurement NO2Fourth voltage V of gas sensor4(NO2) And a second voltage V2(NO2) Measuring O3Third voltage V of gas sensor3(O3) Voltage-voltage relationship between. The specific calculation formula is as follows:

V4(NO2)=(V2(NO2)-680.747-V3(O3)*0.9205)/(-0.83)。(7)

when O is present3Determining the measurement to obtain O when the gas is used as a single gas to be measured3Fourth voltage V generated by the gas sensor when the volume concentration of the gas is4(O3) Is a voltage-voltage relation, and the voltage-voltage relation is determined as a measurement O3Fourth voltage V of gas sensor4(O3) And a second voltage V2(O3) Measuring NO2Third voltage V of gas sensor3(NO2) In-line with the aboveVoltage-voltage relationship between. The specific calculation formula is as follows:

V4(O3)=V2(O3)-((V3(NO2)-680.747-V2(O3)*0.9205)/(-0.83))*1.9891+1514。(8)

obtaining the fourth voltage V according to equation (7)4(NO2) According to the obtained fourth voltage V4(NO2) And a third standard volume concentration C measured by a standard deviceC(NO2) Fitting a concentration-voltage curve which is approximate to a straight line, and corresponding the NO to the curve2The functional relation of the concentration voltage curve of the gas is used as the re-determined concentration voltage relation.

Therefore, V calculated by the formula (7)4(NO2) Substitution into NO2Second standard volume concentration C of gasB(NO2) And a fourth voltage V4(NO2) The relation between4(NO2)=0.4299*(V4(NO2) -733) to obtain NO2Second standard volume concentration C of gasB(NO2)。

Obtaining the fourth voltage V according to the formula (8)4(O3) According to the obtained fourth voltage V4(O3) And a third standard volume concentration C measured by a standard deviceC(O3) Fitting a concentration-voltage curve which is approximate to a straight line, and then corresponding the concentration-voltage curve to O3The functional relation of the concentration voltage curve of the gas is used as the re-determined concentration voltage relation.

Therefore, V calculated by the formula (8)4(O3) Substituted into O3Second standard volume concentration C of gasB(O3) And a fourth voltage V4(O3) Relation C betweenB(O3)=0.4267*(V4(O3) -770) to obtain O3Second standard volume concentration C of gasB(O3)。

In addition, V obtained by calculation4(NO2) As V3(NO2) V to be calculated4(O3) As V3(O3) Substituted into V4(SO2)=0.7634*V2(SO2)+0.9244*V3(NO2)+0.6098*V3(O3) -1272.3, measured to obtain SO2First volume concentration C of gas2(SO2) Fourth voltage V generated by time gas sensor4(SO2)。

When the gas sensor for detecting a single gas is not interfered by other gases or is interfered to a small extent, for example, the interference between the CO gas and the TVOC gas is small, the first volume concentration C can be directly obtained by measurement2Second voltage V output by time gas sensor2As a fourth voltage V4Substituted into the corresponding second standard volume concentration CBAnd a fourth voltage V4In the relation between to obtain a second standard volume concentration CB

In order to better implement the method, the embodiment of the present application further provides a gas concentration detection apparatus, which may be specifically integrated in a gas concentration detection device, such as a terminal or a server.

Fig. 2 is a block diagram of a gas concentration detection apparatus according to an embodiment of the present application, and as shown in fig. 2, the apparatus mainly includes:

a first acquiring module 201, configured to acquire a first voltage generated when the gas sensor measures the concentration of a single gas in a single gas environment;

a first determining module 202, configured to obtain a first standard volume concentration of the single gas measured in the single gas environment, and determine a concentration-voltage relationship of the single gas according to the first standard volume concentration and the first voltage;

the second acquiring module 203 is used for acquiring a second voltage output by the gas sensor when the concentration of the single gas is measured under the mixed gas environment containing the single gas;

a third obtaining module 204, configured to obtain a third voltage output by the gas sensor when the gas sensor measures a concentration of a gas that interferes with a single gas in a mixed gas environment that includes the single gas; and

and a second determination module 205 for determining a second standard volume concentration of the individual gases in the mixed gas based on the second voltage, the third voltage and the concentration-voltage relationship.

As an optional implementation manner of this embodiment, the first determining module 202 is specifically configured to fit a concentration-voltage curve according to the first standard volume concentration and the first voltage; and determining the concentration-voltage relation of the single gas according to the concentration-voltage curve.

As an optional implementation manner of this embodiment, the first determining module 202 is specifically further configured to determine whether the concentration-voltage curve is approximate to a straight line; if so, determining the function relation of the concentration voltage curve as a concentration voltage relation; if not, dividing the concentration voltage curve into a plurality of approximate straight lines, and determining the function relation of the plurality of approximate straight lines as the concentration voltage relation.

As an optional implementation manner of this embodiment, the second determining module 205 is specifically configured to obtain a fourth voltage according to a voltage-voltage relationship among a second voltage, a third voltage, and a fourth voltage, where the fourth voltage is generated when the gas sensor measures the concentration of a single gas in a mixed gas environment containing the single gas; and determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and concentration voltage relation.

As an optional implementation manner of this embodiment, the second determining module 205 is further configured to obtain a third standard volume concentration of the single gas measured in the mixed gas environment containing the single gas, and re-determine the concentration-voltage relationship of the single gas according to the third standard volume concentration and the fourth voltage; and determining a second standard volume concentration of the single gas in the mixed gas according to the fourth voltage and the re-determined concentration voltage relation.

Various changes and specific examples in the method provided by the above embodiments are also applicable to the gas concentration detection apparatus of the present embodiment, and those skilled in the art can clearly know the implementation method of the gas concentration detection apparatus in the present embodiment through the foregoing detailed description of the gas concentration detection method, and for the sake of brevity of the description, detailed descriptions are omitted here.

In order to better execute the program of the method, the embodiment of the present application further provides a gas concentration detection apparatus, as shown in fig. 3, the gas concentration detection apparatus 300 includes a memory 301 and a processor 302.

The gas concentration detection device 300 may be implemented in various forms including devices such as a mobile phone, a tablet computer, a palm computer, a laptop computer, and a desktop computer.

The memory 301 may be used to store, among other things, instructions, programs, code sets, or instruction sets. The memory 301 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as calculating a first voltage from a first mass concentration and determining a functional relation of a concentration-voltage curve, etc.), instructions for implementing the gas concentration detection method provided by the above-described embodiments, and the like; the storage data area may store data and the like involved in the gas concentration detection method provided by the above-described embodiment.

Processor 302 may include one or more processing cores. The processor 302 may invoke the data stored in the memory 301 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 301 to perform the various functions of the present application and to process the data. The processor 302 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the functions of the processor 302 may be other devices, and the embodiments of the present application are not limited thereto.

An embodiment of the present application provides a computer-readable storage medium, including: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The computer-readable storage medium stores a computer program that can be loaded by a processor and executes the gas concentration detection method of the above-described embodiment.

The specific embodiments are merely illustrative and not restrictive, and various modifications that do not materially contribute to the embodiments may be made by those skilled in the art after reading this specification as required, but are protected by patent laws within the scope of the claims of this application.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种确定硅片导电类型的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类