Analog to digital
Sampling, aliasing, quantization, and why the ADS1299 gets 24 bits out of a one-bit decision made very fast. The four ideas you need to read any converter's datasheet.
On this page15 min
The converterAnalog-to-digital converter (ADC) The chip that measures a voltage at regular instants and turns each into a number. Related: Sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second., QuantizationQuantization Rounding each sample to one of a finite set of levels; a 10-bit ADC has 1024 of them, a 24-bit one about 16 million., Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses.. Glossary entry turns a voltage into a number, 250 times a second. Two questions decide whether the numbers are trustworthy. How often do you look? Too rarely and a fast signal masquerades as a slow one, permanently. How finely do you measure? Each extra bit halves the step size, but past the noise floorNoise floor What your instrument records when the input is shorted or connected to a perfectly quiet source; everything smaller than this is invisible to you. Related: Thermal (Johnson) noiseThermal (Johnson) noise The random voltage every resistor produces just by being warm; about 13 nanovolts per root hertz for 10 kilohms, which matters at microvolt levels. , CharacterizationCharacterization Measuring what your instrument actually does, such as its noise floor, bandwidth, and rejection, instead of assuming the datasheet. . Glossary entry extra bits measure only noise. Let’s take both, then open the ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry to see the trick that gets 24 bits from a converter that only ever decides “higher or lower.”
How often to look
- With the sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry at 50 Hz, slide the signal from 5 Hz up to 20. The reconstruction follows perfectly.
- Continue to 30 Hz. The reconstruction is a 20 Hz sine. To 45: a 5 Hz sine. Nothing downstream can tell.
- Turn on the anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. . Glossary entry and repeat. The false signals are gone, because the real one never reached the converter.
The rule is the NyquistNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it., Anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias.. Glossary entry theorem: a signal can be reconstructed exactly from its samples if it contains nothing above half the sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry. “Exactly” is not an approximation; the green curve in Figure 1 is computed from the yellow dots alone and matches the blue perfectly below the limit. Above the limit, a frequency f appears at |f − k·fs| for the nearest multiple k of the sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry. This is aliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false., Anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias.. Glossary entry, and once it has happened there is no undo, because the false signal is indistinguishable from a real one at that frequency.
The limit is half the sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry:
At 250 samples per second nothing above 125 Hz survives sampling honestly. A frequency above the limit reappears folded around multiples of the rate:
Here is the whole number of sampling ratesSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry nearest to .
The consequence is a rule with no exceptions: an analog low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. Related: FilterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. , Anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. . Glossary entry, the anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it., Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace.. Glossary entry, must sit before the converter and remove everything above half the sampling rateSampling rate How many measurements per second the ADC takes; EEG is usually 250 to 1000 per second. Related: Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. , AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. . Glossary entry. Your Phase 1 board had a 35 Hz low-pass for a 250 Hz rate. The ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry has one built into its converter architecture, which is the trick below.
An LED lamp's driver flickers at 120 Hz. Your EEG samples at 250 Hz with no anti-alias filter. Where does the flicker appear in your spectrum?
At 120 Hz, since 120 is below the Nyquist frequencyNyquist frequency Half the sampling rate; anything in the signal above it cannot be represented and will appear as something false. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. , Anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. . Glossary entry of 125. But the driver’s second harmonic at 240 Hz appears folded: , sitting exactly on alpha. Without the filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry, you would have found a fake alpha rhythmAlpha rhythm A roughly 8 to 12 Hz oscillation over the back of the head that appears when the eyes close and fades when they open. Related: Beta rhythmBeta rhythm Roughly 13 to 30 Hz activity, prominent over motor areas and associated with active concentration or holding still. , Theta rhythmTheta rhythm Roughly 4 to 8 Hz activity, prominent in drowsiness, some memory tasks, and strongly in the rodent hippocampus. , Thalamocortical loopThalamocortical loop The two-way circuit between the thalamus and the cortex whose rhythmic activity produces alpha, sleep spindles, and other EEG rhythms. , Sensorimotor rhythm (mu)Sensorimotor rhythm (mu) An 8 to 13 Hz rhythm over motor cortex that weakens when you move, or imagine moving, the corresponding body part. . Glossary entry that follows the room’s lighting. This happens to real people.
How finely to measure
A converter with N bits divides its input range into 2^N steps. The Arduino’s 10 bits over 5 volts gives steps of about 5 mV. The ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry’s 24 bits over 0.375 volts (at gainGain How many times an amplifier multiplies its input; 1000× turns 50 microvolts into 50 millivolts, enough for an ADC to see. Related: Instrumentation amplifierInstrumentation amplifier A precision differential amplifier with very high input impedance and high CMRR, built from three op-amps and sold as a single chip such as the INA128 or AD8232. . Glossary entry 24) gives steps of about 22 nV. The rounding of each sample to the nearest step is quantizationQuantization Rounding each sample to one of a finite set of levels; a 10-bit ADC has 1024 of them, a 24-bit one about 16 million. Related: Analog-to-digital converter (ADC)Analog-to-digital converter (ADC) The chip that measures a voltage at regular instants and turns each into a number., Resolution (bits)Resolution (bits) How finely an ADC divides its range; each extra bit halves the step size.. Glossary entry, and it adds an error that behaves like noise with an RMS of the step size divided by about 3.5.
The step size is the range divided by the number of steps:
For the Arduino, per step. For the ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry at gainGain How many times an amplifier multiplies its input; 1000× turns 50 microvolts into 50 millivolts, enough for an ADC to see. Related: Instrumentation amplifierInstrumentation amplifier A precision differential amplifier with very high input impedance and high CMRR, built from three op-amps and sold as a single chip such as the INA128 or AD8232. . Glossary entry 24, per step. The rounding error behaves like noise with an RMS set by the step:
So finer steps mean finer-grained noise, down to the analog noise floorNoise floor What your instrument records when the input is shorted or connected to a perfectly quiet source; everything smaller than this is invisible to you. Related: Thermal (Johnson) noiseThermal (Johnson) noise The random voltage every resistor produces just by being warm; about 13 nanovolts per root hertz for 10 kilohms, which matters at microvolt levels. , CharacterizationCharacterization Measuring what your instrument actually does, such as its noise floor, bandwidth, and rejection, instead of assuming the datasheet. . Glossary entry.
Here is the part people miss. If the analog noise arriving at the converter is larger than one step, then extra bits measure that noise more finely and add no information. The ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry’s own input noise is around 1 µV RMS at gainGain How many times an amplifier multiplies its input; 1000× turns 50 microvolts into 50 millivolts, enough for an ADC to see. Related: Instrumentation amplifierInstrumentation amplifier A precision differential amplifier with very high input impedance and high CMRR, built from three op-amps and sold as a single chip such as the INA128 or AD8232. . Glossary entry 24; a 22 nV step is 45 times smaller than that. The bottom five or six bits are noise. The useful resolution, sometimes quoted as “effective number of bits,” is around 18 to 19. That is still excellent, and the reason a 24-bit converter is used is not the 24 bits but what comes with them: a huge input range that never saturates on electrodeElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry offsets, and the converter architecture below.
The step is about 45 times smaller than the input noise, and , so five and a half of the 24 bits only measure noise:
That effective resolution is the number that matters for what you can see.
The delta-sigma trick
A delta-sigmaDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. Related: Analog-to-digital converter (ADC)Analog-to-digital converter (ADC) The chip that measures a voltage at regular instants and turns each into a number., ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers.. Glossary entry converter never measures the voltage directly. It has a one-bit comparator that decides, millions of times a second, whether the input is above or below a running estimate, and nudges the estimate up or down. The stream of ones and zeros has an average equal to the input voltage, with the quantizationQuantization Rounding each sample to one of a finite set of levels; a 10-bit ADC has 1024 of them, a 24-bit one about 16 million. Related: Analog-to-digital converter (ADC)Analog-to-digital converter (ADC) The chip that measures a voltage at regular instants and turns each into a number. , Resolution (bits)Resolution (bits) How finely an ADC divides its range; each extra bit halves the step size. . Glossary entry noise pushed to very high frequencies by the feedback loop. A digital low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. Related: FilterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. , Anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. . Glossary entry then averages the stream down to 250 samples per second and, because the noise was pushed up high, most of it is removed in the averaging. Out comes a 24-bit number.
Two consequences matter to you. First, the digital filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry is also an anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. . Glossary entry for the final rate, which is why the ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry needs only a gentle analog filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry in front of it. Second, the digital filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry has a response of its own, a sinc shape, which is why the chip’s bandwidth at 250 samples per second is about 65 Hz, not 125, and why fast events look slightly rounded. Read the filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry section of the datasheetDatasheet The manufacturer's document for a chip: pinout, limits, typical performance, and the reference circuit you should start from. Glossary entry once; it explains the shape of every trace you record.
Deep dive Sample rate for EMG and spikes 2 min
EEGElectroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. Related: Electrocorticography (ECoG)Electrocorticography (ECoG) Recording from electrodes placed on the surface of the brain under the skull, usually during epilepsy surgery evaluation; cleaner and sharper than EEG. , Magnetoencephalography (MEG)Magnetoencephalography (MEG) Recording the tiny magnetic fields produced by cortical currents with superconducting sensors in a shielded room; less blurred by the skull than EEG, and far more expensive. , Volume conductionVolume conduction The spreading of currents from a source through the conductive tissues of the head, which is why one source shows up on many electrodes and why scalp EEG is blurry. , Microvolt (µV)Microvolt (µV) One millionth of a volt. Scalp EEG is tens of microvolts; a AA battery is 1.5 million of them. . Glossary entry: 250 to 500 samples per second, content to about 100 Hz. EMGElectromyography (EMG) Recording the electrical activity of muscles, hundreds of microvolts to millivolts, much larger than EEG. Related: Myoelectric prosthesisMyoelectric prosthesis An artificial limb controlled by EMG from the remaining muscles. , Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. . Glossary entry: 1000 to 2000, content to 500 Hz. Extracellular spikesSpike Shorthand for an action potential as seen by an electrode, a brief blip about a millisecond wide. Related: Action potentialAction potential The brief, all-or-nothing voltage spike a neuron fires, about a millisecond long and about 100 millivolts tall across its membrane. , Spike sortingSpike sorting Deciding which spikes on an electrode came from which neuron, by clustering their waveform shapes. , Extracellular recordingExtracellular recording Recording with an electrode near neurons rather than inside one; you see small, fast blips from nearby cells rather than the full membrane swing. . Glossary entry: 20,000 to 30,000, content to about 7 kHz. Each needs its anti-alias filterAnti-alias filter A low-pass filter placed before the ADC to remove everything above Nyquist, so nothing can alias. Related: AliasingAliasing A frequency above Nyquist masquerading as a lower one after sampling; nothing downstream can undo it. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. . Glossary entry at less than half its rate. The ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry goes to 16,000 samples per second, which is why OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. Related: ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. , BrainFlowBrainFlow A library that talks to OpenBCI and most consumer EEG headsets with one API, in Python and other languages. . Glossary entry boards can record EMGElectromyography (EMG) Recording the electrical activity of muscles, hundreds of microvolts to millivolts, much larger than EEG. Related: Myoelectric prosthesisMyoelectric prosthesis An artificial limb controlled by EMG from the remaining muscles. , Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. . Glossary entry but not spikesSpike Shorthand for an action potential as seen by an electrode, a brief blip about a millisecond wide. Related: Action potentialAction potential The brief, all-or-nothing voltage spike a neuron fires, about a millisecond long and about 100 millivolts tall across its membrane. , Spike sortingSpike sorting Deciding which spikes on an electrode came from which neuron, by clustering their waveform shapes. , Extracellular recordingExtracellular recording Recording with an electrode near neurons rather than inside one; you see small, fast blips from nearby cells rather than the full membrane swing. . Glossary entry, and why Intan chips exist.
Deep dive Why a big input range matters more than the bits 3 min
ElectrodeElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry offsets can be tens of millivolts; the brain signal is tens of microvolts. A converter with a small range needs the offset removed by an analog high-pass before it, which adds components and distorts slow signals. A converter with a range of hundreds of millivolts and a 22 nV step can swallow the offset and the signal together and let software remove the offset later, with a zero-phase filterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry, perfectly. This is why modern amplifiers are “DC-coupled” and why the ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry has no analog high-pass at all.
Deep dive Timing jitter is noise too 2 min
If samples are not taken at exactly regular intervals, the wobble in timing becomes a wobble in voltage on any changing signal. For a 40 Hz signal at full scale, 10 microseconds of jitter is a few parts in a thousand of error, small for EEGElectroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. Related: Electrocorticography (ECoG)Electrocorticography (ECoG) Recording from electrodes placed on the surface of the brain under the skull, usually during epilepsy surgery evaluation; cleaner and sharper than EEG. , Magnetoencephalography (MEG)Magnetoencephalography (MEG) Recording the tiny magnetic fields produced by cortical currents with superconducting sensors in a shielded room; less blurred by the skull than EEG, and far more expensive. , Volume conductionVolume conduction The spreading of currents from a source through the conductive tissues of the head, which is why one source shows up on many electrodes and why scalp EEG is blurry. , Microvolt (µV)Microvolt (µV) One millionth of a volt. Scalp EEG is tens of microvolts; a AA battery is 1.5 million of them. . Glossary entry. For spikesSpike Shorthand for an action potential as seen by an electrode, a brief blip about a millisecond wide. Related: Action potentialAction potential The brief, all-or-nothing voltage spike a neuron fires, about a millisecond long and about 100 millivolts tall across its membrane. , Spike sortingSpike sorting Deciding which spikes on an electrode came from which neuron, by clustering their waveform shapes. , Extracellular recordingExtracellular recording Recording with an electrode near neurons rather than inside one; you see small, fast blips from nearby cells rather than the full membrane swing. . Glossary entry it matters. This is why the ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry runs on a crystal and pulls the data-ready line itself, and why the Arduino sketch on the plotter page uses a microsecond scheduler instead of delay().
Explain what this page was about to your roommate in three sentences. No jargon they would not know.
We sample at 250 per second and keep only content below half that rate, because anything higher folds back as a false tone that no software can remove. We place an analog low pass before the converter so a 240 Hz harmonic cannot masquerade as 10 Hz alpha, and we accept that our 24 bit steps near 22 nanovolts still leave about 18 to 19 useful bits under roughly 1 microvolt of input noise. We rely on the delta sigma design that decides higher or lower millions of times per second and averages the stream down, which also sets our usable bandwidth near 65 Hz at the 250 per second rate.
Yours does not have to match. Check that the three ideas are there.