What script is used to generate LFCSP footprints and 3D?

I have noticed there is:

These names really look like they were autogenerated from a script - something like qfn.py in https://github.com/pointhi/kicad-footprint-generator/tree/master/scripts/Housings_DFN_QFN – but I looked in the corresponding qfn.yml, and there is no mention of LFCSP (case insensitive) in there (in fact, I grepped that entire repo for LFCSP, and absolutely nothing is found). I also grepped for LFCSP (case insensitive) in https://github.com/easyw/kicad-3d-models-in-freecad - can’t find anything there either.

So, would anyone know which scripts would be appropriate to generate LFCSP footprints and 3D model?

The names in the official lib look that way because we have rules how footprints need to be named. (See sections F2.* and F3.* of the kicad library convention) This is not evidence for them being script generated.

In fact most of the ic package footprints are hand made not scripted. (3d models for them are mostly scripted. The footprints could be scripted but until now nobody cared to write generator scripts for them.)

The generators by pointhi and easyw are the ones used for the footprints and 3d models in the official library. (If there are no scripts for these footprints in there, then the chance for them being scripted is very low.)

1 Like

Many thanks @Rene_Poschl :

Ah, I see - thanks for pointing this out; I was otherwise persuaded, the models cited in OP must have been done by a script.

How close are LFCSP footprints to QFN? From a glance, they look quite similar.

1 Like

Thanks, @bobc :

I’d guess, quite close - I found this: https://github.com/myriadrf/reference-development-kit/blob/master/myriadrf-8001/1v0/KiCAD/LMS8001_KiCAD_Library.mod - if you look at the LFCSP_20 module there, you’ll see they use a 3D_models/qfn20.wrl as a 3D model of that footprint…

In fact, I tried using https://github.com/myriadrf/component-libraries/blob/master/KiCad/Universal.pretty/LFCSP%2020.kicad_mod - and I added as 3D model https://github.com/KiCad/Housings_DFN_QFN.pretty/blob/master/QFN-20-1EP_4x4mm_Pitch0.5mm.kicad_mod - and they seem to align fine ?!

There is the QEDA project which uses a scripted approach for generating kicad symbols and footprints and also add them to your project. For the 3D part I don’t think it supports that (or at least not yet). I haven’t used it but from what I’ve read it seems pretty capable. And I like the simplicity of using yaml files or its scripted part.

There’s some more organized documentation here to give you an overview of what it supports - though it’s not quite finished yet.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.