sounds like the outline/cutouts aren’t properly done (=no closed loops) or stuff is intersecting/on top of each other…
@devbisme, if I was you I would define the different upper outlines on another layer and let the user change the layer per segment/arc to edge.cuts or don’t offer that kind of option at all.
Maybe even define it not as a board template but as a footprint (with the cutouts on some other layer, so people would have to redraw them)?! - would make moving the board outline less prone to errors.
I made something like that for a 100x100 base where I put my sub-boards onto - z_Nutzen_100x100.kicad_mod (2.6 KB)
I managed to see the board including the pin header part in 3D view.
I edited some outline/cutouts.
Still there is one IO_ERROR message left: "Unable to find the next boundary segment with an endpoint of (111,76 mm, 77,1906 mm). Edit Edge. Cuts perimeter graphics, making them contigous polygons each. "…
Somehow KiCad does not accept my corrections at that coordinates, although all other editings worked fine.
Any guess?
At present I get a square shape, no round edges an no cut outs. If this ist not due to the io_error, is there a way to see the shape of RasPi HAT with its real outline in 3D view?
The top cut out contour has got 2 cut-out edges defined for different pin headers… decide for one and delelte the other option… you have to delete some of the upper edge.cut segments/arcs and make sure that the outline is closed after still…
As long as you get this error it means your edge.cuts layer does contain unclosed loops or segs/arcs on top of each other… KiCAD is not able to draw you a pcb outline from it.
I don’t know, but that seems like it would be even more prone to error than the operation of just deleting a few segments.
Again, that seems to make things harder for the average user for the slight advantage of moving the board outline. Plus, it makes the board outline uneditable within pcbnew.
Probably the best thing to do is what was recommended by kammutierspule: make two separate templates.
As you can see up there with Aquila it’s confusing and not straight forward for noobs
Hm… have you had a chance to look at the footprint I attached up there for a 100x100 board?
I find it very easy to follow the outline on the drawings layer with segments/arcs on the edge cut layer.
This then also can be pulled in an existing project where much of the layout has been done already (for conversions for example)… and messing up the mounting holes/cutouts is pretty hard that way also, as they’re fixed on the footprint and dimensional fit of the board edges can always be checked visually by just looking at the lines ( no need for measuring anything)
On the other hand, if somebody likes different outlines better (chamfered edges, some other cutout, etc…) he can easily incorporate them without loosing the reference outline for the ‘standard’ hat, nor does he need to do calcs or measurements while modifying.
I whipped up the RPi-hat footprint just for demonstrating the concept for the PTH version…z_RPi_Hat_PTH.kicad_mod (7.3 KB)
Would probably need to be centered on the connector though for the 3d model placement without offset, but that is details…
The end of the story is, you can treat the shields/capes/hats as you treat any other connector footprint (like a uSD card slot for example) and you won’t be able to mess up mounting holes if they’ve been done right first time.
Looked at it from this angle your customized symbols for the SMT and PTH 2x20 pinhead connector would make more sense too, as those would be really symbolizing footprints of those hats (SMT and PTH).
That’s a pro and you won’t get edge cuts out of the footprint in the first place anyway - have you actually tried to get edge cuts into a footprint file? Text-editor only… and even then, don’t load that footprint with the footprint editor as he will complain and move them to some other layer.
Already hard enough that the footprint editor doesn’t allow direct drawing on Dwgs.User and Cmts.User layers…
Admitted you can put edge cuts into a footprint (did a Nokia 5110 display backward and had the cutout in the footprint) but after a while I decided against it and just kept the cutout info on the dwgs layer and redid the cutout on the board the display got onto:
So the edge cuts wont be in the footprint, everybody would have to ‘redraw’ them according to the footprint outline/cutout lines. And as I said, that’s a plus.
people learn to do edge cuts/cut outs properly (show a man how to fish
people don’t lose the reference dimensions/forms by manipulating the edge cut drawings as they will always be there with the footprint (no need for those dimension sizers also)
if really needed the footprint on that board can be manipulated (pads changed, etc…) either in-situ just for that board or for all in the FPeditor
can be loaded into existing projects/boards to save on layout time
less clutter/easier to manage (just 1 symbol and 1 footprint per version), no need for a project template that you have to use from the beginning and with all that is contained
no chance of accidentally altering any of the sub-components positions without noticing (mount holes, pin header, edge cuts, etc…)
I’m new to KiCAD, kinda surprised to see no current, ready to go Raspberry Pi 2/3 template!
The template by @devbisme won’t open in the latest KiCAD (4.0.x). I managed to fix the errors mentioned by @Aquila (added the xess lib, removed the “special” lib since it is not supported or needed). KiCAD then ran a “rescue” process that showed the part with pins in a preview window. 3D no worky, as mentioned by others.
Searched the web, the only other pi template uncovered has disappeared off the web. I also don’t know how to import from Eagle (but read up about it, that it is error prone, etc).
Is nobody using KiCAD for raspberry pi? I can’t be the only one. My apologies if this warranted a new thread.
Try the files I put into the thread above which treat the RPi as a module (that you load into your project) rather than a new project itself.
Way more freedom.
If you got problems with the workflow I’m happy to help.
RPi A+/2B/3B
RPi Zero
If you ever work with the compute module you’ll find that the workflow doesn’t change, as for that one you really got to use a 200 pin SO-DIM connector which is a footprint and only asks for a special symbol with RPi-CM specific pin labeling.
KiCAD noob here, not seeing how to add/open a “_mod” file.
I created my own board using the 2x20 pin header, more work than I wanted, but a good lesson for me in working with KiCAD anyway. That said, I don’t trust my own work yet, so if I can open a board as mentioned here, that would be best. @bobc, that hackaday template is cool, but way overkill depending on the need.
In the case of footprints - a library is a folder with .kicad_mod files in it.
So, just save the .kicad_mod file convenient in a folder that ends in .pretty and then link it via the library manager to your actual project (or the global template by opening that, makeing the adjustments and saving it - next project started will have those libs from the start).
For symbols it’s a bit more complicated still, as the system there is older and documentation lacking (or I’m to dumb to find the correct passage)
I’ve just created a new template and submitted a pull request to add it to the default templates for the Raspberry Pi HAT. This includes the EEPROM and a few options for the power, including powering from the HAT to the Pi (and the required protection). It looks like the previously linked one is MIA. This current version does not have the cutouts for the Display and Camera ribbon connectors.