PCB manufacturing

From KiCad to the physical board

PCB manufacturing

Learn to generate Gerber files, understand the manufacturing parameters and order your printed circuit boards.

Duration :
Difficulty :
Documentation completed: 100% 100
Created by:  Alban Petit

Introduction

Once your PCB is designed and checked in Pcbnew, the next step is to have it manufactured. This tutorial guides you through:

  • Exporting the Gerber files (the standard manufacturing format)
  • Understanding the manufacturing parameters
  • Using the Aisler service to order your PCBs
  Important prerequisite

Before exporting your manufacturing files, make sure your PCB is completely finished: routing done, DRC passed with no errors, ground planes filled, and silkscreen finalised.


Understanding Gerber files

What is a Gerber file?

Gerber files (RS-274X or Gerber X2 format) are the industry standard for PCB manufacturing. They describe each layer of your board:

  • Copper layers (F.Cu, B.Cu, inner layers)
  • Solder mask
  • Silkscreen
  • Cutting outline (Edge.Cuts)
  • Drill files

The manufacturer uses these files to create the photomasks and drive the production machines.

Drill files

Alongside the Gerbers, the drill files describe all the holes:

  • Plated holes (vias, through-hole pads)
  • Non-plated holes (mounting holes)

Format: generally Excellon (.drl) or Gerber

These files give the position, diameter and type of each hole.

  A complete set

A complete set of Gerber files typically contains 8-12 files for a 2-layer PCB: top/bottom copper, top/bottom solder mask, top/bottom silkscreen, outline, drill, and sometimes a paste file for SMD assembly.


Viewing and checking the Gerber files

Use the KiCad Gerber viewer

KiCad includes a built-in Gerber viewer. From the project manager, click Gerber Viewer, or go to File > Open Gerber Viewer from Pcbnew.

Load the Gerber files

In the viewer:

  1. Go to File > Open Gerber Plot File(s)
  2. Select ALL your .gbr files in the gerber folder
  3. Also open the .drl drill files
  4. All the files appear in the left panel

Turn layers on and off to inspect each element.

Points to check

Check visually in the Gerber viewer:

✓ The Edge.Cuts outline is complete and closed ✓ All tracks and copper zones are present ✓ The solder mask covers the copper (except the pads) ✓ The silkscreen is readable and does not overlap the pads ✓ The drill holes are correctly positioned on the pads ✓ No empty or missing area

Compare with your PCB in Pcbnew to confirm.

  Common errors to check for

Frequent problems in Gerbers: outline not closed (the board will not be cut properly), silkscreen over pads (it will be removed), misaligned holes, unfilled copper zones. Fix them in Pcbnew and export again if necessary.


Understanding the manufacturing parameters

Number of layers

2 layers: The most common and cheapest. Top + bottom copper. 4 layers: Adds 2 inner layers, useful for complex boards with many signals or for dedicated power planes. 6+ layers: For very complex circuits, high speed or controlled impedance.

To get started: 2 layers are enough for 90% of projects.

PCB thickness

Standard: 1.6mm (the most common and cheapest) Others: 0.8mm, 1.0mm, 2.0mm

Choice by use:

  • 1.6mm: General use, a good stiffness/cost compromise
  • 1.0mm: More compact boards, portable electronics
  • 2.0mm: Mechanical applications, high stresses

Check your connectors: some are designed for a specific thickness.

Copper thickness

Expressed in oz (ounces per square foot) or µm:

1 oz (35µm): Standard, enough for most applications 2 oz (70µm): For higher currents (>3A per track) 0.5 oz (18µm): Less common, for very fine circuits

More copper = better conduction but higher cost. To get started: 1 oz is the standard choice.

Solder mask colour

The solder mask protects the copper and gives the PCB its colour:

Green: Standard, the cheapest Blue: Popular, slightly more expensive Red, black, white, yellow: Other colours available Transparent/None: No mask (rare, special applications)

The colour does not affect performance; it is purely cosmetic. Green = best price, other colours = extra cost.

Silkscreen colour

