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.
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.
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.
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.
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.
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.
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.
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.