Printed circuit board
A printed circuit board, or PCB, is used to mechanically support and electrically connect electronic components using conductive pathways, or traces, etched from copper sheets laminated onto a non-conductive substrate. Alternative names are printed wiring board (PWB),and  etched wiring board. A PCB populated with electronic components is a printed circuit assembly (PCA), also known as a printed circuit board assembly (PCBA).
PCBs are rugged, inexpensive, and can be highly reliable. They require much more layout effort and higher initial cost than either wire-wrapped or point-to-point constructed circuits, but are much cheaper and faster for high-volume production. Much of the electronics industry's PCB design, assembly, and quality control needs are set by standards that are published by the IPC organization.

# Manufacturing

## Materials
Conducting layers are typically made of thin copper foil. Insulating materials have a wider scale: phenolic paper, glass fibre and different plastics are commonly used. Usually PCB factories use prepregs (short for preimpregnated), which are a combination of glass fibre mat, nonwoven material and resin. Copper foil and prepreg are typically laminated together with epoxy resin. Well known prepreg materials used in the PCB industry are FR-2 (Phenolic cotton paper), FR-3 (Cotton paper and epoxy), FR-4 (Woven glass and epoxy), FR-5 (Woven glass and epoxy), FR-6 (Matte glass and polyester), G-10 (Woven glass and epoxy), CEM-1 (Cotton paper and epoxy), CEM-2 (Cotton paper and epoxy), CEM-3 (Woven glass and epoxy), CEM-4 (Woven glass and epoxy), CEM-5 (Woven glass and polyester).

## Patterning (etching)
The vast majority of printed circuit boards are made by bonding a layer of copper over the entire substrate, sometimes on both sides, (creating a "blank PCB") then removing unwanted copper after applying a temporary mask (eg. by etching), leaving only the desired copper traces. A few PCBs are made by adding traces to the bare substrate (or a substrate with a very thin layer of copper) usually by a complex process of multiple electroplating steps.
There are three common "subtractive" methods (methods that remove copper) used for the production of printed circuit boards:
- Silk screen printing uses etch-resistant inks to protect the copper foil. Subsequent etching removes the unwanted copper. Alternatively, the ink may be conductive, printed on a blank (non-conductive) board. The latter technique is also used in the manufacture of hybrid circuits.
- Photoengraving uses a photomask and chemical etching to remove the copper foil from the substrate. The photomask is usually prepared with a photoplotter from data produced by a technician using CAM, or computer-aided manufacturing software. Laser-printed transparencies are typically employed for phototools; however, direct laser imaging techniques are being employed to replace phototools for high-resolution requirements.
- PCB milling uses a two or three-axis mechanical milling system to mill away the copper foil from the substrate. A PCB milling machine (referred to as a 'PCB Prototyper') operates in a similar way to a plotter, receiving commands from the host software that control the position of the milling head in the x, y, and (if relevant) z axis. Data to drive the Prototyper is extracted from files generated in PCB design software and stored in HPGL or Gerber file format.
"Additive" processes also exist. The most common is the "semi-additive" process. In this version, the unpatterned board has a thin layer of copper already on it. A reverse mask is then applied. (Unlike a subtractive process mask, this mask exposes those parts of the substrate that will eventually become the traces.) Additional copper is then plated onto the board in the unmasked areas; copper may be plated to any desired weight. Tin-lead or other surface platings are then applied. The mask is stripped away and a brief etching step removes the now-exposed original copper laminate from the board, isolating the individual traces.
The additive process is commonly used for multi-layer boards as it facilitates the plating-through of the holes (to produce conductive vias) in the circuit board.

## Lamination
Some PCBs have trace layers inside the PCB and are called multi-layer PCBs. These are formed by bonding together separately etched thin boards.

## Drilling
Holes, or vias, through a PCB are typically drilled with tiny drill bits made of solid tungsten carbide. The drilling is performed by automated drilling machines with placement controlled by a drill tape or drill file. These computer-generated files are also called numerically controlled drill (NCD) files or  "Excellon files". The drill file describes the location and size of each drilled hole.
When very small vias are required, drilling with mechanical bits is costly because of high rates of wear and breakage. In this case, the vias may be evaporated by lasers. Laser-drilled vias typically have an inferior surface finish inside the hole. These holes are called micro vias.
It is also possible with controlled-depth drilling, laser drilling, or by pre-drilling the individual sheets of the PCB before lamination, to produce holes that connect only some of the copper layers, rather than passing through the entire board. These holes are called blind vias when they connect an internal copper layer to an outer layer, or buried vias when they connect two or more internal copper layers and no outer layers.
The walls of the holes, for boards with 2 or more layers, are plated with copper to form plated-through holes that electrically connect the conducting layers of the PCB. For multilayer boards, those with 4 layers or more, drilling typically produces a smear comprised of the bonding agent in the laminate system. Before the holes can be plated through, this smear must be removed by a chemical de-smear process, or by plasma-etch.

