How to Design a Pedal PCB in KiCad That Fits Your Enclosure

The awkward part of a pedal PCB is the hardware. Pots, toggles and the LED solder to the board and poke through the enclosure, so every one of them has to sit exactly under its hole. Get one a millimetre out and the board won’t go in.

So I do it the other way round: lay out the enclosure first, then start the board with the hardware already in place. This is how that goes in KiCad, using the PCB export in Stompbox Layout.

A pedal layout in Stompbox Layout with the knobs hidden: a 125B enclosure unfolded, three PCB-mount pots on the top face with their legs towards each other, a footswitch with an LED beside it, and jacks in the side walls.
The layout the board is built round, with the knobs hidden so the pots and their legs show.

What you need

  • A layout in Stompbox Layout.
  • KiCad 8 or later, which is free.
  • The PCB export from the app, a one-off $15 that covers every project. The layout itself is free, so you can place everything first and only pay when you’re ready to start the board.

Step 1: Lay out the pedal

Place your parts as usual and check them in the 3D preview. For anything that solders to the board, pick a part with the green KiCad tag in the component list. Those are the ones that arrive in KiCad on their own footprint: PCB-mount pots, mini toggles and LEDs.

Jacks, the footswitch and anything else on wires don’t need one. Every hole in the top face is still drawn in the file, the footswitch’s included, so you can see where it sits. Parts in the side walls, like the jacks, aren’t.

The Place a component picker in Stompbox Layout showing ten pots. Four carry a green KiCad tag: the Alpha 9mm vertical PCB-mount pot, the Alpha 16mm right-angle PCB-mount pot, the Alpha 16mm dual-gang right-angle pot and the Bourns 16mm right-angle PCB-mount pot.
Parts with the green KiCad tag arrive on their own footprint.

Step 2: Download the board

Open Export and choose KiCad PCB. Under Parts, choose everything that solders to the board. The preview shows the board the way KiCad will open it, with a reference beside each part: RV1, RV2 and RV3 for the pots, D1 for the LED. You’ll want them in step 4. The Parts list shows which reference each part got, and pointing at one rings it in the preview.

Pots says which side of the board they solder to. It starts on the bottom, which is where pedal boards usually have them.

The KiCad PCB export in Stompbox Layout: a preview of the enclosure top face with three pot footprints labelled RV1, RV2 and RV3 inside a small board outline, and beside it the Parts list with RV1 Tone, RV2 Volume and RV3 Drive ticked, and the footswitch and LED unticked.
The Parts list says which pot is RV1, RV2 and RV3.

Step 3: Open it in KiCad

Make a new KiCad project. Move the downloaded file into the project’s folder and rename it to the project’s name, replacing the empty board KiCad made (a project called overdrive wants overdrive.kicad_pcb). Open the PCB editor and you’ll see:

  • Each part on its footprint, its pads where the legs come down.
  • A small board fitted round them, ready to drag to size.
  • Your enclosure’s top face and its holes, with a line inside the walls and round the screw bosses. Keep the board inside that line and it clears the walls and the bosses.

Newer versions of KiCad say the file was made by an older version. That’s on purpose, so it opens in KiCad 8 too, and it goes away once you save.

With the pots on the bottom, everything is mirrored, because KiCad shows a board from its top side. View > Flip Board View shows it from the pot side, as on the enclosure.

The exported board open in KiCad's PCB editor: the outline of the enclosure's top face with its holes, three pot footprints labelled RV1, RV2 and RV3 with red pads numbered 1 to 3, and a small grey board fitted round the pads.
The export as KiCad opens it, before anything is added.

Step 4: Draw the schematic

Draw your circuit in the schematic editor as you normally would. Two things matter for the parts that are already on the board:

  • Give each one the reference it has in the file. If Drive is RV3 on the board, it’s RV3 in the schematic.
  • Leave its Footprint field empty. The footprint is already placed, and KiCad will use it.

Everything else (resistors, capacitors, the op-amp) gets a footprint in the usual way.

KiCad's Symbol Properties box for a potentiometer: Reference RV3, Value DRIVE 1MA, and the Footprint row left empty.
The Drive pot: RV3, as on the board, with no footprint chosen.

Step 5: Bring the schematic onto the board

In the PCB editor, choose Tools > Update PCB from Schematic and tick Re-link footprints to schematic symbols based on their reference designators. Leave the rest as it is.

KiCad's Update PCB from Schematic box with Re-link footprints to schematic symbols based on their reference designators ticked. The list of changes includes Connect RV3 pin 1 to /OUT1, and ends Total warnings: 0, errors: 0.
Re-link ticked, everything else as KiCad has it.

That tick is what makes it work. KiCad matches RV1 on the board to RV1 in the schematic, leaves it exactly where it is and connects its pads. The rest of your parts arrive in a bundle on the cursor, ready to place.

The board in KiCad after the update: the three pots still on their pads under the holes, and beside the enclosure a block of resistors, diodes, capacitors and an op-amp, with thin lines running from the pots' pads to the new parts.
After the update: the pots have not moved, and their pads are wired to the new parts.

Without the tick, KiCad doesn’t know the placed parts are yours, and their pads stay unconnected. And if you’d chosen a footprint for a pot in the schematic, KiCad would swap the placed one for it, and the pads would no longer be under the hole.

I ran this in KiCad 10 on an overdrive with three pots and 33 other parts. The pots stayed put, took their nets, and nothing else needed doing.

Step 6: Place and route

From here it’s an ordinary board. Drag the edge out to the size you want, staying inside the line, place the rest of the parts and route. The one rule is not to move the placed hardware in KiCad. If a pot needs to move, move it in your layout and export again, so the hole and the footprint move together.

When the board is done you can bring its outline back into the layout to check it against the jacks and the footswitch in 3D. The user guide covers that.

If you’re trying it

  • Pick parts with the KiCad tag for anything that solders to the board.
  • Match the references, and leave Footprint empty on the placed parts.
  • Tick Re-link when you update from the schematic.
  • Move hardware in the layout, never in KiCad.
  • Print the board at 100% and sit the real parts on the paper before you order.

Open Stompbox Layout to start your own, and the user guide has every step in more detail.

An orange 3D printed drill jig seated on a pedal enclosure.
3D printable drill jig

Print a drill jig for your own build

Nothing to tape down, nothing to slip, and it wraps the sides so the jacks line up. The editor makes one from your own layout, for the exact enclosure you picked.

See the drill jig, $29 →

Design your drill template

Place holes with sub-millimetre precision on standard enclosures and export print-ready PDF drill templates.

Open the app, it’s free