A production test station for the EEG acquisition board in Kernel's Flow2 headset. I didn't design the acquisition board; I designed the station that tests it: two boards, one that powers and measures the board under test and one that emulates its 32 electrodes, plus twelve tests that grade every board in about eight minutes.

The board under test is the headset's EEG acquisition board, designed by others at Kernel: four ADS1299 converters, 30 channels plus reference and bias, streaming over Bluetooth. A good test has to prove three things about it: that it powers up cleanly, that its firmware and radio work, and that every channel measures microvolts correctly. The last one is the hard part, because the only thing that normally drives those inputs is a human head.
So the station has two boards. The validation board powers the board under test from a bench supply through a metered, latching switch, reads its rails through pogo pins, works its button and thermistor inputs, and listens to its debug port. The emulation board plugs into the board's four electrode harnesses and gives every channel a precise "skin contact" from 0 Ω to 220 kΩ, an open circuit, or a 40 µV test signal. A host script runs the sequence, records the Bluetooth stream through a dongle, analyses it and applies the limits.
The validation board is the station's controller. Everything it does to the board under test goes through that board's own connectors, so the board is tested exactly as it ships, and every path is built so that neither board can damage the other if one is unpowered, plugged in backwards or faulted.

The board under test runs from a bench supply set to its battery voltage. A high-side P-FET switches it on; an LM66100 ideal diode keeps the board's own charger from back-feeding the supply; a four-terminal 50 mΩ shunt and an INA238 measure the current and the delivered voltage.
Eight pogo pins land on the test points of the board's 5 V, 3.3 V and 1.8 V rails. Three 16-bit ADS1115s read them through identical 20 k / 10 k dividers, so the same block repeats on every rail and the firmware applies one ratio.
The board under test checks a battery thermistor before it lets its boost converter start. The fixture emulates it: photoMOS relays switch 10 k (25 °C, start allowed), 47 k (cold fault) or 3.3 k (hot fault) onto the thermistor node, and a fourth relay presses the power button, 100 ms for on and 3 s for off.
The fixture shares ground with the board under test and the bench supply. A laptop's USB ground would add a second path and a loop right next to inputs that resolve a fraction of a microvolt, so the ESP32's USB runs through an ADuM3160 isolator.
The emulation board replaces the headset's electrodes and the scalp under them. It plugs into the acquisition board's four DF36 harnesses exactly as the headset's electrode nodes do, and it is powered only from that board's own analog 5 V, the same way real electrodes are. Every contact it presents is a 0.1 % resistor, so it is the reference standard the board under test is graded against.

