PCB design & fabrication

Sensors, embedded & practical systems · tree view

The board is a circuit too: copper traces are resistors (R = ρL/A), a printed circuit board is copper lines deposited on an insulating surface, and soldering is a controlled metallurgy of clean parts and 63/37 alloy.

Prerequisites

microcontroller symbol
microcontroller
trace-width.svg
trace-width.svg
decoupling-placement.svg
decoupling-placement.svg
return-path.svg
return-path.svg

A printed circuit board is a flat insulating surface upon which printed wiring and miniaturized components are connected in a predetermined design, and attached to a common base.

— U.S. Navy, NEETS Module 7 — Introduction to Solid-State Devices and Power Supplies, Chapter 2, “Printed Circuit Boards” (fig. 2-20)

With this technique, all interconnecting wiring in a piece of equipment, except for the highest power leads and cabling, is reduced to lines of conducting material (copper, silver, gold, etc.) deposited directly on the surface of an insulating "circuit board."

— U.S. Navy, NEETS Module 7 — Introduction to Solid-State Devices and Power Supplies, Chapter 2, “Printed Circuit Boards”

Cleanliness is essential for efficient, effective soldering. Solder will not adhere to dirty, greasy, or oxidized surfaces. Heated metals tend to oxidize rapidly. This is the reason the oxides, scale, and dirt must be removed by chemical or mechanical means. Grease or oil films can be removed with a suitable solvent. Connections to be soldered should be cleaned just prior to the actual soldering operation.

— U.S. Navy, NEETS Module 4 — Introduction to Electrical Conductors, Wiring Techniques, and Soldering, Chapter 2, “Soldering”

The alloy at point C consists of 63-percent tin (SN63) and 37-percent lead. This is commonly called 63/37 solder. It has a melting point of 361º F. This type of solder, because of its very low melting point, is used in printed circuit boards and microminiature electronic repair.

— U.S. Navy, NEETS Module 4 — Introduction to Electrical Conductors, Wiring Techniques, and Soldering, Chapter 2, “Soldering” (tin-lead fusion diagram, fig. 2-35)

The heat applied to a transistor, when soldered connections are required, should be kept to a minimum by the use of low-wattage soldering irons and heat shunts or heat sinks.

— U.S. Navy, NEETS Module 19 — The Technician's Handbook, Transistor installation section

Resistivity is the reciprocal of conductivity. A substance that has a high resistivity will have a low conductivity, and vice versa.

— U.S. Navy, NEETS Module 4 — Introduction to Electrical Conductors, Wiring Techniques, and Soldering, Chapter 1, “Specific Resistance or Resistivity”

Consider what could happen if Manufacturer XYZ made a transmitter with the negative (-) side of their 24VDC power supply attached to earth ground and Manufacturer ABC made a receiver with the positive (+) side of their 24VDC power supply attached to earth ground. If both earth grounds are relatively "solid" (that is, a low resistance between them, such as might be the case if the two grounds were made on the metal structure of an industrial building), the two power supplies would short-circuit each other!

— Tony R. Kuphaldt, Lessons In Electric Circuits, Vol. IV (Digital), Chapter 14, “Networks and busses” (BogusBus grounding example) source

A robust alternative to the common ground signal method is the differential voltage method, where each bit is represented by the difference of voltage between a ground-isolated pair of wires, instead of a voltage between one wire and a common ground. This tends to limit the capacitive and inductive effects imposed upon each signal and the tendency for the signals to be corrupted due to outside electrical interference, thereby significantly improving the practical distance of a serial network:

— Tony R. Kuphaldt, Lessons In Electric Circuits, Vol. IV (Digital), Chapter 14, section “Electrical signal types” source
Show alternative explanations

Problem: What is the resistance of 1,000 feet of copper wire having a cross-sectional area of 10,400 circular mils (No. 10 wire) at a temperature of 20º C? Solution: The specific resistance of copper (table 1-1) is 10.37 ohms.

— U.S. Navy, NEETS Module 4 — Introduction to Electrical Conductors, Wiring Techniques, and Soldering, Chapter 1, worked example (R = ρL/A)

Paraphrase (book-adjacent): the same R = ρL/A that sizes a copper wire sizes a PCB trace — length divided by width × copper thickness. The library books predate modern layout practice, so trace-width rules themselves are industry-standard, not quoted.

— application of NEETS M4 resistivity to PCB geometry, physics derivation — flagged gap for layout rules

RS-232C is a prime example of a ground-referenced serial network, while RS-422A is a prime example of a differential voltage serial network.

— Tony R. Kuphaldt, Lessons In Electric Circuits, Vol. IV (Digital), Chapter 14, section “Electrical signal types” source

Trace width: same copper, different resistance (R = ρL/A)

Copper ρ = 1.724×10⁻⁸ Ω·m (equivalent to the book's 10.37 circular-mil-ohm/foot — the book's own worked example gives 0.997 Ω for 1000 ft of No. 10 wire). PCB traces: 1 oz copper = 35 µm thick, 100 mm long. All values python-verified.