The silkscreen prints the markings, references and texts:

White: Standard on green/blue/red/black mask Black: On white/light yellow mask Yellow, red: Available from some manufacturers

Contrast matters: white on a dark background, black on a light one. The silkscreen is optional but strongly recommended for assembly.

Surface finish

The finish protects the copper of the pads and makes soldering easier:

HASL (Hot Air Solder Leveling):

  • Hot air tinning, the cheapest
  • Slightly uneven surface
  • Good for hand soldering, borderline for fine-pitch SMD

Lead-free HASL:

  • Like HASL but RoHS compliant
  • Recommended for commercial products

ENIG (Electroless Nickel Immersion Gold):

  • Flat, gold-plated surface
  • Excellent for fine-pitch SMD, contacts, RF
  • More expensive but better quality
  • Long shelf life

To get started: lead-free HASL (a good compromise)

  Recommended standard configuration

To get started, a budget configuration:

• 2 layers • 1.6mm thickness • 1 oz copper • Green + white silkscreen • Lead-free HASL • Tented vias

This configuration is the cheapest and perfectly suited to 90% of projects.


Ordering from Aisler

What is Aisler?

Aisler is a European PCB manufacturer (Germany) offering:

  • Competitive prices for small runs (3-20 PCBs)
  • Certified European quality
  • Fast delivery in Europe (5-10 days)
  • Direct integration with GitHub
  • A KiCad plugin for simpler ordering
  • Support in English/German

Website: aisler.net

Create an Aisler account

  1. Go to aisler.net
  2. Click Sign up at the top right
  3. Register with your email or GitHub account
  4. Confirm your email
  5. Complete your profile (delivery address)

Registration is free; you only pay when you order.

Method 1: Uploading the Gerbers manually

The classic way to order:

  1. Log in to your Aisler account
  2. Click Upload Project or New Project
  3. Compress your Gerber files into a .zip: select all the .gbr and .drl files, right-click > Compress
  4. Drag and drop the .zip file onto the Aisler upload area
  5. Aisler analyses the files automatically
  6. Check the automatically generated preview

Set the manufacturing parameters

After the upload, configure your order:

Quantity: Number of PCBs (often 3 minimum) Layers: 2 layers (detected automatically) Thickness: 1.6mm (standard) Color: Choose the solder mask colour Surface finish: HASL lead-free or ENIG Copper weight: 1 oz (35µm)

Aisler detects most parameters automatically from your Gerbers.

Check and confirm

Before ordering:

  1. Check the preview: Aisler shows a 3D view of your PCB
  2. Check the dimensions: Make sure the size is correct
  3. Read the warnings: Aisler reports potential problems (tracks too thin, borderline spacing and so on)
  4. Check the price: The price is shown according to the quantity and the options
  5. Click Add to cart, then proceed to payment
  Manufacturing lead times

Aisler generally offers 2 options:

Standard: 10-15 days (cheaper) Express: 5-7 days (extra cost)

Lead times include manufacturing + shipping within Europe. Add 3-5 days for assembly if you order SMD assembly.


KiCad plugin for Aisler

Install the Aisler plugin

Aisler offers a KiCad plugin for ordering directly from Pcbnew:

Installation through the plugin manager:

  1. In KiCad, open Pcbnew
  2. Go to Tools > External Plugins > Open Plugin Manager
  3. Look for Aisler in the list
  4. Click Install
  5. Restart KiCad

The plugin then appears in the menu Tools > External Plugins > Aisler.

Use the Aisler plugin

Once installed, to order directly:

  1. Open your PCB in Pcbnew
  2. Go to Tools > External Plugins > Aisler Push
  3. The plugin generates the Gerbers automatically
  4. Log in to your Aisler account (if you have not already)
  5. The files are uploaded automatically
  6. Your browser opens on the Aisler configuration page
  7. Set the parameters and order

A huge time saver! No more exporting the Gerbers by hand.

  Advantage of the plugin

The Aisler plugin automates the whole process: Gerber export + upload + checking in one click. It also guarantees that the right export settings are used for compatibility with Aisler.


