![]() I will most likely be writing some python in GH to help with this, but right now I am stuck on how to parse the Kicad schematic Library files into Grasshopper on a part by part basis (as the symbols are all part of 1 larger library file). The symbol libraries and pcb footprints are text files in the S-Expression format and tokens are divided up with parentheses ( ) and whitespace “spaces”). This I can do with what I know.īut ultimately I would love to generalize this system such that any Kicad component (both sch symbol AND pcb footprint) can be imported into grasshopper and arrayed based on generative and parametric geometry created within.īack to the idea that Kicad stores everything as text files: The short goal is to finish my grasshopper patch such that it generates both a schematic AND a PCB layout file for Kicad. However, working with only a PCB layout seems a bit risky, and what if later I want a very similar board with just a few easy tweaks. ![]() This is OK for me as I almost only use this type of LED in my work and if I have to change it for a different one, the amount of work to do so is FAR LESS than manually building LED arrays in Kicad. However, it only works with a specific LED part. Thus far I have a grasshopper patch that totally works for making a layout in kicad PCBNEW, with nets and traces. I have a tiny bit of ability in python, and maybe intermediate experience with grasshopper/rhino 6. SO! After doing one or two of these I decided that the whole process needs to be automated. Turns out it is about 4000 mouse movements and/or keystrokes. That is 160 LEDs, each with a specific location, rotation, and 6 pads to connect via traces to other LEDs. Consider a polar array of 4 rings of 40 LEDs. I have recurring need to generate regular and odd shaped arrays of LEDs on circuit boards. The great thing about Kicad is that all of its files end up in text format and are mostly readable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |