Coupons
Help
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:

CoilForge: A KiCad Plugin for Generating PCB Coils and Planar Motor Windings

Author : Alex Chen | PCB Design & High-Speed Engineering Specialist

November 17, 2026


CoilForge is an open-source KiCad PCB coil and planar motor winding generator. It supports both the traditional pcbnew ActionPlugin API and the KiCad IPC plugin entry point.

Designing a planar coil on a PCB involves much more than drawing a spiral trace. The engineer must handle trace width, spacing, turn count, outer diameter, vias, resistance, inductance, and connections between multiple copper layers. When the coil is intended for a PCB motor, the design must also account for slot count, phase count, pole count, bus voltage, rotational speed, torque, and phase current.

Manual drawing is time-consuming, and changing one parameter often requires extensive recalculation and rerouting. CoilForge was developed to address this problem. The open-source KiCad plugin can automatically generate planar coils and PCB motor windings from user-defined parameters and write the resulting geometry directly into the KiCad PCB Editor.

The project is available through its GitHub repository.

Several examples of coils generated by the plugin are shown below.

PCB planar coil generated by CoilForge Generated multilayer PCB coil Planar spiral coil layout in KiCad PCB coil geometry generated by the KiCad plugin

 

What Types of Coils Can CoilForge Generate?

CoilForge supports a broad range of coil structures, including:

  • Round planar spiral coils
  • Elliptical, racetrack, and trapezoidal coils
  • Multilayer series-connected coils
  • Radial motor coil arrays
  • Linear motor coil arrays
  • Annular-sector PCB motor stators

The plugin supports between one and 12 copper layers. It can automatically generate layer-transition vias, interlayer connections, and coil terminals. These capabilities are applicable to wireless power transfer, inductive heating, sensor coils, PCB motors, electromagnetic actuators, and other planar electromagnetic structures.

 

What Engineering Problems Does It Solve?

1. Eliminating Manual Coil Layout

A conventional workflow often relies on helper scripts, coordinate calculations, or repeated copy-and-paste operations. If the outer diameter, number of turns, or trace spacing changes, the coil usually has to be regenerated or redrawn.

With CoilForge, the engineer specifies the coil shape, dimensions, trace width, spacing, layer count, and via parameters. The plugin then creates the corresponding copper geometry automatically. The output consists of editable KiCad tracks, arcs, and vias rather than a static image or an uneditable mechanical drawing.

2. Automating Multilayer Connections

One of the most difficult aspects of a multilayer coil is determining the winding direction and transition location on every layer. The connection strategy must preserve the intended series path while avoiding unnecessary crossings and geometric conflicts.

CoilForge automatically alternates the winding direction between layers and places through-hole vias at suitable locations to connect the copper layers in series. Engineers do not need to locate every layer endpoint manually or draw complex cross-layer connections one by one. The generated objects can also be placed in a single KiCad group, making subsequent movement, duplication, and deletion more convenient.

3. Including the Complete Physical Footprint

The space occupied by a practical PCB coil is not determined only by the spiral copper trace. Layer-transition vias, via clearances, connecting traces, and terminals also consume board area.

When CoilForge matches a coil to a target size, it includes these structures in the calculation. This produces a more realistic estimate of the final PCB footprint than estimating the outer diameter from the trace centerline alone. It also reduces the chance of discovering only after generation that a via extends beyond the available region or that the connection terminals cannot be placed within the intended outline.

4. Selecting Parameters Based on Electrical Targets

In addition to manually specifying the number of turns and trace width, CoilForge can search for candidate designs based on a target resistance, inductance, or operating current.

The plugin evaluates different turn counts and estimates several electrical and physical parameters, including:

  • Total copper trace length
  • DC resistance
  • Coil inductance
  • Current-carrying capability of the copper trace
  • Potential voltage drop and copper loss

