From Zero to Professional

Master PCB Design Build Real Circuit Boards

From schematic capture to manufactured boards. Learn KiCad, routing rules, Gerber files, and professional manufacturing β€” design your first PCB with confidence.

15
Modules
40+
Examples
πŸ”§
Calculators
25
Quiz Q's

πŸ“‹ Course Overview

This comprehensive course takes you from complete beginner to confident PCB designer. Each module builds on the previous, with interactive calculators, real-world examples, and video tutorials to reinforce learning.

Module 1

What is a PCB?

History, types, and anatomy of printed circuit boards

Module 2

PCB Materials

FR-4, copper weights, solder mask & silkscreen layers

Module 3

Schematic Capture

Circuit design, symbols, nets & ERC checking

Module 4

Component Library

Symbols, footprints, 3D models & library management

Module 5

Footprints & Pads

Through-hole, SMD pads, land patterns & thermal pads

Module 6

Board Setup

Board outline, layer stack, rules & constraints

Module 7

Trace Routing

Routing strategies, differential pairs & impedance control

Module 8

Ground & Power

Power planes, copper pours, decoupling & thermal management

Module 9

Multi-Layer PCBs

Layer stackup, vias, blind/buried vias & HDI

Module 10

Design Rules (DRC)

Clearance, trace width, annular rings & manufacturing limits

Module 11

EMC & Signal Integrity

Crosstalk, return paths, shielding & noise reduction

Module 12

Gerber & Fabrication

Gerber output, drill files, BOM & ordering from JLCPCB

Module 13

Soldering & Assembly

Hand soldering, reflow, stencils & pick-and-place

⭐ Interactive

PCB Calculator

Trace width, via current & impedance calculators

Assessment

Final Quiz

25 questions to test your PCB design knowledge

PCB Design Workflow
PCB Design Workflow β€” From concept to manufactured board

🧰 Software & Tools You'll Need

⚑
KiCad 8

Free, open-source EDA suite for schematic & layout

πŸ’»
Computer

Any modern PC or Mac β€” KiCad runs on all platforms

πŸ“
Calipers

Digital calipers for measuring component dimensions

πŸ”§
Soldering Iron

Temperature-controlled station for board assembly

πŸ”¬
Magnifier

Magnifying glass or USB microscope for inspection

πŸ“¦
JLCPCB Account

Free account to order your manufactured boards

Module 1

What is a PCB?

Discover the backbone of every electronic device β€” the Printed Circuit Board β€” its history, types, and fundamental anatomy.

πŸ”§ Introduction to PCBs

A Printed Circuit Board (PCB) is a flat board made of insulating material with conductive copper pathways etched or printed onto it. These copper pathways β€” called traces β€” connect electronic components together, replacing the need for messy point-to-point wiring.

PCBs are found in virtually every electronic device: your smartphone, laptop, TV, car dashboard, medical equipment, satellites, and even humble LED flashlights. They are the foundation of modern electronics manufacturing.

πŸ“œ A Brief History

Before PCBs, electronic circuits were built using point-to-point wiring β€” each component was connected with individual wires soldered directly. This was slow, error-prone, and unreliable.

  • 1936 β€” Paul Eisler created the first PCB while working on a radio in England
  • 1943 β€” The US military adopted PCB technology for proximity fuses in WWII
  • 1950s β€” Through-hole technology became standard for manufacturing
  • 1960s β€” Double-sided PCBs and plated through-holes revolutionized density
  • 1980s β€” Surface Mount Technology (SMT) enabled much smaller components
  • 2000s β€” HDI (High Density Interconnect) boards with micro-vias emerged
  • Today β€” 20+ layer boards with 50Β΅m features are routine in smartphones

πŸ—‚οΈ Types of PCBs

TypeLayersComplexityCommon Use
Single-Sided1 copper layerLowSimple toys, LEDs, calculators
Double-Sided2 copper layersMediumArduino shields, power supplies
Multi-Layer4, 6, 8+ layersHighComputers, smartphones, servers
RigidAnyVariesMost electronics
Flexible1-4 layersHighWearables, camera modules
Rigid-Flex4-10+ layersVery HighSmartphones, aerospace
Metal-Core (MCPCB)1-2 layersMediumHigh-power LEDs, motor drivers

πŸ” Anatomy of a PCB

PCB layer stackup cross-section diagram
PCB Layer Stackup β€” Shows the arrangement of copper, prepreg, core, solder mask, and silkscreen layers

