-
Notifications
You must be signed in to change notification settings - Fork 711
extend selection of DIN41612 connectors #1076
Conversation
This selection was generated by an updated script using the kicad-footprint-generator. This current selection was built by checking the catalogs of ept, ERNI and Harting and collect the most standard series. Added in this commit were: B (was already present), C, D, E, F, Q, R Still missing standard series are: - H11, H15 (vertical and horizontal are different from each other and require an updated script, only H11 horizontal is present) - M (has a lot of variations which needs to be tracked). There are also many manufacturer specific variants which might follow (some are very easy to add to the script, others not so much). The new script was made to copy the style of the existing scripts, just adding the increased flexiblity to generate all series. Changes to the generated footprints compared to the existing B series are: - a1 pin is a roundrect instead of rect - vertical connectors got their silk ref moved to the side. They are often used on backplanes, so there might be no space on top. - courtyard of the horizontal connector is simpler on the connector side. This space if off the PCB anyways and there needs to be room to attach the connector. - names are now always using two digit numbers for rows and pins. - Q and R series vertical have slightly more drawings, trying to symbolise their inverted connector nature (vertical is male, while usually they are female). There are two series where the names contain the rows which are occupied. These are due to connectors only ept sells (E and F series 2x16). The standard is to leave the center row empty, ept also sells a variant where the top row is empty. To distinguish those only the non-standard has the rows added to the name. As a general remark to these connectors. The naming of the pins and rows is very strict, based on the location relative to the mounting position. At least in vertical this always holds true, horizontal got some flexibility on the spacing. The origin is always located at the a1 pin, even if it is not present. This ensures that connectors can be switched without having to change everything. This was already the case for the existing connectors.
This is fantastic! Adding more of these connectors was on my long-term list of tasks, but now there's no need with your quality footprints!
Checking the script is better/easier than reviewing each individual footprint. Let me spend some more time looking at the script and footprints, and in the interim it's fine to go ahead and submit the script PR. |
Alright. Thanks for the update. If you would check into the horizontal connectors requiring a board cut and provide as much silk on vertical connectors as possible that's all my questions for now. Please make those changes and push another set of footprints and I'll review them in depth. Thanks again! |
@lorem-ipsum |
I am quite busy right now due to the end of year season, but I hope to find some time around christmas to work on this again. |
I extended the silk marker for the vertical connectors to include the full outline where possible, but I personally preferred the previous solution. As a general note: it is not possible to place the connectors in the wrong orientation (without damaging the connector) as the mounting holes are placed asymmetrically. |
this is the output of scripts/Connector/Connector_IEC_DIN/generate_din41612.py in kicad-footprint-generator at revision e610537351f77d457bc2f90f021258384de20fc8
@evanshultz could you take another look? I tried to integrate your feedback. |
A few notes after taking a look at the footprints in the latest commit:
|
@lorem-ipsum |
BTW, does somebody work on DIN 41617 as well? |
@agalakhov |
Sorry for the long silence. About your points: I increased the clearance of the silk screen to .2. Regarding the naming: I just realised that I broke the pin naming somewhere while integrating the changes. I've uploaded a new version, it follows the pattern @chschlue has posted, which was also how it was in the beginning. I hope this fixes most of the confusion, sorry for that. The only open question remaining from my side is which pin to mark on the silk and fab layer. Always the a0 pin, even if it is not existing (thats how it was in the beginning, also used by the few existing footprints), or the lowest numbered existing pin (which is the current status). |
@lorem-ipsum The silk-to-pin clearance is just less than 0.2mm on some footprints, like Also here on I checked pin numbers and row names against the above images and have the following questions:
Type F also has a few things I'm not sure about:
Regarding the pin marking, I agree with Rene's comment at #1076 (comment) that the lowest-numbered pin that is present should be marked. So And another one for you, @chschlue : does the spec say anything about how to name letters if they aren't fully stuffed? For example, for types with three letters is removing the middle letter and only using the 'lowest' letter the only possible variants? Can only the two 'biggest' letters be used? For four-letter types are these any rules or suggestions for de-stuffing? |
I increased the clearance further, I guess the issue was that I have .2 clearance to the point defining the line. This neglects the extend of the silk line which can still reach into the clearance. I increased it by this size, hopefully it is good now. How can I get the view drawing this .2 line around the pad? I couldn't find any setting for it in the footprint editor. The connectors I added were based on the connectors I found in the catalogues of the manufacturers listed in the first post. I don't know which ones of those are standard and if there are more which are standard (but if they don't produce them you will have a hard time buying them). Harting lists parts as extension to the norm. They follow the same structure, but I read it that they are not defined in the official standard.
About the row numbering: It is supposed to be a grid with 2.54mm spacing. Columns are numbered from 1 to 32 and row starting at "a" with increasing digits as they are needed. Some connectors skip rows to get larger clearance between the rows (e.g. the C series). A few add a row in front of the "a" row, this one is then labelled "z" (so -1 in the alphabet). The vertical connectors follow this grid exactly as the pins go straight down into the PCB. For horizontal ones it is not as fixed as it only has to match on the mating surface. So for those the row spacing can change as the pins are bend down to the PCB at arbitrary positions, while the columns spacing has to stay the same. The mounting holes are fixed for both cases. For the horizontal one it is a fixed offset from the 1 column and the PCB edge, for the vertical a fixed offset from the a1 pin.
|
I set the Pad Clearance in the Footprint Settings dialog to get the ring around the pad of a desired oversize: I don't see any silk change on Regarding letters, thanks for the information. As one example, the screenshot from @chschlue above shows Type D has letters |
D (and its inverted counterpart S) has contacts in rows
The drawing I posted earlier is a little misleading by itself.
See my last post.
Apart from that I suggest calling this one
Don't forget that vertical contacts directly relate to footprint holes while the horizontal connectors allow for variations saving PCB space.
Many of the connectors ERNI and Harting manufacture are simply out of spec (there is no such thing as an IEC 60603 single row B-type, for example, nor any half- and third-length connectors at all). Edit: Some of the stuff I wrote up here had already been answered by @lorem-ipsum. Never mind. |
Well... I'll go with what @chschlue says on the parts and naming. Apart from the one naming change above does everything else look OK to both of you? Apart from that, I think only the thing that really needs to be done is moving the silk pin 1 marker. If the silk-to-pad clearance can grow a bit to meet 0.2mm everywhere that's a bonus. |
The pin 1 markers look great. Thank you! Silk-to-pad clearance is also good. It's close but great on Can you please address the footprint naming suggestion from @chschlue at #1076 (comment)?
@chschlue Lastly, because I apparently want to cause you problems and never merge this, it appears the horizontal connectors have a much larger outer silk offset then vertical ones. Vertical ones are nice and tight at 0.11mm, while horizontal are much farther away at 0.26mm. It doesn't make the footprints unusable, and KLC doesn't have a specific value for this distance, but 0.11mm would be nice if you could use that for all footprints. Compare, for example, DIN41612_B2_2x8_Female_Vertical_THT vs DIN41612_B2_2x8_Male_Horizontal_THT: Thanks again, @lorem-ipsum ! 5.1.6 is planned for a couple weeks and it I'm very hopeful and excited these footprints will make it! |
I have the specs and I meant to take look but forgot about this PR again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did increase the size of the mounting holes to 2.85mm and performed the rename. About the F series: should it be for all versions? I checked ept, Harting and erni. ept and erni use large holes (1.6mm) only for the vertical connectors, not for the horizontal, Harting does not use them at all. I changed it for the vertical ones to the 1.6mm size, for the horizontal I think the space will become to limited when using 1.6mm holes. Also no one seems to produce them. Also the gaps in the silk screen are assymetric around the holes. I checked my code and couldn't find any reason for this. Currently I am suspecting some issues in |
Sry, you're right. |
Ok, good. Thank you very much for spotting this. |
This all looks good to me, after looking at the diff and a quick visual check in KiCad. @chschlue ? Any comments? |
LGTM |
@lorem-ipsum |
I'm super excited to use these! |
great work! |
@aewallin |
This selection was generated by an updated script using the
kicad-footprint-generator. This current selection was built by checking
the catalogs of ept, ERNI and Harting and collect the most standard
series.
Added in this commit were: B (was already present), C, D, E, F, Q, R
Still missing standard series are:
require an updated script, only H11 horizontal is present)
There are also many manufacturer specific variants which might follow
(some are very easy to add to the script, others not so much).
The new script was made to copy the style of the existing scripts, just
adding the increased flexiblity to generate all series. Changes to the
generated footprints compared to the existing B series are:
often used on backplanes, so there might be no space on top.
side. This space if off the PCB anyways and there needs to be room to
attach the connector.
symbolise their inverted connector nature (vertical is male, while
usually they are female).
There are two series where the names contain the rows which are
occupied. These are due to connectors only ept sells (E and F series
2x16). The standard is to leave the center row empty, ept also sells a
variant where the top row is empty. To distinguish those only the
non-standard has the rows added to the name.
As a general remark to these connectors. The naming of the pins and rows
is very strict, based on the location relative to the mounting position.
At least in vertical this always holds true, horizontal got some
flexibility on the spacing. The origin is always located at the a1 pin,
even if it is not present. This ensures that connectors can be switched
without having to change everything. This was already the case for the
existing connectors.
There are no real datasheets (as far as I could see the standard is not public). I worked of the catalogs of Harting, ERNI and ept. Some example screenshots below, but there are way to many connectors to display them all. The generation script can be found here, I will post a PR once it is clear that the style is fine.