A small current in a bright room.
+ The questionHow does a front end measure a pulse worth about one percent of a photocurrent while room light and sunlight fall on the same photodiode?
One current for all the light
The photodiode in a fingertip clip receives light from the room as well as from the clip's own LEDs, and the room's light can be the stronger. Light from a ceiling lamp, a window or an examination lamp reaches the photodiode through the finger and past the edges of the clip. A silicon photodiode responds to light across a wide band, from 400 to 1,100 nm in one maker's sensor. It gives a single current for all of that light, and the current carries no record of where the light came from or of its wavelength.
Ambient light is any light at the photodiode that the oximeter did not emit. It adds to the current in both channels. Chapter 4 built R from the pulsing part of each channel, the AC, divided by its steady part, the DC. Room light left in the measurement enlarges each DC and divides each pulse by too much. The error differs between the red and infrared channels unless their DCs happen to be equal, and so shifts R and the saturation read from it.
The front end is the electronics between the photodiode and the firmware. It must turn a small current into numbers fine enough to resolve a pulse of about 1 % of the steady light, a maker's typical figure for a finger clip (Chapter 4). It must also remove every part of the light that the LEDs did not send. Texas Instruments' AFE4490 is a pulse-oximeter front end whose largest input current ranges from 0.5 to 50 µA, depending on its gain. That limit is its full scale. The chip drives each LED with up to 200 mA, in one of five current ranges that the designer chooses, with tops of 50, 75, 100, 150 and 200 mA. It can therefore drive an LED at 50 mA while measuring a photocurrent of 5 µA, ten thousand times smaller. The maker's 2015 application report puts the photodetector current "in the order of nano-amperes", while the AFE4490's data sheet sets the full scale in microamperes.
A current that small must become a voltage before a converter can measure it, and the transimpedance amplifier makes that change. It is an amplifier with a resistor from its output back to its input. The amplifier drives through that resistor the same current that the photodiode delivers, so its output voltage equals the photocurrent times the resistance. The name describes the conversion. An impedance is a ratio of voltage to current, here between the current at the amplifier's input and the voltage at its output. In this simple form, a 100 kΩ resistor turns a photocurrent of 2 µA into 0.2 V and a pulse of 20 nA into 2 mV. The AFE4490 uses a differential form of this amplifier, with two outputs, and its maker gives 1 V as the full-scale output between them.
The LEDs take turns, with a dark phase between
One photodiode cannot tell red from infrared, so the front end separates the two colors in time. It lights one LED, measures the photocurrent, switches the LED off, lights the other and measures again, and the place of each measurement in the cycle identifies its color. Texas Instruments describes a newer chip, the AFE4432, in its 2022 application brief for wrist-worn devices. In that chip the red and infrared LEDs "share the same PD", the same photodiode. Sharing one detector among several signals by giving each its own slot in a repeating cycle is time multiplexing. The method works because the light through the finger changes little within one cycle, so the red and the infrared samples of a cycle see the same finger.
The AFE4490 runs its cycle in four phases, in a fixed order: the first LED, a phase with both LEDs off, the second LED, and another phase with both off. Each of the four conversions takes at most a quarter of the cycle. The maker calls the off phases ambient phases, and this guide calls each off phase a dark phase: a slot in which neither LED is lit, so that the photodiode measures only the light that the oximeter did not emit. In that chip the designer sets how often the cycle repeats, from 62.5 to 5,000 times a second, and how long each LED stays on, from 50 µs to 4 ms.
Each LED has a dark phase of its own because the dark phase is useful only if the room light it measures is still the light that fell during the LED phase beside it. Each dark phase should therefore fall close in time to its LED phase. With the four phases sharing a cycle equally, an LED phase and its dark phase start one quarter of the cycle apart, which is 250 µs at 1,000 cycles a second.
Subtraction removes the light that stays steady
The dark phase measures the ambient light alone, and subtraction removes it. The AFE4490 reports each LED phase minus its own dark phase, "(LED2 - ambient LED2) and (LED1 - ambient LED1)" in its data sheet's words. It can also subtract a fixed current of up to 10 µA, in steps of 1 µA. The host processor sets that current from its own estimate of the ambient level. This guide calls the whole operation ambient subtraction. Ambient subtraction rests on one premise: that the room light is the same in the dark phase as in the LED phase beside it. Whatever is the same in both phases cancels, however bright it is, as long as the amplifier can hold it.
The currents are invented for the running example's red channel, to show the arithmetic. During the red phase the LED's light through the finger gives a steady 2.00 µA, and steady room light adds 1.00 µA, so the photodiode delivers 3.00 µA. In the dark phase that follows, it delivers the room light's 1.00 µA alone. The difference, 3.00 − 1.00 = 2.00 µA, is the LED's light, and the room light is gone, as it would be at any steady brightness that the amplifier can hold. The pulse rides on the LED's 2.00 µA. Its share is the 0.5 % that Chapter 4 invented for the red channel, so it swings by 0.01 µA, or 10 nA. Now the room light changes between the two phases, from 1.00 µA during the red phase to 0.99 µA during the dark phase. The difference becomes 3.00 − 0.99 = 2.01 µA, an error of 0.01 µA. A change of 1 % in the room light between two phases a fraction of a millisecond apart leaves an error equal to the whole pulse. An error that changes from cycle to cycle adds a waveform of its own to the red channel.
A lamp that switches on and off is the plainest case of light that differs between the phases. An LED lamp dimmed by pulse-width modulation switches its light fully on and off at a fixed rate and sets its brightness by the share of each cycle spent on. In 2023 Wald and colleagues asked what such a lamp does to an oximeter's subtraction. Their study was a mathematical simulation built from a clinical observation, with no human or animal subjects. It had no grant support, and the authors state that none of the companies named in it was involved. In their model an examination lamp switched at 207 Hz, and the oximeter ran its cycle at 311.25 Hz, "almost exactly 1.5 times" the lamp's rate.
A switching lamp breaks the premise of the subtraction, but not in every cycle. In some cycles the lamp is on during an LED phase and off during the dark phase beside it, so the difference keeps the lamp's light, while in other cycles the lamp is in the same state in both phases. Because the oximeter's rate is almost exactly 1.5 times the lamp's, the cycles in which the lamp's light survives recur in a sequence that repeats almost exactly and drifts only slowly. The leftover light falls sometimes in the red channel and sometimes in the infrared. The authors call this the stroboscopic effect. In their words, "Ambient LED light, on the other hand, is not constant and therefore will not be eliminated by subtraction."
In the simulation the ratio R rose from 0.55 to 0.95, and the computed saturation fell from 98 % to about 85 %, a fall of about 13 points. The simulation turned R into a saturation with an artificial calibration curve, modeled on a curve that an oximeter maker had published. The 85 % is therefore a model oximeter's figure, not a reading taken from a patient. What carries over from the model is the mechanism: light that the dark phase samples at the wrong moments enters the two channels as if it were the LEDs' own light.
Under an operating or examination lamp of this kind, the running example's clip meets the same mechanism, because nothing in the subtraction depends on who made the oximeter. How far its reading would move depends on its own cycle rate against the lamp's switching rate, and on how much of the lamp's light passes the clip's shield (Chapter 6). A steady light cancels in the subtraction, whether it comes from a window on an overcast day or from a lamp run on a constant current. Such light stops canceling only when it is bright enough to take the amplifier past its full scale.
A large DC and a small AC
The front end must hold the whole current that reaches the photodiode while it resolves the small pulse on top of it. A stage given more current than its full scale clips: its output stops at its limit. A stage's dynamic range is the ratio between the largest signal it can take without clipping and the smallest change it can resolve above its own noise. In the solved example the stage carries 3.00 µA during the red phase while the pulse swings by 0.01 µA, 1 part in 300 of the total. Because R is computed from the pulse's height, resolving that height to 1 % means resolving 1 part in 30,000 of the current the stage carries. A converter whose range is split by fifteen doublings into 32,768 steps only just does this, with the current near the top of its range.
A smaller pulse raises the demand. When perfusion is low, the pulse shrinks. FDA's 2013 guidance gives 0.3 % modulation as an example of a low-perfusion level for bench testing, three-fifths of the 0.5 % used here. On the solved example's currents, a pulse of 0.3 % of the LED light swings by 0.006 µA. Resolving it to 1 % of its height means resolving 1 part in 50,000 of the 3.00 µA, between fifteen and sixteen doublings. Chapter 8 follows what a pulse that small does to the reading, and what the firmware gives up to keep one.
Noise sets the lower end of the range. The AFE4490 adds noise of 50 pA rms at a photodiode current of 5 µA, its maker states. The rms value is the root-mean-square size of the noise's random swings. The figure is input-referred: it is stated as if the noise were a current at the input, so it can be set directly against the photocurrent. A pulse of 1 % at 5 µA swings by 50 nA, about 1,000 times that noise, and a pulse of 0.3 % swings by 15 nA, about 300 times.
The top of the range is where daylight matters. If the room light alone fills the stage, the LED phase and the dark phase both read the same limit, their difference is zero, and the pulse is lost, however well the subtraction would otherwise work. Front-end chips are built for a large ambient current. In the AFE4490, the full scale given in the first section belongs to the first stage, the transimpedance amplifier, which receives the room light in full. Analog Devices states that its MAX30101, a wearable module, cancels up to 200 µA of ambient current, and that its MAX86178 front end tolerates more than 200 µA of ambient photodiode current.
Subtracting numbers cannot undo clipping, because a subtraction made after the converter works on numbers that the converter has already produced. The chips also cancel ambient light as a current. A current that opposes the ambient current takes that part of the light out before the converter, and leaves more of the converter's range for the LED's light and its pulse. In the AFE4490 the cancellation current of the third section acts in the chip's second stage, after the transimpedance amplifier. That current spares the later stages and the converter, but not a first stage that the room light has already filled.
Beside a window or outdoors, the running example's clip depends first on its light shield (Chapter 6) and then on its firmware. One maker's monitor shows the message "Interference Detected" when high-intensity light or a wrong line-frequency setting interferes. The line frequency is the rate of the mains supply, 50 or 60 cycles a second. The monitor's 2021 operator's manual tells the user to use an optical light shield or to set the correct frequency. The firmware can also lower the gain to make room for the extra current, at a cost that the next section sets out. A stage filled by daylight leaves the device unable to measure, and Chapter 13 sets out what the device must then show.
Gain and LED current, set to the finger
The firmware places the steady current inside the range by setting two things: the current through each LED and the gain of the amplifier. It must set them for the finger in the clip, because fingers differ: "tissue absorption can vary a great deal between individuals", as a tester maker's patent puts it. A drive that suits one finger can leave another close to the noise or past the top of the range. The AFE4490 lets the firmware set the LED current in 256 steps within its range, choose a feedback resistance from 10 kΩ to 1 MΩ and set a second gain stage.
The feedback resistance sets how much current fills the stage. In the AFE4490 the full-scale input current falls as the resistance rises, from 50 µA at 10 kΩ to 0.5 µA at 1 MΩ. A high resistance turns a small pulse into a large voltage, but a small current then fills the stage and leaves little of the range for room light. The setting that resolves a small pulse best in a dim room is therefore the first to clip when a lamp is switched on. A low resistance leaves room for daylight and makes the pulse a smaller share of the converter's range.
A brighter LED raises the pulse current itself further above the input-referred noise. The brighter drive costs three things. It fills the range as the gain does, it draws more from the battery, and a red LED's wavelength moves as its intensity rises (Chapter 6). Within those limits a change of LED current leaves R nearly unchanged, because dividing the AC by the DC removes the incident light intensity (Chapter 4). The firmware therefore sets the LED current and the gain to the finger, keeping the steady current high in the range and below its top, and the AFE4490's separate feedback setting for each LED's phase lets it set the gain for red and infrared apart.
Sampling, bits and what one chip now holds
The pulse is slow compared with the front end's cycle. The monitor quoted in the fourth section specifies pulse rates up to 240 beats a minute, which is four beats a second, and the front end's cycle repeats many times within each beat. The front end therefore takes far more samples than the waveform needs. The AFE4490's noise figures are stated over a band of 0.1 to 20 Hz, which includes a pulse of four beats a second. In an oximeter the cycle rate is also the rate at which the dark phases sample the room, which is why the lamp's rate mattered in Wald and colleagues' simulation. Noise, amplification and filtering, sampling and the bits a converter needs are the subjects of Chapters 5 to 8 of The chain behind the number, another Academy guide.
Resolution also depends on how long each LED stays on. The longer the LED is on, the longer the converter has for each sample. In the MAX30101 the converter gains one bit with each step of the LED's pulse width, from 15 bits at 69 µs to 16, 17 and 18 bits at 118, 215 and 411 µs. Short pulses save current. At 1,000 cycles a second, the MAX30101 lights each LED for 69 µs and leaves it off for 931 µs, so an LED driven at 50 mA during its pulse draws about 3.5 mA on average, 6.9 % of its pulse current. At the same LED current, the pulse of 411 µs uses about six times the charge of the pulse of 69 µs, so finer resolution is paid for in battery life.
One chip now holds most of the front end. Texas Instruments' AFE4490 is one example: its data sheet dates from 2012, with a revision in 2014, and its maker still listed it as active in November 2026. The chip holds the LED drivers, the transimpedance amplifier, the ambient cancellation, a 22-bit converter and the timing of the four phases. It also checks its own connections on the firmware's command: it detects an open or shorted LED or photodiode and whether the cable is connected, a check that Chapter 13 returns to.
Newer chips hold more channels, for more than one kind of measurement. Analog Devices' MAX86178 was in production in November 2026. It puts two optical channels, drivers for up to six LEDs and inputs for up to four photodiodes beside a single-lead ECG channel and a bioimpedance channel. It adds a 256-word buffer and a shutdown current of 0.5 µA, and its maker calls it "clinical-grade". The AFE4432 of the second section drives up to four LEDs and has two receivers that share one converter, each for up to three photodiodes. These figures are the makers' own, and Chapter 16 sets the chips among the companies that make them.
A front end's figure for rejecting ambient light is stated for one kind of light. Analog Devices states the MAX86178's rejection for light flickering at 120 Hz, with averaging. The switching lamp of Wald and colleagues' simulation gave a different light, which passed through the subtraction itself and moved R. A front end that meets its data sheet's ambient figure has shown that it handles the light for which that figure is stated.
Everything outside the chip is the oximeter's own design. The LEDs, the photodiode and the light shield sit in the clip (Chapter 6). The firmware estimates the ambient level, which sets the cancellation current, and it chooses the cycle rate and the settings for each finger. It also does everything after the subtracted samples: it finds the pulses, forms R, applies the calibration table and averages (Chapters 4, 5 and 8). For the running example, these choices belong to its designers, not to the chip's vendor. Chapter 13 sets out the running example's specification and who owns the interface between the chip and the firmware.
Place each dark phase as close to its LED phase as the chip allows, and record the cycle rate, the phase widths and the settings that the firmware chooses for each finger. Verify the ambient subtraction under steady light from darkness up to the level at which the stage clips, and specify what the device shows at that level: a state that says it cannot measure, not a number (Chapter 13). Test under LED lamps driven by pulse-width modulation at a range of switching rates, including rates that stand in a simple ratio to the oximeter's cycle, as 1.5 did in Wald and colleagues' simulation. State in the running example's labeling which light conditions were tested and how its light shield is to be used.
- A photodiode gives one current for all the light that reaches it, and a transimpedance amplifier turns that small current into a voltage. Because one photodiode cannot tell red from infrared, the front end lights the LEDs in turn, with dark phases in which neither LED is lit.
- While the stage stays below its full scale, ambient subtraction takes each dark phase from its LED phase and removes any light that stays the same between them, however bright. In the invented example, a change of 1 % in the room light between two phases left an error equal to the pulse.
- In Wald and colleagues' 2023 simulation, an examination lamp switched at 207 Hz and sampled by an oximeter cycling at 311.25 Hz raised R from 0.55 to 0.95 and moved the computed saturation from 98 % to about 85 %.
- The firmware sets the LED current and the gain for each finger, keeping the steady current high in the range and below its top. One chip now holds the LED drivers, the amplifier, the cancellation, the converter and the timing.
Let's Talk