Skip to content

Inductor_SMD: Allow to define dimensions in YAML, clean-up and refactor, add two Abracon inductors

The main aim of this MR is to add the ability to define the size parameters in YAML, as well as in CSV. This is convenient when a series has only one form factor, otherwise it's extra work and confusing to make a CSV with a single row.

To do this, the gen_inductor.py script has a refactor to read in data in a type-safe(r) way, using the pattern established in the Package_{Gullwing,BGA,NoLead} generators: read the data into a class that converts the data, including making the choice between CSV and YAML sources, and stores it in a more encapsulated way. Then feed that into the generator.

It also has an update to use argparse for the command line arguments, which makes it easier to accept any number of YAML files.

This makes it easier to verify that nothing unexpected changes:

./gen_inductor.py *.yaml -o ~/src/kicad-footprints

The only changes are format updates, and the addition of the not-yet-merged WE-MAPI parts. You can use the first commit in kicad-footprints!3480 (merged) (which regenerates all the inductors in the new format, before the changes in this MR) as a baseline to exclude format changes.


Then, add two definitions using in-YAML size definitions:

2024-02-03_15-08_1.png aspiaig-f4020.png

Mfr 3D fit-up:

image.png image.png

2024-02-03_15-08.png

aspi-0425-ds.png

image.png image.png


Generation output MR: kicad-footprints!3480 (merged)

Edited by John Beard

Merge request reports