Circuit Design in Practice

Designing a circuit well involves more than getting the schematic right. Simulation, PCB layout, thermal management, protection circuits, and systematic verification — these are the parts that determine whether a design that works in theory actually works on the bench, at temperature extremes, over component tolerance, and for years of operation in the field.

The Design Process

PhaseWhat to doCommon mistakes
1. RequirementsWrite down: input range, output spec, power budget, temp range, cost target, regulatory requirementsStarting the schematic before requirements are clear — changes late are expensive
2. Component selectionSelect all major parts with 2× margin on current, voltage, and power ratingsRunning components near their rated max — shortens life, increases failure rate
3. SchematicDraw with signal flow left→right, power top→bottom. Add all decoupling caps and test points.Omitting decoupling from the schematic — it then gets forgotten in layout
4. SimulationSimulate switching supplies, precision analog paths, filter response, and loop stabilitySkipping simulation, then discovering a stability issue on the assembled board
5. PrototypeBreadboard or protoboard, verify function, find problems cheaplyGoing straight to PCB — first-spin boards almost always have issues
6. PCB layoutApply layout rules, check DRC, review power planes and critical signal pathsPlacing decoupling caps far from IC power pins; poor ground return paths
7. Bring-up and testMeasure all supplies first, then functional tests, then parameter verificationPowering up fully assembled without checking supplies — burning everything

Simulation Tools

ToolCostBest forNotes
LTspiceFreeAnalog, switching supplies, transient and AC analysisThe standard. Best free SPICE. Massive model library from Analog Devices + community. Download from analog.com
Falstad Circuit SimulatorFree (browser)Quick sanity checks, teaching, visualisationNo install required. Interactive. Limited to simpler circuits but excellent for learning.
KiCad Simulator (ngspice)FreeSimulating while drawing the schematicSPICE built into KiCad 6+. Convenient for quick checks on your actual design.
Qucs-SFreeRF, S-parameter, harmonic balanceGood for RF design where LTspice falls short
Cadence / SpectreCommercial (expensive)IC design, precise MOSFET modelsIndustry standard for custom IC. Not needed for board-level design.
Altium (schematic sim)CommercialPCB + simulation in one environmentUsed in professional environments where the PCB tool is already Altium

Schematic Best Practices

Signal flow: left to right
Power:       top to bottom, VCC at top, GND at bottom — consistently
Labels:      use net names ("ADC_IN", "MOTOR_PWM") not "net001"
References:  R1, C1, U1 + value on schematic — not only in BOM
Test points: add TP1, TP2 markers — they become test pads in layout
Decoupling:  add 100nF caps on every IC power pin in the schematic
              → forces you to actually place them in layout
Notes:       add critical specs (V_ref tolerance, max Iout) as text notes

PCB Layout Rules

Ground Plane

A solid copper fill on one layer as a ground plane provides a low-impedance return path for every signal, reduces radiation, and makes decoupling capacitors actually work. Split planes (analog/digital ground) are sometimes recommended but often cause more problems than they solve — a single solid ground with careful component placement is usually better for mixed-signal boards.

Decoupling Capacitors

Rule: 100nF ceramic within 2mm of each IC VCC pin
Also: 10µF electrolytic per supply rail section (bulk decoupling)

Why placement matters:
  Inductance of a via is ≈ 1nH/mm length
  A cap 10mm from the IC pin has ≈ 10nH in series
  At 100MHz: X_L = 2π × 10⁸ × 10⁻⁸ = 6.28Ω  ← cap is nearly useless

Best practice:
  Cap → via → via → IC power pin (shortest path)
  Via-in-pad (cap pad has via directly through it) — best of all

Trace Current Capacity

1oz copper (35µm):
  1mm wide → ~1A with ~10°C rise
  2mm wide → ~2A
  3mm wide → ~3A

For high currents:
  V_drop = I × R_trace = I × (ρ_Cu × L / A)
  ρ_Cu ≈ 1.72×10⁻⁸ Ω·m

Example: 2A through 100mm of 1mm-wide 1oz trace (1oz = 35µm thick):
  A = 0.001m × 35×10⁻⁶m = 3.5×10⁻⁸ m²
  R = 1.72×10⁻⁸ × 0.1 / 3.5×10⁻⁸ = 49.1mΩ
  V_drop = 2A × 0.049Ω = 98mV — significant for low-voltage supplies

Controlled Impedance and High-Speed Signals

Above ~50MHz, PCB traces behave as transmission lines.
Characteristic impedance (microstrip approximation, FR4):

Z₀ ≈ (87 / √(ε_r + 1.41)) × ln(5.98h / (0.8w + t))

ε_r ≈ 4.5 for standard FR4
h = dielectric thickness (typically 0.25–0.8mm for outer layers on 4-layer board)
w = trace width, t = trace thickness (1oz ≈ 35µm)

Standard 50Ω microstrip: typically 2.75mm wide on 1.6mm FR4 outer layer

Rules for high-speed signals (USB, Ethernet, clock, LVDS):
  - Match impedance to driver output impedance and cable
  - Add series termination (25–33Ω) near driver for unterminated lines
  - Route differential pairs with equal length (skew < 10ps/10mil typical)
  - Keep pairs together — separation < 3× trace width
  - Avoid vias in differential pairs when possible (each via = 0.3nH inductance)

Thermal Management

Every power-dissipating component has a thermal resistance chain:
Junction → Case → Heatsink → Ambient

T_junction = T_ambient + P × (θ_JC + θ_CS + θ_SA)

θ_JC — junction to case (datasheet)
θ_CS — case to heatsink (thermal compound; ~0.5–1°C/W with paste)
θ_SA — heatsink to ambient (heatsink datasheet)

Limit: T_junction < T_j_max − 20°C margin

Example: 7805 TO-220, P = 3.5W, T_amb = 40°C
θ_JC = 5°C/W
T_j (no heatsink, θ_JA=65°C/W): 40 + 3.5×65 = 267°C → fails (max 125°C)

Required total thermal resistance:
θ_total ≤ (125 − 40°C − 20°C margin) / 3.5W = 18.6°C/W

θ_JC = 5°C/W, θ_CS ≈ 0.5°C/W
Required θ_SA ≤ 18.6 − 5 − 0.5 = 13.1°C/W
→ Heatsink rated ≤ 13°C/W will keep the junction safe

Common Protection Circuits

ProtectionCircuit / componentPurpose
Overcurrent (load side)Polyfuse, series fuse, current-limiting regulatorPrevent excess current damaging load or wiring
Reverse polaritySeries diode or P-MOSFET gate trickPrevent reversed battery/connector destroying the circuit
Overvoltage (input)TVS diode + fuse, crowbar (Zener + SCR)Protect circuit from voltage spikes and surges
ESD (I/O pins)TVS array, BAV99 (dual diode), steering diodes to railsProtect IC inputs from static discharge
Inductive kickbackFlyback diode across any inductive loadPrevent transistor destruction when switching off inductive loads
Short circuit (supply)Fuse, PTC resettable fuse (polyfuse)Protect supply and wiring from dead shorts

Board Bring-Up Sequence

  1. Inspect board under magnification — check for solder bridges, missing components, wrong polarities
  2. Check for short circuits before power: measure resistance between each supply rail and GND (unpowered)
  3. Power through a current-limited bench supply, set limit to expected idle current × 2
  4. Verify all supply voltages at their test points
  5. Check decoupling — probe each VCC rail with a scope (AC coupled, 20MHz limit) looking for noise
  6. Functional tests from simplest (GPIO toggling) to complex (full system)
  7. Verify worst-case parameters — max temperature, min supply voltage, max load current

References