Project B: One channel of you
Alpha EEG from one instrumentation amplifier, a driven-right-leg circuit, and gold cup electrodes. Close your eyes and a bump appears at 10 Hz. Open them and it vanishes.
On this pageTwo evenings
This is the project that makes the field feel real. Three electrodesElectrode 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, one on the back of your head, one on an earlobe, one on your forehead. An amplifier with a 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 of about two thousand and a band-pass from half a hertz to forty. An Arduino to sample it and the Web Serial plotter to show it. Close your eyes and watch a peak grow at about 10 Hz in the spectrumSpectrum A plot of how much of a signal lives at each frequency. Related: Fast Fourier transform (FFT)Fast Fourier transform (FFT) The algorithm that breaks a stretch of signal into the sinusoids that would add up to it, giving amplitude and phase at each frequency. , Power spectral density (PSD)Power spectral density (PSD) The spectrum expressed as power per hertz, the standard way to quantify how strong alpha is. . Glossary entry. Open them and watch it disappear within a second. That peak is your 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, and once you have seen it you will not stop seeing it.
- Press Eyes closed. Watch the shaded alpha band in the spectrumSpectrum A plot of how much of a signal lives at each frequency. Related: Fast Fourier transform (FFT)Fast Fourier transform (FFT) The algorithm that breaks a stretch of signal into the sinusoids that would add up to it, giving amplitude and phase at each frequency. , Power spectral density (PSD)Power spectral density (PSD) The spectrum expressed as power per hertz, the standard way to quantify how strong alpha is. . Glossary entry fill in over two seconds. Press it again.
- Turn Mains hum up until the trace is a solid band, then set the low-pass to 40 Hz. Then turn the notchNotch 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. Related: FilterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. , Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. . Glossary entry on. Notice which one helped more.
- Press Blink. Compare its size to alpha. Set the high-pass to 0.5 Hz and press Blink again.
Where on the head will alpha be largest?
The back of the head, over visual cortex. Alpha is what visual cortex does when it has nothing to look at. Put the 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 on the forehead first and you will see nothing, which is a useful mistake to make once.
Parts
| Part | Where | Qty | Approx. |
|---|---|---|---|
| 9 V batteries, ×4, and snap connectors $9.69 for four Energizer cells plus $3.59 for three snap connectors (Amazon B0CR8RKQ5Q). Two batteries give you a ±9 V split supply. Never power anything touching skin from the wall or from a laptop USB port. | Amazon, any store | 1 | $13 |
| AD8232 heart-rate monitor breakout A complete biopotential front end on a board, and the clone comes with a cable and pads. SparkFun's version is $24.41 and has better documentation and a known-good layout. Use it to compare against your own amplifier, and to see what a good DRL looks like. | Amazon, SparkFun | 1 | $11 |
| Alligator clip leads, ×10 | Amazon | 1 | $5 |
| Arduino Nano clone (ATmega328P, CH340), ×3 A three-pack is cheaper than one genuine board and you will kill one. The official Nano Every is $14.90 for a single board if you want Arduino's support. Either has the 10-bit analog input the Web Serial plotter needs; CH340 boards work with Chrome's Web Serial. | Amazon | 1 | $13 |
| Auto-ranging digital multimeter You will use this more than any other tool, so buy an auto-ranging one; the $17 TM-510 is auto-ranging. Below that price you get manual ranging, which wastes time. A true-RMS meter is about $35 and you will not need it this year. | Amazon | 1 | $17 |
| Disposable snap ECG electrodes, bag of 50 3M Red Dot, $11.40 for fifty. Clip the alligator leads onto the snap studs rather than buying leads; a set of four 3.5 mm snap leads is $9.99 if you want them tidy. | Amazon | 1 | $12 |
| EEG conductive paste, 50 g tube Holds the cups on and lowers impedance. A 50 g tube is enough for many sessions; the 8 oz jar of Ten20, which is the clinical standard and easier to remove from hair, is $27.99. | Amazon | 1 | $9 |
| Flush cutters, wire strippers, tweezers $7.99 for the stripper and flush cutter, plus $5.99 for a three-piece ESD tweezer set (Amazon B0BNNGC3Q2). | Amazon | 1 | $14 |
| Full-size breadboard, ×2, and jumper wires Two 830-point boards, two 400-point boards, and 120 jumpers for $7.99. Adafruit's single premium board is $5.95 and its contacts grip better. | Amazon | 1 | $8 |
| Gold cup EEG electrodes, set of 10 with DIN 1.5 mm leads $22.01 for ten, shipped free, in two to four weeks. The same thing on Amazon is about $60 for ten and arrives in days; the OpenBCI set is $44.99 and is usually sold out. Reusable, so clean them after each use. | AliExpress | 1 | $22 |
| INA128 instrumentation amplifier (DIP-8), ×2 A two-pack is $9.99. TI's own INA128P is $18.99 each and the part is on a discontinuance notice, so the marketplace two-packs are grey stock; they work, but if one is noisier than the datasheet that is why. The AD620 or INA118 are interchangeable for our purposes. Get the through-hole DIP version for breadboards. | Amazon | 2 | $10 |
| Resistor and capacitor assortment $5.69 for 600 1% metal-film resistors, plus $9.99 for a 480-piece ceramic capacitor kit (10 pF to 10 µF, Amazon B0D2GVNDHY). 1% metal-film matters for the instrumentation amplifier's balance. | Amazon | 1 | $16 |
| Temperature-adjustable soldering iron kit with solder, stand, and flux $11.99 for the iron, five tips, solder, a stand, and flux, which is everything Phase 1 needs. Its temperature dial is open-loop and its tips wear fast; the Pinecil V2 at $25.99 from Pine64 holds temperature properly and will outlast your degree, and it needs a USB-C PD supply you may already own. | Amazon | 1 | $12 |
| TL072 dual op-amps, ×10 For filters, the DRL circuit, and the audio stage of the SpikerBox. A ten-pack costs the same as two singles. The OPA2134 is quieter if you want to hear the difference. | Amazon | 1 | $6 |
| Total (prices drift; treat as a ceiling) | $168 | ||
The circuit
Compared to the SpikerBoxSpikerBox Backyard Brains' small battery amplifier that lets you hear action potentials from a cockroach leg on a speaker; easy to build yourself. 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. , 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, two things change: 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 moves down to 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 frequencies, and a third 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 with a feedback circuit is added to cancel hum.
Input protection. Each 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 lead goes through a 100 kΩ resistor before the amplifier input. With the INA128’s 10 GΩ input impedanceInput impedance How hard the amplifier's inputs are to push current into; it must be far higher than the electrode impedance or the signal is lost in the divider. Related: 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. , Input bias currentInput bias current The tiny current an amplifier input draws; through a high electrode impedance it produces an offset and noise. . Glossary entry this costs nothing, and it limits any fault current to microamps.
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. Related: Differential measurementDifferential measurement Measuring the difference between two electrodes rather than one electrode against ground, so anything common to both cancels. , Common-mode rejection ratio (CMRR)Common-mode rejection ratio (CMRR) How much better an amplifier responds to a difference between its inputs than to a signal shared by both, in decibels; 100 dB means 100,000 times. , Input impedanceInput impedance How hard the amplifier's inputs are to push current into; it must be far higher than the electrode impedance or the signal is lost in the divider. . Glossary entry. INA128, 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 resistor 500 Ω, 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 about 100. The 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 resistor is split into two 250 Ω resistors in series, because the junction between them carries the average of the two inputs, which is the common-modeCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. Related: Common-mode rejection ratio (CMRR)Common-mode rejection ratio (CMRR) How much better an amplifier responds to a difference between its inputs than to a signal shared by both, in decibels; 100 dB means 100,000 times., Differential measurementDifferential measurement Measuring the difference between two electrodes rather than one electrode against ground, so anything common to both cancels., Driven-right-leg circuitDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected.. Glossary entry voltage. You need it for the next part.
Driven-right-leg circuitDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected. Related: Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. , Ground electrodeGround electrode The electrode that ties the body to the amplifier's zero and, in a good design, is driven to cancel common-mode hum. . Glossary entry. A TL072 stage takes the common-mode voltage from that junction, inverts and amplifies it (1 MΩ feedback, 25 kΩ input, so about −40), and drives the third 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 through a 390 kΩ resistor. Now the body’s hum is actively cancelled instead of only rejected. The 390 kΩ limits the current the circuit can push into you to about 25 microamps even if everything fails, which is what IEC 60601IEC 60601 The safety standard for medical electrical equipment, including how much current may leak into a patient (microamps). Related: Leakage currentLeakage current Current that flows into the patient through unintended paths; limited to tens of microamps for anything touching the body., Electrical isolationElectrical isolation A barrier, such as a battery, an optocoupler, or an isolated USB link, with no conductive path from the mains to the patient.. Glossary entry requires.
High-pass at 0.5 Hz. A 1 µF capacitor into 330 kΩ. This removes the 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 offset, which can be tens of millivolts and would saturate the next stage. It also removes sweat drift.
Second 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 stage. TL072 non-inverting, 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 20 (1 kΩ to ground, 19 kΩ feedback; 18 kΩ plus 1 kΩ works). Total 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 about 2000, so 50 µV of alpha becomes 100 mV.
Low-pass at about 35 Hz. 10 kΩ into 0.47 µF. This is 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 for a 250 Hz sample rate, and it knocks down a good part of the 60 Hz.
Level shift for the ADCAnalog-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. The output swings around ground. The Arduino reads 0 to 5 V. A 10 µF capacitor into two 1 MΩ resistors, one to 5 V and one to ground, centres the signal at 2.5 V without adding a meaningful high-pass (0.03 Hz).
- Build the 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. Related: Differential measurementDifferential measurement Measuring the difference between two electrodes rather than one electrode against ground, so anything common to both cancels. , Common-mode rejection ratio (CMRR)Common-mode rejection ratio (CMRR) How much better an amplifier responds to a difference between its inputs than to a signal shared by both, in decibels; 100 dB means 100,000 times. , Input impedanceInput impedance How hard the amplifier's inputs are to push current into; it must be far higher than the electrode impedance or the signal is lost in the divider. . Glossary entry with the split 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 resistor and the two bypass capacitors. Test with a 1 kHz tone through a 100:1 divider as in the SpikerBoxSpikerBox Backyard Brains' small battery amplifier that lets you hear action potentials from a cockroach leg on a speaker; easy to build yourself. 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. , 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.
- Add the 0.5 Hz high-pass and the ×20 stage. Test again; the tone should be about 2000 times bigger than the input. With the input shorted through 10 kΩ, look at the output on the plotter: this is your 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. Write it down in millivolts and divide by 2000.
- Add the low-pass, the level shift, and the Arduino. Load the serial streamer sketch from the plotter page. Confirm you see a flat line at about 512 counts with the input shorted.
- Add the DRLDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected. Related: Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. , Ground electrodeGround electrode The electrode that ties the body to the amplifier's zero and, in a good design, is driven to cancel common-mode hum. . Glossary entry stage. Do not connect it to anything yet. Check it does not oscillate (a steady output near 0 V with the inputs shorted).
- Prepare the skin. Part the hair at the back of the head, slightly left of centre (the position called O1), and rub the spot with a little Nuprep or alcohol on a cotton swab. Do the same on the left earlobe and the centre of the forehead.
- Fill three gold cups with Ten20 paste, more than seems reasonable, and press them on: O1 to the amplifier’s + input, earlobe to the − input, forehead to the DRLDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected. Related: Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. , Ground electrodeGround electrode The electrode that ties the body to the amplifier's zero and, in a good design, is driven to cancel common-mode hum. . Glossary entry output. Hold each cup down for ten seconds. A strip of medical tape helps.
- Unplug the laptop charger. Connect the Arduino. Start the plotter.
- Sit still, look at a fixed point, and watch. Blink on purpose and see the deflection. Clench your jaw and see the burst. Then close your eyes for ten seconds and watch the spectrumSpectrum A plot of how much of a signal lives at each frequency. Related: Fast Fourier transform (FFT)Fast Fourier transform (FFT) The algorithm that breaks a stretch of signal into the sinusoids that would add up to it, giving amplitude and phase at each frequency. , Power spectral density (PSD)Power spectral density (PSD) The spectrum expressed as power per hertz, the standard way to quantify how strong alpha is. . Glossary entry.
- Save a plot with eyes closed and one with eyes open, axes labelled, and the CSV next to them.
What the numbers should look like
Input-referred noise with a shorted input: a few microvolts RMS if soldered, ten or twenty on a breadboard. Alpha, eyes closed, at O1: 20 to 60 µV peak in most people. A blink at O1: 50 to 150 µV. The same blink on the forehead: 300 µV or more. Sixty-hertz hum after the DRLDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected. Related: Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. , Ground electrodeGround electrode The electrode that ties the body to the amplifier's zero and, in a good design, is driven to cancel common-mode hum. . Glossary entry and low-pass, with the laptop unplugged: under 5 µV, ideally under 1.
Going further
Replace the breadboard with a soldered board and watch 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 drop by a factor of five. Compare your amplifier to the AD8232 breakout, which has a DRLDriven-right-leg circuit A third electrode fed with an inverted copy of the common-mode signal, so the body's hum is actively cancelled instead of merely rejected. Related: Common-mode signalCommon-mode signal A voltage that appears equally on both inputs of a differential amplifier, such as 60 Hz hum picked up by the whole body. , Ground electrodeGround electrode The electrode that ties the body to the amplifier's zero and, in a good design, is driven to cancel common-mode hum. . Glossary entry and filtersFilter 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 built in, and see what a professional designer did differently. Move the 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 to C3 (above the left ear, toward the top) and open and close your right hand: the mu rhythm is alpha’s cousin and it drops when you move. Add a second channel and a second Arduino pin.
What to read now
Why so small? is about the 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, the difference measurement, and the third 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 you just used. Why the hum? is the debugging list above, with the reasons. Alpha and the back of the head is about what you saw. And the artifact bestiary will name every strange thing on your trace.