Capnography / Respiratory Gas: IR AFE + Compensation Guide
← Back to: Medical Imaging & Patient Monitoring
Capnography is reliable only when the optics + analog front end + timing are designed for moisture, drift, and delay—not when software tries to “fix” unstable raw signals. This page shows how to choose mainstream vs sidestream architecture, build an IR modulation + synchronous-demod chain, and apply P/T/H compensation, calibration, and waveform checks so EtCO₂ stays comparable over months.
H2-1 · What capnography measures (and what “EtCO₂” really means)
Capnography measures the time-varying CO₂ waveform in the breathing cycle, while capnometry reports numeric CO₂ values derived from that waveform. EtCO₂ is the end-expiratory CO₂ value near the plateau end, so it is only meaningful when the system response, transport delay, and waveform phase structure allow the plateau to be captured without distortion or drift.
Capnography vs capnometry
- Capnography = waveform-first. The primary output is the CO₂ trace vs time, enabling phase interpretation, breath quality checks, and trend stability.
- Capnometry = number-first. Values such as EtCO₂, FiCO₂, and breath rate are computed from the waveform and decision logic.
- Key takeaway: a “reasonable number” can still be wrong if the waveform is delayed, bandwidth-limited, or baseline-shifted. Waveform quality is the root constraint.
The three numbers that must match the waveform
Waveform phases (I / II / III / IV) — what each phase “means”
- Phase I (baseline): inspired gas / near-zero CO₂ region. Baseline lift usually indicates “zero shift” or true inspired CO₂.
- Phase II (upstroke): transition from dead-space to alveolar gas. A very rounded/slow upstroke often signals bandwidth limits or mixing in the sampling path.
- Phase III (plateau): near-alveolar CO₂. EtCO₂ is typically taken near the end of this plateau; poor plateau definition is a warning that EtCO₂ is not trustworthy.
- Phase IV (inspiratory downstroke): return toward baseline. Downstroke shape can be distorted by delay/response and baseline drift.
Fast diagnosis: “numbers vs waveform” mismatch patterns
- Rounded upstroke / missing plateau → physical low-pass (large cell volume, mixing, slow response) or long sampling path.
- Breath boundaries shift → sidestream transport delay not compensated or changing with sampling flow / line conditions.
- Random steps / dropouts → condensation or contamination events intermittently attenuate the optical signal.
- Baseline slowly rises → “zero” drift from temperature/pressure/humidity compensation mismatch, or optical contamination shifting reference ratio.
- EtCO₂ trends without matching waveform change → zero/span drift, pressure dependence not corrected, or reference channel aging.
- Inter-unit inconsistency → calibration workflow differences (zero/span) more than ADC resolution differences.
Practical checklist (before trusting EtCO₂)
- Confirm a visible Phase III plateau exists (EtCO₂ is not meaningful without it).
- Verify baseline (FiCO₂) stays near zero and does not creep upward across minutes.
- If sidestream, confirm time alignment (transport delay compensation) is applied and stable.
- Check for signs of attenuation events (condensation/contamination) if the waveform intermittently collapses.
- Use calibration history to rule out zero/span drift before chasing “higher-resolution ADC” as the fix.
Practical note: EtCO₂ is only as good as the captured plateau. If Phase III is flattened, delayed, or baseline-shifted, treat EtCO₂ as “suspect” and fix the chain first.
H2-2 · Mainstream vs sidestream: architecture trade-offs you cannot “fix by software”
Mainstream places the optical cell at the airway for minimal transport delay and crisp phase structure, but it must manage condensation, contamination, and heating at the patient interface. Sidestream moves gas through a sampling line for flexible placement, but it introduces transport delay and physical bandwidth limits from line volume, mixing, and moisture management—these cannot be “recovered” by algorithms.
Side-by-side comparison (what matters in practice)
| Dimension | Mainstream | Sidestream |
|---|---|---|
| Transport delay | Near-minimal (cell at airway) | Can be significant (sampling line volume ÷ sampling flow) |
| Dynamic response (t90) | Often better plateau fidelity (less mixing) | Limited by line mixing + cell volume + moisture handling |
| Moisture / condensation | At patient interface (requires heating / robust optics) | In sampling path (water trap / hydrophobic membrane / maintenance) |
| Contamination risk | High exposure; optical window protection is critical | Distributed risk (line + trap + cell); blockage/leaks matter |
| Mechanical constraints | Airway adapter size/weight constraints | Flexible placement, but depends on sampling line setup |
| Best fit | When phase fidelity and minimal delay are top priority | When placement flexibility is needed and delay is acceptable/compensated |
t90 vs transport delay: “slow” is not the same as “late”
Design implications (what must be specified upfront)
- Sampling flow and stability (delay changes if flow changes).
- Line length/ID (sets volume and mixing).
- Cell volume and internal flow path (sets t90 and plateau fidelity).
- Moisture strategy (trap/membrane) sized to prevent attenuation events and blockage symptoms.
- Heating and condensation window at the adapter (baseline drift and signal attenuation if uncontrolled).
- Optical window contamination (requires protective geometry and predictable maintenance paths).
- Mechanical constraints (adapter mass/size affects real-world usage and repeatability).
Practical takeaway: choose architecture by physics first (delay and bandwidth), then tune algorithms. Misplacing the root cause leads to “endless DSP tweaks” that never recover a missing plateau.
H2-3 · IR absorption basics for CO₂: what your AFE must assume
NDIR capnography does not measure “CO₂ directly.” It measures optical attenuation that depends on CO₂ concentration, optical path length, and pressure/temperature. The transfer curve is nonlinear and drifts with source aging, window contamination, and temperature gradients. The AFE must therefore prioritize stable baseline, reference/ratio handling, and calibration hooks over raw ADC bit count.
The minimal model (enough for circuits and algorithms)
- Absorption depends on concentration and path length: more CO₂ or longer path → more attenuation (not a perfect line).
- Pressure and temperature reshape the curve: changing gas density and absorption characteristics shifts the same optical reading to a different CO₂ estimate.
- Electronics and optics add their own “gain drift”: source output, detector sensitivity, and front-end gain drift can mimic real CO₂ change unless normalized.
- Calibration is part of the measurement: the output is only comparable across devices/time when zero/span (and compensation coefficients) are controlled.
Single wavelength vs dual wavelength (reference channel)
- Simpler optics and lower BOM complexity.
- Higher sensitivity to window contamination, source aging, and temperature drift because amplitude changes look like CO₂ changes.
- Requires stronger reliance on frequent calibration and/or tight control of contamination/heating.
- Uses a reference wavelength with minimal CO₂ absorption to normalize common-mode drift (aging, contamination, temperature gain shifts).
- Improves long-term stability because the system tracks ratio / normalized attenuation, not raw amplitude.
- Still needs calibration, but calibration becomes more repeatable and less sensitive to optics “getting dirty.”
Filter bandwidth: stability vs cross-sensitivity (keep it in CO₂ scope)
- Wider bandwidth increases signal energy but can admit more neighboring absorption and scattering effects (notably water vapor and contamination scatter), raising cross-sensitivity risk.
- Narrower bandwidth improves selectivity but becomes more sensitive to optical alignment, incidence angle, and temperature-related shifts; manufacturing tolerance can dominate drift.
- Practical rule: treat the filter as a system drift component, not only a “spectral selector,” and validate with humidity/condensation stress tests.
AFE design checklist (what must be true before chasing more ADC bits)
- Normalization path exists (reference channel or equivalent) to reject common-mode optical/electronic drift.
- Modulation + synchronous detection is supported so baseline drift and ambient effects are pushed out of the measurement band.
- P/T inputs are available (at least as measured metadata) so compensation can be applied consistently.
- Calibration parameters are versioned (zero/span + compensation coefficients) to keep numbers comparable over months.
- Attenuation events are detectable (condensation/contamination) so the chain can flag “waveform/EtCO₂ not trustworthy.”
Practical note: stable EtCO₂ comes from a stable measurement chain (ratio + calibration + compensation), not from pushing resolution while leaving drift unbounded.
H2-4 · Optical cell design: contamination, condensation, and why “heating” is a system spec
Moisture and contamination are not edge cases in capnography—they are the main drivers of baseline drift, attenuation events, and “good waveform but drifting numbers.” Heating (or another anti-condensation strategy) must be specified as a system requirement, with defined warm-up time, allowed temperature gradients, and serviceability for optical windows and sampling-path components.
Failure chains: how water becomes CO₂ error
- Droplets form on windows or inside the cell → scattering/attenuation jumps.
- Waveform amplitude collapses or becomes noisy → plateau quality degrades → EtCO₂ becomes unstable.
- Reference normalization helps, but heavy condensation can still break the signal-to-noise budget; detection and flagging are required.
- Deposits build on optical windows → slow loss of transmission and changing scatter profile.
- Numbers drift even if waveform shape looks plausible → calibration interval tightens, inter-unit variation increases.
- Serviceability (replace/clean path) and reference/ratio design are the main defenses.
Mainstream vs sidestream: moisture strategy is a trade-off, not a checkbox
| Choice | What it improves | What it costs | Typical symptom when wrong |
|---|---|---|---|
| Mainstream heating | Prevents condensation at airway window; stabilizes baseline | Power, warm-up time, thermal gradients, mechanical complexity | Start-up drift; intermittent attenuation; “plateau disappears” in humid breaths |
| Sidestream water trap | Protects optics from liquid water; reduces sudden dropouts | Maintenance; blockage risk; added delay/volume | Baseline creep; sudden flow loss; step-like waveform dropouts |
| Hydrophobic membrane | Stops liquid water intrusion; reduces contamination migration | Added flow impedance; sensitivity to clogging over time | Slow response (t90 worsens); breath boundaries smear |
| Dryer segment | Reduces humidity swing; improves long-term stability | Complexity, lifetime variability, added system characterization effort | Device-to-device drift scatter; calibration mismatch between lots |
Optical geometry: transmission vs reflection vs multi-pass (capnography scope only)
- Transmission: intuitive geometry; window contamination directly reduces signal; serviceability matters.
- Folded reflection: compact path; surface condition becomes more influential; requires robust contamination strategy.
- Multi-pass: longer effective path (more sensitivity) but amplifies scatter/film effects; must be paired with strong normalization and condensation control.
Design checklist (turn “heating” into a measurable spec)
- Define a warm-up time target and acceptable temperature gradient across the optical window/cell.
- Specify the allowable condensation window (what the system must tolerate without waveform collapse).
- Ensure serviceability: predictable window cleaning/replacement path, and stable optical alignment after service.
- For sidestream, characterize delay and t90 with moisture strategy installed (trap/membrane/dryer) so performance is not “surprising” in the field.
- Implement attenuation-event detection so the UI/logic can flag unreliable EtCO₂ rather than silently drifting.
Practical takeaway: condensation control protects waveform integrity; contamination control protects long-term comparability. Both must be engineered as part of the optical cell system.
H2-5 · IR source & detector interface: modulation choices and failure signatures
Modulation is the practical way to move CO₂ information away from low-frequency drift and ambient interference. The source drive method, modulation frequency, and detector interface must be chosen as a single chain—otherwise common failures (aging, contamination, saturation, bias drift) will appear as “CO₂ changes” in the waveform and EtCO₂.
IR source drive: constant-current vs PWM (what changes electrically)
- Constant-current modulation stabilizes optical amplitude against supply variation and device temperature drift, improving repeatability for ratio/normalization.
- PWM / switching modulation is easy to implement, but it can inject edge-related noise into the detector/AFE unless the driver return path and supply filtering are tightly controlled.
- Both approaches need a defined modulation reference for synchronous demodulation (H2-6), otherwise amplitude drift and ambient effects leak into the baseband.
Modulation frequency: a selection logic (not a magic number)
- Pick above the 1/f-drift-dominated region so baseline drift is reduced after demodulation.
- Pick within detector + AFE usable bandwidth so the modulated amplitude is not rolled off or phase-distorted.
- Avoid dominant interference clusters (mains-related ripple and common lighting flicker harmonics) and ensure the demod/ADC window can lock cleanly.
Detector interface: thermopile vs pyroelectric (design intuition)
- Slower response and lower bandwidth; stable synchronous demodulation helps more than pushing modulation too high.
- Large source impedance makes input bias stability and leakage paths critical (humidity/contamination can become DC error).
- Naturally responds to changes (AC-like behavior); works well with modulation but requires careful front-end biasing and anti-saturation measures.
- Amplitude can be sensitive to mechanical/thermal transients; robust demod + filtering is mandatory.
Failure signatures: map causes to observable symptoms
| Failure | CO₂-band amplitude | REF-band amplitude | Ratio / normalize | Waveform clue |
|---|---|---|---|---|
| Source aging / driver weakening | Slow ↓ | Slow ↓ | Often stable early; SNR worsens | Plateau becomes noisy; small breaths fade |
| Window contamination film | ↓ (may differ) | ↓ (may differ) | Shifts (common-mode rejection breaks) | Numbers drift while shape looks “OK” |
| Detector saturation / AFE clipping | Flattens at peaks | May flatten too | Unreliable | Clipped plateau; breath boundaries distort |
| Bias drift / leakage (humidity) | Baseline shifts | Baseline shifts | May look stable but offset grows | FiCO₂ baseline creeps; slow “tilt” across time |
H2-6 · Analog front-end & ADC: designing for tiny signals in a wet, moving world
The hardest requirement is not raw resolution—it is baseline stability and usable dynamic range while humidity, motion, and interference continuously perturb the chain. Synchronous demodulation (lock-in) moves the measurement away from drift and ambient effects, and the ADC + digital filtering must be tied to t90 response and breath-rate dynamics so the plateau remains accurate and timely.
AFE priorities: zero stability beats “more bits”
- TIA/PGA noise sets plateau jitter; bias stability sets FiCO₂ baseline credibility.
- Humidity and contamination can create leakage paths; input bias planning and guarding prevent “fake CO₂ offsets.”
- Gain strategy must prevent clipping during strong breaths while still resolving low-amplitude regions and small breaths.
Why synchronous demod (lock-in) is non-negotiable
- Modulation moves the useful signal near fmod, away from low-frequency drift and slow baseline wander.
- Sync demod multiplies by the known reference and then low-pass filters, rejecting ambient light flicker and a large part of 1/f behavior.
- The low-pass corner and averaging window must preserve breath dynamics: overly aggressive filtering smears phase transitions and biases EtCO₂.
ADC and digital filtering: bind specs to t90 and breath rate
- Sampling rate (Fs) must support stable demodulation and a clean digital filter window without aliasing.
- Effective resolution (ENOB) must cover baseline + plateau + transient attenuation events without frequent saturation or quantization collapse.
- Filter window should reduce plateau noise while preserving the time placement of phases—tie it to measured t90 and expected breath rate range.
Practical “noise becomes reading noise” controls (stay out of EMC deep dive)
- Keep driver switching currents out of the detector/AFE return path; isolate the driver supply locally and control edge energy.
- Give ADC reference a clean, quiet path; treat reference noise as direct measurement noise after demodulation.
- Place a simple clipping/baseline monitor in the chain so the UI/logic can flag “not trustworthy” rather than silently drifting.
H2-7 · Temperature / pressure / humidity compensation: from raw signal to standardized CO₂
NDIR does not measure CO₂ directly—it measures optical attenuation. To make EtCO₂ comparable across bedside environments and sampling conditions, the signal must be normalized and then corrected using time-aligned pressure/temperature/humidity inputs, with quality gates that prevent condensation or sensor faults from becoming “CO₂ changes.”
Why pressure changes the reading (bedside + tubing + pump effects)
- Pressure shifts can come from local restrictions, partial occlusions, or pump-induced pressure drops in the sampling path.
- Pressure changes gas density and absorption line behavior, so the same optical attenuation can map to different CO₂ unless corrected.
- A usable implementation needs time-aligned pressure (timestamped near the cell/sampling path), not a generic ambient reading.
Temperature drift paths: what must be tracked and what can be normalized
- Source drift: slow amplitude changes (often common-mode if a reference band exists).
- Detector drift: baseline and gain wander; can look like slow FiCO₂ changes.
- Optical parts: window gradients and pre-condensation behavior change effective throughput.
- AFE drift: bias and gain temperature coefficients translate into baseline offset unless guarded.
Humidity: not only condensation, but standardized output meaning
- Water vapor affects the relationship between volume fraction and partial pressure, especially near saturated exhaled gas.
- Ignoring humidity can turn real humidity swings into apparent EtCO₂ drift, even when the optical chain is stable.
- Implementations can use a humidity sensor or a bounded model, but the output should carry a correction mode and quality flag.
Recommended compensation pipeline (implementable steps)
- Acquire CO₂-band and REF-band amplitudes (and quality indicators such as clipping/SNR), each timestamped.
- Normalize using ratio/scale to reduce common-mode drift (source aging, throughput changes) before environmental correction.
- Align P/T/H samples to the same time base (handle missing/out-of-range readings deterministically).
- Correct normalized signal with P/T/H to map to standardized CO₂.
- Output waveform + EtCO₂ + FiCO₂ with quality flags (condensation suspected, contamination suspected, sensor missing, saturation).
H2-8 · Waveform extraction & breath metrics: algorithms that survive motion and leaks
Stable capnograms come from two decisions: (1) protect the baseline and plateau with filters that respect breath dynamics, and (2) extract EtCO₂ from a validated plateau region instead of a single peak sample. Motion, leaks, and sampling-path faults must be detected as waveform signatures and converted into quality flags rather than silently reshaping the reported EtCO₂.
Denoise and baseline: choose filters by failure mode
- Moving average reduces random jitter, but an oversized window smears phase edges and biases plateau timing.
- Median filtering rejects spikes (motion/EMI-like bursts), but excessive use can round real rising edges.
- Adaptive filters help when noise changes over time, but they require a freeze/rollback rule when quality drops.
Breath cycle detection: start, transition, plateau (avoid “fake breaths”)
- Use a combination of slope/energy checks to detect cycle start, not a single threshold that motion can trigger.
- Define the plateau as a low-slope stable region; compute EtCO₂ from a robust statistic over that region.
- Reject cycles that violate expected phase ordering (burst spikes, clipped segments, or implausible durations).
Sidestream delay compensation: fixed vs adaptive alignment
- Fixed delay is simple, but it breaks when sampling flow changes or tubing compliance/partial occlusion shifts the transport time.
- Adaptive delay adjusts alignment using measured sampling flow/pump status or waveform feature matching, keeping phase boundaries consistent.
- Delay errors show up as phase timing distortion and can make EtCO₂ appear to “jump” even when the plateau level is stable.
Abnormal signatures: identify and flag (do not “filter it into correctness”)
- Leak: unstable or missing plateau, reduced amplitude, inconsistent cycle boundaries.
- Rebreathing: elevated baseline (FiCO₂ rises), inspiratory segment does not return to low level.
- Occlusion / water trap full: amplitude drops, delay increases, waveform becomes intermittent or “laggy.”
H2-9 · Calibration, cross-sensitivity & drift control: making numbers comparable over months
Long-term EtCO₂ comparability comes from treating the optics + AFE + algorithms as one sensor: align the baseline with zero, align the slope with span, and continuously watch trend gates (ratio drift, baseline drift rate, plateau noise) so contamination, humidity shifts, or aging trigger maintenance or recalibration before they show up as “clinical CO₂ changes.”
Zero and span: what they correct (and what they do not)
- Zero aligns the baseline so slow bias terms do not become FiCO₂ drift (optical throughput changes, AFE bias/leakage, temperature-dependent offsets).
- Span aligns the gain/mapping so amplitude changes do not become EtCO₂ gain error (source aging, detector sensitivity shift, optical efficiency drift).
- Zero/span do not “fix everything” by themselves: cross-sensitivity and condensation still require correction + quality gating.
Reference choice and interval: define decision rules, not a single schedule
- Zero reference must be stable and repeatable (baseline alignment is only as good as the reference stability).
- Span reference should be a known CO₂ point (single-point span is common; multi-point is used to validate nonlinearity and residuals).
- Interval rule: shorten calibration intervals when trend gates accelerate (ratio drift rate rises, baseline drift rate rises, plateau noise increases) or when contamination risk is high.
- Maintenance rule: if contamination signatures dominate, cleaning/consumables replacement should be performed before repeating span calibrations.
Calibration records and versioning: the minimum for traceable comparability
| Record field | Why it matters | Typical gate |
|---|---|---|
| CalVersionID | Makes readings comparable across firmware/algorithm updates and service events | Must be present |
| Zero timestamp / Span timestamp | Links drift trends to last calibration and operating conditions | Order consistent |
| Reference source ID | Prevents mixing results across different reference gas batches or setups | Non-null |
| P/T/H range during cal | Ensures calibration is not applied outside its supported range | Within bounds |
| Residual summary (pre/post) | Shows whether the calibration actually fixed the bias/gain and flags cross-sensitivity | Below threshold |
Cross-sensitivity paths: how non-CO₂ effects masquerade as CO₂
- Humidity: changes the meaning of standardized output (partial pressure vs vol%) and can shift baseline behavior near saturation.
- Pressure: pump/tubing state changes local pressure, altering absorption mapping even when true CO₂ is steady.
- Temperature: source/detector/optics/AFE drift create slow errors that look like long-term CO₂ trends.
- Contamination: window films and deposits change throughput and can shift CO₂/REF ratio relationships.
Drift monitoring: detect “getting worse” before it becomes EtCO₂ drift
- Reference ratio trend: track normalized CO₂/REF behavior; sudden slope change often indicates contamination or optical changes.
- Baseline drift rate: monitor FiCO₂ baseline stability and how quickly it moves over time.
- Plateau noise: rising plateau jitter is an early warning for SNR collapse (aging, water, alignment issues).
- Self-test gates: clipping, amplitude-too-low, sensor-missing, temperature-out-of-range should force a clear degrade mode.
H2-10 · Validation & test checklist: what to measure to trust EtCO₂ in clinical use
A trustworthy EtCO₂ chain is validated by measurable dynamics (t10/t90, delay), accuracy envelopes across P/T, robustness under realistic disturbances (light, vibration, condensation, contamination), and failure-injection behavior that produces correct flags and safe degrade modes rather than silently shifting the reported value.
Dynamic response: t10/t90 and delay (mainstream vs sidestream)
- t10/t90 step response verifies how quickly the chain reaches a new CO₂ level without overshoot or long settling tails.
- Delay should be measured as the sum of transport delay (sidestream tubing) and algorithm/display latency.
- Record both rise and fall behavior; asymmetry often indicates transport effects or condensation behavior.
Accuracy envelope: multi-point concentration and multi-condition P/T checks
- Multi-point curve: validate nonlinearity and residuals after calibration across the expected range.
- P/T matrix: validate that the P/T/H correction keeps errors bounded across realistic bedside conditions.
- Report results as an error envelope (worst-case bounds), not only an average accuracy number.
Disturbance robustness: test phenomena and pass criteria (no EMC deep dive)
- Ambient light: verify baseline drift and plateau noise remain bounded after demodulation.
- Vibration / motion: verify “fake breath” triggers are rejected and quality flags engage.
- Condensation / contamination simulation: verify the chain detects ratio shifts or amplitude collapse and does not silently bias EtCO₂.
Failure injection: expected flags and degrade behavior
- Occlusion: amplitude down + delay up → flag low amplitude/lag; freeze or withhold EtCO₂ as configured.
- Leak: plateau unstable → flag invalid plateau; reject cycle-level EtCO₂ extraction.
- Water trap full: intermittent waveform + lag → flag sampling fault; prompt service/maintenance.
- Source aging: CO₂/REF common-mode drop → aging trend; reduce confidence and trigger maintenance/calibration workflow.
Validation checklist (compact, actionable)
| Test | Stimulus / setup | Record | Pass criteria | Expected flag / behavior |
|---|---|---|---|---|
| t10/t90 | CO₂ step change | t10, t90, overshoot | Bounded rise/fall times | No false flags |
| Delay | Transport + algorithm | Lag vs reference | Within spec by mode | Lag flag when abnormal |
| Multi-point accuracy | Several CO₂ levels | Residuals, envelope | Envelope bounded | Flag if out-of-range |
| P/T sweep | Pressure + temp points | Error vs condition | Correction effective | Sensor missing → degrade |
| Ambient light | Light disturbance | Baseline drift, noise | Bounded drift/jitter | No false breath |
| Vibration | Mechanical disturbance | False triggers rate | Rejected artifacts | Artifact flag when needed |
| Condensation | Moisture challenge | Ratio, amplitude | Detect & gate | Condense flag, degrade |
| Occlusion | Block sampling path | Amplitude, lag | Correct detection | Lag/low amp flag, freeze |
| Source aging | Reduce emitter output | CO₂/REF common-mode | Trend recognized | Aging warning, recal workflow |
H2-11 · IC/BOM selection checklist: building blocks and “don’t forget” sensors
This checklist converts capnography performance drivers (drift, moisture, motion, response time, and comparability) into device categories + key parameters + example part numbers. Each block below includes “failure signatures” to help engineering and sourcing align quickly during design reviews.
Note: part numbers are starting points. Final selection must be validated against modulation frequency, sensor type, temperature range, packaging, and supply availability.
A) IR source driver (constant-current + modulation)
- Current stability: drift here becomes amplitude drift (REF channel can reduce impact, but cannot erase all failure modes).
- Modulation capability: frequency range + edge control must support synchronous demod/lock-in.
- Pulsed current headroom: IR emitters often use pulsed drive for higher optical power.
- Protection: open/short detect and temperature derating to avoid silent long-term degradation.
| Example part | Vendor | Why it fits this block | Selection notes |
|---|---|---|---|
| OPA189 | TI | Zero-drift op-amp for closed-loop constant-current and stability | Use with MOSFET + sense R; verify modulation bandwidth needs |
| OPA188 | TI | Low offset/drift for stable current regulation over temperature | Good when baseline stability matters more than raw speed |
| ADA4528-1 | Analog Devices | Zero-drift option for precision current-loop control | Confirm supply rails and output swing for the chosen MOSFET/LED stack |
- Slow amplitude decay: emitter aging or current drift/derating.
- Breath-to-breath “sparkle”: unstable modulation timing, ground bounce, or current-loop instability.
B) Detector front-end (TIA/PGA, bias & noise)
- Offset and drift: baseline stability (FiCO₂) is usually limited here.
- Low-frequency noise: plateau jitter and “fake breath” triggers often come from 1/f + moisture/motion coupling.
- Input bias current: critical for high-impedance detector interfaces.
- Programmable gain: preserves margin as optics get dirty or emitters age.
| Example part | Vendor | Typical role | Why it is used | Notes |
|---|---|---|---|---|
| OPA333 | TI | Low-drift amplifier | Baseline stability and low offset for small signals | Validate bandwidth vs modulation/demod strategy |
| OPA388 | TI | Zero-drift front-end op-amp | Good for stable gain stages and low-frequency accuracy | Check input common-mode and output swing |
| OPA140 | TI | JFET-input amplifier | Low input bias for high-impedance detector interfaces | Useful when bias current dominates error |
| INA333 | TI | Instrumentation amplifier | Differential sensing and robust gain with common-mode rejection | Use when cabling/ground noise is a primary risk |
| AD8237 | Analog Devices | Instrumentation amplifier | Compact, low-power differential front-end option | Verify gain-setting range and input limits |
- Baseline “walks” over minutes: offset/drift, moisture-induced leakage, or reference instability.
- Plateau jitter grows: SNR collapse from contamination/aging, or low-frequency noise dominating the passband.
C) Synchronous demod / lock-in building blocks
- Why it matters: moving the signal away from DC reduces sensitivity to ambient light and slow drift.
- Implementation options: analog switch demod + low-pass, or digital demod after ADC (requires timing alignment).
- Key parameters: switch leakage, charge injection, on-resistance, and timing determinism.
| Example part | Vendor | Use case | Notes |
|---|---|---|---|
| ADG704 | Analog Devices | Analog switching / mux for synchronous sampling paths | Check leakage/charge injection vs detector impedance |
| ADG884 | Analog Devices | Low-leakage analog switch option | Useful when moisture + high impedance makes leakage dominant |
D) ADC (resolution/ENOB, sampling, triggering)
- ENOB + input noise: directly impacts plateau stability and breath metric repeatability.
- Sampling rate: must support the demod/filter window and the desired response time (t90) without “smearing” phase features.
- Trigger/sync: deterministic timing reduces demod phase error and delay ambiguity.
| ADC example | Vendor | Family | Why it’s a common fit | Selection notes |
|---|---|---|---|---|
| ADS1220 | TI | ΔΣ | Low-noise conversion for slow, small signals after demod/filter | Validate data rate and digital filter latency vs response goals |
| ADS124S08 | TI | ΔΣ (multi-ch) | Multi-channel option for CO₂/REF and auxiliary sensing | Check mux settling vs channel count |
| AD7172-2 | Analog Devices | ΔΣ | Precision conversion with strong noise performance | Review filter group delay and sync features for demod alignment |
| AD7685 | Analog Devices | SAR | Useful when doing digital lock-in with flexible sampling | Confirm driver requirements and input settling strategy |
| ADS8688A | TI | SAR (multi-ch) | Multi-channel approach for front-end plus diagnostics sampling | Align channel timing with trigger strategy if extracting phase features |
E) P/T/H sensors (do not omit in wet, changing environments)
- Pressure: accuracy + response; place so it reflects the sampling path pressure (not a distant enclosure).
- Temperature: prioritize thermal “closeness” to optics/AFE; PCB ambient temperature is often misleading.
- Humidity: evaluate high-humidity drift and protection method (filter/membrane) for long-term stability.
| Sensor | Example part | Vendor | Selection focus | Notes |
|---|---|---|---|---|
| Pressure | MS5611 / MS5607 | TE Connectivity (MEAS) | Stable digital pressure sensing options used in many embedded systems | Validate accuracy and response for the sampling dynamics |
| Pressure | HSC / SSC / ABP | Honeywell | Industrial-style pressure sensing families with broad options | Pick range/port style to match the sampling plumbing |
| Temperature | TMP117 / TMP116 | TI | High-accuracy digital temperature sensing | Mount location dominates real usefulness |
| Humidity | SHT31 / SHT35 / SHT41 | Sensirion | Humidity families commonly used for high-humidity environments | Compare long-term drift under high RH exposure and protection options |
F) MCU + calibration memory + “don’t forget” reliability parts
- Timing: stable modulation/trigger timing reduces demod phase error and delay ambiguity.
- Parameter storage: calibration coefficients, CalVersionID, trend thresholds, last QC results.
- Write integrity: avoid half-written coefficients (use atomic update strategy and CRC).
- Supervision: watchdog/reset prevents “silent stale outputs” when software or peripherals hang.
| Category | Example part | Vendor | Why it’s useful here | Notes |
|---|---|---|---|---|
| MCU | STM32L4 | ST | Strong timers + low power; fits deterministic modulation/sampling control | Pick based on peripheral set and supply constraints |
| MCU | STM32G0 | ST | Cost-effective option with practical timer resources | Confirm ADC/DMA resources if used for digital demod |
| EEPROM | 24LC256 | Microchip | Simple I²C storage for calibration and QC records | Use wear-leveling or periodic write minimization if frequently updated |
| FRAM | MB85RC256V | Fujitsu | High write endurance for trend logs and frequent parameter updates | Useful when drift gates and QC logs update often |
| Supervisor | TPS3430 | TI | Watchdog/reset to prevent silent hangs and stale outputs | Configure timeout to match processing cadence |
| RTC (optional) | DS3231 | Analog Devices (Maxim) | Stable timestamps for QC logs and calibration recordkeeping | Use when log integrity and traceability are requirements |
G) Precision reference (and the minimum “quiet” support parts)
- Reference stability: reference noise/drift can become apparent CO₂ noise/drift after demod and filtering.
- Local decoupling and partitioning: keep the analog reference/AFE domain away from pulsed drive current returns.
| Example part | Vendor | Role | Notes |
|---|---|---|---|
| REF3330 | TI | Precision voltage reference | Verify output voltage matches ADC full-scale strategy |
| ADR4530 | Analog Devices | Precision voltage reference | Select for drift/noise targets; validate load/decoupling requirements |
H2-12 · FAQ – Capnography / Respiratory Gas
These FAQs cover definitions, architecture choices, drift/compensation, waveform-based fault detection, calibration, and test setup for IR capnography. Answers are written to be actionable for design review and troubleshooting.