LPS
Informatique

Drawing a ground plane in Kicad

While designing the PCB of my next keyboard in Kicad, I was looking for a way to create a ground plane. Half of the tracks on this board will carry around 300mA with a PWM signal, so it could be a good idea.

Creating a ground plane manually in Kicad is simple, the Zone tool is quite straightforward. But with an external auto router like FreeRouting it's not so easy, moreover if there is a lots of tracks on both side of the PCB. The ground plane must be filled in after all tracks have been placed. If you do it before, FreeRouting will ignore it and generate useless data.

How to do it ?

The first step is to remove the ground network from the Specctra DSN file, so FreeRouting does not touch it. Generate the .dsn file with the tool located in Tool -> Freeroute. Then edit this file with a text editor and remove the GND block in the Network section, like on this screenshot :

Once done, you can load the file in FreeRouting and launch the routing. It may be necessary to adjust few parameters of the router to give a higher cost to the tracks on the back side. This will help to avoid island, ie. part of the ground plane not connected to anything. These settings are in Parameter -> Autoroute -> Detail.

Then, you can load back the Specctra SES file into Kicad, draw the zone on the back side of the board and fill it. Use the DRC check to verify there is no unconnected pin, which would indicate an island on the groud plane. In that case it will require a manual fix and fill the zone again, but that's much less work than doing everything by hand !

This content is under Creative Commons BY-NC-SA