A hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor
By using a four-electrode electrochemical sensor hardware architecture and software algorithm to collaboratively eliminate hydrogen cross-interference, the problem of insufficient detection accuracy of traditional electrochemical sensors in the presence of hydrogen is solved, and high-precision carbon monoxide detection is achieved over a wide temperature range.
Patent Information
- Application Number
- CN202522663355.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2035-12-16
AI Technical Summary
Traditional electrochemical sensors are susceptible to cross-interference in the presence of hydrogen, leading to insufficient detection accuracy and false alarms. Existing technologies cannot effectively solve the problem of carbon monoxide detection under hydrogen interference.
A four-electrode electrochemical sensor is adopted, and hydrogen cross-interference is eliminated through hardware architecture and software algorithm collaboration. Independent detection of working electrode and auxiliary electrode is achieved. Offline calibration and online recursive algorithm are combined to adapt to sensor aging, and a digital temperature sensor is integrated for temperature adaptive compensation.
High-precision hydrogen interference suppression was achieved over a wide temperature range, improving detection accuracy and environmental adaptability, reducing the risk of false alarms, and ensuring that the sensor accurately detects carbon monoxide gas in the presence of hydrogen.
Smart Images

Figure CN225031965U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of electrochemical sensor technology, and in particular to a four-electrode electrochemical sensor for carbon monoxide (CO) detection, especially a hydrogen cross-interference compensation device based on the four-electrode electrochemical sensor. Background Technology
[0002] In practical applications, traditional electrochemical sensors often require CO measurement in environments where hydrogen (H2) is present. Due to limitations in existing materials and detection principles, these sensors are susceptible to cross-interference from the surrounding hydrogen (H2), with cross-interference coefficients reaching high percentages. This can easily lead to inflated detection values and false alarms. Existing technologies primarily employ the following methods: 1. Dual electrode structure: The H2 reaction is inhibited by selective catalytic layer, but the catalytic layer is prone to failure under high temperature or high humidity conditions.
[0003] 2. Software filtering: interference signals are subtracted based on a fixed compensation coefficient, but dynamic factors such as sensor aging and temperature drift are not considered.
[0004] 3. Three-electrode structure: A reference electrode is introduced to stabilize the potential, but the response signals of H2 and CO cannot be separated.
[0005] Technical pain points: 1. The dynamic compensation accuracy for hydrogen interference is insufficient, especially in a wide temperature range (-20℃~50℃).
[0006] 2. Lack of dedicated hardware architecture to achieve physical isolation of interference signals.
[0007] Utility model patent application number 202122095100.5 discloses a detection circuit based on a four-electrode electrochemical gas sensor, including a four-electrode electrochemical gas sensor, an MCU minimum system, a constant potential circuit, a transimpedance amplifier circuit, a signal amplification circuit, a reference voltage circuit, an AD conversion module, and a temperature sensor. Since the auxiliary electrode does not participate in the reaction and can maintain consistency with the working electrode in terms of gas temperature influence, when both the working and auxiliary electrodes experience temperature drift due to external environmental changes, the accurate gas concentration value can be obtained by organically subtracting the working electrode signal value from the auxiliary electrode signal value. This allows the MCU minimum system to perform temperature compensation by subtracting background current from the detection result, thus outputting an accurate gas concentration detection result. The technical solution provided by the above utility model effectively overcomes the shortcomings of existing technologies that cannot accurately detect gas at low concentrations. However, the above patent only cancels out the influence of background current, enabling detection at low concentrations, but it cannot accurately detect carbon monoxide gas under hydrogen interference. Furthermore, in a hydrogen interference environment, it will output an "erroneous signal" that does not respond to carbon monoxide, leading to a risk of false alarms. Utility Model Content
[0008] To address the shortcomings of the aforementioned background technology, this invention proposes a hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor, solving the problem of insufficient dynamic compensation accuracy for hydrogen interference in existing technologies. This invention eliminates hydrogen (H2) cross-interference through a combination of hardware architecture and software algorithms, achieving high-precision suppression of hydrogen interference, improving detection accuracy and adaptability to complex environments.
[0009] The technical solution of this utility model is implemented as follows: a hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor, including a four-electrode electrochemical sensor, the four-electrode electrochemical sensor being connected to a transimpedance amplifier circuit, both the four-electrode electrochemical sensor and the transimpedance amplifier circuit being connected to a signal conditioning circuit; the signal conditioning circuit being connected to a single-chip microcomputer control unit.
[0010] Preferably, the signal conditioning circuit includes a reference voltage circuit, a differential amplifier, and a temperature acquisition circuit. The reference voltage circuit and the differential amplifier are both connected to the transimpedance amplifier circuit, and the differential amplifier and the temperature acquisition circuit are both connected to the microcontroller control unit.
[0011] Preferably, the four-electrode electrochemical sensor comprises, from top to bottom, a gas diffusion layer, an electrode array layer, an electrolyte layer, a counter electrode layer, and a sensor housing, wherein the electrode array layer contains a working electrode, an auxiliary electrode, and a reference electrode; The working electrode is coated with a CO selective catalyst on a conductive substrate to detect the CO oxidation current; the auxiliary electrode is coated with an H2 selective catalyst to detect H2 interference signals and generate an auxiliary current; the reference electrode is made of Ag / AgCl immersed in a solid electrolyte to provide a stable potential reference and ensure that the working potential of the working electrode is constant. The counter electrode in the counter electrode layer forms a current loop with the working electrode. The sensor housing has a selectively breathable membrane at the air inlet at the top.
[0012] Preferably, the transimpedance amplifier circuit includes a first operational transimpedance amplifier and a second operational transimpedance amplifier. The output terminals of the first operational transimpedance amplifier and the second operational transimpedance amplifier are respectively connected to a differential amplifier, and the differential amplifier is connected to a microcontroller control unit. The output segment of the reference voltage circuit is respectively connected to the input terminals of the first operational transimpedance amplifier and the second operational transimpedance amplifier. The non-inverting input of the first operational transimpedance amplifier is connected to an output terminal of the reference voltage circuit of the signal conditioning circuit. The inverting input of the first operational transimpedance amplifier is connected to the working electrode of the four-electrode electrochemical sensor through resistor R4. A feedback resistor R5 and a compensation capacitor C3 are connected in parallel between the inverting input and the output terminal of the first operational transimpedance amplifier. The output terminal of the first operational transimpedance amplifier is connected to the non-inverting input terminal of the differential amplifier circuit of the signal conditioning circuit through the first low-pass filter. The non-inverting input of the second operational transimpedance amplifier is connected to one output of the reference voltage circuit of the signal conditioning circuit. The inverting input of the second operational transimpedance amplifier is connected to the auxiliary electrode of the four-electrode electrochemical sensor through resistor R11. The inverting input and the output of the second operational transimpedance amplifier are respectively connected to the two outputs of the digital potentiometer. The inverting input and the output of the second operational transimpedance amplifier are respectively connected to the two ends of the compensation capacitor C5. The output of the second operational transimpedance amplifier is connected to the input of the differential amplifier circuit of the signal conditioning circuit through the second low-pass filter.
[0013] Preferably, the transimpedance amplifier circuit further includes a constant potential circuit, which includes an operational amplifier U1A. The non-inverting input of the operational amplifier U1A is connected to the other output of the reference voltage circuit. The inverting input and the output of the operational amplifier U1A are both connected to the output of a second-order RC filter. The input of the second-order RC filter is connected to the counter electrode and the reference electrode, respectively. The working electrode and the auxiliary electrode are respectively connected to the drain and source of the first PMOS transistor, and the gate of the first PMOS transistor is connected to the power supply through resistor R10. The working electrode and the reference electrode are connected to the drain and source of the second PMOS transistor, respectively, and the gate of the second PMOS transistor is connected to the power supply through resistor R9.
[0014] Preferably, the first low-pass filter includes a resistor R6 and a capacitor C4, the output terminal of the first operational transimpedance amplifier is connected to the input terminal of the differential amplifier circuit through the resistor R6, and the resistor R6 is grounded through the capacitor C4. The second low-pass filter includes a resistor R8 and a capacitor C7. The output of the second operational transimpedance amplifier is connected to the inverting input of the differential amplifier circuit through the resistor R8. The other end of the resistor R8 is grounded through the capacitor C7. The resistor R8 and the capacitor C7 function the same as the resistor R6 and the capacitor C4. The second-order RC filter includes resistors R1, R2, and R3, and capacitor C1. The counter electrode is connected to one end of resistor R1, and the other end of resistor R1 is connected to one end of capacitor C1 and the output terminal of operational amplifier U1A. The reference electrode is connected to one end of resistor R2, and the other end of resistor R2 is connected to the other end of capacitor C1 and one end of resistor R3. The other end of resistor R3 is connected to the inverting input terminal of operational amplifier U1A, and the non-inverting input of operational amplifier U1A is connected to the other output terminal of the reference voltage circuit.
[0015] Preferably, the CS pin of the digital potentiometer is connected to any I / O port of the microcontroller control unit, and the DIN pin and SCLK pin of the digital potentiometer are connected to the TIM pin of the microcontroller control unit; the two output pins of the digital potentiometer are respectively connected to the inverting input and the output of the second operational transimpedance amplifier.
[0016] Preferably, the differential amplifier includes operational amplifier U2A, operational amplifier U2B, and operational amplifier U2C. The non-inverting input of operational amplifier U2A is connected to the output of the first operational transimpedance amplifier; the inverting input of operational amplifier U2B is connected to the output of the first operational transimpedance amplifier; the output of operational amplifier U2A is connected to one end of resistors R12 and R16 respectively; the inverting input of operational amplifier U2A is connected to the other end of resistor R16; the other end of resistor R16 is connected to one end of resistor R17; and resistor R... The other end of resistor R17 is connected to the non-inverting input of operational amplifier U2B and one end of resistor R18. The other end of resistor R18 is connected to the output of operational amplifier U2B. The output of operational amplifier U2B is connected to the inverting input of operational amplifier U2C and one end of resistor R15 through resistor R14. The other end of resistor R15 is grounded. The other end of resistor R12 is connected to one end of resistor R13 and the non-inverting input of operational amplifier U2C. The output of operational amplifier U2C is connected to the input interface of the microcontroller control unit.
[0017] Preferably, the reference voltage circuit includes resistors R19 and R20 connected in series, and resistors R21 and R22 connected in series. One end of resistors R19 and R21 is connected to a power supply, and the other end of resistors R20 and R22 is grounded. A capacitor C8 is connected in parallel across resistor R20, and a capacitor C9 is connected in parallel across resistor R22. The reference voltage signal Vr / X output from the midpoint of resistors R19 and R20 is connected to the non-inverting input of operational amplifier U1A of the constant potential circuit. The reference voltage signal Vr / 2 output from the midpoint of resistors R21 and R22 is connected to the non-inverting inputs of the first operational transimpedance amplifier and the second operational transimpedance amplifier, respectively.
[0018] Preferably, the temperature acquisition circuit uses a temperature acquisition chip. The VIN pin of the temperature acquisition chip is connected to the power supply. The VIN pin of the temperature acquisition chip is grounded through capacitor C10. The OUT pin of the temperature acquisition chip outputs the temperature value through resistor R23 and is connected to the microcontroller control unit. The OUT pin of the temperature acquisition chip is grounded through capacitor C11.
[0019] Compared with the prior art, the beneficial effects of this utility model are as follows: 1. Four-electrode physical isolation: At the physical level, the working electrode and auxiliary electrode can independently detect CO and H2, and at the hardware level, interference signals are separated to ensure high signal accuracy.
[0020] 2. Dynamic compensation mechanism: Combining offline calibration (pure H2 exposure) with existing online recursive algorithms (RLS), it adapts to sensor aging and can adapt to different environments and sensor lifespan detection.
[0021] 3. Temperature adaptive circuit: An integrated digital temperature sensor is used to correct the compensation coefficient K(T) in real time, ensuring that the sensor can accurately detect temperatures over a wide range.
[0022] 4. Low-noise signal chain: The entire signal-to-noise ratio (SNR>60dB) is optimized from transimpedance amplifier circuit to ADC, ensuring high reliability of the sensor and making it less susceptible to external interference. Attached Figure Description
[0023] To more clearly illustrate the embodiments of this utility model, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1This is the circuit schematic diagram of this utility model.
[0025] Figure 2 This is a schematic diagram of the structure of the four-electrode electrochemical sensor of this utility model.
[0026] Figure 3 for Figure 1 Circuit diagram of a mid-interference transimpedance amplifier circuit.
[0027] Figure 4 for Figure 1 The circuit diagram of the signal conditioning circuit is shown, where (a) is a differential amplifier, (b) is a digital potentiometer, (c) is a temperature acquisition circuit, and (d) is a reference voltage circuit.
[0028] Figure 5 This is a flowchart of the data processing of this utility model.
[0029] Figure 6 This is a flowchart illustrating the process of this utility model.
[0030] Figure 7 A schematic diagram illustrating how a digital potentiometer functions as a sliding rheostat. Detailed Implementation
[0031] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0032] like Figure 1 As shown, a hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor includes a four-electrode electrochemical sensor, which is connected to a transimpedance amplifier circuit. Both the four-electrode electrochemical sensor and the transimpedance amplifier circuit are connected to a signal conditioning circuit. The signal conditioning circuit is connected to a microcontroller control unit.
[0033] The working electrode (WE) and auxiliary electrode (AE) of the four-electrode electrochemical sensor independently detect CO and H2, and output Faraday current to the transimpedance amplifier circuit.
[0034] The input terminal of the transimpedance amplifier circuit is connected to the working electrode and the auxiliary electrode of the four-electrode electrochemical sensor, respectively, to amplify the output current of the four-electrode electrochemical sensor for transmission to the subsequent acquisition stage, so as to be acquired by the ADC of the microcontroller control unit.
[0035] The signal conditioning circuit is connected to each electrode of the four-electrode electrochemical sensor and the output of the transimpedance amplifier circuit. It is used to condition the sensor potential or operating state, filter out high-frequency noise and common-mode interference, and ensure sensor reliability. The signal conditioning circuit includes a reference voltage circuit, a differential amplifier, and a temperature acquisition circuit. Both the reference voltage circuit and the differential amplifier are connected to the transimpedance amplifier circuit, and both the differential amplifier and the temperature acquisition circuit are connected to the microcontroller control unit. The temperature acquisition circuit is used to acquire temperature signals.
[0036] The microcontroller control unit processes the output signal of the transimpedance amplifier circuit and can optimize the signal using existing filtering algorithms to make the output signal smoother. Furthermore, the output signal of the transimpedance amplifier circuit can be processed by the microcontroller control unit to convert the signal into the unit signal required by the user, such as PPM or mg / m³. 3 And so on. Additionally, the output signal fed back from the transimpedance amplifier circuit can be temperature-compensated using a temperature signal, making the output signal closer to the actual concentration. The microcontroller control unit is implemented using an STM32053C8T6 MCU.
[0037] like Figure 2 As shown, the four-electrode electrochemical sensor comprises, from top to bottom, a gas diffusion layer, an electrode array layer, an electrolyte layer, a counter electrode layer, and a sensor housing.
[0038] The gas diffusion layer can be a waterproof and breathable membrane made of PTEE (polytetrafluoroethylene) or PE (polyethylene) material, which allows gas (CO, H2, O2) to permeate, blocks liquid electrolyte leakage, and allows the gas to diffuse to the electrode surface to undergo an oxidation-reduction reaction.
[0039] The electrode array layer includes a working electrode (WE), an auxiliary electrode (AE), and a reference electrode (RE). The working electrode is used for the oxidation reaction of the target gas, forming a first Faraday current. The auxiliary electrode is used to detect interfering gas (H2), causing hydrogen to be oxidized and generating a second Faraday current. The reference electrode is used to maintain the stability of the working electrode potential to ensure constant reaction conditions. The working electrode is coated with a CO-selective catalyst (such as Pt / C) onto a conductive substrate (such as carbon paper) to detect the CO oxidation current; the oxidation reaction is achieved through the Pt / C catalyst. The auxiliary electrode is coated with an H2-selective catalyst (such as Pd / Ni) to detect H2 interference signals and generate an auxiliary current. The reference electrode uses Ag / AgCl immersed in a solid electrolyte (such as a Nafion membrane) to provide a stable potential reference, ensuring a constant working electrode potential.
[0040] The electrolyte layer acts as an ion conductor, forming an ion pathway between the electrodes to facilitate charge transfer and providing a place for the electrodes while preventing direct contact that could lead to short circuits. The electrolyte layer uses a solid electrolyte (such as Nafion 117) or a gel electrolyte (H3PO4 / PVA (polyvinyl alcohol) gel) to provide ion conduction pathways and isolate the electrodes to prevent short circuits.
[0041] The counter electrode (CE) in the counter electrode layer forms a current loop with the working electrode to balance charge transfer and ensure the integrity of the redox reaction. The counter electrode is made of inert platinum mesh, providing the current loop.
[0042] The sensor housing can be made of flame-retardant ABS material or stainless steel insulating material, and the above-mentioned layers can be assembled to form a complete sensor.
[0043] A selectively permeable membrane is installed at the air inlet on the top of the sensor housing. All gases entering the sensor pass through the selectively permeable membrane before contacting the electrode material. The selectively permeable membrane can isolate CO gas from the outside and only allow hydrogen gas (H2) to pass through, thereby filtering interfering gases to the auxiliary electrode (AE).
[0044] like Figure 3 As shown, the transimpedance amplifier circuit includes a first operational transimpedance amplifier and a second operational transimpedance amplifier. The first operational transimpedance amplifier is operational amplifier U1B. The non-inverting input of the first operational transimpedance amplifier is connected to an output terminal Vr / 2 of the reference voltage circuit of the signal conditioning circuit. The working electrode of the sensor is connected to the inverting input of the first operational transimpedance amplifier through resistor R4. The two ends of the feedback resistor R5 are connected to the inverting input and the output terminal of the first operational transimpedance amplifier, respectively. The two ends of the compensation capacitor C3 are connected to the inverting input and the output terminal of the first transimpedance amplifier, respectively. The output terminal of the first operational transimpedance amplifier is connected to the non-inverting input of the differential amplifier circuit of the signal conditioning circuit through a first low-pass filter. Resistor R4 is used for current limiting. If the operational amplifier is short-circuited, the reference power supply VCC is applied to resistor R4 through operational amplifier U1B, so that the circuit current does not exceed the safe value. The feedback resistor R5 is used to change the circuit gain of the first transimpedance amplifier. By configuring different resistance values, the signal can be amplified to different degrees. The capacitor C3, feedback resistor, and R5 synchronously form an RC filter circuit, which can filter high-frequency signals. The first low-pass filter includes a resistor R6 and a capacitor C4. The output of the first operational transimpedance amplifier is connected to the non-inverting input of the differential amplifier circuit through the resistor R6. The resistor R6 is grounded through the capacitor C4. The resistor R6 is mainly used for current limiting protection to prevent the subsequent circuit from being damaged by overcurrent, protect the output stage of the amplifier, and form a low-pass filter with the subsequent capacitor C4 to filter out high-frequency signals.
[0045] The second operational transimpedance amplifier is operational amplifier U1C. Its non-inverting input is connected to one output of the reference voltage circuit in the signal conditioning circuit. Its inverting input is connected to the auxiliary electrode of the sensor via resistor R11. The two outputs of digital potentiometer U3 are connected to the inverting input and output of the second operational transimpedance amplifier, respectively. The two ends of compensation capacitor C5 are connected to the inverting input and output of the second operational transimpedance amplifier, respectively. The output of the second operational transimpedance amplifier is connected to the inverting input of the differential amplifier circuit in the signal conditioning circuit via a second low-pass filter. Resistor R11 functions the same as resistor R4 for current limiting, and capacitor C5 functions the same as capacitor C3 for low-pass filtering. The second low-pass filter includes resistor R8 and capacitor C7. The output of the second operational transimpedance amplifier is connected to the inverting input of the differential amplifier circuit via resistor R8, and the other end of resistor R8 is grounded via capacitor C7. Resistor R8 and capacitor C7 function the same as resistor R6 and capacitor C4.
[0046] The working electrode and auxiliary electrode are connected to the drain and source of the first PMOS transistor, respectively. The gate of the first PMOS transistor is connected to the power supply through resistor R10. Resistor R10 is mainly used for current limiting protection to prevent excessive current from being applied to the first PMOS transistor and damaging it when the power supply is short-circuited. The first PMOS transistor is mainly used to maintain the potential difference between the WE electrode and the CE electrode in order to shorten the sensor warm-up time and enable it to reach a stable state more quickly.
[0047] The working electrode and the reference electrode are respectively connected to the drain and source of the second PMOS transistor. The gate of the second PMOS transistor is connected to the power supply through resistor R9. Resistor R9 and the second PMOS transistor function the same as resistor R10 and the first PMOS transistor, in order to maintain the potential difference between the AE electrode and the CE electrode.
[0048] like Figure 3 As shown, the transimpedance amplifier circuit also includes a constant potential circuit, which includes an operational amplifier U1A. The inverting input and output of operational amplifier U1A are both connected to the output of a second-order RC filter. The input of the second-order RC filter is connected to the counter electrode and the reference electrode, respectively. The second-order RC filter is used to filter out high-frequency ambient noise. The second-order RC filter includes resistors R1, R2, and R3, and capacitor C1. The counter electrode is connected to one end of resistor R1, and the other end of resistor R1 is connected to one end of capacitor C1 and the output of operational amplifier U1A. The reference electrode is connected to one end of resistor R2, and the other end of resistor R2 is connected to the other end of capacitor C1 and one end of resistor R3, respectively. The other end of resistor R3 is connected to the inverting input of operational amplifier U1A, and the non-inverting input of operational amplifier U1A is connected to the other output of the reference voltage circuit.
[0049] like Figure 4As shown in (b), digital potentiometer U3 ( Figure 1 The CS pin (not shown) connects to any I / O port of the microcontroller control unit, and the DIN and SCLK pins connect to the TIM pin of the microcontroller control unit. Digital potentiometer U3 can use a MAX5400 digital potentiometer. The slider position is controlled via a three-wire serial data interface. When the CS pin is low, the rising edge of the pulse output from the SCLK pin is synchronously loaded into an 8-bit serial shift register. After all 8 data bits are loaded into the shift register, the CS pin goes high, latching the data to the decoder. The decoder then slides the potentiometer to the tap position corresponding to the 8-bit input data, achieving dynamic resistance adjustment in units of 50KΩ / 255 or 196.1Ω, thus realizing... Figure 7 The function of the sliding rheostat is shown.
[0050] The working electrode and auxiliary electrode of the sensor output Faraday current signals, which are amplified by the first and second operational transimpedance amplifiers, respectively. The weak current output by the sensor is converted into a voltage signal. The gain is dynamically adjusted by the digital potentiometer U3 controlled by the microcontroller control unit to ensure that the hydrogen reaction values of the working electrode and the auxiliary electrode are the same. After the current signal passes through the transimpedance amplifier, it needs to be further processed by the differential amplifier to eliminate common-mode noise. The outputs of the signals from the working electrode and the auxiliary electrode after passing through the transimpedance amplifier are connected to the input of the differential amplifier to extract the difference between the two signals, thereby eliminating common interference signals.
[0051] like Figure 4 As shown, after passing through a transimpedance amplifier, the sensor signal is connected to a signal conditioning circuit. The sensor signal undergoes differential amplification before being connected to a microcontroller control unit for signal processing to detect gas concentration. The signal conditioning circuit includes a differential amplifier, a temperature acquisition circuit, and a reference voltage circuit. The outputs of the first and second operational transimpedance amplifiers are connected to the differential amplifier, which is then connected to the microcontroller control unit. The temperature acquisition circuit is connected to the microcontroller control unit. The reference voltage circuit is connected to the non-inverting input of the first and second operational transimpedance amplifiers and the constant potential circuit, respectively, to provide the power supply voltage for the sensor and the bias voltage for the operational amplifiers. The reference electrode of the sensor is connected to the inverting input of the operational amplifier U1A in the constant potential circuit, and the output of operational amplifier U1A is connected to the counter electrode to ensure a constant potential. The outputs of the two transimpedance amplifiers are connected to the differential amplifier, which is used to eliminate common-mode noise and extract the effective signal. The temperature acquisition circuit is connected to the microcontroller control unit and collects the ambient temperature in real time to serve as a temperature compensation correction reference and adjust the compensation coefficient.
[0052] like Figure 4 As shown in (a), the differential amplifier includes operational amplifiers U2A, U2B, and U2C. The non-inverting input of operational amplifier U2A is connected to the other end of resistor R6 of the first low-pass filter. The inverting input of operational amplifier U2B is connected to the other end of resistor R8 of the second low-pass filter. The output of operational amplifier U2A is connected to one end of resistors R12 and R16, respectively. The inverting input of operational amplifier U2A is connected to the other end of resistor R16. The other end of resistor R16 is connected to one end of resistor R17. The other end of resistor R17 is connected to the non-inverting input of operational amplifier U2B and one end of resistor R18, respectively. The other end of resistor R18 is connected to the output of operational amplifier U2B. The output of operational amplifier U2B is connected to the inverting input of operational amplifier U2C and one end of resistor R15 through resistor R14. The other end of resistor R15 is grounded. The other end of resistor R12 is connected to one end of resistor R13 and the non-inverting input of operational amplifier U2C. The output signal Sout of operational amplifier U2C is connected to the input interface of the microcontroller control unit. Resistors R16 and R17 determine the gain of the first stage of the differential circuit. Resistors R12 and R13 set the gain of the second-stage inverting amplification path. Resistors R14 and R15 are used to ensure that the second stage only amplifies the differential signal and suppresses the common-mode signal, which must meet a certain resistor matching relationship. Resistor R17 is the key resistor for setting the differential gain, enabling flexible gain adjustment. The whole circuit constitutes a differential amplifier.
[0053] like Figure 4 As shown in (c), the temperature acquisition circuit uses a temperature acquisition chip U4, specifically model TC1047A. The temperature acquisition chip U4 is located in the same environment as the signal conditioning circuit and is used to acquire the ambient temperature. The VIN pin of the temperature acquisition chip U4 is connected to the VCC power supply and is grounded through capacitor C10. The OUT pin of the temperature acquisition chip U4 outputs the temperature value through resistor R23 and is connected to the microcontroller control unit. Resistor R23 is used for current limiting to prevent excessive current in subsequent stages. The OUT pin of the temperature acquisition chip U4 is grounded through capacitor C11.
[0054] like Figure 4As shown in (d), the reference voltage circuit includes resistors R19 and R20 connected in series, and resistors R21 and R22 connected in series. One end of resistors R19 and R21 is connected to a power supply, and the other end of resistors R20 and R22 is grounded. A capacitor C8 is connected in parallel across resistor R20, and a capacitor C9 is connected in parallel across resistor R22. The reference voltage signal Vr / X output from the midpoint of resistors R19 and R20 is connected to the non-inverting input of operational amplifier U1A. The reference voltage signal Vr / 2 output from the midpoint of resistors R21 and R22 is connected to the non-inverting inputs of the first and second operational transimpedance amplifiers, respectively. Resistors R19 and R20 are used for voltage division as the reference voltage for the constant potential circuit to maintain the voltage difference between the sensor electrodes. Resistors R21 and R22 are used for voltage division as the reference voltage for the transimpedance amplifier circuit to raise the zero point of the output signal and prevent the presence of negative signals that cannot be identified.
[0055] Figure 5The diagram illustrates the dynamic compensation method for the hydrogen compensation coefficient. In terms of software algorithm processing, the microcontroller control unit first reads the ADC value output from the temperature acquisition circuit in real time for conversion and real-time temperature reading. Data acquisition and model fitting are performed through experimental calibration: Zero-point output signals at different ambient temperatures are acquired in high and low temperature chambers, and then different hydrogen concentrations are introduced to obtain signal data. Linear fitting is then performed using polynomial equations to obtain a curve model of the signal with respect to temperature, which can be implemented using existing computer programs. The differences ΔVWE between the WE electrode output signal at different temperatures T and the WE electrode voltage output signal at room temperature, and ΔVAE between the AE electrode output signal and the AE electrode voltage signal at room temperature, are measured. These differences ΔVWE and ΔVAE are calculated and acquired by the ADC of the microcontroller control unit. Calculate the corresponding temperature compensation coefficient K(T): Using a fixed concentration of reaction at room temperature as a benchmark, calculate the compensation coefficient by comparing the difference in reaction at different temperatures with the benchmark. Based on the calculated temperature compensation coefficient K(T), if K(T) changes linearly with temperature, construct the temperature compensation coefficient K(T) = K0 * (1 + α(T - T0)), where K0 is the compensation coefficient at the reference temperature T0, typically taken as 1, and α is the temperature coefficient, typically taken as 0.5-1% / ℃. If K(T) does not change linearly with temperature, construct a polynomial model of temperature compensation coefficient K(T) = aT² + bT + c, where coefficients a, b, and c are obtained by fitting experimental data using the least squares method. This is done by passing different concentrations of target gas to the sensor at room temperature, obtaining data, and fitting it into the polynomial equation. The linear or nonlinear model constructed based on the temperature compensation coefficient K(T) value is then used for compensation signal processing to output the final gas concentration. Based on the above scheme, a curve compensation equation for the signal with respect to temperature can be obtained. The microcontroller control unit collects the temperature signal, substitutes it into the fitted temperature compensation equation to obtain the current compensation coefficient, and when outputting the final concentration signal, the actual concentration signal is superimposed with the compensation before output, finally obtaining the compensated concentration signal. Based on existing concentration calculation methods, the coefficients are fitted during the calculation.
[0056] like Figure 6As shown, the working principle of this invention is as follows: When the four-electrode electrochemical sensor is working, if the detected gas and mixed hydrogen gas are present in the environment, the gas diffuses into the sensor. The working electrode WE and the auxiliary electrode AE of the sensor output current signals. Combined with the temperature signal collected in real time by the microcontroller control unit and the internally constructed hydrogen compensation model, a control signal is output to the digital potentiometer to adjust the hydrogen compensation coefficient gain of the auxiliary electrode signal. After reading the temperature, the microcontroller control unit writes data through three serial ports to adjust the output resistance. After current-to-voltage transimpedance amplification by the transimpedance amplifier circuit, the signal is output to the signal conditioning circuit for signal filtering and differential amplification to eliminate common-mode noise and ADC digitization. The processed signal is output to the microcontroller control unit, filtered by the existing Kalman algorithm, and converted to concentration using calibration information before output to achieve hydrogen-compensated gas concentration detection. (The calibration information is obtained by testing the gas at the factory and writing the reaction signal into the microcontroller control unit as calibration information, which serves as a reference for concentration calculation.)
[0057] Through the above-mentioned hydrogen compensation, the sensor can be made to not output "erroneous signals" and generate false alarms in the presence of hydrogen interference. It can also accurately detect the concentration of target gas CO in the presence of target gas CO and H2, without being affected by H2 interference, thus achieving H2-resistant detection.
[0058] The above description is only a preferred embodiment of the present utility model and is not intended to limit the present utility model. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present utility model should be included within the protection scope of the present utility model.
Claims
1. A hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor, characterized in that: It includes a four-electrode electrochemical sensor, which is connected to a transimpedance amplifier circuit. Both the four-electrode electrochemical sensor and the transimpedance amplifier circuit are connected to a signal conditioning circuit. The signal conditioning circuit is connected to a microcontroller control unit.
2. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 1, characterized in that: The signal conditioning circuit includes a reference voltage circuit, a differential amplifier, and a temperature acquisition circuit. The reference voltage circuit and the differential amplifier are both connected to the transimpedance amplifier circuit, and the differential amplifier and the temperature acquisition circuit are both connected to the microcontroller control unit.
3. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 1 or 2, characterized in that: The four-electrode electrochemical sensor comprises, from top to bottom, a gas diffusion layer, an electrode array layer, an electrolyte layer, a counter electrode layer, and a sensor housing. The electrode array layer contains a working electrode, an auxiliary electrode, and a reference electrode. The working electrode is coated with a CO selective catalyst on a conductive substrate to detect the CO oxidation current; the auxiliary electrode is coated with an H2 selective catalyst to detect H2 interference signals and generate an auxiliary current; the reference electrode is made of Ag / AgCl immersed in a solid electrolyte to provide a stable potential reference and ensure that the working potential of the working electrode is constant. The counter electrode in the counter electrode layer forms a current loop with the working electrode. The sensor housing has a selectively breathable membrane at the air inlet at the top.
4. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 2, characterized in that: The transimpedance amplifier circuit includes a first operational transimpedance amplifier and a second operational transimpedance amplifier. The output terminals of the first operational transimpedance amplifier and the second operational transimpedance amplifier are respectively connected to a differential amplifier, which is connected to a microcontroller control unit. The output segment of the reference voltage circuit is respectively connected to the input terminals of the first operational transimpedance amplifier and the second operational transimpedance amplifier. The non-inverting input of the first operational transimpedance amplifier is connected to an output terminal of the reference voltage circuit of the signal conditioning circuit. The inverting input of the first operational transimpedance amplifier is connected to the working electrode of the four-electrode electrochemical sensor through resistor R4. A feedback resistor R5 and a compensation capacitor C3 are connected in parallel between the inverting input and the output terminal of the first operational transimpedance amplifier. The output terminal of the first operational transimpedance amplifier is connected to the non-inverting input terminal of the differential amplifier circuit of the signal conditioning circuit through the first low-pass filter. The non-inverting input of the second operational transimpedance amplifier is connected to one output of the reference voltage circuit of the signal conditioning circuit. The inverting input of the second operational transimpedance amplifier is connected to the auxiliary electrode of the four-electrode electrochemical sensor through resistor R11. The inverting input and the output of the second operational transimpedance amplifier are respectively connected to the two outputs of the digital potentiometer. The inverting input and the output of the second operational transimpedance amplifier are respectively connected to the two ends of the compensation capacitor C5. The output of the second operational transimpedance amplifier is connected to the input of the differential amplifier circuit of the signal conditioning circuit through the second low-pass filter.
5. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 4, characterized in that: The transimpedance amplifier circuit also includes a constant potential circuit, which includes an operational amplifier U1A. The non-inverting input of the operational amplifier U1A is connected to the other output of the reference voltage circuit. The inverting input and output of the operational amplifier U1A are both connected to the output of a second-order RC filter. The input of the second-order RC filter is connected to the counter electrode and the reference electrode, respectively. The working electrode and the auxiliary electrode are respectively connected to the drain and source of the first PMOS transistor, and the gate of the first PMOS transistor is connected to the power supply through resistor R10. The working electrode and the reference electrode are connected to the drain and source of the second PMOS transistor, respectively, and the gate of the second PMOS transistor is connected to the power supply through resistor R9.
6. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 5, characterized in that: The first low-pass filter includes a resistor R6 and a capacitor C4. The output terminal of the first operational transimpedance amplifier is connected to the input terminal of the differential amplifier circuit through the resistor R6, and the resistor R6 is grounded through the capacitor C4. The second low-pass filter includes a resistor R8 and a capacitor C7. The output of the second operational transimpedance amplifier is connected to the inverting input of the differential amplifier circuit through the resistor R8. The other end of the resistor R8 is grounded through the capacitor C7. The resistor R8 and the capacitor C7 function the same as the resistor R6 and the capacitor C4. The second-order RC filter includes resistors R1, R2, and R3, and capacitor C1. The counter electrode is connected to one end of resistor R1, and the other end of resistor R1 is connected to one end of capacitor C1 and the output terminal of operational amplifier U1A. The reference electrode is connected to one end of resistor R2, and the other end of resistor R2 is connected to the other end of capacitor C1 and one end of resistor R3. The other end of resistor R3 is connected to the inverting input terminal of operational amplifier U1A, and the non-inverting input of operational amplifier U1A is connected to the other output terminal of the reference voltage circuit.
7. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to any one of claims 4-6, characterized in that: The CS pin of the digital potentiometer is connected to any I / O port of the microcontroller control unit, and the DIN pin and SCLK pin of the digital potentiometer are connected to the TIM pin of the microcontroller control unit; the two output pins of the digital potentiometer are connected to the inverting input and the output of the second operational transimpedance amplifier, respectively.
8. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 7, characterized in that: The differential amplifier includes operational amplifiers U2A, U2B, and U2C. The non-inverting input of operational amplifier U2A is connected to the output of the first operational transimpedance amplifier; the inverting input of operational amplifier U2B is connected to the output of the first operational transimpedance amplifier; the output of operational amplifier U2A is connected to one end of resistors R12 and R16 respectively; the inverting input of operational amplifier U2A is connected to the other end of resistor R16; the other end of resistor R16 is connected to one end of resistor R17; and resistor R17... The other end of the resistor is connected to the non-inverting input of operational amplifier U2B and one end of resistor R18. The other end of resistor R18 is connected to the output of operational amplifier U2B. The output of operational amplifier U2B is connected to the inverting input of operational amplifier U2C and one end of resistor R15 through resistor R14. The other end of resistor R15 is grounded. The other end of resistor R12 is connected to one end of resistor R13 and the non-inverting input of operational amplifier U2C. The output of operational amplifier U2C is connected to the input interface of the microcontroller control unit.
9. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 8, characterized in that: The reference voltage circuit includes resistors R19 and R20 connected in series, and resistors R21 and R22 connected in series. One end of resistors R19 and R21 is connected to a power supply, and the other end of resistors R20 and R22 is grounded. A capacitor C8 is connected in parallel across resistor R20, and a capacitor C9 is connected in parallel across resistor R22. The reference voltage signal Vr / X output from the midpoint of resistors R19 and R20 is connected to the non-inverting input of operational amplifier U1A in the constant potential circuit. The reference voltage signal Vr / 2 output from the midpoint of resistors R21 and R22 is connected to the non-inverting inputs of the first operational transimpedance amplifier and the second operational transimpedance amplifier, respectively.
10. The hydrogen cross-interference compensation device based on a four-electrode electrochemical sensor according to claim 8 or 9, characterized in that: The temperature acquisition circuit uses a temperature acquisition chip. The VIN pin of the temperature acquisition chip is connected to the power supply. The VIN pin of the temperature acquisition chip is grounded through capacitor C10. The OUT pin of the temperature acquisition chip outputs the temperature value through resistor R23 and is connected to the microcontroller control unit. The OUT pin of the temperature acquisition chip is grounded through capacitor C11.
Citation Information
Patent Citations
Detection circuit based on four-electrode electrochemical gas sensor
CN215415186U
