KiCad PCB Design From Schematic to Gerber Files
QUICK ANSWER KiCad PCB design starts with a checked schematic, moves through placement and routing, and ends with Gerber and drill files. Match footprints to the parts you will buy, run ERC and DRC, then inspect the exported layers before ordering. A tidy board view can still hide a manufacturing error.
A board can look finished on screen and still arrive with a connector that does not fit. This KiCad PCB design workflow focuses on the checks that prevent that revision.
Our KiCad PCB design example is a two-layer board with a microcontroller, an I2C temperature sensor, and an edge connector. Apply the sequence to your own parts and fabrication requirements.
KiCad PCB design tools at a glance
Each KiCad PCB design tool serves a different point in the handoff. This table shows where to make a change and what to check.
| Tool | Use it to | Check before moving on |
|---|---|---|
| Project Manager | Keep the schematic and board in one project | Project files and revisions |
| Schematic Editor | Draw connections and run ERC | Pin numbers, power, and missing nets |
| Symbol and Footprint Editors | Create or correct library items | Pad numbering and package dimensions |
| PCB Editor | Place, route, and run DRC | Outline, clearance, and connectivity |
| 3D Viewer and GerbView | Inspect the board and exported layers | Mechanical fit and fabrication output |
How to draw a schematic for KiCad PCB design
For KiCad PCB design, the schematic defines the board's electrical connections. Check it before placing footprints.
1. Place symbols. Choose the parts you intend to use. Compare symbol pin numbers with the part documentation, especially power and connector pins.
2. Wire and label nets. Add power, ground, and signals; inspect junction dots where wires meet. Label the example board's two I2C lines consistently and check their pull-ups to the intended logic rail.
3. Assign footprints. Match each symbol to the purchased package. Compare pin 1, pad pitch, and mounting holes with its drawing. A 2.00 mm header footprint will not fit a 2.54 mm connector even if ERC passes.
4. Run ERC. Annotate the schematic and resolve unexpected warnings. ERC finds some connection and power conflicts, but cannot prove that a circuit will work.
A clean schematic and accurate footprints give the KiCad PCB design layout a sound starting point.
PCB layout that fits and routes
Layout turns checked connections into a buildable board. In KiCad PCB design, start with fixed physical constraints and use the fabricator's stated design rules.
1. Set up the board. Choose the layer count and set track, clearance, and via rules in Board Setup. Draw one closed outline on Edge.Cuts.
2. Transfer the schematic. Use Tools → Update PCB from Schematic (F8). Repeat after any schematic or footprint change.
3. Place before routing. Put the connector and mounting holes where the enclosure requires them. Keep the sensor away from heat sources and decoupling capacitors close to IC power pins.
4. Route and inspect. Connect nets, add a ground zone where appropriate, refill zones (B), and run DRC. Use the 3D view to check connector orientation and silkscreen over pads. DRC cannot confirm mechanical fit.
For our KiCad PCB design example, fixing the connector position first makes the remaining routes easier to plan.
Generate and inspect Gerber files
Gerber and drill files describe the layers and holes a fabricator will make. In KiCad PCB design, inspect those files before ordering.
1. Finish board checks. Save, refill zones, rerun DRC, and confirm that the Edge.Cuts outline is closed.
2. Plot fabrication layers. In PCB Editor, choose File → Plot and select Gerber. Include copper, solder mask, silkscreen, and Edge.Cuts; add paste layers for a stencil. Then choose Generate Drill Files.
3. Review the output. Open the set in GerbView. Check outline, copper, mask openings, drills, and labels, especially pin 1 and the connector side. This KiCad PCB design check catches export mistakes the editable view may hide.
4. Package one revision. Zip the verified Gerber and drill files together. For a PCBgogo order, state layer count, board thickness, finish, and special hole or assembly requirements.
After any board revision, export and inspect a fresh set. Old Gerbers do not change when the KiCad PCB design file changes.
Conclusion
A reliable KiCad PCB design depends on accurate footprints, a checked layout, and verified manufacturing files. Before ordering, make sure the Gerber preview matches the board you meant to build.
Frequently Asked Questions
Why can ERC pass while DRC finds errors
ERC checks schematic connections and electrical pin rules, while DRC checks the physical board. A trace clearance violation or an unrouted pad can appear only during layout.
Do I need paste layers for a bare PCB
Paste layers describe solder paste stencil openings. Include them when you need a stencil or assembly data; they are not required to fabricate a bare board.
How do I update KiCad PCB design after changing the schematic
Run Update PCB from Schematic again, refill zones, and rerun DRC. Then regenerate Gerber and drill files for the updated KiCad PCB design.