0
0
Embedded-cHow-ToBeginner · 3 min read

How to Set Design Rules for 2 Layer PCB: Step-by-Step Guide

To set design rules for a 2 layer PCB, define trace widths, clearances, and via sizes suitable for your manufacturing process. Assign one layer primarily for signals and the other for ground or power, and set rules in your PCB design software to control spacing and electrical constraints.
📐

Syntax

Design rules for a 2 layer PCB typically include parameters like trace width, clearance, via size, and layer assignment. These rules are set in your PCB design software under the design rules or constraints section.

  • Trace Width: Minimum width of copper traces to handle current safely.
  • Clearance: Minimum spacing between traces, pads, and vias to avoid shorts.
  • Via Size: Diameter of vias connecting layers, including drill size and annular ring.
  • Layer Usage: Assign top layer mainly for signals and bottom layer for ground or power planes.
text
Design Rules Setup:
- Trace Width: 10 mil (0.254 mm)
- Clearance: 8 mil (0.203 mm)
- Via Drill: 12 mil (0.305 mm)
- Via Annular Ring: 6 mil (0.152 mm)
- Layers: Top - Signal, Bottom - Ground/Power
💻

Example

This example shows how to set basic design rules in a common PCB design tool for a 2 layer board:

1. Open the Design Rules dialog.
2. Set Minimum Trace Width to 10 mil.
3. Set Minimum Clearance to 8 mil.
4. Define Via Drill Size as 12 mil and Annular Ring as 6 mil.
5. Assign the top layer for signal routing and the bottom layer for ground plane.

plaintext
DesignRules {
  TraceWidth = 10mil;
  Clearance = 8mil;
  Via {
    DrillSize = 12mil;
    AnnularRing = 6mil;
  }
  Layers {
    Top = "Signal";
    Bottom = "Ground/Power";
  }
}
Output
Design rules applied: - Trace width: 10 mil - Clearance: 8 mil - Via drill: 12 mil - Annular ring: 6 mil - Top layer: Signal - Bottom layer: Ground/Power
⚠️

Common Pitfalls

Common mistakes when setting design rules for 2 layer PCBs include:

  • Setting trace widths too narrow, causing overheating or manufacturing issues.
  • Insufficient clearance leading to shorts or solder bridging.
  • Ignoring via sizes that are incompatible with the PCB fabricator's capabilities.
  • Not properly assigning layers, which can cause signal integrity problems.

Always check your manufacturer's recommended minimums before finalizing rules.

plaintext
Wrong:
TraceWidth = 5mil;  // Too narrow for most manufacturers
Clearance = 4mil;   // Risk of shorts

Right:
TraceWidth = 10mil; // Safe minimum
Clearance = 8mil;   // Manufacturable spacing
📊

Quick Reference

Design RuleRecommended ValuePurpose
Trace Width10 mil (0.254 mm)Handles current safely
Clearance8 mil (0.203 mm)Prevents shorts between conductors
Via Drill Size12 mil (0.305 mm)Allows reliable layer connection
Annular Ring6 mil (0.152 mm)Ensures via pad integrity
Layer AssignmentTop: Signal, Bottom: Ground/PowerOptimizes signal integrity and noise reduction

Key Takeaways

Set trace width and clearance according to your PCB manufacturer's minimum specs.
Use one layer mainly for signals and the other for ground or power to reduce noise.
Choose via sizes that your fabricator can reliably produce.
Always verify design rules in your PCB software before finalizing the layout.
Avoid too narrow traces or too close spacing to prevent manufacturing defects.