Repository navigation
Output Pictures
Every run that writes both boards also draws two SVG pictures of them into the same output folder, next to
Stator.kicad_pcb, Rotor.kicad_pcb, their project files and Parameters.txt:
-
<folder name>_Representative.svg: a picture of the board for people, with a title, a legend and the layers made easy to tell apart. -
<folder name>_Actual.svg: the copper of the board as it is, 1:1 in mm, with no text and nothing widened.
Both are drawn by Generators/resources/RepresentativeSVGMaker.py and Generators/resources/ActualSVGMaker.py. They
read only the two .kicad_pcb files the run wrote, with the repository's KiCad reader
(Generators/resources/KiCadReader.py), need nothing but Python 3, and open in any browser. In both, the stator is on
the left and the rotor on the right, and the layers have the same colours: Top red, Inner 1 green, Inner 2 yellow,
Bottom blue.
| Representative | Actual | |
|---|---|---|
| Made for | Looking at a design, sharing it, documentation | Using the copper elsewhere: Inkscape, overlays, mechanical drawings |
| Size | Opens 2240 px wide and scales without loss | 1:1: width and height in mm, with 1 mm around the boards |
| Text | A title (loops, TX turns per layer, board radii, and the air gap when given), the names Stator and Rotor, a legend, and a line saying which layers carry the RX and the TX | None |
| Trace widths | Inner 2 and Bottom are drawn 1.9 times wider when Top has copper, so copper lying under Top shows as an edge on both sides of the Top trace | Every trace at its true width with round ends, as KiCad draws a track |
| Vias | Solid dots of the via size | A copper ring with the drill as a hole, on every copper layer the via passes through |
| Rotor copper | Top copper filled; the copper of each layer under Top as a dashed outline in its layer colour (Inner 1 green, Inner 2 amber, Bottom violet), heavier the deeper it lies | Filled, layer by layer |
| Board | The stator ring filled light green; both board edges drawn | Only the Edge.Cuts circles, at their own line width; no fill and no background |
| Layers in the file | One flat drawing | One group per board (Stator, Rotor), holding one Inkscape layer per copper layer with copper (F_Cu, Inner_1, Inner_2, B_Cu) and Edge_Cuts, stacked as on the board |
| Left out | Silkscreen and solder mask | Silkscreen, solder mask and anything else that is not copper or the board edge |
In short: open the Representative picture to see what was built. Use the Actual picture when you need the copper itself, at its true size. Inkscape shows and hides its layers one by one, so you can, for example, look at Inner 2 alone.
The pictures of the default Single Coil Set Generator board (Coil_15_27_1_1_3_Single_SteppedDiagonal: 1 loop, TX 3
turns per layer, board radius 15 to 27 mm), as the generator writes them.

Output Pictures 1. Coil_15_27_1_1_3_Single_SteppedDiagonal_Representative.svg. Bottom is drawn wider than it is, so
it stays visible where it lies under Top; the line under the legend says so.

Output Pictures 2. Coil_15_27_1_1_3_Single_SteppedDiagonal_Actual.svg of the same board, shown on white (the file
has no background). The copper is at its true width, and the vias are rings with their drill holes.

Output Pictures 3. The same 10 × 10 mm at the upper left of the stator, cut from both files. Representative: the Bottom traces wider than they are, the vias as dots, the board filled. Actual: every trace at its width, every via a copper ring.
The pictures of the default Dual Coil Set Generator board (DualCoil_7.25_26.875_1x16_4x4: 1 and 16 loops, TX 4 + 4
turns per layer, board radius 7.25 to 26.875 mm), as the generator writes them.

Output Pictures 4. DualCoil_7.25_26.875_1x16_4x4_Representative.svg. The TX turns on Inner 2 lie exactly under those
on Top, so Inner 2 is drawn wider and shows as a yellow edge along each Top turn of both TX rings.

Output Pictures 5. DualCoil_7.25_26.875_1x16_4x4_Actual.svg of the same board, shown on white. At its true width,
Inner 2 is hidden under Top and shows only where the TX ends leave the rings.

Output Pictures 6. The same 10 × 10 mm at the outer TX terminal (0°, the right of the stator), cut from both files. Representative: Inner 2 along every Top TX turn, the vias as dots. Actual: Inner 2 only where it leaves Top, the vias as rings.
- At the end of every Single and Dual run that writes both boards, after
Parameters.txtand the silkscreen suggestion. A run with--statoror--rotorwrites one board and makes no pictures. - A picture that cannot be made (a maker missing from
Generators/resources/, or an error while drawing) is printed as a yellow warning,WARNING picture not made by <file>: <reason>; the boards are not affected, and counted in the run's warnings. The boards andParameters.txtare already written, and the run still ends withSUCCESS, in eitherGENERATOR_MODE. See Checks, Errors And Warnings. - The Web Tool does not make them: its zip holds the boards,
Parameters.txtand the parameter files. Unzip it and run the makers on the run's folder to get them.
Both makers run on any folder that holds Stator.kicad_pcb and Rotor.kicad_pcb, or on the two files given stator
first. From the repository folder:
python Generators/resources/RepresentativeSVGMaker.py "Generators/Single Coil Set Generator/Output/<folder>"
python Generators/resources/RepresentativeSVGMaker.py "Generators/Single Coil Set Generator/Output/<folder>" --air-gap 1 # Air gap in the title
python Generators/resources/RepresentativeSVGMaker.py "Generators/Single Coil Set Generator/Output/<folder>" --title "My title" --out picture.svg
python Generators/resources/RepresentativeSVGMaker.py Stator.kicad_pcb Rotor.kicad_pcb
python Generators/resources/ActualSVGMaker.py "Generators/Dual Coil Set Generator/Output/<folder>"
python Generators/resources/ActualSVGMaker.py "Generators/Dual Coil Set Generator/Output/<folder>" --out board.svgWithout --out, the picture is written into the folder of the stator file under the names above, replacing a
picture of the same name. The boards may also have been opened and saved again in KiCad 7 to 10: the reader does not
depend on the order of the fields or on how KiCad spreads them over lines, so the pictures show the same copper. Only
what the generators write is drawn (tracks, vias, copper polygons and the Edge.Cuts circles); arcs, zones and
footprints added in KiCad are left out, and the Actual maker prints a note when a board has them.
The look of the Representative picture is set at the top of RepresentativeSVGMaker.py:
the colours (COLOUR, ROTOR_COPPER), and UNDER_TOP_WIDTH (1.9; set it to 1.0 to draw every trace at its true
width).
| Previous | Next |
|---|---|
| Project Output Organization | KiCad Compatibility |
Code: PolyForm Noncommercial 1.0.0 · Web Tool: PolyForm Strict 1.0.0 · Docs and images: CC BY-NC-SA 4.0 · Output of the tool and commercial use: 0.2 % commercial terms or written permission (License) · Repository
Start Here
Working Principle / Mathematics - Generator
Design Guide - Single Coil Set Generator
Design Guide - Dual Coil Set Generator
- Stator Features
- Rotor Features
- Board Features
- Dual Layout
- Silkscreen
- Quick Guide To Parameters Selections
Reference
- Parameter Reference Single Coil Set Generator
- Parameter Reference Dual Coil Set Generator
- Checks, Errors And Warnings
- Electrical Estimate
- Suggestive Analysis And Optimization
- Project Output Organization
- Output Pictures
- KiCad Compatibility
- Regression Testing
Research And Community
