← Documentation index

PPRENDER

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
WIRE COLOURS
EXIT STATUS
EXAMPLES
ENVIRONMENT
DIAGRAM FALLBACK
SEE ALSO
AUTHOR
COPYRIGHT

NAME

pprender - render a breadboard wiring diagram from a real KiCad schematic

SYNOPSIS

pprender [-o FILE] [--kicad-cli CMD] [--config FILE] [--use-computed] [--require-config] [--debug] [--quiet] SCHEMATIC
pprender
{--help|--version}

DESCRIPTION

pprender reads a real KiCad schematic (SCHEMATIC, a .kicad_sch file), runs it through auto_layout.py’s own netlist-to-placement engine (the same engine kicad_layout.py’s own KiCad-side schematic generator uses), and draws the result as an SVG breadboard wiring diagram using breadboard_lib.py’s own drawing primitives.

Before drawing anything, pprender runs two real checks against the computed placement: a connectivity check (every net’s own real members must form one genuinely connected path in the layout, not just share a component) and a board-bounds check (every component’s own assigned row range must fit within ROWS_PER_HALF, the real number of holes a breadboard half actually has). If either check finds a real problem, rendering is skipped entirely and the failures are reported on standard output — rendering an invalid placement risks an unhandled crash rather than a clean report (see ResearchJournal.org ’s own 2026-08-14 entry).

Hierarchical schematics (a root sheet referencing one or more real sub-sheet files) are followed automatically, by kicad-cli(1) itself, during netlist export — provided every real sheet file is still physically present alongside the root. A missing sibling sheet file is silently dropped from the exported netlist with no warning (a real, confirmed kicad-cli(1) behavior, not a bug in this program); see ResearchJournal.org ’s own 2026-08-18 TestSchemes entry for the full account.

The real, physical board a circuit is laid out on is resolved in order: an explicit --config file; failing that, $PACKPAY_BREADBOARD_CONFIG ; failing that, a breadboard.conf next to SCHEMATIC; failing that, ./breadboard.conf. If none of these resolves to a real file, a small, single-sector default is used instead (see breadboard_config(5)). Whichever config is resolved (or the default, if none is) is checked directly against the real circuit before rendering: if it is not already adequate, pprender escalates automatically to a computed configuration: the classic board first (1 sector, 5 rows per half, 63 columns), then 2 sectors, then further boards added one at a time (each tried with 1 sector, then 2), and more than 5 rows per half only as the last resort; a configuration the user gives is the base unit and is always tried first — see LibraryReference.org ’s own auto_layout.py section for compute_optimal_config() itself). When a real config file WAS resolved but proved inadequate, the computed alternative is proposed rather than silently substituted, unless --use-computed was given.

OPTIONS

-h, --help

Show a usage summary and exit.

-o FILE, --output FILE

Write the rendered SVG to FILE instead of the default, auto_layout_render.svg.

--kicad-cli CMD

The kicad-cli(1) command to invoke for netlist export. Defaults to $KICAD_CLI if that environment variable is set, otherwise plain kicad-cli on $PATH — the same convention this project’s own Makefile already uses, so a single KICAD_CLI= setting covers both make check and this program.

--config

A real breadboard_config(5) config file describing the target board or assembly — highest priority, overriding the default lookup described above.

--use-computed

Use the computed configuration (escalating sector count until the circuit genuinely fits) even when a real config file was resolved and would otherwise have been proposed as an alternative instead.

--require-config

Error out rather than silently falling back to a computed configuration when neither --config nor the default lookup resolves to a real file.

--max-components N

Override this project’s own real, default component-count limit ( breadboard_config.py’s own DEFAULT_MAX_COMPONENTS constant, currently 150) — see that constant’s own docstring for the full, real rationale. Raising it above the real, existing default prints a real, direct warning to standard error, but still proceeds.

--version

Show this project’s own current version (read from VERSION) and exit.

--debug

In addition to the two checks’ own output, print every placed passive’s own real column, row, and placement reason (which net and which already-placed member it attached to, and whether it needed relocating for room — see FutureResearch.org ’s own "row-assignment" item), plus the list of any components that ended up genuinely unplaced.

--quiet

Suppress the two checks’ own explanatory header lines (what each check verifies and why), and the "here’s a configuration that might suit this circuit better" proposal described above. Any real failure found, and the final render result, are still printed — this silences routine narration only, never a real problem.

WIRE COLOURS

The jumpers are drawn in the colour that the build instructions name for them (see ppbuild_instructions(1)): ground black, the supply on the rail red, a second supply orange, and every other net a colour of its own. A white wire is drawn with a grey outline so that it shows on the board.

EXIT STATUS

0

The schematic was loaded, both checks passed, and the SVG was written successfully.

1

The schematic could not be loaded (missing file, or a kicad-cli(1) failure), the connectivity or board-bounds check found a real problem (rendering skipped), rendering itself failed, or the circuit’s own real component count exceeds whichever --max-components limit is in effect (see above), or the circuit cannot be drawn on the board at all (no free column within reach for a far lead, and the diagram layout cannot help either): a message says so and suggests a larger board.

