Layout (KiCad to Flux)

This section covers the transition from schematic to layout, including stackup, routing, and copper fills.

Import Your KiCad Project

Attach your KiCad project files, or a ZIP file of the project folder, to a message in the Chat panel. Ask Flux to import them. Flux creates a new project from the files.

Import this KiCad project.
Import this ZIP file of my KiCad project folder, then review the schematic and the board.

To do it in the UI:

In Flux, select Import from the Flux menu, then select Project…. Upload your KiCad .kicad_pro, .kicad_sch, and .kicad_pcb files, a project folder, or a ZIP file. Each import creates a new project. It does not update an existing project or part.

Overview

Key differences when you move from KiCad to Flux:

  • Netlist and ECO do not exist in Flux. Schematic and PCB data are automatically synchronized.

  • Find PCB rules in the Rules tab. PCB editor

  • Flux automatically creates ground fills connected to ground. Ground fills

Going from Schematic to Layout

In KiCad

To forward your schematic changes into the layout editor, you need to use the “Update PCB from Schematic” menu. The process involves generating a Netlist and using an ECO to sync.


In Flux

The schematic and layout stay synchronized. Changes in the schematic update the PCB layout without a separate netlist or ECO step.

Info

Synchronized schematic and layout data keep the design consistent.

Creating a Stackup

In KiCad

Layer properties are defined through the Properties menu.


In Flux

Ask Flux to set up the stackup and the board shape.

Set up a 4-layer stackup with signal, ground, power, and signal layers.
Change the board outline to a 50 mm by 30 mm rectangle with 3 mm corner radius.
Set up a stackup for 90 ohm differential USB pairs.

To do it in the UI:

The layout object represents the PCB. Use its rules to set the board shape and stackup.

Rules set properties for footprints, pads, traces, and the layout. Read the PCB rules guide.

To modify your stackup:

  1. Select the Layout object

  2. Find the “Layout Rules” section under the “Inspect” panel on the right.

  3. Click on ���edit” then “add” and find the rule called stackup

  4. Select a stackup template from the list, or click on the pencil icon to create a custom one.

Info

The layout object can also be modified to create different board shapes.

A KiCad board with a polyimide dielectric opens in Flux as a flex board, with one Flex area stackup. To design a rigid-flex board, see Flex and Rigid-Flex Boards.

Routing Traces

In KiCad

In KiCad, select the trace tool to route a connection. Run design rule checks (DRC), often after routing.


In Flux

Ask Flux to route the board, or to route only some nets.

Route the board.
Route the USB data pair and the power nets. Leave the other nets unrouted.
Route the 3V3 net with 0.5 mm traces.

To route by hand:

To start routing, click on a routing touch point and a trace will appear.

  • Press F to change the route angle (elbow) direction and W to change the size of traces.

  • Connect the components based on the schematic and airwires

As you route, airwires disappear and copper replaces them. Press V to place a via and switch layers. When you finish, review the board.

Info

Real-time design rule checks (DRC) guide routing. Design rule checks

Managing Ground and Power Planes

In KiCad

You manually create and configure copper pours for ground and power planes.


In Flux

Ask Flux to add copper fills for the ground and power nets.

Add a ground fill on the bottom layer.
Add a 3V3 copper fill on layer 3 under the power section.
Connect the ground fill to all copper layers.

To do it in the UI:

Every board has a GND net. Flux connects the GND net to the copper fills on all layers by default. You can configure the fills for other nets. Read the ground fills guide.

Info

Flux creates the ground fill, so you do not draw a copper pour for ground. To turn imported copper fills into live pours, see Turn imported copper fills into live pours.

Ask Flux

Ask Flux to do this work in your imported project.

Place and route the board

Ask Flux to place the components and route the board. Flux sets up the stackup and the layout rules, places the parts, routes the traces, and runs the design rule check. You can change any part of the layout by hand.

Place the components and route the board. Keep the crystal close to the microcontroller.

Simulate high-speed and RF signals

Ask Flux to run an electromagnetic simulation of the routed board. Use it for the impedance, losses, and coupling of high-speed traces, and for antennas and RF feed lines. Flux reports the results with plots.

Simulate the USB differential pair and report the impedance.

Check the board temperature

Ask Flux to run a thermal simulation of the PCB. Flux calculates the temperature of the board and its components from the power that each part dissipates, and shows the hot spots.

Run a thermal simulation of the board at full load.

Design the enclosure and mechanical parts

Ask Flux to design enclosures, brackets, mounts, mechanisms, and other mechanical parts and assemblies around the board. Flux uses the board outline, the mounting holes, the connectors, and the 3D models of the parts. In the 3D view, you can cut through the model to check the clearances. See Mechanical Design.

Design an enclosure for this board with openings for the connectors.
Design a bracket that holds the board on the motor housing.

Check the mechanical parts and the air flow

Ask Flux to analyze the mechanical parts. Flux calculates the stress and the deflection of a bracket or a housing. Flux checks the fit and the clearances between the board and the parts around it. Flux also simulates the air flow and the cooling through an enclosure with a fan or vents. Flux reports the results with numbers and images.

Check the stress in the bracket with a 10 N load.
Simulate the air flow through the enclosure and report the board temperature.

Get quotes and order

Ask Flux for PCB quotes from JLCPCB, PCBWay, OSH Park, and AISLER. Ask Flux to order boards from JLCPCB or PCBWay. Place OSH Park and AISLER orders on their websites. Ask for 3D-printing quotes and orders for the mechanical parts. You can also export the Gerber, drill, BOM, and pick-and-place files. See Manufacturing files.

Get quotes for 20 boards from JLCPCB and AISLER.