sparkfun / SparkFun-KiCad-Libraries

SparkFun's KiCad Libraries
553 stars 110 forks source link

Add courtyards around 0.1" PTH header footprints #110

Closed sfe-SparkFro closed 3 months ago

sfe-SparkFro commented 3 months ago

First off, all footprints should really have a courtyard to ensure DRC catches any accidentally overlapping parts.

Second, if a user wants to solder headers onto a board, there needs to be clearance for the headers, which are 0.1" wide. It's easy to forget this when designing a tight layout, such as the instance below (the outer 2x 0402 footprints would interfere with a header)

image

Just need to add courtyard rectangles 0.1" wide like so:

image

nseidle commented 3 months ago

How about a much closer courtyard that would avoid collision with the standoff but still prevent components?

image

image

Also, I've added screws and nuts for 4-40 and M3.

image

image image

SFE-Brudnerd commented 3 months ago

My only argument against a tighter courtyard like what Nate suggests is if a user desires to populate with 0.1" headers then the black plastic could interfere.

nseidle commented 3 months ago

Good point. We could add the outline to layer User1:

image

It will pass collision errors but make the designer aware of the possible issue.

Good enough?

SFE-Brudnerd commented 3 months ago

WFM!

PaulZC commented 3 months ago

My vote would be F.Fab. I've been using User.1 for milling. I submitted a PR recently to move all User1 text to F.Fab. I'd prefer not to start using it again for things like this...

PaulZC commented 3 months ago

https://github.com/sparkfun/SparkFun-KiCad-Libraries/pull/106#issuecomment-2254102679

nseidle commented 3 months ago

Talking this over with @sfe-SparkFro, we elected to keep the rectangular courtyard so that it does throw an error, and then the designer can exclude the error if they're ok with the collision.

image

Rectangular courtyards will land in a minute on main.