Each headset electrode is an active one: the contact feeds a 1 kΩ resistor and an OPA376 follower, which drives the cable through 49.9 Ω. The emulator's channel copies that circuit part for part. The board under test therefore sees a real electrode's output impedance and input capacitance, and its contact-quality readings calibrate at headset scale instead of at an idealised one.
| A2 A1 | A0 = 0 | A0 = 1 | Used for |
|---|---|---|---|
| 00 | 0 Ω | 10 k | noise, matched inputs |
| 01 | 22 k | INJ | gain and crosstalk |
| 10 | 4.7 k | open | lead-off |
| 11 | 47 k | 220 k | mapping, impedance ladder |
A2 and A1 are shared by all channels; A0 is per channel. One shared write plus 31 single bits puts any channel on any of two slots, which is how the mapping test tags channels one at a time.
A known test signal has to be small enough for an EEG input and exact enough to grade gain to 1 %. The DAC swings ±0.40 V; a 100 kΩ resistor turns that into about 4 µA, which flows through 10 Ω into BODY. The voltage across that 10 Ω is the test signal, set by two resistors rather than by the DAC's output level alone.
Fixture checks first, so a broken fixture can't fail a good board. Then power, firmware and radio, then the analog tests that need the emulator. The low-voltage boost test runs last because it ends by turning the board off.
| Test | What it checks | How | Pass when |
|---|
The station is meant for a production operator, not an engineer. The fixture has one START button, one ABORT button, and a green and a red LED for every test. Each LED blinks while its test runs and stays lit with the result; the host shows a summary and a running tally.
The station runs on two programs with a strict split. The fixture firmware on the ESP32-S3 owns anything that needs millisecond timing or keeps the hardware safe: one shell command per test step, the power latch, the operator panel and the emulator. A Python host script owns everything that needs judgement: the sequence, the Bluetooth capture, the analysis, the limits and the record of every run.
records/<board>/<run time>/ record.json every value, every check, test states, station and software version summary.txt human-readable result table limits.toml the exact limits used (its SHA-256 is in record.json) fixture_log.txt every fixture command, reply and event, with host time dut_uart.log the board's boot log onwards mon_ap03.csv supply monitor while streaming mon_ap04.csv supply monitor during the noise test eeg/ raw Bluetooth captures and their segments records/index.csv one row per run, every test's state
One acquisition board went through the station repeatedly while the tests were tuned. Below: power, noise and the signal path; a contact-quality reading that turned out to fold back on itself; and what the board's noise is actually made of.
The board's boost converter holds every rail to within a millivolt whether its input sits at 3.7 V or at 3.4 V. Start-up takes 117 ms against a 50–300 ms window; a 3 s button hold turns it off at 2.45 s.
| Rail | 3.70 V in | 3.40 V in | Band |
|---|
The spikes are radio packets going out in bursts. No over-current trips, no low-load gaps.
With every emulator contact at 0 Ω an ideal board would record a flat line. This one records 2.4 µVpp (0.33 µVrms) in the 0–45 Hz EEG band: inside the 2–2.5 µVpp design budget, under the 2.8 µVpp median limit, and no chip noisier than another. The same channel moves about ±0.3 µVpp from run to run, which is what a 30 s sample of random noise does.
The fixture plays a 10 Hz sine, then a 40 Hz one, into the emulator's injection network while half the channels sit on the signal and half on an ordinary 22 kΩ contact. Including the 0.44 µV the test current drops along the emulator's own BODY copper, the resistors predict 40.44 µV.
Filtered 1 Hz high-pass and a low-pass that stays flat through 45 Hz, so the 40 Hz pass keeps its true size; the 60 Hz mains and the 133 Hz contact tone are removed.
The acquisition board judges each electrode's contact by putting a small 133 Hz tone on the head through its bias output and seeing how much of it reaches each channel. The tone reaches the converter by two routes, and the converter records the difference. On the channel's route the contact resistance R charges the electrode buffer's input capacitance (C_in, fitted at 60.6 pF on the emulator), delaying the tone by R·C_in. On the reference route the reference electrode's 49.9 Ω output drives about 31 nF of filtering on the board, a fixed 1.52 µs.
The firmware converts only the size of what's left, not its sign. The tone vanishes where R·C_in equals 1.52 µs, about 25 kΩ on the emulator (about 12.7 kΩ on a headset, whose electrodes have more input capacitance), and contacts on either side of that null read alike. A perfect 0 Ω contact and a mediocre 47 kΩ one both read about 91–92 %.
Stepping the reference contact from 0 to 220 kΩ moved the null one-for-one: null = REF + 25.2 kΩ, within 0.1 kΩ up to 47 kΩ and within 1 kΩ at 220 kΩ, where it is extrapolated. The reading is always relative to the reference electrode, so if the reference sits on a dry spot the whole scale shifts. Headset electrodes have about twice the input capacitance, so there the rule is REF + 12.8 kΩ, and a dip seen near 50 kΩ on real headsets points to a reference contact of about 37 kΩ.
Using the tone's phase as well as its size gives a signed estimate that only ever goes up with resistance. Re-analysing the existing ladder data offline: with one calibration shared by all channels it tracks the true value with about ±5 kΩ of channel spread; with a two-point calibration per channel (0 Ω and 47 kΩ) the held-out points land within about ±55 Ω, and 220 kΩ reads about 0.3 % low. It's a firmware change, not new hardware.
Split by frequency, the shorted-input noise is a flat floor of about 33 nV/√Hz above 5.4 Hz, with the usual 1/f rise below. There are no lines from the radio, the boost converter or the clocks: only mains and the board's own 133 Hz contact tone, with its harmonics folding back to 101 and 165 Hz. About 55 % of the white noise power is the thermal noise of the 20 kΩ + 20 kΩ input filters. 4.99 kΩ resistors would be about 23 % quieter, at the cost of larger filter capacitors that load the electrode and move the contact calibration.
The part shared by every channel comes in through the reference path, mostly below 5 Hz, and common-average referencing removes it in analysis.
Stepping the emulator's contact from 0 to 220 kΩ, each channel's noise rises by exactly the contact's own thermal noise, √(32.6² + 4kTR), with nothing fitted: within 3 % at every step, so the electrode buffer adds no measurable current noise. Below about 20 kΩ a contact adds under 8 %; at 65 kΩ it matches the whole amplifier; at 220 kΩ the in-band noise reaches 0.49 µVrms, right at the IFCN's 0.5 µVrms guideline for clinical EEG.
The board was unloaded and reloaded between runs. The spread is tiny next to every limit, so the production limits will be set by how good boards differ from each other, which needs the next 10–20 boards, not by the station's own scatter.
| Metric | Run 1 | Run 2 | Run 3 | Spread |
|---|
Measuring the phase of the 40 Hz sine on every channel puts the four ADS1299s within about ±1 µs of each other (+1.3, +0.1, −0.6, +0.5 µs, ±0.6): under 0.1 % of the 2000 µs sample period. A chip a sample behind would sit 200 times further out. The board samples at 500.0 Hz on the fixture's clock, within 0.02 %.
The channel-to-channel pattern repeats, so it's real: most likely part-to-part differences between channels. The cause isn't confirmed yet.