These estimates do not replace professional electromagnetic or thermal simulation. They are particularly useful during the early design stage, when engineers need to screen possible configurations quickly. For example, with the outer diameter held constant, the designer can compare the effects of increasing the number of turns with those of increasing the trace width.

 

PCB Motor Windings Are a Distinctive Feature

CoilForge is not limited to generating individual coils. It can also create coil arrays for rotary and linear motors.

For an annular PCB motor stator, the engineer can specify the inner diameter, outer diameter, slot count, phase count, pole count, trace width, spacing, and layer count. The plugin calculates how many turns can fit within each slot and generates evenly distributed sector-shaped coils.

Adjacent slots can automatically use alternating winding directions. The plugin also checks the geometric spacing between coils, helping prevent copper interference that might otherwise occur when a repeated coil is simply copied and rotated.

In target-solving mode, the user can enter the bus voltage, target rotational speed, torque, and maximum phase current. Based on these conditions, the plugin estimates the back EMF, phase resistance, current requirement, and copper loss. It can then determine whether the proposed winding exceeds the voltage or current constraints.

If a design cannot satisfy the specified conditions, the plugin identifies the violated constraints instead of generating a winding that appears geometrically correct but cannot operate as intended.

 

Preview and PCB Output Use the Same Geometry Logic

Parameterized design tools can suffer from a common problem: the preview appears correct, but the geometry generated on the PCB does not exactly match what was shown in the preview window.

CoilForge separates the geometry-generation logic into a shared module. The preview and the KiCad output use the same coil definition, which helps keep the displayed structure consistent with the final copper geometry. For large coils with many turns, the preview may use a lower sampling density to maintain interface responsiveness. The final PCB output, however, is still generated according to the configured precision.

 

Important Considerations for Practical Use

CoilForge can assist with parameter estimation and geometric generation, but it is not an electromagnetic-field or thermal simulation tool. The inductance, current-carrying capability, motor back EMF, and copper-loss results provided by the plugin are primarily intended for preliminary design evaluation.

A production design should still be verified through the following steps:

  • Run the KiCad Design Rules Checker.
  • Confirm the PCB manufacturer's minimum trace width, spacing, and via capabilities.
  • Perform magnetic-field and thermal simulations.
  • Consider skin effect, proximity effect, and eddy-current loss at high frequency.
  • Use prototype testing to verify inductance, temperature rise, efficiency, and motor performance.

High-current, high-frequency, and high-speed motor applications require particular care. Theoretical estimates from a layout-generation plugin should not be treated as a substitute for electromagnetic analysis and hardware validation.

 

Conclusion

From an engineering perspective, CoilForge's main value is not simply that it can draw an attractive coil automatically. Its more important function is to consolidate calculations, scripting, and manual routing into a parameterized workflow. The designer can first define the physical dimensions and manufacturing constraints, then search for feasible solutions based on resistance, inductance, current, or motor operating conditions, and finally obtain editable copper geometry directly in KiCad.

The plugin does not replace professional simulation or prototype testing, but it can significantly reduce the initial effort required to design a PCB coil. It also makes parameter changes and design iteration more efficient. For engineers developing wireless power systems, induction-heating equipment, sensor coils, PCB motors, or other planar electromagnetic structures, CoilForge provides a practical way to accelerate the early layout and feasibility stages.

Alex Chen | PCB Design & High-Speed Engineering Specialist Alex Chen | PCB Design & High-Speed Engineering Specialist

Alex Chen is a senior PCB design engineer with extensive experience in high-speed and high-density circuit design. He specializes in signal integrity, impedance control, and multilayer PCB layout optimization. At AIVON, he reviews and refines content related to PCB design principles, EDA tools, and advanced layout techniques. His expertise helps engineers avoid common design pitfalls and improve performance, reliability, and manufacturability in complex PCB projects.

Related Tags


2026 AIVON.COM All Rights Reserved
Intellectual Property Rights | Terms of Service | Privacy Policy | Refund Policy