JLCPCB (China)

JLCPCB: jlcpcb.com

Advantages:

  • Very competitive prices (5 PCBs for $2)
  • Built-in SMD assembly service
  • Components in stock for assembly
  • Decent quality

Drawbacks:

  • Long delivery times (15-30 days)
  • Possible customs duties
  • Support in English

A good choice for cheap prototypes if lead time is not critical.

PCBWay (China)

PCBWay: pcbway.com

Advantages:

  • Competitive prices
  • SMD assembly available
  • Wide range of finishes and options
  • Good quality

Drawbacks:

  • Similar to JLCPCB: long lead times, customs

An interesting alternative to JLCPCB with similar options.

Eurocircuits (Europe)

Eurocircuits: eurocircuits.com

Advantages:

  • European manufacturing (Belgium)
  • Excellent professional quality
  • Fast delivery in Europe
  • Powerful online viewer
  • Industrial certifications

Drawbacks:

  • Higher prices
  • Minimum order sometimes higher

For professional projects needing certified quality.

OSH Park (USA)

OSH Park: oshpark.com

Advantages:

  • Distinctive purple PCBs (ENIG)
  • Excellent quality
  • Supports open source
  • Direct upload from GitHub

Drawbacks:

  • Priced per square inch (can be expensive for large boards)
  • Delivery to Europe is costly and slow

Popular in the American maker community.


Additional manufacturing files

BOM (Bill of Materials)

The BOM lists all the components of your PCB:

  • Reference (R1, C1, U1…)
  • Value (220R, 100nF, ATmega328…)
  • Footprint (0805, SOIC-8…)
  • Quantity
  • Manufacturer / distributor part number

Generating the BOM from KiCad:

In Eeschema: Tools > Generate Bill of Materials Export as CSV or use a custom script.

Solder paste file (stencil)

To solder SMD components, a stencil applies the solder paste:

The F.Paste and B.Paste files in your Gerbers define the openings of the stencil.

You can order a metal or plastic stencil with your PCB from most manufacturers.

Common thicknesses:

  • 0.1mm (100µm): Fine components (0402, fine-pitch QFN)
  • 0.12-0.15mm: Standard for 0603, 0805, SOIC
  • 0.2mm: Larger components
  Complete manufacturing package

For a professional order, prepare a complete package:

• Gerber (.gbr) + drill (.drl) files • BOM (list of components) • PDF schematic • Manufacturing notes (if there are special requirements) • Pick-and-Place (if assembly is ordered)

Compress everything into a .zip with a clear name: ProjectName_v1.0_2026-02-09.zip


Resources and going further

Manufacturer capabilities

Read the capabilities (manufacturing limits) of your manufacturer:

Guides and standards

  Keep learning

PCB manufacturing gets easier with experience. Start simple, look at the results, and adjust for the next versions. Do not be afraid of making mistakes: that is how you learn!


Going further

SMD assembly (SMT assembly)

Once you receive your PCBs, you can:

  • Solder by hand: Soldering iron + flux for SMD (0805 components and larger)
  • Hot air rework station: Hot air gun for fine-pitch SMD
  • Reflow oven: Solder paste + stencil + reflow oven (precise, for fine components)
  • Assembly service: JLCPCB and PCBWay offer automated assembly at an affordable price

Advanced PCBs

Explore advanced features:

  • Multi-layer PCBs: 4, 6, 8 layers for complex circuits
  • Flex/rigid-flex PCBs: Flexible circuits for portable electronics
  • Impedance control: For high-frequency signals (RF, USB 3.0, HDMI)
  • HDI (High Density Interconnect): Microvias, blind/buried vias
  • Embedded components: Components buried in the PCB

Certifications and standards

For commercial products, consider:

  • RoHS: Free of hazardous substances (lead and so on)
  • UL: Safety certification (flame retardancy and so on)
  • IPC Class 2/3: Manufacturing quality (Class 3 = aerospace, medical)
  • CE marking: European conformity

KiCad tutorials

Explore other tutorials to master KiCad


Need help?