KiCad to JLCPCB
Schematic, layout, and a fabricated, assembled board for about the price of a textbook. The workflow, the layout rules that matter for microvolt signals, and the mistakes that cost a reorder.
On this pageA weekend to learn, then evenings
The workflow
KiCadKiCad Free, open-source software for drawing schematics and laying out printed circuit boards. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. , JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. . Glossary entry is free and it is what most open hardware, including 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, is drawn in. Five steps, each its own tool inside KiCadKiCad Free, open-source software for drawing schematics and laying out printed circuit boards. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. , JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. . Glossary entry. Draw the schematic. Assign a footprint (the physical pad pattern) to each part. Lay out the board. Run the design rule check. Export the fabrication files. JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. . Glossary entry takes those files, makes the boards, and, if you use parts from their library, solders them on.
Schematic habits
Start by opening the 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 Cyton schematic and TI’s 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 evaluation board schematic side by side and reading them until you can explain every part. Then draw yours. Use hierarchical sheets: power, analog front end, digital, connectors. Label every net with a meaningful name (AVDD, DVDD, AGND, DGND, SCLK, DRDY). Put a text note on the sheet for every non-obvious value: “390k limits bias current to 23 µA (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).” The schematic is documentation; six months from now you are the reader.
Add test points: a pad you can touch with a scope probe on every supply rail, the reference, the bias output, and one input. They cost nothing and they make bring-up possible.
Footprints and the parts library
Pick components that JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. . Glossary entry stocks and prefer the ones marked “basic,” which have no per-part loading fee. For passives, 0603 is the smallest you should hand-solder and a fine default; 0402 only if the assembler is placing it. Use the KiCadKiCad Free, open-source software for drawing schematics and laying out printed circuit boards. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. , JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. . Glossary entry JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. . Glossary entry plugin (there are several) to attach the part number to each component so the assembly file is generated for you. 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 is an “extended” part; that is fine, it just costs a few dollars to load.
Layout rules for microvolts
These are the ones that matter. Every other rule is secondary.
- Split the world. Analog inputs and reference on one region of the board, digital and microcontroller on another, with 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 straddling the boundary. Nothing digital routes under or beside the analog inputs.
- One ground, joined once. A solid ground plane. If you separate analog and digital ground, join them at exactly one point, near the chip, as the datasheetDatasheet The manufacturer's document for a chip: pinout, limits, typical performance, and the reference circuit you should start from. Glossary entry shows. Two joins make a loop; a loop makes hum.
- Symmetric inputs. Each channel’s positive and negative traces are the same length, same width, same layer, run as a pair. Any asymmetry is an impedance mismatch, and you know what that does to 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.
- Short inputs. The trace from connector to protection resistor to chip pin is as short as the geometry allows. Every millimetre is antenna.
- Guard ring. A ground-connected trace surrounding the input section, on the same layer, so that leakage across the board surface goes to ground instead of into the input.
- Capacitors at the pin. Each 0.1 µF bypass capacitor within 2 mm of its supply pin, with the shortest possible path to ground. The reference capacitors likewise.
- Keep the switching away. The boost converter or regulator, if switching, lives as far from the inputs as the board allows, with its loop area minimized.
- Isolation gap. If your board has an isolation barrier (an isolator chip, an isolated DC-DC), leave a clear gap of several millimetres in the copper across the barrier, on every layer, and route nothing across it but the isolator.
Design rule check and review
Run the DRC and fix every error; warnings you can judge. Then print the board at scale and lay real parts on the paper. Then, before ordering, have someone else look at it. A second pair of eyes has caught a reversed connector on every board I have ever ordered.
Ordering
Export Gerbers, drill file, bill of materials, and component placement. Upload to JLCPCBJLCPCB A Chinese board house that fabricates and assembles small-run PCBs for a few dollars, the standard for student projects. Related: Printed circuit board (PCB)Printed circuit board (PCB) The board that holds and connects your components; designing one is how a breadboard prototype becomes an instrument. . Glossary entry. Choose two layers (four if you want an internal ground, which is better and only a little more expensive), 1.6 mm, any colour, and assembly for the top side. Order five bare boards and two assembled. Check the assembly preview, where rotated or mirrored parts show up. The whole order for an eight-channel 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 is around 2 for five bare boards, an 1.53 stencil, and fractions of a cent per joint), and the two 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 chips at 37.10, brings the order to about $150.