A typical PCB consists of several key layers:

  • Substrate (FR-4) β€” The fiberglass-reinforced epoxy base material that provides structural strength
  • Copper Layers β€” Thin copper foil (typically 1oz = 35Β΅m thick) where the circuit traces are etched
  • Solder Mask β€” The green (or other color) coating that protects copper from oxidation and prevents solder bridges
  • Silkscreen β€” White printed text showing component labels, reference designators, and logos
  • Surface Finish β€” A protective coating on exposed pads (HASL, ENIG, OSP) to ensure solderability
πŸ’‘ Fun Fact

The reason most PCBs are green is because the solder mask was traditionally green β€” it provided the best contrast for visual inspection. Today you can order PCBs in virtually any color: black, white, red, blue, purple, and even transparent!

πŸŽ₯ Video: What is a PCB?

What is a PCB
What is a PCB? β€” Printed Circuit Board Explained
Branch Education
Module 2

PCB Materials & Layers

Understand the materials that make up a PCB β€” from the substrate to the surface finish β€” and how each layer serves a critical function.

🧱 Substrate Materials

The substrate is the base material of the PCB that provides mechanical support and electrical insulation between copper layers.

MaterialTg (Β°C)DkCostUse Case
FR-4 Standard130-1404.5LowGeneral purpose, hobby, most products
FR-4 High-Tg170-1804.5MediumLead-free assembly, automotive
Rogers280+2.2-10.2HighRF/microwave, antennas, high-speed
Aluminum (MCPCB)N/AN/AMediumLED lighting, power electronics
Polyimide (Flex)250+3.5HighFlexible circuits, wearables
Ceramic (LTCC)N/A5-10Very HighMilitary, aerospace, high-reliability
πŸ’‘ What is Tg?

Glass Transition Temperature (Tg) is the temperature at which the substrate softens. For lead-free soldering (peak ~260Β°C), use High-Tg FR-4. Standard FR-4 is fine for leaded solder (~220Β°C peak).

πŸ₯‰ Copper Weight & Thickness

Copper thickness is specified in ounces per square foot (oz/ftΒ²). This tells you how thick the copper foil is on each layer.

Copper WeightThickness (Β΅m)Thickness (mils)Typical Use
0.5 oz17.50.7Fine-pitch, high-density inner layers
1 oz (standard)351.4General purpose β€” most common
2 oz702.8Power traces, high current
3 oz1054.2Heavy power, motor drives
1 oz = 35 Β΅m = 1.4 mils

🟒 Solder Mask

The solder mask is a protective lacquer coating applied over the copper traces. It serves several crucial functions:

  • Prevents oxidation of copper traces
  • Prevents solder bridges between pads during assembly
  • Provides electrical insulation between traces
  • Protects against dust, moisture, and contamination

Available colors: Green (classic), Black, White, Red, Blue, Yellow, Purple, Matte Black, Matte Green.

✍️ Silkscreen

The silkscreen layer contains printed text and symbols for component identification. Best practices:

  • Minimum text height: 0.8mm (1mm recommended)
  • Minimum line width: 0.15mm
  • Include reference designators (R1, C2, U3) next to components
  • Add polarity marks for diodes, electrolytic caps, and ICs
  • Include pin-1 indicators, test points, and board version numbers

✨ Surface Finish

FinishShelf LifeFlatnessLead-Free?Cost
HASL (Hot Air Solder Leveling)12+ monthsPoorLeaded availableLow
Lead-Free HASL12+ monthsPoorYesLow-Med
ENIG (Immersion Gold)12+ monthsExcellentYesMedium
OSP (Organic)6 monthsExcellentYesLowest
Immersion Tin6 monthsExcellentYesMedium
Hard GoldYearsExcellentYesHighest
πŸ’‘ Recommendation

For hobby projects, HASL is cheapest and most forgiving for hand soldering. For fine-pitch SMD (QFP, BGA), use ENIG for flat pads. For connectors that need repeated insertion, use Hard Gold.

πŸŽ₯ Video: PCB Manufacturing Process

PCB Manufacturing
How PCBs are Made β€” Factory Tour
Strange Parts
Module 3

Schematic Capture

Learn to create professional circuit schematics β€” the blueprint for your PCB design β€” using KiCad's schematic editor.

πŸ“ What is a Schematic?

A schematic is a symbolic diagram of an electronic circuit. Unlike a physical layout, a schematic shows the logical connections between components without representing their physical placement. It is the first step in any PCB design process.

Think of a schematic as the architectural blueprint β€” it defines what's connected to what. The PCB layout is the construction plan β€” it defines where everything physically goes.

πŸ”£ Schematic Symbols

Schematic symbols mapped to PCB footprints
Common schematic symbols and their corresponding PCB footprints

