We have a project we two or more PCBs. It can be as simple as a power source board and the main board.
In KiCad a project can handle a schematic hierarchy and just one PCB.
Here we try to explore possible solutions.
Here the idea is that you make one schematic containing all the circuit and one board file containing all the PCBs.
Then you use the kikit separate
command to separate the PCBs.
Here is a simple example:
Note that we avoided the use of global powers, the GND is not explicit.
Our circuit is divided in two boards. Each board contains one filter. They are connected with a cable between J2 and J3.
The KiCad board file looks like this:
The Board A
and Board B
arrows are used to name each PCB.
After running kikit separate
we get for board A:
And for board B:
- You have only one stack-up because both circuits comes from the same KiCad PCB file.
- Both circuits gets the same worksheet information (title, revision, etc.)
- You must avoid using global power components. No GND or +5V for global use.
- You need an external tool to separate the PCBs.
- You can't check electrical rules for connections between the boards.
This looks a little bit more complicated, but solves various problems.
You create individual projects for each PCB board. In our example one project for each filter.
So you have individual pages (or hierarchies) for each part of the circuit, each page belongs to its own project: Filter A:
Note that we added hierarchical labels to all the connectors and we now can use global powers, but we use different names for each PCB (GND1 and GND2).
With two separated projects we have two separated PCBs. Filter A:
Filter B:
In order to create a schematic for the whole system you create a third project. In this project you use hierarchichal sheets to join both projects and show how they are connected.
- You can't run the ERC for the whole system. KiCad will complain about more than one PWR_FLAG for the same node.
This is just a hack for the second solution. Here we add a jumper to isolate the powers, we mark it as excluded from the BoM. Now the top-level looks like this:
And the ERC works.
This option doesn't allow a full ERC check of the system, you won't detect the output of one board connected to the output of another. But it allows creating BoMs that includes things like wires, terminals and crimp housings.
Here the connection between boards is done using components for each element we need to use:
The ERC works, but is limited.