A PCB (printed circuit board) is the green (or blue, or black) board inside any electronic device. Instead of wiring parts together by hand, the connections are copper paths printed on the board itself, which makes the device smaller and more robust, and lets it be made by the thousand in identical form.
Why a PCB?
| Breadboard | Perfboard | PCB | |
|---|---|---|---|
| Speed | Instant | Hours of soldering and wires | Days until it arrives |
| Robustness | Weak; wires come loose | Medium | Very high |
| Size | Large | Medium | The smallest |
| Repeatability | Hard | Each copy is work from scratch | Thousands of identical copies |
| SMD parts | Practically impossible | Hard | Normal |
The breadboard is for experimenting, and the PCB is for when the circuit works and you want a real device.
The layers
- The core (FR4): an insulating material of fibreglass and epoxy, usually 1.6 mm thick.
- Copper: a thin layer (usually 35 µm = 1 oz), from which the traces are etched.
- Solder mask: the coloured layer that covers and protects the copper, and stops solder flowing between traces. It leaves only the places to be soldered exposed.
- Silkscreen: the white text: part names, values, and polarity marks.
Green doesn't mean anything technical. It's just the solder mask colour, and the most common one because it's cheaper and easier to inspect. Blue, black and red work in exactly the same way.
The basic terms
- Trace: the copper path connecting parts. Its width depends on the current; see trace width.
- Pad: where a part's lead is soldered.
- Via: a small copper-plated hole connecting layers. See the vias article.
- Footprint: the shape and dimensions for each part on the board.
- Copper pour / plane: a large copper area, usually for ground. See the ground plane.
- Edge cuts / outline: the board's boundary, where the factory cuts.
The part letters on the board
Each part has a name made of a letter and a number, and the letter tells you its type:
| Letter | Part |
|---|---|
| R | Resistor |
| C | Capacitor |
| L | Inductor |
| D | Diode or LED |
| Q | Transistor or MOSFET |
| U | Integrated circuit (chip) |
| J or P | Connector |
| SW | Switch or button |
| F | Fuse |
| Y or X | Crystal |
So if the schematic says R7, you'll find it printed next to its place on the board. That makes a big difference when repairing a device: the letter tells you what the part is even if there's nothing written on it. The symbols themselves are in the schematic symbols article.
Number of layers
- Single-sided: cheap, suitable for simple circuits, and can be made at home.
- Double-sided: the most common for projects, with vias connecting the two sides.
- 4 layers or more: for complex and fast circuits. Usually there's a full ground layer and a power layer inside.
Materials other than FR4
- Aluminium: for powerful LEDs, because it draws away heat.
- Flex (polyimide): a board that bends, like those inside cameras and phones.
- RF materials (such as Rogers): for very high frequencies, because FR4 loses signal there.
Surface finish
Exposed copper oxidises, so the factory covers the pads with a protective layer:
- HASL: solder applied and levelled with hot air. Cheap and easy to solder, but the surface isn't perfectly flat.
- ENIG: a thin gold layer over nickel. Very flat, so better for small chips. More expensive.
- OSP: a thin organic layer. Cheap, but with a shorter shelf life.
How does the factory make it?
In short: it drills the holes, plates copper inside the holes to connect the two sides, prints the trace pattern with a photosensitive material, etches away the excess copper with a chemical solution, then applies the solder mask, the silkscreen and the finish, and finally cuts the board out and electrically tests the connections. That's why the Gerber files must be right: each layer becomes one of these steps.
And at home?
You can make a single-sided board by toner transfer (print onto glossy paper and iron it onto the copper) and then etch with ferric chloride. You learn a lot, but it's slow, and the solution stains, is dangerous to eyes and skin, and mustn't go down the sink. For most people, ordering a board from a factory is now cheaper, faster and cleaner. See ordering PCB manufacturing.
The design stages
- The schematic: you draw the circuit with symbols and define what connects to what.
- Choosing footprints: for each part, the shape that goes on the board.
- The layout: arranging the parts on the board.
- Routing: drawing the traces.
- The check (DRC): the software checks spacings and widths against the factory's rules.
- Gerber files: the files sent to the factory.
Popular programs: KiCad (free and powerful), EasyEDA, and Altium for companies. If you're starting out, see your first steps in KiCad.
Before your first board
Read the 10 most common PCB design mistakes article. It'll save you from having a second board made. And if you want to learn design from scratch to manufacturing in a practical way, that's exactly what we do in the PCB design course.
FAQ
What does 1 oz copper mean? The weight of copper over one square foot, which equals a thickness of about 35 µm. 2 oz is twice the thickness, so it carries more current at the same width.
Can I repair a broken trace? Yes: carefully scrape the solder mask around the break, tin it, and solder a thin wire over it.