Standard schematic symbols you need to know:

ComponentSymbolDesignatorExample
ResistorZigzag / RectangleR1, R2...R1 = 10kΞ©
CapacitorTwo parallel linesC1, C2...C1 = 100nF
InductorCoil / BumpsL1, L2...L1 = 10Β΅H
DiodeTriangle + BarD1, D2...D1 = 1N4148
LEDDiode + ArrowsD3, LED1...LED1 = Green
Transistor (NPN)Three terminal symbolQ1, Q2...Q1 = 2N2222
MOSFETGate-arrowed symbolQ3, M1...M1 = IRLZ44N
IC / MicrocontrollerRectangle with pinsU1, U2...U1 = ATmega328P
ConnectorPins in a rowJ1, J2...J1 = USB-C
Power SymbolsVCC β–², GND β–Όβ€”+3.3V, +5V, GND

🌐 Nets & Connections

In a schematic, connections are represented by wires (nets). When two wires cross, they are NOT connected unless there is a junction dot. Key concepts:

  • Net β€” A named electrical connection (e.g., VCC, GND, SDA, SCK)
  • Net Label β€” A text tag placed on a wire to name the connection without drawing a physical wire
  • Power Flag β€” Tells the ERC that a net is intentionally powered
  • No-Connect (X) β€” Marks unused pins so the ERC doesn't flag them as errors
  • Junction Dot β€” Connects crossing wires; without it, wires just pass over each other

βœ… Electrical Rules Check (ERC)

The ERC is an automated check that catches common schematic mistakes:

  • Unconnected pins β€” Pins that should be connected but aren't
  • Power conflicts β€” Two outputs driving the same net
  • Missing power flags β€” Power nets without a defined source
  • Short circuits β€” Direct connections between power and ground
⚠️ Never Skip ERC

Always run the ERC before proceeding to PCB layout. Fixing mistakes in the schematic is 100Γ— cheaper than fixing them on a manufactured board!

⌨️ KiCad Schematic Shortcuts

KiCad Hotkeys
A β†’ Add component (symbol) W β†’ Draw wire P β†’ Place power port L β†’ Place net label R β†’ Rotate component X β†’ Mirror horizontally Y β†’ Mirror vertically E β†’ Edit component properties V β†’ Edit component value M β†’ Move component G β†’ Drag component (keeps wires attached) C β†’ Copy component Del β†’ Delete selected

πŸŽ₯ Video: KiCad Schematic Tutorial

KiCad Schematic
KiCad for Beginners β€” Step by Step Tutorial
DIY Hideout
🎯 Practice Challenge

Open KiCad and create a simple schematic with an LED, a 330Ξ© resistor, and a 2-pin connector. Connect them in series and add VCC/GND power symbols. Run the ERC and fix any errors.

Module 4

Component Libraries

Master the art of managing symbols, footprints, and 3D models β€” the building blocks of every schematic and PCB layout.

πŸ“š Library Structure

In KiCad, every component needs three things:

  1. Schematic Symbol β€” The visual representation in the circuit diagram (e.g., a resistor zigzag)
  2. PCB Footprint β€” The physical copper pattern on the board where the component is soldered
  3. 3D Model (optional) β€” A STEP/WRL file for visual verification and mechanical clearance checks

KiCad comes with extensive built-in libraries, but for professional work you'll often need to create custom libraries or download from manufacturers.

πŸ” Finding Components

Best sources for component data:

🏭
Manufacturer Sites

TI, STM, Microchip provide official KiCad/Altium libraries

πŸ“¦
SnapEDA

Free symbols, footprints & 3D models for thousands of parts

πŸ”§
Ultra Librarian

CAD models from major distributors like Mouser & DigiKey

🌐
Component Search Engine

Search across 15+ EDA formats at componentsearchengine.com

πŸ“
KiCad Built-in

Thousands of common parts included with KiCad installation

✏️
Custom Creation

Build your own using KiCad's symbol and footprint editors

🏷️ Reference Designators

PrefixComponent TypeExample
RResistorR1, R2, R15
CCapacitorC1, C2, C10
LInductorL1, L2
DDiode / LEDD1, D2
QTransistor (BJT/MOSFET)Q1, Q2
UIC / MicrocontrollerU1, U2
JConnectorJ1, J2
SWSwitchSW1, SW2
FFuseF1
YCrystal / OscillatorY1
TPTest PointTP1, TP2
FBFerrite BeadFB1, FB2

πŸ“‹ Bill of Materials (BOM)

