A dual-channel detector uses an active channel tuned to the target gas absorption wavelength and a reference channel tuned to a neutral wavelength. This layout allows the system to continuously ratio the two channels, compensating for optical degradation, dust buildup, and light source aging that would otherwise cause severe long-term drift in a single-beam setup.
How to Design an NDIR Gas Sensor System
AnswerDesign guide
Designing a non-dispersive infrared (NDIR) gas sensor requires integrating an infrared source, an optical gas sample chamber, narrow-band optical filters, a thermopile or pyroelectric detector, and a precision analog front-end to process microvolt-level signals.
Designing a non-dispersive infrared (NDIR) gas sensor requires combining optomechanical structures with low-noise analog circuit design. NDIR technology relies on the Beer-Lambert law, which states that gas concentration is logarithmically proportional to the attenuation of specific infrared wavelengths passing through a sample volume. For carbon dioxide (CO2), the primary absorption band is centered around 4.26 µm. Designing a high-performance custom sensor necessitates careful selection of emitters, optical path configurations, detectors, and signal-conditioning integrated circuits.
The system architecture can be broken down into four main blocks: the infrared radiation source, the optical gas cavity, the optical detection stage with bandpass filters, and the signal processing electronics. Hardware engineers must balance power consumption, thermal stability, optical efficiency, and cost targets depending on whether the application is battery-powered IoT monitoring or continuous industrial safety sensing.
Infrared Source and Optical Chamber Design
The choice of infrared emitter dictates the electrical power profile and modulation scheme of the sensor. Traditional micro-machined thermal sources like the Heimann Sensor HSL series or miniature tungsten filament lamps emit broad-spectrum blackbody radiation. These thermal emitters typically operate on a 50% duty cycle square wave modulated between 1 Hz and 3 Hz to prevent overheating and to generate a periodic thermal response. Alternatively, modern mid-IR LEDs provide faster response times and eliminate mechanical or thermal fatigue, though they often require higher peak drive currents and suffer from lower output power at longer wavelengths.
The optical gas chamber dictates the interaction path length between the infrared radiation and the target gas. To keep physical enclosure footprints small while achieving high sensitivity (since longer path lengths yield greater optical absorption per the Beer-Lambert law), folded-optics or gold-plated reflective multi-bounce chambers are commonly employed. The mechanical enclosure must permit free gas diffusion via sintered metal filters or particulate membranes while blocking ambient visible light and preventing dust accumulation on internal optical surfaces.
Optical Detection and Analog Front-End (AFE)
Detecting the filtered infrared radiation typically relies on dual-channel pyroelectric detectors or thermopile sensors such as the Alphasense IRC-AT series. A dual-channel configuration includes an active channel fitted with a narrow-band filter matching the target gas absorption line (e.g., 4.26 µm for CO2) and a reference channel fitted with a neutral filter (around 3.9 µm) where no gas absorption occurs. Comparing the active signal against the reference signal cancels out long-term optical degradation, dust accumulation, and source intensity drift.
Because thermopile detectors generate microvolt-level signals with high internal source resistance (roughly 100 kΩ), signal conditioning requires careful design to prevent noise floor degradation. Dedicated sensor analog front-ends like the Texas Instruments LMP91051 provide programmable gain amplifiers (PGAs), internal offset cancellation DACs, and common-mode biasing specifically tailored for dual-channel thermopiles. The AFE interfaces via SPI to a host microcontroller such as an MSP430 family device, which digitizes the signals using an internal or external analog-to-digital converter.
Temperature Compensation and Calibration
Both thermopile sensitivity and gas density vary significantly with ambient temperature and barometric pressure. Changes in temperature alter the mechanical dimensions of the optical cavity, the blackbody radiation curve of the source, and the responsivity of the detector. Hardware designs must incorporate an onboard negative temperature coefficient (NTC) thermistor located adjacent to the detector element to capture real-time temperature data.
Firmware algorithms utilize the thermistor reading alongside pressure sensor inputs to apply multi-order compensation polynomials to the raw active-to-reference ratio. Furthermore, long-term drift requires a calibration strategy. Many commercial designs implement automatic baseline correction (ABC logic) assuming ambient exposure to fresh air periodically, or provide manual multi-point span calibration routines using certified reference gas mixtures during factory assembly.