Skip to main content

PCB Design Guidelines

Parent Document: HARDWARE_OVERVIEW.md
Version: 0.1.0-draft

Design Tools

Recommended: KiCad 8.0+ (open source, aligns with project philosophy)


Layer Stackups

Tier 1: 4-Layer

Layer 1: Signal (TOP)
Layer 2: GND
Layer 3: Power
Layer 4: Signal (BOTTOM)

Tier 2: 6-Layer with Security Mesh

Layer 1: Signal (TOP)
Layer 2: SECURITY MESH ← Tamper detection
Layer 3: GND
Layer 4: Power
Layer 5: SECURITY MESH ← Tamper detection
Layer 6: Signal (BOTTOM)

Tier 3: 8-Layer High Security

Layer 1: Signal (TOP)
Layer 2: SECURITY MESH TOP
Layer 3: GND
Layer 4: Signal (Internal)
Layer 5: Power
Layer 6: GND
Layer 7: SECURITY MESH BOTTOM
Layer 8: Signal (BOTTOM)

With blind vias (L1-L3, L6-L8) and buried vias (L3-L6).


Security Mesh Design

Parameters:

  • Trace width: 0.15mm
  • Trace spacing: 0.3mm
  • Layer: Inner layer 2 or 7
  • Pattern: Serpentine with randomized corners
  • Coverage: All sensitive components + 5mm margin

Monitoring:

  • Connected to tamper supervisor inputs
  • Checked every 100ms
  • Any break/short triggers zeroization

KiCad Plugin: github.com/SebastianGo662/tamper-mesh-kicad


Component Placement

┌─────────────────────────────────────────────────────┐
│ SECURITY ZONE │
│ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ │
│ │ MCU │ │ SE1 │ │ SE2 │ │ SE3 │ │
│ └───────┘ └───────┘ └───────┘ └───────┘ │
│ ┌─────────────────────────────────────────┐ │
│ │ TAMPER SUPERVISOR │ │
│ └─────────────────────────────────────────┘ │
│ ═══════════ SECURITY MESH COVERAGE ═══════ │
└─────────────────────────────────────────────────────┘

┌─────────────────┐ ┌─────────────────┐
│ WIFI MODULE │ │ LORA MODULE │
└─────────────────┘ └─────────────────┘

┌─────────────────────────────────────────────────────┐
│ PMIC BATTERY USB-C REGULATORS │
└─────────────────────────────────────────────────────┘

Guidelines:

  • Group MCU + all SEs + tamper IC together
  • RF isolation from sensitive analog
  • Clean power flow: Battery → PMIC → Regulators → Loads
  • Debug header accessible for dev, removable for production

Manufacturing Specifications

Tier 1 (JLCPCB Standard)

ParameterValueCost (qty 5)
Layers4€2-5
Min trace0.127mm
FinishHASL

Tier 2 (Advanced)

ParameterValueCost (qty 10)
Layers6€40-80
Min trace0.1mm
Via-in-padYes
FinishENIG
ImpedanceControlled

Tier 3 (Premium/Domestic)

ParameterValueCost (qty 10)
Layers8€150-300
Min trace0.075mm
Blind/buried viasYes
FinishENIG + selective gold
ManufacturerDomestic (EU/US)

Assembly Options

Hand Assembly (Tier 1)

PackageDifficulty
0603Easy
0402Medium (magnification)
QFNMedium (hot air)
BGAHard (stencil + oven)

Professional Assembly (Tier 2+)

JLCPCB SMT: Min 2 boards, setup €8, BGA capable
PCBWay Turnkey: Component sourcing included, authorized distributors


Design Checklist

Schematic

  • Power supply voltages correct
  • Decoupling capacitors on all power pins
  • ESD protection on external interfaces
  • I²C addresses don't conflict

PCB

  • DRC clean
  • Footprints verified against datasheets
  • Antenna keepout respected
  • Security mesh coverage complete (Tier 2+)
  • Test points accessible

Manufacturing

  • Gerbers visually verified
  • BOM exported with all fields
  • Assembly drawing created