The BOM is a spreadsheet listing every component needed to build the board. A good BOM includes:

  • Reference Designator β€” R1, C2, U3
  • Value β€” 10kΞ©, 100nF, LM7805
  • Footprint β€” 0805, SOT-23, SOIC-8
  • Manufacturer Part Number (MPN) β€” e.g., RC0805FR-0710KL
  • Supplier & SKU β€” LCSC C17414, DigiKey 311-10KARCT-ND
  • Quantity β€” How many of each part per board
πŸ’‘ Pro Tip

Always include the MPN (Manufacturer Part Number) in your BOM. Generic values like "10kΞ©" are ambiguous β€” there are hundreds of 10kΞ© resistors. The MPN uniquely identifies the exact part.

πŸŽ₯ Video: Creating Custom Libraries

KiCad Libraries
KiCad Custom Libraries β€” Symbols & Footprints
DigiKey
Module 5

Footprints & Pads

Understand the physical copper patterns that components solder to β€” the bridge between your schematic and the real board.

πŸ‘£ What is a Footprint?

A footprint (also called a land pattern) is the copper pad pattern on the PCB where a component is physically soldered. Every component in your schematic must be assigned a matching footprint.

PCB component footprints through-hole and SMD
Through-Hole and Surface Mount footprints β€” DIP, QFP, BGA, SOT-23, 0805, and more

πŸ”Œ Through-Hole (THT) Pads

Through-hole pads have a drilled hole that the component lead passes through and is soldered on the opposite side.

ParameterTypical ValueNotes
Drill DiameterLead diameter + 0.2-0.3mmAllows easy insertion
Pad DiameterDrill + 0.5mm minimumAnnular ring requirement
Annular Ringβ‰₯0.15mm (fab minimum)0.25mm recommended
πŸ’‘ Annular Ring

The annular ring is the copper that surrounds the drill hole. It must be large enough for reliable soldering. Most fabs require minimum 0.15mm, but 0.25mm is safer β€” especially for beginners.

πŸ“ SMD Pad Sizes

Surface Mount Device (SMD) pads sit flat on the board surface. Common passive component sizes:

PackageSize (mm)Size (mils)Hand Solderable?
08052.0 Γ— 1.2580 Γ— 50Easy βœ…
06031.6 Γ— 0.860 Γ— 30Moderate βœ…
04021.0 Γ— 0.540 Γ— 20Difficult ⚠️
02010.6 Γ— 0.324 Γ— 12Microscope needed ❌
010050.4 Γ— 0.216 Γ— 8Machine only ❌

πŸ”₯ Thermal Pads

Many power ICs and voltage regulators have a exposed thermal pad on the bottom. This pad must be connected to a large copper pour (usually ground) with multiple thermal vias to dissipate heat.

  • Use a grid of 0.3mm vias spaced 1mm apart under the pad
  • Connect to an inner ground plane for maximum heat spreading
  • Apply solder paste at 50-80% of the pad area (too much causes the IC to float during reflow)

πŸŽ₯ Video: SMD vs Through-Hole

SMD vs THT Soldering
How to Solder properly β€” Through-hole (THT) & Surface-mount (SMD)
GreatScott!
Module 6

Board Setup

Configure your PCB project β€” define the board outline, layer stackup, design rules, and constraints before placing a single component.

πŸ“ Board Outline

The board outline (Edge.Cuts layer in KiCad) defines the physical boundary of your PCB. Best practices:

  • Use round corners (radius β‰₯ 0.5mm) β€” sharp corners create stress concentrations
  • Keep components at least 1mm from the board edge
  • Standard board thickness: 1.6mm (most common), 0.8mm, 1.0mm also available
  • Consider mounting holes β€” M3 (3.2mm drill) is standard
  • For enclosures, check mechanical clearance with the 3D viewer

πŸ“Š Design Rule Setup

KiCad PCB Editor Interface
KiCad PCB Editor β€” The layout environment where you configure board setup, design rules, and layer stack

Before routing, configure your Design Rules based on your manufacturer's capabilities:

ParameterJLCPCB StandardJLCPCB AdvancedProfessional
Min Trace Width0.127mm (5mil)0.09mm (3.5mil)0.075mm (3mil)
Min Clearance0.127mm (5mil)0.09mm (3.5mil)0.075mm (3mil)
Min Via Drill0.3mm0.2mm0.1mm (laser)
Min Via Diameter0.6mm0.45mm0.25mm
Min Annular Ring0.13mm0.1mm0.075mm
Min Hole Size0.3mm0.15mm0.1mm
⚠️ Important

Always check your fab's capabilities page before designing. Using dimensions below their minimums will cause your order to be rejected or manufactured incorrectly. When in doubt, use bigger values!