## Exposed conductor plating and coating
The places to which components will be mounted are typically plated, because bare copper oxidizes quickly, and therefore is not readily solderable. Traditionally, any exposed copper was plated with solder by hot air solder levelling (HASL). This solder was a tin-lead alloy, however new solder compounds are now used to achieve compliance with the RoHS directive in the EU, which restricts the use of lead. Other platings used are OSP (organic surface protectant), immersion silver (IAg), immersion tin, electroless nickel with immersion gold coating (ENIG), and direct gold.  Edge connectors, placed along one edge of some boards, are often gold plated.
Electrochemical migration (ECM) is the growth of conductive metal filaments on or in a printed circuit board (PCB) under the influence of a DC voltage bias.

## Solder resist
Areas that should not be soldered to may be covered with a polymer solder resist (solder mask) coating. The solder resist prevents solder from bridging between conductors and thereby creating short circuits. Solder resist also provides some protection from the environment.

## Screen printing
Line art and text may be printed onto the outer surfaces of a PCB by screen printing. When space permits, the screen print text can indicate  component designators, switch setting requirements, test points, and other features helpful in assembling, testing, and servicing the circuit board.
Screen print is also known as the silk screen, or, in one sided PCBs, the red print.
Lately some digital printing solutions have been developed to substitute the traditional screen printing process. This technology allows printing variable data onto the PCB, including serialization and barcode information for traceability purposes.

## Test
Unpopulated boards may be subjected to a bare-board test where each circuit connection (as defined in a netlist) is verified as correct on the finished board. For high-volume production, a Bed of nails tester, a fixture or a Rigid needle adapter is used to make contact with copper lands or holes on one or both sides of the board to facilitate testing. A computer will instruct the electrical test unit to send a small amount of current through each contact point on the bed-of-nails as required, and verify that such current can be seen on the other appropriate contact points. A "short" on a board would be a solid connection where there should be no connection. An "open" is between two points that should be connected and are not. For small- or medium-volume boards, flying-probe and flying-grid testers use moving test heads to make contact with the copper/silver/gold/solder lands or holes to verify the electrical connectivity of the board under test.

## Printed circuit assembly
After the printed circuit board (PCB) is completed, electronic components must be attached to form a functional printed circuit assembly, or PCA (sometimes called a "printed circuit board assembly" PCBA). In through-hole construction, component leads are inserted in holes. In surface-mount construction, the components are placed on pads or lands on the outer surfaces of the PCB. In both kinds of construction, component leads are electrically and mechanically fixed to the board with a molten metal solder.
There are a variety of soldering techniques used to attach components to a PCB. High volume production is usually done with machine placement and bulk wave soldering or reflow ovens, but skilled technicians are able to solder very tiny parts (for instance 0201 packages which are 0.02" by 0.01") by hand under a microscope tweezers and a fine tip soldering iron for small volume prototypes. Some parts are impossible to solder by hand, such as Ball Grid Array (BGA) packages.
Often, through-hole and surface-mount construction must be combined in a single PCA because some required components are available only in surface-mount packages, while others are available only in through-hole packages. Another reason to use both methods is that through-hole mounting can provide needed strength for components likely to endure physical stress, while components that are expected to go untouched will take up less space using surface-mount techniques.
After the board is populated, the populated board may be tested.
- while the power is off, visual inspection, automated optical inspection. JEDEC guidelines for PCB component placement, soldering, and inspection are commonly used to maintain quality control in this stage of PCB manufacturing.
- while the power is off, analog signature analysis, power-off testing.
- while the power is on, in-circuit test, where physical measurements (i.e. voltage, frequency) can be done.
- while the power is on, functional test, just checking if the PCB does what it had been designed for.
To facilitate these tests, PCBs may be designed with extra pads to make temporary connections. Sometimes these pads must be isolated with resistors. The in-circuit test may also exercise boundary scan test features of some components. In-circuit test systems may also be used to program nonvolatile memory components on the board.
In boundary scan testing, test circuits integrated into various ICs on the board form temporary connections between the PCB traces to test that the ICs are mounted correctly. Boundary scan testing requires that all the ICs to be tested use a standard test configuration procedure, the most common one being the Joint Test Action Group (JTAG) standard.
When boards fail the test, technicians may desolder and replace failed components (professionel term: rework).

