Post · 6 min read· pp. 713–719

How to Autoroute a PCB Layout in KiCad using FreeRouting Plugin

To autoroute a PCB in KiCad, first place all components on your layout, then launch the FreeRouting plugin. You can also fine-tune the traces as per your requirements. This hybrid approach ensures layout efficiency and precision, making it ideal for complex designs.

KiCad users should be aware of this autorouting tool as it saves time, reduces errors, and enhances the quality of the layouts.

Highlights:

  • Autorouting in KiCad helps speed up routing and reduce repetitive manual edits.
  • The FreeRouting plugin requires a JRE installation before setup.
  • PCB designers can quickly autoroute, then refine the layout manually.
  • Test coupons, plugin access steps, and deletion steps are clearly explained.
  • Layout quality improves when autorouting is paired with planned placement and defined rules.

In this KiCad tutorial, you’ll learn how to set up FreeRouting and autoroute your PCB layout.

5 benefits of autorouting in KiCad

  1. Faster design process: Speeds up the design process by automating trace and via routing, saving design time.
  2. Error prevention: Follows predefined design rules and constraints, preventing issues like short circuits and missed connections.
  3. Optimized layouts: Utilizes advanced routing algorithms to route signals in dense or compact designs.
  4. Flexible design iterations: Allows manual re-routing, simplifying design modifications.
  5. Cost-efficient: Reduces the need for iterative prototypes, lowering development costs.

Prerequisite to install the FreeRouting plugin in KiCad

Before installing the plugin, you need to have the Java runtime environment (JRE) on your PC.

Steps to install JRE on Windows

  1. Navigate to Java’s official website.

  2. Choose and download the JRE version that matches your Windows operating system and system architecture.

    downloading-JRE-for-windows-operating-system.jpg

    Steps to download JRE in the Windows operating system.

  3. Run the installer once the download is complete, and follow the instructions.

You can book a meeting with our experts or call us at +1 (800) 763-7503.

sierra-circuits-pcb-design-support.webp

Steps to install JRE on Linux

  1. Navigate to Java’s official website.

  2. Choose and download the JRE version that matches your Linux operating system and system architecture.

    steps-to-download-JRE-for-linux-operating-system.jpg

    Steps to download JRE for the Linux operating system.

  3. Change the directory where you want to install JRE.

  4. Open the jre-8uversion-linux-x64.tar.gz file and follow the instructions.

  5. Unpack the jre-8u431-linuxfile. The JRE will be installed in the selected directory.

After installing JRE,  you can install the FreeRouting plugin.

To learn more, download the KiCad 9 Step-by-Step Guide.

How to install the autorouting plugin in KiCad?

The FreeRouting plugin is installed through KiCad’s Plugin and Content Manager. After installation, you can access it in the External Plugins option under the Tools tab.

Steps to install the autorouting plugin in KiCad:

  1. Open KiCad and navigate to Plugin and Content Manager.
  2. In the search bar, type FreeRouting.

steps-to-install-freerouting-plugin-in-kicad.jpg

Steps to install the FreeRouting plugin in KiCad.

  1. Click on Install andApply Pending Changes to complete the installation.

To access the FreeRouting plugin, go to Tools 🡪 External Plugins 🡪 FreeRouting in the PCB editor. Once installed, you can use the FreeRouting plugin to auto-route your designs.

To learn more, download the KiCad Design Guide.

How do you autoroute your PCB in KiCad?

You can start autorouting your layout after component placement. After launching the FreeRouting plugin, it evaluates DRC rules and automatically creates routing paths. You can review the result, adjust critical traces, or delete unwanted routes using the Global Deletion option.

Step-by-step procedure for autorouting in KiCad:

how-to-autoroute-in-kicad-using-freerouting-plugin.gif

Autorouting in KiCad using the FreeRouting plugin.

Step 1: Open a layout file with all the components placed.

Step 2: Go to Tools 🡪 External Plugins 🡪 FreeRouting to start the autorouting process.

autorouting-a-pcb-layout-in-kicad.jpg

Autorouting a PCB layout in KiCad.

The plugin automatically routes your PCB layout.

autorouted-pcb-layout-using-freerouting-plugin.jpg

Autorouted PCB layout in KiCad.

To learn how to manually route a layout, see our tutorial on how to route a PCB in KiCad.

To delete all the autorouted tracks and vias, go to Edit 🡪 Global Deletions. Check Track & Vias and hit OK.

steps-to-delete-tracks-and-vias-in-kicad.jpg

Steps to delete tracks and vias in KiCad.

After successfully autorouting your PCB layout, the next step is to secure a production quote.

To receive an instant cost estimate for your PCB design within the KiCad UI, install the KiCad Quote Plugin.

sierra-circuits-kicad-quote-plugin.jpg

5 layout tips to optimize autorouting

To leverage the full potential of the FreeRouting plugin, consider these 6 practical tips:

  1. Define design rules and constraints: Before running the autorouter, set up the design rules for trace widths, clearance, and via sizes. These rules ensure the autorouter adheres to your specific design requirements and avoids rule violations.
  2. Efficiently place components: Auto-routing in KiCad results heavily depend on how components are arranged. Plan your layout strategically to minimize unnecessary routing complexity. For PCB component placement rules, see component placement guidelines for PCB design and assembly.
  3. Manually route critical traces: Manually route critical nets that require special attention. For instance, grounding paths should be short and wide. In addition to this, the number of vias in high-speed traces should be fewer.
  4. Use net classes to prioritize connections: Assign net classes to critical signals like high-speed or high-current traces. The autorouter will treat these nets with priority, ensuring better routing for sensitive signals.
  5. Review and fine-tune the autorouted layout: Review the results for potential improvements. Manual adjustments may still be needed for high-precision layouts, particularly in HDI or high-speed designs.

The FreeRouting plugin in KiCad is a valuable tool for streamlining the PCB design process. Automating the routing process and optimizing signal paths helps you save time and reduce errors. However, manual intervention is still necessary for critical signals and complex designs.

You can achieve high-quality PCB layouts by combining automated and manual routing techniques explained in this KiCad tutorial.

Need help in designing your PCBs? Post your queries on our forum, SierraConnect. Our PCB experts will answer them.

sierra-connect-banner.jpg