To predict the outcome:

  1. Compute cross-section A = width × thickness.
  2. R = ρL/A — same formula, same copper, just flat instead of round.
  3. Predict the drop at 1 A and the dissipation at 2 A.
  4. Compare with the book's wire example to confirm the model.
conductorgeometryresistancedrop_and_heatverdict
No. 10 wire, 1000 ft (book example)A = 10,400 circular mils0.997 Ω—long thin copper = real resistance; the book's own arithmetic
trace 1.0 mm wide, 100 mmA = 3.5×10⁻⁸ m²49 mΩ49 mV @ 1 A; 0.20 W @ 2 Afine for signals and moderate current
trace 0.25 mm wide, 100 mmA = 8.75×10⁻⁹ m²197 mΩ197 mV @ 1 A; 0.79 W @ 2 A — hotsignal-only; power through this width wastes volts and heats the board
trace 2.5 mm wide, 100 mmA = 8.75×10⁻⁸ m²20 mΩ20 mV @ 1 A; 0.08 W @ 2 A10× width → 10× less R: power rails get wide copper
same 1 mm trace shortened to 10 mmA unchanged, L/104.9 mΩ4.9 mV @ 1 Ashorter is as good as wider — place regulators near loads

Ground and return path: where does the current come back through?

Every current returns to its source. Book-backed predictions: the BogusBus two-grounds story (two supplies grounded at opposite rails short each other) and the differential pair that ignores common noise.

To predict the outcome:

  1. Identify the return conductor for each current on the board.
  2. Shared return conductor: all return currents add their voltage drops into each other's signals.
  3. Two independent supplies grounded at different rails → book's short-circuit scenario.
  4. Noise coupled equally onto both wires of a pair cancels at a differential receiver.
layouteffect_on_signalsfailure_modebook_anchor
one ground node, all returns through one tracehigh-current return drop appears in series with sensitive signalsground bounce — digital edges wiggling analog readingsKuphaldt: ground-referenced signalling is the 'worst-case situation' for noise
star ground / dedicated ground planeeach return keeps its own low-impedance pathslots or jumps in the plane grow loop areadifferential method 'limits the capacitive and inductive effects imposed upon each signal'
two devices, each grounded to earth at a different supply railbook: the two power supplies would short-circuit each otherlarge fault current through the interconnectBogusBus Manufacturer XYZ vs ABC (quoted above)
pair of wires carrying a differential signal through noisy spaceinterference lands on both wires equally; receiver takes the differenceonly imbalance (unequal coupling) leaks indifferential amplifier 'only responds to the differential voltage between the two signal wires'

Decoupling capacitor placement

GAP, loudly: the library books predate modern decoupling practice — these rows are standard industry reasoning (keep the transient-current loop small), offered for prediction practice and flagged for future sourcing. The physics anchor is the same trace resistance as above.

To predict the outcome:

  1. A logic IC draws its switching current from the supply in fast pulses.
  2. The capacitor is the local current reservoir for those pulses.
  3. Distance from pin to capacitor adds trace inductance and resistance to the pulse path.
  4. Predict rail disturbance vs placement.
placementrail_behaviourloop_areaverdict
100 nF within a few mm of the supply pintransient current taken locally; rail dip smallminimal — smallest emission and susceptibilitythe default for every IC
same capacitor 50 mm away down a thin tracesupply pin sees the dip first; cap arrives too latelarge — the trace radiates the switching edgeelectrically close to 'no capacitor at all'
bulk 10 µF near the regulator, 100 nF at each ICbulk refills the local caps slowly, locals handle edgeshierarchical — fast loops small, slow loop largewhy layouts use both sizes
no capacitor at allwhole board trace network supplies the pulselargest possiblerail glitches on every clock edge — the classic 'works on the bench, fails in the box'

Candidate projects — awaiting review

  • First 2-layer board: a simple ESP32-module (or 555 + LED) board in KiCad — schematic, footprints, layout, order from a fab — mirroring the community's standard first-PCB path. (https://www.reddit.com/r/KiCad/comments/1hmafmt/whats_your_strategy_as_a_hobbyist_when/, community)
  • Layout self-review: post your first PCB for critique and check it against the basics — trace width for current, decoupling at every IC, one solid ground. (https://www.reddit.com/r/KiCad/comments/1hk8o0s/opinion_about_my_first_pcb_design/, community)
  • Solder lab: clean vs dirty pads, 63/37 alloy, low-wattage iron and a clip-on heat sink on a transistor — reproduce the book's rules and inspect the joints. (NEETS Module 4 ch. 2 “Soldering” + Module 19 heat-sink rule, book)
  • Trace-resistance proof board: one long thin trace and one wide short trace etched or jumpered on perfboard, measure millivolt drops at 1 A and compare with R = ρL/A predictions. (derived from NEETS Module 4 ch. 1 resistivity worked example, book)