I think I have fixed it.
I’ve made a little pet project out of this to refresh my own memory about the details involved in making such a footprint. And I think I’ve succeeded quite well. To get closer to your exact layout is possible, but will just be esthetics and have no electrical use, but if you want you can refine it further.
I’ll attach the whole project, so you can take it from here, but first I’ll show you some of the important details to get it right (and which would be hard to find for a beginner).
I started with a schematic, just to have a vehicle to make the rest.
This takes just a few minutes and is quicker then trying to work around it without a schematic.
This is the result in the 3D viewer.
The copper in the GND zones is completely defined by the clearance rules of the tracks. If you want to have the GND zone look more like your screenshot, you can define additonal boundaries for the GND zone. (I also have not added stitching via’s).
It took a few iterations between the footprint editor and Pcbnew to refine further details. In the end I used 3 pads for the signal connection.
1). A narrow pad for the soldering of the pin.
2). A bigger rectangular pad for the “wide section”.
I have also used this pad as the “attachment point” for the track. To get this attachment point far enough away from the “GND Pads” I used an offset in the pad parameters. Select the pad, press e for edit and then I added a suitable number for the “shape offset”.
For this pad (and the trapezoidal pad) I also removed the F.Paste and F.Mask layer, so only the copper remains.
3). A trapezoidal pad to get (nearly) to the width of the specified 1.74mm track.
Getting the parameters for the trapezoidal pad right is a bit finicky. (In lesser amount also for the pad with the “Shape Offset”. In KiCad pads are painted around their attachment point, and coordinates of graphics is relative to that point. In your screenshot only the edges of the pads are defined, and you have to calculate the pad center yourself.
That was most of the footprint design. I’ll get back to other details later.
After I had a somewhat usable footprint, I continued with the PCB.
After the usual stuff ( Outline on Edge.Cuts, import Footprints, Footprint placement) it’s time to set up the Net Classes. I let the GND be default, and only added a single netclass for the “Input” and “Output” nets. (By the way, this is the reason I labeled them in the schematic. Labels in Eeschema make it easier to find specific nets and assign net classes). Pcbnew / File / Board Setup / Design Rules / Net Classes I only bothered to set up the track width of 1.74mm, and the clearance of 1.5mm.
And then assigned that net class to the “Input” and “Output” nets.
Now everything ws set up for routing the tracks with this wide track and big clearance. (At least I thought so). But I missed a detail. Normally pads of a footprint inherit the clearance from the net they are attached to. For this particular project the clearance of the net is however so big that it interferes with the GND pads of this footprint.
To fix that, I went back to the footprint editor and set some fixed values in the “Local Clearance and Settings” tab. The default of zero, is interpreted as inheritance, while a number overrides that with the number entered.
The final result in Pcbnew (Including shown pad clearances) now looks like:
And the PCB passes DRC without any errors.
There are some other details I have not mentioned yet. For example I made a project specific library to hold the footprint. Footprints like to reside in libraries in KiCad. If you have questions about library management, then first read:
https://forum.kicad.info/search?q=library%20management%20in%20KiCad%20Version%205%20category%3A19
I also drew the zone boundaries outside of the PCB and in a weird shape. This is the quickest way to draw a polygon, but I did not do it out of lazyness. Some people draw the zone boundaries over the Edge.Cuts graphics, or near there, or draw the boundaries over each other. Drawing the weird shape as a few advantages.
- If there is a problem with Edge.Cuts and the zone flood fills to that boundary it is instantly clear when generating Gerbers there is something wrong.
- This way each zone boundary is easy to select for if you want to modify it. (Oh, forgot to mension, I set “Pad Connections” for the Top GND zone to “Solid” instead of the default “Thermal Relief”.
- It’s quicker to draw, no fiddling with accurate coordinates.
Another small detail is that I drew the footprint 90 degrees rotated from your screenshot. According to KLC pin one must be in the upper left quadrant for each footprint, and by doing so, I stay closer to this convention.
Yet another detail is that I took the liberty to use small rounded corners for the pads. The consensus is that rounded corners in the solder stencil leads to better release of solder paste and therefore a more uniform amount of solder on the pads.
I think I’m finished now, so here is the zipped project:
2021-03-10T16:35_asdf_pietrodcs.zip (8.3 KB)