πŸŽ₯ Video: KiCad PCB Layout Setup

KiCad PCB Setup
KiCad 8 PCB Layout β€” Board Setup
DigiKey
Module 7

Trace Routing

The art and science of copper trace routing β€” learn strategies, best practices, and professional techniques for reliable connections.

πŸ›€οΈ Routing Fundamentals

PCB routing best practices diagram
PCB Routing Best Practices β€” 45Β° angles, trace widths, clearances, and via placement

Routing is the process of drawing copper traces to connect component pads according to the netlist from your schematic. Key principles:

  • Route signals first, then power, then ground (or use planes for power/ground)
  • Use 45Β° angles β€” never 90Β° corners (they create impedance discontinuities and acid traps)
  • Keep traces as short as possible β€” shorter traces = less resistance, less EMI
  • Avoid running traces parallel for long distances β€” this causes crosstalk
  • Use wider traces for power (25-50 mil) and normal width for signals (8-10 mil)

πŸ“ Trace Width vs Current

The trace must be wide enough to carry the required current without excessive heating. The standard reference is IPC-2221:

Current (A)1oz External (mils)1oz Internal (mils)2oz External (mils)
0.5A10205
1.0A204010
2.0A459022
3.0A8015035
5.0A15030070
πŸ’‘ Rule of Thumb

For a 10Β°C temperature rise on external 1oz copper: Width (mils) β‰ˆ CurrentΒ² Γ— 25. Use the calculator in Module 14 for precise values!

πŸ”€ Differential Pairs

Differential pairs are two traces that carry complementary signals (USB, Ethernet, HDMI). They must be routed with:

  • Matched length β€” Both traces must be the same length (within 0.1mm)
  • Consistent spacing β€” Fixed gap between the two traces
  • Controlled impedance β€” Usually 90Ξ© differential (USB) or 100Ξ© (Ethernet)
  • Symmetrical routing β€” Route both traces together, never split them

⌨️ KiCad Routing Shortcuts

KiCad PCB Hotkeys
X β†’ Route single track D β†’ Route differential pair V β†’ Place via (while routing) W β†’ Change trace width (while routing) / β†’ Switch routing layer (via + continue) U β†’ Select connected track I β†’ Interactive router settings B β†’ Fill all zones (copper pours) N β†’ Toggle net inspector Backspace β†’ Undo last segment while routing

πŸŽ₯ Video: PCB Routing Techniques

PCB Routing
How to Route a PCB Like a Pro
Phil's Lab
Module 8

Ground & Power Design

Master power distribution β€” from ground planes and copper pours to decoupling strategies and thermal management.

⚑ Ground Plane

A ground plane is a large copper pour connected to GND that covers most of a layer. It's arguably the single most important design technique in PCB design:

  • Low impedance return path β€” Provides the shortest path for return currents
  • EMI reduction β€” Acts as a shield against electromagnetic interference
  • Thermal management β€” Spreads heat across the board
  • Simplifies routing β€” No need to route individual GND traces
⚠️ Never Split the Ground Plane

Avoid cutting slots or gaps in your ground plane. Slots force return currents to take long detours, creating antenna-like loops that radiate EMI. If analog and digital sections exist, use a single ground plane with components separated by region.

πŸ”‹ Power Distribution

Power traces need special attention because they carry the most current:

  • Use wide traces (30-50 mil minimum) or dedicated power planes
  • Place bulk capacitors (10-100Β΅F electrolytic) near the power input
  • Place decoupling capacitors (100nF ceramic) within 3mm of each IC's VCC pin
  • Consider a star-point grounding topology for mixed-signal boards

🧊 Decoupling Best Practices

Every IC needs decoupling capacitors close to its power pins to filter high-frequency noise:

1
100nF ceramic capacitor

Place within 3mm of each VCC pin. This handles mid-frequency noise (1-100 MHz). One per power pin minimum.

2
10Β΅F bulk capacitor

Place near each power regulator output. Handles low-frequency ripple and provides local charge reservoir.

3
1nF – 10nF for high-speed

For high-speed ICs (>100 MHz), add another smaller cap for very high frequency decoupling.

4
Route: IC β†’ cap β†’ via β†’ plane

The current path should go from IC VCC pin β†’ capacitor β†’ via to power plane. Keep this path as short as possible.

πŸ”₯ Thermal Management

Components that dissipate significant power need thermal design consideration:

  • Use thermal vias under thermal pads β€” multiple 0.3mm vias in a grid pattern
  • Connect to large copper pours on inner and outer layers for heat spreading
  • Use thermal relief on pads connected to planes (flower pattern with spokes) for easier soldering
  • Consider heatsinks or forced airflow for high-power designs