## Protection and packaging
PCBs intended for extreme environments often have a conformal coat, which is applied by dipping or spraying after the components have been soldered. The coat prevents corrosion and leakage currents or shorting due to condensation. The earliest conformal coats were wax. Modern conformal coats are usually dips of dilute solutions of silicone rubber, polyurethane, acrylic, or epoxy. Some are engineering plastics sputtered onto the PCB in a vacuum chamber.
Many assembled PCBs are static sensitive, and therefore must be placed in antistatic bags during transport. When handling these boards, the user must be earthed; failure to do this might transmit an accumulated static charge through the board, damaging or destroying it. Even bare boards are sometimes static sensitive. Traces have gotten so fine that it's quite possible to blow an etch off the board (or change its characteristics) with a static charge. This is especially true on non-traditional PCBs such as MCMs and microwave PCBs.

# Safety certification (US)
Safety Standard UL 796 covers component safety requirements for printed wiring boards for use as components in devices or appliances. Testing analyzes characteristics such as flammability, maximum operating temperature, electrical tracking, heat deflection, and direct support of live electrical parts.
The boards may use organic or inorganic base materials in a single or multilayer, rigid or flexible form. Circuitry construction may include etched, die stamped, precut, flush press, additive, and plated conductor techniques. Printed-component parts may be used.
The suitability of the pattern parameters, temperature and maximum solder limits shall be determined in accordance with the applicable end-product construction and requirements.

# "Cordwood" construction
Cordwood construction can give large space-saving advantages and was often used with wire-ended components in applications where space was at a premium (such as missile guidance and telemetry systems). In 'cordwood' construction, two leaded components are mounted axially between two parallel planes. Instead of soldering the components, they were connected to other components by thin nickel tapes welded at right angles onto the component leads. To avoid shorting together of different interconnection layers, thin insulating cards were placed between them. Perforations or holes in the cards would allow component leads to project through to the next interconnection layer. One disadvantage of this system was that special nickel leaded components had to be used to allow the interconnecting welds to be made. 
Some versions of cordwood construction used single sided PCBs as the interconnection method (as pictured). This meant that normal leaded components could be used.
Before the advent of integrated circuits, this method allowed the highest possible component packing density; because of this, it was used by a number of computer vendors including Control Data Corporation. The cordwood method of construction now appears to have fallen into disuse, probably because high packing densities can be more easily achieved using surface mount techniques and integrated circuits.

# Multiwire boards
Multiwire is a patented technique of interconnection which uses machine-routed insulated wires embedded in a non-conducting matrix (often plastic resin). It was used during the 1980s and 1990s. (Augat Inc., U.S. Patent 4,648,180)
Since it was quite easy to stack interconnections (wires) inside the embedding matrix, the approach allowed designers to forget completely about the routing of wires (usually a time-consuming operation of PCB design): Anywhere the designer needs a connection, the machine will draw a wire in straight line from one location/pin to another. This led to very short design times (no complex algorithms to use even for high density designs), reduced cross talk (an electrical phenomenon appearing where a current in one wire generates another current in another conductor, that is highly amplified when wires are parallel - this nearly never happens in Multiwire), but the cost is too high to compete with cheaper PCB technologies when large quantities are needed.

# Surface-mount technology
Surface-mount technology was developed in the 1960s, gained momentum in the early 1980s and became widely used by the mid 1990s.
Components were mechanically redesigned to have small metal tabs or end caps that could be directly soldered to the surface of the PCB. Components became much smaller and component placement on both sides of the board became far more common with surface-mounting than through-hole mounting, allowing much higher circuit densities.
Surface mounting lends itself well to a high degree of automation, reducing labour cost and greatly increasing production and quality rates. Surface mount devices (SMDs) can be one-quarter to one-tenth the size and weight, and passive components can be one-half to one-quarter the cost of through-hole parts. Integrated circuits (where the chip itself is the most expensive part) are often priced the same regardless of package type however. As of 2006, some wire-ended components, such as small signal switch diodes, e.g. 1N4148, are actually significantly cheaper than corresponding SMD versions.