← KiCad PCB Design Course

Advanced Board Layout

Go beyond basic layout: configure net classes, use the autorouter effectively, add custom artwork, and import mechanical board outlines from CAD.

Net Classes & Board Setup

Play: Net Classes & Board Setup

Net Classes and Design Rules

A net class is a named group of nets that share the same design rules: minimum trace width, clearance, and via size. KiCad applies these rules during interactive routing and flags violations in the DRC. Without net classes you have a single global rule set, which means every trace is treated the same regardless of its electrical role.

On boards with mixed voltage levels this becomes a problem. In FSAE applications you will commonly have a 12 V GLV system and a high-voltage tractive system on the same board, or at least adjacent connectors. The clearance required between HV and LV copper depends on your insulation coordination analysis, but it is always larger than the standard 0.2 mm signal clearance. Assigning HV nets to a dedicated net class with appropriate clearance means KiCad enforces the separation and the DRC catches any violation before fabrication.

Power rails carrying significant current also need wider traces than signal nets. Assign your power supply nets (12 V, 5 V, GND) to a net class with a minimum trace width appropriate for the expected current. A rough rule of thumb is 0.5 mm per amp for 1 oz copper in free air, but use a trace width calculator for anything carrying more than a couple of amps. Set your signal net class to a narrower default (0.2 mm is typical for low-current digital signals) to keep the board compact.

Net classes are defined in Board Setup under Design Rules. Nets are assigned to classes in the Net Inspector or directly via the netlist. Apply net classes before routing so the constraints are in effect from the first trace.

Multi-Layer PCBs

The course board is two-layer, which covers the vast majority of low-to-medium complexity circuits. Beyond two layers, boards are typically four-layer or more. The two extra layers in a four-layer stackup are usually dedicated to power and ground planes, sandwiched between the signal layers. This gives every signal layer a reference plane directly adjacent to it, which dramatically reduces impedance and EMC problems at higher frequencies.

For FSAE boards where digital signals are running at any meaningful speed, or where noise immunity matters (shutdown circuit sense lines, for instance), a four-layer stackup is worth considering. The cost difference from a two-layer board at low quantities is modest.


Autorouting

Play: Autorouting

Autorouting

KiCad integrates the FreeRouting autorouter via a plugin available through the Plugin and Content Manager. The autorouter takes the unrouted netlist and attempts to complete all connections within the defined design rules. It respects net class constraints — trace widths and clearances — so the class configuration must be correct before running it.

The recommended workflow:

Component placement quality directly affects autorouter performance. If related components are grouped together so that the nets between them are short, the autorouter has an easier job and produces cleaner results.

Do not start with a fully unrouted board and expect the autorouter to produce a production-quality layout. Use it to handle tedious mechanical connections, not as a substitute for design intent.


Custom Artwork

Play: Custom Artwork

Custom Silkscreen Artwork

KiCad includes an image converter tool (File > Import > Raster Image, or via the bitmap-to-component converter) that converts a black-and-white image into a silkscreen footprint. The workflow:

For FSAE teams, putting the team logo on the board is both practical identification and a sign of a finished design. Store the source image file in an artwork/ directory inside your PCB project directory so the source is always with the design.


CAD Import/Export

Play: CAD Import/Export

CAD Export for Mechanical Assembly (STEP)

Once the board layout is complete, export a STEP model so the mechanical team can verify that the board fits the enclosure and that connector openings, LED positions, and component heights are correct.

Go to File > Export > STEP. The STEP file includes the board outline, copper layers, and any 3D models attached to footprints. Before exporting, check that your footprints have 3D models assigned — connectors and ICs are the most important ones for mechanical clearance checking.

Import the STEP file into Onshape, Creo, SolidWorks, or whatever tool the rest of the team uses. Drop it into the enclosure assembly and check for conflicts. Connector bodies protruding through panel cutouts, tall capacitors fouling a lid, or mounting hole misalignment are all easier to catch at this stage than after boards are assembled.


Custom Board Outlines (DXF Import/Export)

Play: Custom Board Outlines (DXF Import/Export)

Custom Board Outlines from MCAD (DXF Import)

In FSAE and other constrained mechanical environments, the PCB must fit a specific enclosure, bracket, or chassis location. The board shape and mounting hole positions are usually defined in the mechanical CAD model before the PCB design starts. Measuring coordinates by hand is slow and error-prone. Export the board outline directly from MCAD and import it into KiCad.

The process using Onshape (or any other MCAD tool):

Mounting holes imported this way will be in exactly the right position relative to the board outline. Place the mounting hole footprints over the DXF circles on the Edge.Cuts layer, or delete the DXF circles and use proper KiCad mounting hole footprints centred on those coordinates.