πŸŽ₯ Video: Power Integrity

Power Integrity
PCB Power Integrity & Decoupling
Phil's Lab
Module 9

Multi-Layer PCBs

Go beyond 2 layers β€” learn layer stackup design, via types, and when to use 4-layer or 6-layer boards.

πŸ“š Why Multi-Layer?

As designs grow in complexity, two layers aren't enough. Multi-layer boards provide:

  • Dedicated power and ground planes β€” Improved power distribution and EMC
  • More routing channels β€” Complex ICs with 100+ pins need the space
  • Controlled impedance β€” Consistent trace impedance for high-speed signals
  • Smaller board size β€” More routing layers = denser component placement

πŸ—οΈ 4-Layer Stackup

The most common multi-layer configuration. The standard 4-layer stackup is:

4-layer PCB stackup cross section
Standard 4-Layer PCB Stackup β€” Signal, Ground, Power, Signal
LayerTypeFunction
Layer 1 (Top)Signal + ComponentsComponent side routing
Layer 2 (Inner 1)Ground PlaneContinuous ground reference
Layer 3 (Inner 2)Power PlaneVCC, 3.3V, 5V distribution
Layer 4 (Bottom)Signal + ComponentsBottom side routing
πŸ’‘ Why This Order?

Signal-Ground-Power-Signal gives the best EMC performance. The ground plane is adjacent to both signal layers, providing a close return path. The tight coupling between signal and ground plane also gives controlled impedance.

πŸ•³οΈ Via Types

Via TypeDescriptionCostWhen to Use
Through-Hole ViaDrills through all layersStandard βœ…Most connections β€” cheapest option
Blind ViaConnects surface to inner layerExpensiveBGA fanout on outer layers
Buried ViaConnects two inner layersVery ExpensiveHDI designs, complex routing
Micro ViaLaser-drilled, tiny diameterVery ExpensiveFine-pitch BGA, smartphones

πŸŽ₯ Video: Multi-Layer PCB Design

Multi-Layer PCB Design
KiCad STM32 + USB + Buck Converter PCB Design
Phil's Lab
Module 10

Design Rules & DRC

Learn the manufacturing constraints every PCB designer must follow β€” and how the Design Rule Check ensures your board can be built.

πŸ“ Critical Design Rules

Design rules ensure your PCB can be manufactured reliably. The three most critical parameters:

  1. Minimum Trace Width β€” The narrowest copper path allowed (typically 5-6 mil / 0.127-0.15mm)
  2. Minimum Clearance β€” The smallest gap between copper features (typically 5-6 mil)
  3. Minimum Drill Size β€” The smallest hole the fab can drill (typically 0.3mm mechanical, 0.1mm laser)

πŸ” Common DRC Errors

❌
Clearance Violation

Copper features too close β€” will cause short circuits

πŸ”΄
Unconnected Net

Ratsnest line remaining β€” missing trace or via connection

β­•
Annular Ring Too Small

Insufficient copper around drill hole β€” may break during manufacturing

πŸ“
Trace Width Violation

Trace narrower than minimum β€” may be etched away in manufacturing

πŸ”²
Copper in Courtyard

Traces underneath component β€” potential assembly issue

⚑
Minimum Hole Size

Drill too small for the fab's capability β€” order rejection

βœ… Running the DRC

In KiCad, run Inspect β†’ Design Rules Check (or click the ladybug icon). The DRC will flag:

  • Errors (red) β€” Must be fixed. Board won't work correctly.
  • Warnings (yellow) β€” Should be reviewed. May or may not be problems.
  • Exclusions β€” Items you've manually marked as acceptable.
🎯 Golden Rule

Your design should have ZERO DRC errors before generating Gerber files. Warnings should be individually reviewed and either fixed or intentionally excluded with a documented reason.

πŸŽ₯ Video: DRC Deep Dive

PCB Layout Step by Step
How To Do PCB Layout (Step by Step)
Robert Feranec
Module 11

EMC & Signal Integrity

Understand how PCB layout affects electromagnetic compatibility and signal quality β€” from crosstalk to impedance matching.

πŸ“‘ What is EMC?

Electromagnetic Compatibility (EMC) is the ability of your circuit board to:

  • Not emit excessive electromagnetic interference (EMI) to other devices
  • Not be susceptible to external interference from other sources

Poor PCB layout is the #1 cause of EMC failures. Even a perfectly designed circuit can fail EMC testing if the PCB layout creates unintended antenna structures.

πŸ”Š Crosstalk

Crosstalk occurs when a signal on one trace induces noise on an adjacent trace via capacitive or inductive coupling:

  • Keep parallel runs short β€” Maximum 1-2 inches of parallel traces
  • Increase spacing β€” The "3W rule": center-to-center spacing β‰₯ 3Γ— trace width
  • Use ground guards β€” Place grounded traces between sensitive signal pairs
  • Route on different layers β€” Perpendicular crossing minimizes coupling

πŸ”„ Return Path

Every signal has a return current that flows back to the source. This return current follows the path of least impedance β€” at high frequencies, that's directly underneath the signal trace on the ground plane.

⚠️ Critical Rule

Never route high-speed signals over gaps or splits in the ground plane. The return current has no path and will take a long detour, creating a large current loop that radiates EMI like an antenna.

πŸ“ Impedance Control

High-speed signals require controlled impedance β€” the trace geometry must produce a specific impedance value:

InterfaceImpedanceType
USB 2.090Ξ© differentialDifferential pair
USB 3.0/3.190Ξ© differentialDifferential pair
HDMI100Ξ© differentialDifferential pair
Ethernet (100/1000)100Ξ© differentialDifferential pair
DDR4 Memory40Ξ© single-endedSingle-ended
PCIe85Ξ© differentialDifferential pair
General digital50Ξ© single-endedSingle/Microstrip

πŸ›‘οΈ EMC Design Checklist

  • βœ… Continuous ground plane with no splits or slots under signal traces
  • βœ… Decoupling capacitors (100nF) on every IC power pin within 3mm
  • βœ… Short, wide power traces or power planes
  • βœ… 45Β° routing angles, no 90Β° corners
  • βœ… Avoid routing under crystals or oscillators
  • βœ… Keep high-speed signals away from board edges
  • βœ… Use differential pairs for high-speed interfaces
  • βœ… Place decoupling caps on the same layer as the IC
  • βœ… Ground via stitching around board perimeter
  • βœ… Separate analog and digital sections physically

πŸŽ₯ Video: EMC for PCB Designers

EMC Design Tips
Many EMC Tips to Help You Design Better PCB Boards
Robert Feranec
Module 12

Gerber Files & Fabrication

Export your design for manufacturing β€” generate Gerber files, drill files, and order your first board from JLCPCB or PCBWay.

πŸ“ What are Gerber Files?

Gerber files are the industry standard file format for PCB manufacturing. Each file represents one layer of your board:

FileExtensionContent
Top Copper.gtl / F.Cu.gbrFront copper traces and pads
Bottom Copper.gbl / B.Cu.gbrBack copper traces and pads
Top Solder Mask.gts / F.Mask.gbrFront solder mask openings
Bottom Solder Mask.gbs / B.Mask.gbrBack solder mask openings
Top Silkscreen.gto / F.Silkscreen.gbrFront text and labels
Bottom Silkscreen.gbo / B.Silkscreen.gbrBack text and labels
Board Outline.gm1 / Edge.Cuts.gbrPCB shape / cut boundary
Drill File.drl / .xlnThrough-hole and via drill data

πŸ“€ Exporting from KiCad

1
Run DRC first

Inspect β†’ Design Rules Check. Ensure zero errors before exporting.

2
Generate Gerbers

File β†’ Fabrication Outputs β†’ Gerbers (.gbr). Select all required layers, use origin "Drill/Place file origin".

3
Generate Drill File

In the Gerber dialog, click "Generate Drill Files". Use Excellon format, metric units, PTH and NPTH in separate files.

4
Verify in Gerber Viewer

Open KiCad's GerbView or use an online viewer (gerber-viewer.ucamco.com) to inspect all layers.

5
ZIP and Upload

Put all .gbr and .drl files in a ZIP archive and upload to your chosen fab.

🏭 PCB Manufacturing Process

PCB manufacturing process steps
PCB Manufacturing Process β€” From copper-clad blank to finished board

πŸ›’ Popular PCB Fabs & Pricing

FabricatorMin Order2-Layer PriceLead TimeAssembly?
JLCPCB5 pcs$2-52-7 daysYes (SMT)
PCBWay5 pcs$5-103-7 daysYes (THT+SMT)
OSH Park3 pcs$5/inΒ²7-14 daysNo
Aisler3 pcs€8-155-10 daysYes (SMT)
AllPCB5 pcs$1-52-5 daysYes
πŸ’‘ Best Value

