CN107478703B - Electrochemical gas sensor, calibration method thereof and air conditioner - Google Patents
Electrochemical gas sensor, calibration method thereof and air conditioner Download PDFInfo
- Publication number
- CN107478703B CN107478703B CN201710645830.3A CN201710645830A CN107478703B CN 107478703 B CN107478703 B CN 107478703B CN 201710645830 A CN201710645830 A CN 201710645830A CN 107478703 B CN107478703 B CN 107478703B
- Authority
- CN
- China
- Prior art keywords
- gas concentration
- value
- abnormal
- gas sensor
- electrochemical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N27/00—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
- G01N27/26—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating electrochemical variables; by using electrolysis or electrophoresis
- G01N27/416—Systems
- G01N27/4163—Systems checking the operation of, or calibrating, the measuring apparatus
Landscapes
- Chemical & Material Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- Molecular Biology (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
- Measuring Oxygen Concentration In Cells (AREA)
Abstract
The invention discloses a calibration method of an electrochemical gas sensor, which comprises the following steps: s100, acquiring a gas concentration detection value of the electrochemical gas sensor; and S200, updating the gas concentration reference value according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value. The invention also discloses an electrochemical gas sensor and an air conditioner. The invention can improve the detection accuracy of the electrochemical gas sensor.
Description
Technical Field
The invention relates to the technical field of sensing, in particular to an electrochemical gas sensor, a calibration method thereof and an air conditioner.
Background
An electrochemical gas sensor is a sensor for estimating the concentration of a gas to be measured based on the change in oxidation or reduction current generated at an electrode by a chemical reaction of the gas to be measured. During the operation of the electrochemical gas sensor, the performance of the electrochemical gas sensor is attenuated along with the increase of time and detection quantity, and the zero drift phenomenon is caused. That is, since the property of the electrochemical gas sensor changes, the detection value of the gas concentration, that is, the reference value of the gas concentration changes when the actual value of the gas concentration is zero, and the detection accuracy of the electrochemical gas sensor is lowered.
Disclosure of Invention
The invention mainly aims to provide a calibration method of an electrochemical gas sensor, which aims to solve the technical problem of zero drift of the electrochemical gas sensor and improve the detection accuracy of the electrochemical gas sensor.
In order to achieve the above object, the present invention provides a calibration method for an electrochemical gas sensor, comprising the steps of:
s100, acquiring a gas concentration detection value of the electrochemical gas sensor;
and S200, updating the gas concentration reference value of the electrochemical gas sensor according to the abnormal frequency when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value.
In one possible design, the step S200 includes:
s210, accumulating the abnormal times once when the currently acquired gas concentration detection value is smaller than the gas concentration reference value;
s220, judging whether the current accumulated abnormal times result is smaller than a first preset time or not;
if not, go to step S231; if yes, go to step S232;
s231, calculating a first average value of abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and taking the first average value as the updated gas concentration reference value;
s232, judging whether the current accumulated abnormal times result is less than or equal to a second preset time; if not, returning to execute the step S100; if yes, go to step S241;
s241, judging whether the gas concentration detection value obtained last time is larger than or equal to the gas concentration reference value; if not, returning to execute the step S100; if yes, go to step S251;
s251, clearing the abnormal times, and returning to execute the step S100;
and the second preset times are less than the first preset times.
In one possible design, the electrochemical gas sensor calibration method further includes the steps of:
s310, when a shutdown signal of the electrochemical gas sensor is received, determining whether the abnormal times are greater than or equal to the second preset times and smaller than the first preset times;
s320, when the abnormal times are larger than or equal to a second preset time and smaller than a first preset time, calculating a second average value of the abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and accumulating the pre-updating times;
s330, storing the second average value and the pre-updating times;
and S340, after a starting signal of the electrochemical gas sensor is received, if the pre-update times reach a third preset time, calculating a third average value of the second average value relative to the pre-update times, taking the third average value as the updated gas concentration reference value, and clearing the pre-update times.
In one possible design, the step S200 includes:
s260, accumulating the abnormal times that the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S270, when the abnormal frequency reaches a fourth preset frequency, calculating a fourth average value of the abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and taking the fourth average value as the updated gas concentration reference value.
In one possible design, the step S200 includes:
s280, accumulating the abnormal times that the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S290, when the abnormal times reach a fifth preset time, calculating a fifth average value of the abnormal values when the gas concentration detection value obtained from the current preset historical times is smaller than the gas concentration reference value, and taking the fifth average value as the updated gas concentration reference value.
In one possible design, after step S200, the electrochemical gas sensor calibration method further includes the steps of:
s400, clearing the abnormal times, and returning to execute the step S100.
In one possible design, before step S100, the electrochemical gas sensor calibration method further includes the following steps:
s510, acquiring a reference sampling voltage value AD of the electrochemical gas sensor corresponding to the condition that the actual gas concentration value is equal to zero0;
S520, acquiring that the actual value of the gas concentration corresponding to the electrochemical gas sensor is equal to the check concentration PPMiTime-lapse check sampling voltage value ADi;
S530、According to the reference sampling voltage value AD0The check concentration PPMiThe checking and sampling voltage value ADiAnd the functional relation between the gas concentration PPM and the sampling voltage value AD is PPM-K (AD-AD)0) Calculating a coefficient K;
the step S100 includes:
s110, acquiring a sampling voltage value AD of the electrochemical gas sensor;
s120 according to PPMtCalculating the gas concentration detection PPMt。
The invention also provides an electrochemical gas sensor, which comprises an electrochemical gas detection probe, a micro control unit and an electrochemical gas sensor calibration program which is stored on the micro control unit and can run on the micro control unit, wherein the electrochemical gas detection probe is used for generating a current detection signal according to the gas concentration; the micro control unit is electrically connected with the electrochemical gas detection probe; said electrochemical gas sensor calibration program when executed by said micro-control unit implementing the steps of an electrochemical gas sensor calibration method comprising the steps of: s100, acquiring a gas concentration detection value of the electrochemical gas sensor; and S200, updating the gas concentration reference value according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value.
In one possible design, the electrochemical gas sensor further includes a conversion resistor, an amplifying circuit, a filtering circuit, and an analog-to-digital conversion circuit, where the conversion resistor is electrically connected to the electrochemical gas detection probe and is configured to convert the current detection signal into a voltage detection signal; the amplifying circuit is electrically connected with the converting resistor and is used for amplifying the voltage detection signal; the filter circuit is electrically connected with the amplifying circuit and is used for filtering the amplified voltage detection signal; the analog-to-digital conversion circuit is connected between the filter circuit and the micro control unit and used for converting the filtered voltage detection signal into a digital voltage signal and inputting the digital voltage signal into the micro control unit.
The invention further proposes an air conditioner implementing an electrochemical gas sensor calibration method comprising the steps of: s100, acquiring a gas concentration detection value of the electrochemical gas sensor; s200, updating the gas concentration reference value according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value; and/or, the air conditioner comprises an electrochemical gas sensor comprising an electrochemical gas detection probe, a micro control unit and an electrochemical gas sensor calibration program stored on and operable on the micro control unit, the electrochemical gas detection probe to generate a current detection signal as a function of gas concentration; the micro control unit is electrically connected with the electrochemical gas detection probe; said electrochemical gas sensor calibration program when executed by said micro-control unit implementing the steps of an electrochemical gas sensor calibration method comprising the steps of: s100, acquiring a gas concentration detection value of the electrochemical gas sensor; and S200, updating the gas concentration reference value according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value.
In the calibration method of an electrochemical gas sensor according to the present invention, a gas concentration detection value of the electrochemical gas sensor is acquired, and the gas concentration reference value is updated based on the number of abnormalities when the gas concentration detection value is smaller than a gas concentration reference value of the electrochemical gas sensor and the abnormality when the gas concentration detection value is smaller than the gas concentration reference value. Through monitoring the abnormal times, the zero drift phenomenon of the electrochemical gas sensor can be conveniently found in time. When the electrochemical gas sensor generates a zero drift phenomenon, the updated gas concentration reference value is further obtained according to the abnormal times and the abnormal values so as to correct the drift of the zero point, and a special calibration operation of the gas concentration reference value is not required to be executed additionally, so that the calibration process of the electrochemical gas sensor is greatly simplified, the influence of calibration on the normal detection process of the electrochemical gas sensor is reduced, and the detection accuracy of the electrochemical gas sensor is improved.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a method of calibrating an electrochemical gas sensor in accordance with the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the electrochemical gas sensor calibration method of the present invention;
FIG. 3 is a schematic flow chart of a third embodiment of a calibration method for an electrochemical gas sensor in accordance with the present invention;
FIG. 4 is a schematic flow chart of a fourth embodiment of a calibration method for an electrochemical gas sensor in accordance with the present invention;
FIG. 5 is a schematic flow chart of a fifth embodiment of the electrochemical gas sensor calibration method of the present invention;
FIG. 6 is a schematic flow chart of a sixth embodiment of a calibration method for an electrochemical gas sensor in accordance with the present invention;
FIG. 7 is a schematic flow chart diagram of a seventh embodiment of a calibration method for an electrochemical gas sensor in accordance with the present invention;
FIG. 8 is a schematic structural view of an embodiment of an electrochemical gas sensor according to the invention;
fig. 9 is a schematic structural view of another embodiment of an electrochemical gas sensor according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: during the operation of the electrochemical gas sensor, the gas concentration reference value is calibrated according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value, so that the zero point of the electrochemical gas sensor is calibrated, and the problem of detection accuracy reduction caused by zero point drift is solved.
In a first embodiment of the present invention, as shown in fig. 1, an electrochemical gas sensor calibration method comprises the steps of:
s100, acquiring a gas concentration detection value of the electrochemical gas sensor;
the electrochemical gas sensor can detect the concentration of various gases, such as formaldehyde, carbon monoxide, hydrogen sulfide, hydrogen, ammonia gas, hydrazine and the like, and the concentration of corresponding gases in the environment is detected by the electrochemical gas sensor, so that the safety detection, the environmental monitoring, the process control and the like in production or life are conveniently realized. Since the chemical reaction of the gas to be detected causes the change of the oxidation or reduction current between the electrodes of the electrochemical gas sensor, in general, the electrochemical gas sensor directly measures a current detection signal, converts the current detection signal into a voltage detection signal, and performs operations such as amplification, filtering, analog-to-digital conversion and the like on the voltage detection signal to obtain a digital voltage signal, and further obtain a sampling voltage value AD in a digital form corresponding to the gas concentration, which will be described in detail later. In general, there is a linear relationship between the gas concentration and the sampling voltage value in the measurement range of the electrochemical gas sensor, and the linear relationship between the gas concentration and the sampling voltage value will be described in detail as an example, that is, PPM ═ K ═ AD-AD (AD-AD)0) Wherein, AD0Corresponding to the sampling voltage value when the gas concentration is equal to zero, K is a coefficient, and the gas concentration detection value PPMtK x AD, gas concentration reference value PPM0=K*AD0According to PPM ═ K ═ AD (AD-AD)0)=PPMt-PPM0The gas concentration can be obtained. Of course, in other electrochemical gas sensors, the gas concentration and the sampling voltage value may have other forms of functional relationships, and during the calculation process of the gas concentration, corresponding adjustment should be performed according to actual situations, which is not described herein again.
And S200, updating the gas concentration reference value according to the abnormal frequency when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value.
In an electrochemical gas sensor, the sampled voltage value AD when the zero point drifts, i.e. corresponds to a gas concentration equal to zero0Changes occur, and accordingly, the reference value K AD of the gas concentration0Changes also occur. In this case, if the gas concentration reference value is not calibrated, there is a possibility that the finally obtained gas concentration detection value PPM will appeart=K*AD<K*AD0I.e. the gas concentration PPM-K (AD-AD)0)<0, abnormal condition. When the degree of zero point drift of the electrochemical gas sensor gradually increases, the number of abnormalities in which the gas concentration detection value is smaller than the gas concentration reference value also increases, resulting in a decrease in detection accuracy, and therefore it is necessary to calibrate the electrochemical gas sensor to correct the zero point drift. In this embodiment, it is determined whether or not the electrochemical gas sensor needs to be calibrated based on the number of abnormalities when the detected gas concentration value is smaller than the reference gas concentration value, and the reference gas concentration value is updated based on the abnormality when the detected gas concentration value is smaller than the reference gas concentration value. In consideration of the fact that the zero point drift generally causes the gas concentration reference value to become smaller, the minimum one of the acquired abnormal values is used as the updated gas concentration reference value, or the average value of a group of abnormal values is used as the updated gas concentration reference value, which will be described in detail later. And updating the gas concentration reference value according to the acquired abnormal times and the acquired abnormal value, and executing special calibration operation without stopping the operation of the electrochemical gas sensor, thereby greatly simplifying the calibration process of the electrochemical gas sensor, reducing the influence of calibration on the normal operation state of the electrochemical gas sensor and improving the detection accuracy of the electrochemical gas sensor.
In the calibration method of the electrochemical gas sensor of the present invention, the gas concentration detection value of the electrochemical gas sensor is acquired, and the gas concentration reference value of the electrochemical gas sensor is updated based on the number of abnormalities when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value. Through monitoring the abnormal times, the zero drift phenomenon of the electrochemical gas sensor can be conveniently found in time. When the electrochemical gas sensor generates a zero drift phenomenon, the updated gas concentration reference value is further obtained according to the abnormal times and the abnormal values so as to correct the drift of the zero point, and a special calibration operation of the gas concentration reference value is not required to be executed additionally, so that the calibration process of the electrochemical gas sensor is greatly simplified, the influence of calibration on the normal detection process of the electrochemical gas sensor is reduced, and the detection accuracy of the electrochemical gas sensor is improved.
In the first embodiment of the present invention, as shown in fig. 2, step S200 includes:
s210, accumulating the abnormal times once when the currently acquired gas concentration detection value is smaller than a gas concentration reference value;
s220, judging whether the current accumulated abnormal times result is smaller than a first preset time or not;
if not, go to step S231; if yes, go to step S232;
s231, calculating a first average value of abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and taking the first average value as the updated gas concentration reference value;
s232, judging whether the current accumulated abnormal times result is less than or equal to a second preset time; if not, returning to execute the step S100; if yes, go to step S241;
s241, judging whether the gas concentration detection value obtained last time is larger than or equal to a gas concentration reference value; if not, returning to execute the step S100; if yes, go to step S251;
s251, clearing the abnormal times, and returning to execute the step S100;
and the second preset times are less than the first preset times.
It should be noted that, in this embodiment, if the current acquisition is the first acquisition of the gas concentration detection value and the first acquired gas concentration detection value is smaller than the gas concentration reference value, the number of times of abnormality is incremented once from zero, that is, if the first acquired gas concentration detection value is smaller than the gas concentration reference value, the number of times of abnormality is incremented to one after the first acquisition.
In the present embodiment, in consideration of the influence of fluctuation in the detection process of the electrochemical gas sensor, even if the zero point thereof does not drift, that is, even if the gas concentration reference value does not deviate from the case where the actual gas concentration is zero, there is a possibility that an abnormal situation occurs in which the gas concentration detection value is smaller than the gas concentration reference value. However, unlike the zero point drift, the occurrence of a case where the gas concentration detection value caused by fluctuation is smaller than the gas concentration reference value is usually intermittent and irregular. Therefore, in order to eliminate the interference caused by fluctuation, when the gas concentration detection value obtained by reaching the second preset number is smaller than the gas concentration reference value, the electrochemical gas sensor enters a pre-calibration state, in the pre-calibration state, the gas concentration detection value obtained every time is smaller than the gas concentration reference value, the gas concentration detection value is accumulated once on the basis of the original abnormal number, a new abnormal number is obtained, and when the abnormal number reaches the first preset number, the electrochemical gas sensor enters the calibration state, the gas concentration reference value is updated, and the problem that the detection accuracy is reduced due to zero drift is solved. When the number of times that the continuously acquired gas concentration detection value is smaller than the gas concentration reference value is smaller than a second preset number, the electrochemical gas sensor is in a normal operation state and does not enter a pre-calibration state, at this time, if the acquired gas concentration detection value is larger than or equal to the gas concentration reference value, the previous gas concentration detection value is considered to be smaller than the gas concentration reference value due to fluctuation in the detection process but not due to zero drift of the electrochemical gas sensor, so that the abnormal number is cleared and accumulated again to eliminate the interference of the fluctuation, on one hand, frequent updating of the gas concentration reference value under unnecessary conditions is avoided, on the other hand, an abnormal value when the gas concentration detection value caused by the fluctuation is smaller than the gas concentration reference value also has certain randomness and cannot accurately reflect the zero drift, the abnormal value is used as the basis for updating the gas concentration reference value, so that the gas concentration reference value is easy to be updated inaccurately, and the re-accumulation is beneficial to improving the updating accuracy of the gas concentration reference value.
And entering a calibration state when the current abnormal frequency reaches a first preset frequency, wherein the specific calibration mode is that a first average value of the abnormal value relative to the abnormal frequency when the gas concentration detection value is smaller than the gas concentration reference value is calculated, and the first average value is used as the updated gas concentration reference value so as to correct the adverse effect of zero point drift on accuracy.
In a specific example, the first preset number is set to be 1000 times, the second preset number is set to be 100 times, in the operation process of the electrochemical gas sensor, after the gas concentration detection values are all smaller than the gas concentration reference value for 100 consecutive times, a pre-calibration state is entered, in the pre-calibration state, every time the gas concentration detection value is acquired to be smaller than the gas concentration reference value, the abnormal number is accumulated once, until the abnormal number reaches 1000 times, at this time, the calibration state is entered, a first average value of the relative number of times of the abnormal value when the 1000 gas concentration detection values are smaller than the gas concentration reference value is calculated, and the first average value is used as the updated gas concentration reference value. When the gas concentration detection value is less than the gas concentration reference value for 100 consecutive times, the abnormal times are cleared and accumulated again every time the gas concentration detection value greater than or equal to the gas concentration reference value is obtained.
The embodiment is beneficial to eliminating the interference of fluctuation in the operation process of the electrochemical gas sensor on the calibration process, thereby improving the calibration efficiency and accuracy of the electrochemical gas sensor.
In the first embodiment of the present invention, it is further considered that when the first preset number is large or the continuous operation time of the electrochemical gas sensor is short, the abnormal number is difficult to be accumulated to the first preset number in a single operation of the electrochemical gas sensor, so that the gas concentration reference value cannot be updated timely and effectively. Therefore, in the second embodiment of the present invention, the information related to the abnormal condition that the gas concentration detection value is smaller than the gas concentration reference value during the operation of the electrochemical gas sensor this time is stored before the electrochemical gas sensor is turned off, and the zero drift is calibrated according to the stored information after the electrochemical gas sensor is turned on next time, so as to improve the detection accuracy of the electrochemical gas sensor. Specifically, as shown in fig. 3, the calibration method for the electrochemical gas sensor further includes the following steps:
s310, when a shutdown signal of the electrochemical gas sensor is received, determining whether the abnormal times are greater than or equal to a second preset times and smaller than a first preset times;
since the shutdown signal may be received at any time during the operation of the electrochemical gas sensor, there is no definite sequence relationship between step S310 and step S200. And when a shutdown signal is received, judging whether the current electrochemical gas sensor is in a pre-calibration state or not by determining whether the abnormal times are greater than or equal to a second preset time and less than a first preset time.
S320, when the abnormal times are larger than or equal to a second preset time and smaller than the first preset time, calculating a second average value of the abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and accumulating the pre-updating times;
if the abnormal times are more than or equal to the second preset times and less than the first preset times, the electrochemical gas sensor is in a pre-calibration state at the moment, although the gas concentration reference value of the electrochemical gas sensor is not updated in the current operation, the gas concentration reference value of the electrochemical gas sensor has already shifted to a certain extent, the shifting condition of the gas concentration reference value is preliminarily obtained by calculating a second average value of the abnormal value when the gas concentration detection value is less than the gas concentration reference value, namely the second average value of the abnormal value when the gas concentration detection value is less than the gas concentration reference value relative to the abnormal times, and the pre-updated times are accumulated once for subsequent operation.
S330, storing the second average value and the pre-updating times;
the second average value and the pre-update times are stored to avoid loss of relevant information after the electrochemical gas sensor is shut down.
And S340, after the starting signal of the electrochemical gas sensor is received, if the pre-update times reach a third preset time, calculating a third average value of the second average value relative to the pre-update times, taking the third average value as an updated gas concentration reference value, and clearing the pre-update times.
After the electrochemical gas sensor is restarted, if the pre-updating times reach a third preset times, the gas concentration reference value of the electrochemical gas sensor is changed to a certain extent, and the gas concentration reference value needs to be updated to improve the detection accuracy. Specifically, a third average value of the second average value relative to the pre-update times is calculated according to the plurality of stored second average values and the pre-update times, the third average value is used as an updated gas concentration reference value to update the gas concentration reference value, the zero drift of the electrochemical gas sensor is calibrated, and the detection accuracy is improved. After the update, the pre-update times are cleared so as to avoid interference on the next update.
In the third embodiment of the present invention, as shown in fig. 4, step S200 includes:
s260, accumulating the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S270, when the abnormal frequency reaches a fourth preset frequency, calculating a fourth average value of the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value, and taking the fourth average value as the updated gas concentration reference value.
In the present embodiment, the gas concentration reference value is updated based on the number of abnormalities when the integrated gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value. In contrast, the calibration method of the embodiment is simple, and is beneficial to improving the implementation efficiency of the calibration program. In order to reduce the interference caused by fluctuation during the detection of the electrochemical gas sensor, in the embodiment, the fourth preset number may be increased appropriately to reduce the weight of the abnormal condition caused by fluctuation in all the abnormal conditions in which the gas concentration detection value is smaller than the gas concentration reference value, so as to improve the calibration accuracy.
In the fourth embodiment of the present invention, as shown in fig. 5, step S200 includes:
s280, accumulating the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S290, when the abnormal times reach a fifth preset time, calculating a fifth average value of the abnormal values when the gas concentration detection value obtained from the current preset historical time is smaller than the gas concentration reference value, and taking the fifth average value as the updated gas concentration reference value.
In the present embodiment, the gas concentration reference value is updated based on the number of abnormalities when the integrated gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value. In order to reduce the interference generated by fluctuation in the detection process of the electrochemical gas sensor, when the average value is calculated, the average value of abnormal values acquired later is taken, the abnormal values acquired earlier are excluded, so as to exclude the interference of abnormal conditions caused by the fluctuation detection of the electrochemical gas sensor, the performance change of the electrochemical gas sensor is usually continuous, and the fifth average value of the abnormal values acquired later is calculated, so that the updated gas concentration reference value is favorable to be closer to the actual performance of the current electrochemical gas sensor. For example, the fifth preset number of times is 2000 times, the preset historical number of times is 200 times, that is, when the number of abnormalities whose gas concentration detection value is smaller than the gas concentration reference value is accumulated to 2000 times, the gas concentration reference value is updated, and the fifth average value of 200 later abnormal values acquired from 1801 to 2000 times is used as the updated gas concentration reference value, so as to improve the detection accuracy.
On the basis of the above embodiment, in the fifth embodiment of the present invention, as shown in fig. 6, after step S200, the following steps are further included:
s400, clearing the abnormal times, and returning to the step S100.
Considering that the performance of the electrochemical gas sensor is in continuous change, after the gas concentration reference value is updated this time, the abnormal times are cleared, and the step S100 is returned to perform the next update, so that the zero point of the electrochemical gas sensor is always in a relatively accurate state, and the detection accuracy is improved.
On the basis of the above embodiment, in the sixth embodiment of the present invention, as shown in fig. 7, before step S100, the following steps are further included:
s510, acquiring a reference sampling voltage value AD of the electrochemical gas sensor corresponding to the condition that the actual gas concentration value is equal to zero0;
S520, acquiring that the actual value of the gas concentration corresponding to the electrochemical gas sensor is equal to the check concentration PPMiTime-lapse check sampling voltage value ADi;
S530, sampling the voltage value AD according to the reference0Checking the concentration PPMiChecking and sampling voltage value ADiAnd the functional relation between the gas concentration PPM and the sampling voltage value AD is PPM-K (AD-AD)0) Calculating a coefficient K;
the step S100 includes:
s110, acquiring a sampling voltage value AD of the electrochemical gas sensor;
s120 according to PPMtCalculating gas concentration detection value PPM (PPM) ═ K × ADt。
Wherein, the steps S510, S520 and S530 are performed according to the functional relationship between the gas concentration PPM and the sampling voltage value AD, where PPM is K (AD-AD)0) Coefficient K and reference sampling voltage value AD0The calibration process of (1) is usually performed before the electrochemical gas sensor is put into practical use. When the actual value of the gas concentration is equal to zero, obtaining the sampling voltage value AD or the average value of the sampling voltage values AD at the moment as the reference sampling voltage value AD by one or more times of measurement and averaging0. In determining reference sampling voltage value AD0Then, the change of the actual value of the gas concentration is controlled to obtain the gas concentration equivalent to the check concentration PPMiIs checked and sampled the voltage value ADiWherein each check sampling voltage value ADiThe coefficient K can be obtained by measuring for many times and taking an average value, and then linear fitting is carried out, so that the coefficient K can be obtained.
In one specific example, for example, the relationship between the spectroscopic formaldehyde concentration and the sampled voltage value is shown in the following table,
i | PPMi(μg/m3) | ADi |
0 | 0 | 1289 |
1 | 83 | 6805 |
2 | 946 | 80963 |
3 | 638 | 46263 |
4 | 437 | 34293 |
5 | 80 | 9787 |
6 | 72 | 6829 |
according to the above table, AD0When fitting linearly, K is 0.0123, that is, PPM is 0.0123 (AD-1289).
In step S100, during the use of the electrochemical gas sensor, according to the obtained sampling voltage values AD and PPMtCalculating corresponding gas concentration detection value PPMt。
As shown in fig. 8, fig. 8 is a schematic structural diagram of an embodiment of an electrochemical gas sensor according to the present invention, which includes an electrochemical gas detection probe 100, a Micro Control Unit (MCU)200, and an electrochemical gas sensor calibration program stored on the MCU200 and operable on the MCU200, wherein the electrochemical gas detection probe 100 is configured to generate a current detection signal according to a gas concentration; the MCU200 is electrically connected with the electrochemical gas detection probe 100; the electrochemical gas sensor calibration routine, when executed by the MCU200, implements the steps of the electrochemical gas sensor calibration method.
As shown in fig. 9, fig. 9 is a schematic structural diagram of another embodiment of the electrochemical gas sensor according to the present invention, the electrochemical gas sensor further includes a converting resistor 300, an amplifying circuit 400, a filtering circuit 500 and an analog-to-digital converting circuit 600, wherein the converting resistor 300 is electrically connected to the electrochemical gas detecting probe 100 for converting a current detecting signal into a voltage detecting signal; the amplifying circuit 400 is electrically connected to the converting resistor 300 for amplifying the voltage detection signal; the filter circuit 500 is electrically connected to the amplifying circuit 400, and is configured to filter the amplified voltage detection signal; the analog-to-digital conversion circuit 600 is connected between the filter circuit 500 and the MCU200, and is configured to convert the filtered voltage detection signal into a digital voltage signal.
The MCU invokes the stored electrochemical gas sensor calibration program and performs the following operations:
s100, acquiring a gas concentration detection value of the electrochemical gas sensor;
and S200, updating the gas concentration reference value of the electrochemical gas sensor according to the abnormal frequency when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value.
The MCU invokes a stored electrochemical gas sensor calibration program, wherein S200 comprises the operations of:
s210, accumulating the abnormal times once when the currently acquired gas concentration detection value is smaller than the gas concentration reference value;
s220, judging whether the current accumulated abnormal times result is smaller than a first preset time or not;
if not, go to step S231; if yes, go to step S232;
s231, calculating a first average value of abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and taking the first average value as the updated gas concentration reference value;
s232, judging whether the current accumulated abnormal times result is less than or equal to a second preset time; if not, returning to execute the step S100; if yes, go to step S241;
s241, judging whether the gas concentration detection value obtained last time is larger than or equal to a gas concentration reference value; if not, returning to execute the step S100; if yes, go to step S251;
s251, resetting the abnormal times, and returning to execute the step S100;
wherein the second preset times is less than the first preset times.
The MCU invokes the stored electrochemical gas sensor calibration program and also performs the following operations:
s310, when a shutdown signal of the electrochemical gas sensor is received, determining whether the abnormal times are greater than or equal to a second preset times and smaller than a first preset times;
s320, when the abnormal times are larger than or equal to a second preset time and smaller than the first preset time, calculating a second average value of the abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and accumulating the pre-updating times;
s330, storing the second average value and the pre-updating times;
and S340, after the starting signal of the electrochemical gas sensor is received, if the pre-update times reach a third preset time, calculating a third average value of the second average value relative to the pre-update times, taking the third average value as an updated gas concentration reference value, and clearing the pre-update times.
The MCU invokes the stored electrochemical gas sensor calibration program, S200 comprising the operations of:
s260, accumulating the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S270, when the abnormal frequency reaches a fourth preset frequency, calculating a fourth average value of the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value, and taking the fourth average value as the updated gas concentration reference value.
The MCU invokes the stored electrochemical gas sensor calibration program, S200 comprising the operations of:
s280, accumulating the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S290, when the abnormal times reach a fifth preset time, calculating a fifth average value of the abnormal values when the gas concentration detection value obtained from the current preset historical time is smaller than the gas concentration reference value, and taking the fifth average value as the updated gas concentration reference value.
The MCU invokes the stored electrochemical gas sensor calibration program and, after S200, further performs the following operations:
s400, clearing the abnormal times, and returning to the step S100.
The MCU invokes the stored electrochemical gas sensor calibration program and, prior to S100, further performs the following operations:
s510, acquiring a reference sampling voltage value AD of the electrochemical gas sensor corresponding to the condition that the actual gas concentration value is equal to zero0;
S520, acquiring that the actual value of the gas concentration corresponding to the electrochemical gas sensor is equal to the check concentration PPMiTime-lapse check sampling voltage value ADi;
S530, sampling the voltage value AD according to the reference0Checking the concentration PPMiChecking and sampling voltage value ADiAnd calculating a coefficient K according to a functional relationship PPM (K) between the gas concentration PPM and the sampling voltage value AD (AD-AD 0);
s100 includes:
s110, acquiring a sampling voltage value AD of the electrochemical gas sensor;
s120 according to PPMtCalculating gas concentration detection value PPM (PPM) ═ K × ADt。
The present invention provides an air conditioner, wherein the air conditioner executes an electrochemical gas sensor calibration method, the electrochemical gas sensor calibration method refers to the above embodiments, and the air conditioner adopts all technical solutions of all the above embodiments, so that at least all beneficial effects brought by the technical solutions of the above embodiments are achieved, and details are not repeated herein.
The invention further provides an air conditioner, which comprises the electrochemical gas sensor, the specific structure of the electrochemical gas sensor and the calibration method of the electrochemical gas sensor refer to the embodiments, and the air conditioner adopts all technical schemes of all the embodiments, so that all beneficial effects brought by the technical schemes of the embodiments are at least achieved, and repeated description is omitted.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for causing an air conditioner to perform the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (7)
1. A method of calibrating an electrochemical gas sensor, comprising the steps of:
s100, acquiring a gas concentration detection value of the electrochemical gas sensor;
s200, updating the gas concentration reference value according to the abnormal times when the gas concentration detection value is smaller than the gas concentration reference value of the electrochemical gas sensor and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
the step S200 includes:
s210, accumulating the abnormal times once when the currently acquired gas concentration detection value is smaller than the gas concentration reference value;
s220, judging whether the current accumulated abnormal times result is smaller than a first preset time or not;
if not, go to step S231; if yes, go to step S232;
s231, calculating a first average value of abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and taking the first average value as the updated gas concentration reference value;
s232, judging whether the current accumulated abnormal times result is less than or equal to a second preset time; if not, returning to execute the step S100; if yes, go to step S241;
s241, judging whether the gas concentration detection value obtained last time is larger than or equal to the gas concentration reference value; if not, returning to execute the step S100; if yes, go to step S251;
s251, clearing the abnormal times, and returning to execute the step S100;
wherein the second preset times are less than the first preset times;
or,
the step S200 includes:
s260, accumulating the abnormal times that the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
s270, when the abnormal frequency reaches a fourth preset frequency, calculating a fourth average value of the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value, and taking the fourth average value as the updated gas concentration reference value;
or,
the step S200 includes:
s280, accumulating the abnormal times that the gas concentration detection value is smaller than the gas concentration reference value and the abnormal value when the gas concentration detection value is smaller than the gas concentration reference value;
and S290, when the abnormal times reach a fifth preset time, calculating a fifth average value of the abnormal values when the gas concentration detection value obtained from the current preset historical times is smaller than the gas concentration reference value, and taking the fifth average value as the updated gas concentration reference value.
2. The electrochemical gas sensor calibration method of claim 1, further comprising the steps of:
s310, when a shutdown signal of the electrochemical gas sensor is received, determining whether the abnormal times are greater than or equal to the second preset times and smaller than the first preset times;
s320, when the abnormal times are larger than or equal to a second preset time and smaller than a first preset time, calculating a second average value of the abnormal values when the gas concentration detection value is smaller than the gas concentration reference value, and accumulating the pre-updating times;
s330, storing the second average value and the pre-updating times;
and S340, after a starting signal of the electrochemical gas sensor is received, if the pre-update times reach a third preset time, calculating a third average value of the second average value relative to the pre-update times, taking the third average value as the updated gas concentration reference value, and clearing the pre-update times.
3. The electrochemical gas sensor calibration method of claim 1, further comprising, after said step S200, the steps of:
s400, clearing the abnormal times, and returning to execute the step S100.
4. The electrochemical gas sensor calibration method according to any one of claims 1 to 3, further comprising, before said step S100, the steps of:
s510, acquiring a reference sampling voltage value AD of the electrochemical gas sensor corresponding to the condition that the actual gas concentration value is equal to zero0;
S520, acquiring that the actual value of the gas concentration corresponding to the electrochemical gas sensor is equal to the check concentration PPMiTime-lapse check sampling voltage value ADi;
S530, sampling the voltage value AD according to the reference0The check concentration PPMiThe checking and sampling voltage value ADiAnd the functional relation between the gas concentration PPM and the sampling voltage value AD is PPM-K (AD-AD)0) Calculating a coefficient K;
the step S100 includes:
s110, acquiring a sampling voltage value AD of the electrochemical gas sensor;
s120 according to PPMtCalculating the gas concentration detection PPMt。
5. An electrochemical gas sensor, comprising:
the electrochemical gas detection probe is used for generating a current detection signal according to the gas concentration;
a micro-control unit electrically connected with the electrochemical gas detection probe; and the number of the first and second groups,
an electrochemical gas sensor calibration program stored on and executable on the micro-control unit, the electrochemical gas sensor calibration program when executed by the micro-control unit implementing the steps of the electrochemical gas sensor calibration method of any one of claims 1 to 4.
6. The electrochemical gas sensor of claim 5, further comprising:
the conversion resistor is electrically connected with the electrochemical gas detection probe and is used for converting the current detection signal into a voltage detection signal;
the amplifying circuit is electrically connected with the conversion resistor and is used for amplifying the voltage detection signal;
the filter circuit is electrically connected with the amplifying circuit and is used for filtering the amplified voltage detection signal;
and the analog-to-digital conversion circuit is connected between the filter circuit and the micro control unit and used for converting the filtered voltage detection signal into a digital voltage signal and inputting the digital voltage signal into the micro control unit.
7. An air conditioner, characterized in that it performs the electrochemical gas sensor calibration method according to any one of claims 1 to 4; and/or the air conditioner comprises an electrochemical gas sensor as claimed in claim 5 or 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710645830.3A CN107478703B (en) | 2017-07-31 | 2017-07-31 | Electrochemical gas sensor, calibration method thereof and air conditioner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710645830.3A CN107478703B (en) | 2017-07-31 | 2017-07-31 | Electrochemical gas sensor, calibration method thereof and air conditioner |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107478703A CN107478703A (en) | 2017-12-15 |
CN107478703B true CN107478703B (en) | 2020-03-06 |
Family
ID=60596884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710645830.3A Active CN107478703B (en) | 2017-07-31 | 2017-07-31 | Electrochemical gas sensor, calibration method thereof and air conditioner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107478703B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108872349B (en) * | 2018-06-21 | 2020-08-11 | 西安创研电子科技有限公司 | Method and device for testing gas sensitivity of nitrogen-oxygen sensor ceramic chip |
CN109655518A (en) * | 2019-02-25 | 2019-04-19 | 珠海格力电器股份有限公司 | Formaldehyde electrochemical sensing detection device, calibration method and purifier |
CN110298588B (en) * | 2019-06-28 | 2022-03-22 | 重庆回形针信息技术有限公司 | Automatic standard optimization system and method based on statistical analysis |
CN111157032A (en) * | 2019-11-15 | 2020-05-15 | 西安海的电子科技有限公司 | Signal calibration method of sensor |
CN114689790B (en) * | 2020-12-25 | 2024-04-12 | 佛山市顺德区美的洗涤电器制造有限公司 | Sensor data calibration method, sensor data calibration device and range hood |
CN114965867A (en) * | 2021-02-26 | 2022-08-30 | 杭州三花研究院有限公司 | Gas concentration detection method, gas detection device and control method thereof |
CN115749738B (en) * | 2021-09-03 | 2024-04-26 | 北京助创科技有限公司 | Method and device for monitoring operation time rate of oil pumping unit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101403717A (en) * | 2007-10-01 | 2009-04-08 | 日本特殊陶业株式会社 | Diagnostic method and apparatus for gas sensor |
CN102998421A (en) * | 2012-11-08 | 2013-03-27 | 山西科致成科技有限公司 | 64-path mining gas sensor intelligent calibrator based on singlechip |
CN103884750A (en) * | 2014-04-11 | 2014-06-25 | 中国人民解放军海军医学研究所 | Calibration method for constant-potential electrochemical gas sensor under high-pressure environment |
CN106525928A (en) * | 2016-12-22 | 2017-03-22 | 安徽理工大学 | An Atmospheric NO2 Detection System Based on Electrochemical Sensor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1961940B1 (en) * | 2007-02-21 | 2019-04-03 | NGK Spark Plug Co., Ltd. | Diagnostic method and control apparatus for gas sensor |
-
2017
- 2017-07-31 CN CN201710645830.3A patent/CN107478703B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101403717A (en) * | 2007-10-01 | 2009-04-08 | 日本特殊陶业株式会社 | Diagnostic method and apparatus for gas sensor |
CN102998421A (en) * | 2012-11-08 | 2013-03-27 | 山西科致成科技有限公司 | 64-path mining gas sensor intelligent calibrator based on singlechip |
CN103884750A (en) * | 2014-04-11 | 2014-06-25 | 中国人民解放军海军医学研究所 | Calibration method for constant-potential electrochemical gas sensor under high-pressure environment |
CN106525928A (en) * | 2016-12-22 | 2017-03-22 | 安徽理工大学 | An Atmospheric NO2 Detection System Based on Electrochemical Sensor |
Also Published As
Publication number | Publication date |
---|---|
CN107478703A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107478703B (en) | Electrochemical gas sensor, calibration method thereof and air conditioner | |
CN107490613B (en) | Electrochemical gas sensor, calibration method thereof and air conditioner | |
US10393713B2 (en) | Method for operating a probe | |
CN210863662U (en) | Formaldehyde concentration detection device and air purifier | |
EP3919899A1 (en) | Formaldehyde concentration measurement method and apparatus, and air purifier | |
US10444192B2 (en) | Environment measuring device and environment measuring method | |
CN110849459B (en) | Creep deformation correction method for weighing sensor | |
JP4927639B2 (en) | Gas alarm | |
CA2886533C (en) | Process variable measurement noise diagnostic | |
CN115828055B (en) | Method and device for monitoring sampling data, computer equipment and storage medium | |
CN107576695B (en) | Electrochemical gas sensor, calibration method thereof and air conditioner | |
CN105572191A (en) | Pressure compensation method of electrochemical gas sensor | |
CN104916083A (en) | Internet of things based intelligent combustible gas inspection detector and calibration method thereof | |
CN107576710B (en) | Electrochemical gas sensor and its calibration method, air conditioner | |
CN111637983B (en) | Detection system and method of resistance type temperature sensor | |
JP4810264B2 (en) | Concentration measuring device | |
JP4868081B2 (en) | Battery state detection method and battery state detection device | |
KR20100056818A (en) | Apparatus and method for optimizing a wheatstone bridge that is robust for temperature variation | |
JPH06242044A (en) | Environment sensor | |
CN110275156A (en) | The bias voltage scaling method and device of avalanche photodide in laser radar | |
EP3390789A1 (en) | Method and arrangement for correcting for error of particulate matter sensors | |
CN107449814B (en) | Electrochemical gas sensor, signal processing method thereof and air conditioner | |
CN110186560B (en) | Ultraviolet numerical value correction method and system | |
CN116208152A (en) | High-precision analog quantity acquisition device and method | |
CN109029506A (en) | A kind of signal acquisition method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |