Project B: Build a lab a rig
An Open Ephys compatible headstage, a behaviour box, an optogenetics LED driver, a Bpod-style state machine. Labs are full of unbuilt instruments, and building one is how an undergraduate becomes indispensable.
On this pageA semester
Every electrophysiology lab has a list of things it wishes it had: a headstage with a different connector, a box that delivers a stimulus and logs a lever press with millisecond timing, an LED driver with a proper current source, a synchronization signal between two recording systems. Graduate students do not have time to build them and commercial versions cost thousands. A student who has built 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 board and written its firmwareFirmware The program running on the microcontroller, which configures the chip, reads samples on time, and ships them to the computer. Related: SPISPI A simple four-wire bus for talking to chips like the ADS1299 from a microcontroller. . Glossary entry can build any of them, and the lab that gets one will not let that student go. This project is the research ladder’s most powerful rung.
A lab needs a behaviour box that presents a tone, waits for a nose poke, and delivers a water reward, with all events logged to a millisecond. What is the hardest part?
Timing and synchronization. The components are a speaker, an infrared sensor, and a solenoid valve, an afternoon’s wiring. The value is in a state machine that runs with deterministic timing on a microcontroller, logs every transition with a timestamp, and emits a synchronization pulse the neural recording system records on a spare channel, so that behaviour and neurons can be aligned to the millisecond afterward. That is what the commercial systems (Bpod, Bcontrol) sell, and it is what you build.
Choose from the list
Ask the lab. Then pick the one that is most wanted and that you can finish in a semester. Typical candidates:
A headstage. The Intan RHD chips do 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 what 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 does 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: 32 or 64 channels of amplification and digitization on a chip, with an SPISPI A simple four-wire bus for talking to chips like the ADS1299 from a microcontroller. Related: FirmwareFirmware The program running on the microcontroller, which configures the chip, reads samples on time, and ships them to the computer. . Glossary entry interface. Open Ephys publishes headstage designs and an acquisition system that reads them. A headstage variant with a different connector, a different form factor, or an added accelerometer is a well-bounded board project with a real user.
A behaviour box. The state machine above, on a Teensy or RP2040RP2040 The Raspberry Pi microcontroller, cheap and well documented, with fast SPI and USB. Related: ESP32ESP32 A cheap microcontroller with Wi-Fi and Bluetooth, good for streaming data from a sensor board to a laptop. . Glossary entry, with a Python interface for defining tasks. Open designs exist (pyControl, Bpod’s firmwareFirmware The program running on the microcontroller, which configures the chip, reads samples on time, and ships them to the computer. Related: SPISPI A simple four-wire bus for talking to chips like the ADS1299 from a microcontroller. . Glossary entry); adapting one to the lab’s specific task and hardware is the job.
An optogenetics driver. A precision current source for a high-power LED, with a fast enable input, adjustable current, and an output monitor, so that the light delivered is known and repeatable. Commercial ones cost a thousand dollars; the circuit is an op-amp, a MOSFET, and a sense resistor done carefully, with attention to thermal drift.
Synchronization. A box that takes trigger inputs from several systems (camera, behaviour, recording) and distributes a common timing pulse, with a log. Boring and universally needed.
A jig or a fixture. A 3D-printed holder that positions an 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 repeatably, a perfusion chamber, a head-fixation adapter. Mechanical, quick, and often the thing the lab most wanted.
Do it like an instrument
RequirementsRequirements Testable statements of what the device must do, such as "input-referred noise below 1 microvolt RMS from 0.5 to 40 Hz." Related: VerificationVerification Testing that the device meets its requirements; did you build what you specified. . Glossary entry from the user (the graduate student who will use it). A schematic and a board, or a drawing. FirmwareFirmware The program running on the microcontroller, which configures the chip, reads samples on time, and ships them to the computer. Related: SPISPI A simple four-wire bus for talking to chips like the ADS1299 from a microcontroller. . Glossary entry with a version number. A characterizationCharacterization Measuring what your instrument actually does, such as its noise floor, bandwidth, and rejection, instead of assuming the datasheet. Related: 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. , PhantomPhantom A physical stand-in for tissue, such as saline gelatin with embedded wires, used to test an instrument against known signals. , 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. . Glossary entry: timing jitter measured with a scope, current accuracy measured against a meter, 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 if it records. A one-page manual. A repository. Then hand it over and watch them use it; the first hour of real use produces the change list.
Why this matters more than it looks
The student who builds a lab’s rig is the one whose name goes on the methods section, who is asked to present at the lab meeting, who is trusted with the next project, and whose recommendation letter says “indispensable.” It is also exactly what the research hardware companies (Open Ephys, Intan, Ripple) hire for.
- Ask the lab for its list. Pick one. Write half a page of requirementsRequirements Testable statements of what the device must do, such as "input-referred noise below 1 microvolt RMS from 0.5 to 40 Hz." Related: VerificationVerification Testing that the device meets its requirements; did you build what you specified. . Glossary entry with the user.
- Design, build, and bring up, in the Phase 2 style.
- Characterize: timing, accuracy, noise, as applicable.
- Write the one-page manual and put everything in a repository.
- Hand over. Watch the first hour of use. Fix the change list.
- Ask for the next item on the list.