JLCPCB offers the best combination of price and quality for hobby and prototype boards. Their standard 2-layer boards (≀100Γ—100mm) start at ~$2 for 5 boards. Combine with their SMT assembly service for fully assembled boards.

πŸŽ₯ Video: Ordering from JLCPCB

JLCPCB Order Tutorial
How to Order PCBs from JLCPCB β€” Complete Tutorial
Delali
Module 13

Soldering & Assembly

Learn the techniques to populate your manufactured PCB β€” from hand soldering to reflow ovens and pick-and-place machines.

πŸ”§ Hand Soldering Basics

PCB soldering techniques comparison
Soldering Methods β€” Hand soldering, reflow soldering, and wave soldering techniques

For hobby and prototype boards, hand soldering is the most common method:

1
Clean the tip

Tin the soldering iron tip with a small amount of solder. Use a brass sponge to clean excess.

2
Heat the joint

Touch the iron to both the pad AND the component lead simultaneously. Heat for 1-2 seconds.

3
Apply solder

Feed solder wire to the joint (not the iron). The solder should flow and wick onto both surfaces.

4
Remove solder, then iron

Remove the solder wire first, then the iron. Hold the component still until the joint solidifies.

βœ… Good vs Bad Solder Joints

QualityAppearanceCause
Perfect βœ…Shiny, concave fillet, smoothProper temperature and timing
Cold Joint ❌Dull, grainy, rough surfaceInsufficient heat or movement during cooling
Too Much Solder ❌Blobby, convex domeExcessive solder applied
Bridge ❌Solder shorts between padsToo much solder on fine-pitch pins
Tombstone ❌SMD component stands uprightUneven heating during reflow
Dry Joint ❌No solder fillet visiblePad or lead not hot enough

πŸ”₯ SMD Soldering Techniques

  • Drag Soldering β€” For fine-pitch ICs (QFP): tin one corner pad, align IC, solder remaining pins by dragging solder across all pins, wick excess with solder wick
  • Hot Air Rework β€” Apply solder paste, place components, use hot air station (350-380Β°C) to reflow
  • Solder Paste + Toaster Oven β€” DIY reflow: apply paste with stencil, place components, reflow in modified toaster oven with temperature control
  • Hot Plate β€” Similar to toaster oven but using a ceramic hot plate (~220-250Β°C)

🏭 Professional Assembly (PCBA)

For production quantities, use a PCB Assembly (PCBA) service:

  • Solder Paste Stencil β€” Laser-cut stainless steel stencil applies precise solder paste
  • Pick and Place β€” Robotic machine places components at high speed (20,000+ CPH)
  • Reflow Oven β€” Controlled temperature profile melts solder paste (preheat β†’ soak β†’ reflow β†’ cool)
  • AOI (Automated Optical Inspection) β€” Camera system checks for missing/misaligned components
  • Wave Soldering β€” For through-hole components after SMD reflow

πŸŽ₯ Video: SMD Soldering Masterclass

Soldering Tutorial
Beginner's Guide to Soldering Electronics
Branchus Creations
Interactive Tools

PCB Calculator

Interactive tools to calculate trace width, via current capacity, and microstrip impedance for your designs.

πŸ“ Trace Width Calculator (IPC-2221)

⚑ Trace Width Calculator

Calculate the minimum trace width for a given current, based on IPC-2221 standard.

Current (A):
Copper (oz):
Temp Rise (Β°C):
Layer:

πŸ•³οΈ Via Current Calculator

πŸ”© Via Current Capacity

Estimate the current-carrying capacity of a via based on its dimensions.

Via Drill (mm):
Via OD (mm):
Plating (Β΅m):
Board Thick (mm):

πŸ“ Microstrip Impedance Calculator

〰️ Microstrip Impedance

Calculate the characteristic impedance of a microstrip trace over a ground plane.

Trace Width (mm):
Dielectric Height (mm):
Copper Thick (Β΅m):
Dielectric (Ξ΅r):

πŸ”„ Unit Converter

πŸ“ Mils ↔ mm Converter
Mils (thou):
Millimeters:

1 mil = 0.0254 mm | 1 mm = 39.37 mils

Final Assessment

PCB Design Final Quiz

Test your knowledge with 25 questions covering everything from materials to manufacturing. Score 80% or higher to earn your certificate!

SGP CARD
sgpcard.com
Certificate of Completion
This certifies that
Student Name
has successfully completed the
PCB Design Masterclass β€” From Zero to Professional Board
Demonstrating comprehensive knowledge in schematic capture, PCB layout, routing strategies, design rule compliance, Gerber file generation, and professional manufacturing processes.
πŸ”§
Certified
ID: PCB-XXXXXXXX