2

Invalid command-line usage (e.g. no SCHEMATIC given).

EXAMPLES

Render a schematic to the default output file:

pprender power.kicad_sch

Render against a specific, real board or assembly config, rather than whatever the default lookup would resolve to:

pprender --config breadboard1.conf power.kicad_sch

Render to a specific path, with full placement diagnostics, using a downloaded KiCad AppImage rather than a system install:

pprender --debug -o power_breadboard.svg --kicad-cli \
"/opt/KiCad.AppImage kicad-cli" power.kicad_sch

ENVIRONMENT

PACKPAY_PHYSICAL_ANCHORS

On unless set to 0: a dual-row DIP is drawn where its footprint puts its pins, two in each column (see ppbuild_instructions(1)). Set to 0 for the diagram layout.

PACKPAY_FAR_LEAD_SIDES

On unless set to 0: a far lead is drawn, nearest first on either side, in a column of its half that already holds its own net (see ppbuild_instructions(1)).

PACKPAY_ANCHOR_REFINE

On unless set to 0: the order of the anchors is refined by a local search on the distance between anchors that share a net (see ppbuild_instructions(1)). Set to 0 for the earlier order.

PACKPAY_MIN_ANCHOR_SPACING

The smallest number of columns between two anchors (default 2). On a board too narrow for the default spacing of 6, a tighter spacing is tried, down to this value, before another sector or board is added; a board that fits at the default is untouched. 6 or more switches this off.

PACKPAY_SHRINK_GUARD

On unless set to 0: a tighter spacing is accepted only if it is drawn without refusing it and with no hole collision (a lead on a lead or a wire). Label overlaps do not count.

PACKPAY_SAME_SECTOR_ROOM

On unless set to 0: the column reserved for the far lead of a passive that another one attaches to is looked for in the sector of its near lead only (in another sector it has the same X and the lead is drawn in the near lead’s own column). Set to 0 for the layout of 0.72.118 and before.

PACKPAY_BEND_RUN_CLEAR

On unless set to 0: a lead that stands on the bend wire of a passive with a reserved far column is moved clear by a row repair at the end of the layout. Set to 0 for the layout of 0.72.118 and before.

PACKPAY_FREE_RUN_CLEAR

On unless set to 0: a layout that fits the board and has a passive whose far column is leg()’s choice is drawn once on a copy, and when that drawing has a hole collision the passives involved are moved one or two rows, down or up, until the drawing has fewer (up to 24 moves). Before 0.72.126 this was done only for a passive with no column whose bend wire is clear of the leads standing. Set to 0 for the layout of 0.72.122 and before.

PACKPAY_REFUSAL_MOVE

On unless set to 0: a layout that the drawing refuses because a far lead has no free column ("no free column for the far leg of the part whose near leg is in column N") is repaired by moving a passive that stands in the way of that column to another column nearby, as many as it takes (up to 6). A dense board that was refused is drawn. Set to 0 for the layout of 0.72.131 and before.

PACKPAY_FIND_ROOM_BOUND

On unless set to 0: the search for a column with room ends where its answer cannot change (the width of the sector, and at once for a part taller than the rows of the sector), instead of scanning the whole stride of 100000 columns of every sector. The result is the same and the run is much shorter (pic_programmer: about 15 minutes to 1.4 s). Set to 0 for the search of 0.72.138 and before.

PACKPAY_LABEL_PLANE_SEARCH

On unless set to 0: a part’s label that has no clear box on the four lines through its anchor (every one is crossed by a wire or a part) looks over the whole plane around the anchor, out to 200 pixels, and takes the nearest clear box. A label that has a clear box on those lines is not moved. Set to 0 for the labels of 0.72.123 and before.

PACKPAY_PHYSICAL_HEADERS

On unless set to 0: a single-row pin header is drawn as a thin body around one row of holes, with a square at pin 1 (see ppbuild_instructions(1)). Set to 0 for the diagram layout.

DIAGRAM FALLBACK

A part that stands where its footprint puts its pins (a header, a DIP) occupies the strips of its pins, rail pins included, and a lead of another net is never put in one. A DENSE circuit can leave a far leg no short-free column; then the command says so on the error output, "the physical layout of this circuit cannot be made without shorting two nets", and runs again with PACKPAY_PHYSICAL_ANCHORS=0 set, which lays the circuit out as a diagram (one column per pin). The same happens if two nets are found sharing a strip after the drawing. A circuit with no such part is not affected, and nothing changes when the variable is already 0.

SEE ALSO

ppnetlist(1), ppbreadboard_config(1), breadboard_config(5), kicad-cli(1), README , FutureResearch.org and ResearchJournal.org in packpay’s own documentation set (see Index.org).

AUTHOR

Péter Felecan <pfelecan@gmail.com>, with development assistance from Claude (Anthropic).

COPYRIGHT

Copyright © 2026 Péter Felecan. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.