KiCad PCB Simulation

Simulate KiCad PCBs with real firmware before you order boards.

Point CircuitTwin at your KiCad project folder. It reads the netlist, matches your MCU and sensors, wires the buses automatically, and runs the exact ELF binary you plan to flash on silicon.

Waiting two weeks for prototype PCBs just to discover a swapped I2C line or wrong SPI chip-select pin burns schedule. CircuitTwin ingests your .kicad_pcb, .kicad_sch, or .net files directly and builds a runnable digital twin in minutes.

Import a KiCad project from the CLI or web app

Run one command on your KiCad directory to inspect the parsed parts, net wiring, and power rails before storing anything. Add --generate to build twins for any sensor not yet in the shared catalog.

terminal
ct board import ./my-kicad-project --server --dry-run
ct board import ./my-kicad-project --server --project <PROJECT_ID> --generate
ct run --json --board ./my-kicad-project/board.json build/firmware.elf

What the importer maps automatically

  • MCU and ordering codes: Matches exact vendor part codes (for example STM32F767ZIT6 to STM32F767ZI) and sets up flash, SRAM, and pin maps.
  • Bus wiring: Connects UART, SPI, I2C, CAN, and GPIO nets between your microcontroller, sensors, transceivers, and flash ICs.
  • Live PCB net view: Open the imported board inside the browser Proving Ground PCB tab to watch active nets light up while your firmware executes.
  • Safe re-imports: Edit your schematic in KiCad and re-import. CircuitTwin prints a net diff and preserves manual overrides like console probes and external bus links.

Screen KiCad copper for EMI and route boards

Once your layout is saved with refilled zones, run ct board emi to flag parallel-track crosstalk, broken return paths under fast clocks, and decoupling impedance issues before sending Gerbers to fab.

terminal
ct board emi board.kicad_pcb --spec emi-spec.json --out emi.json
ct layout check board.kicad_pcb --rules rules.json --report check.json

Also supports Altium, Eagle, EasyEDA, ODB++, and IPC-2581

Teams working outside KiCad can import Eagle .sch/.brd files, EasyEDA JSON, Altium netlist or ODB++ exports, and IPC-2581 XML using the exact same workflow. Full format details live in Bring your board.

Importing KiCad PCBs and auto-wiring digital twins

Turn your real KiCad board layout into a runnable digital twin with automatic I2C, SPI, UART and GPIO net wiring.

Hand-writing YAML board files for a 60-component PCB invites pin-number typos that drift out of sync after every schematic revision.

CircuitTwin imports KiCad .kicad_pcb and schematic files directly (crates/ct-import/src/kicad), mapping copper nets to MCU pins and matching BOM part numbers against the twin catalog automatically.

What KiCad import extracts automatically

Design artifactExtracted dataUsed for
MCU footprint & netsPin-to-net table for I2C, SPI, UART, CAN, GPIOAuto-wiring peripheral attachments
BOM / component valuesMPN, reference designators, pull-up valuesMatching component twins and I2C pull-up checks
Board outline & 3D placementComponent XY coordinates and silkscreenProving Ground 3D board visualization
Shell - import KiCad project and run ELF
ct board import hardware/controller.kicad_pcb --out board.yaml
ct run --json --board board.yaml build/firmware.elf
tests/kicad-board.suite.yaml
version: 1
board: board.yaml
firmware: build/firmware.elf
tests:
  - name: custom-pcb-bringup-smoke
    timeout_ms: 3000
    expect:
      console_contains: "PCB_SELFTEST_OK"
      exit_code: 0

Troubleshooting

SymptomFix
BOM component not matched automaticallyAdd the exact manufacturer part number (e.g. BME280, W25Q128JV) in the KiCad symbol MPN field.
I2C device shows no attachment after importVerify SDA and SCL nets connect through series resistors directly to MCU I2C pins.

Which KiCad versions are supported by CircuitTwin import?

KiCad 6, 7 and 8 S-expression .kicad_pcb and .kicad_sch files are supported natively without exporting intermediate netlists.

Frequently asked questions

Which KiCad files can I upload to CircuitTwin?

Upload a .kicad_pcb file, a .kicad_sch schematic, a .net netlist, or your entire KiCad project folder (up to 64 MB, 4,096 parts, and 16,384 nets).

What happens if my KiCad board uses a sensor that is not in the catalog yet?

Upload the vendor datasheet PDF during import or pass --generate on the CLI. CircuitTwin builds a register-level twin for the missing part and wires it to the matching nets automatically.

Does my firmware need special simulation drivers or stubs?

No. Compile your normal STM32, ESP32, RP2040, or nRF52 binary (.elf, .hex, or .bin) and flash it directly onto the imported board twin.

Can I re-import after changing pins or nets in KiCad?

Yes. Re-importing shows a diff of changed nets and parts, updates the wiring in place, and keeps your custom consoles, CAN buses, and clock settings intact.