-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Connector-Connector & Connector-Ferrule mating #134
Comments
My initial reaction is to specify the ferrules as additional BOM items (as per #115) like @kvid suggests. otherwise, you would need to define a connection between two connectors directly, with no wire inbetween, which (at least currently) is not possible by design. 🤔 Mockup (Source) |
Adding additional lines to the BOM would work nicely. |
One way this could be specified, is to use connectors:
X1:
pincount: 4
type: Screw terminal connector
color: GN
F1:
style: simple
autogenerate: true
type: Ferrule
color: GY
cables:
W1:
gauge: 0.25 mm2
length: 1
color: BK
colors: [BK, WH, BU, BN]
connections:
-
- X1: [1-4]
- <-
- F1
- W1: [1-4] Such an implementation would also fix #148 to enable a harness that is split with mating connectors, and would help implementing #142 as well. |
I was thinking of having a separate section in the YAML file. |
Renamed issue title to consolidate with #148. |
One idea building upon @kvid's suggested syntax would be:
A full example using two complementary connectors from @stmaxted's original photo could look like this: connectors:
X1: &X
type: Screw connector
subtype: female
color: GN
pincount: 4
X2:
<<: *X
subtype: male
F:
style: simple
autogenerate: true
type: Ferrule
color: GY
cables:
W1: &W
colors: [BK, WH, BU, BN]
W2:
<<: *W
connections:
- # ferrules + connector X1
- W1: [1-4]
- F
- =>
- X1
- # mate X1 and X2
- X1: []
- ->
- X2: []
- # ferrules + connector X2
- X2
- <=
- F
- W2: [1-4] |
If I understand you correctly, you suggest Personally, I find it more intuitively to swap them, to associate the thinner If you also plan a difference in visual appearance between these two mating arrows, then I also suggest the thinnest visual style for a single pin mating. Maybe a single dashed line for a single pin mating (as in the mock-up above) and a double dashed line for a whole connector mating?
Why not generalize this, and let an empty pin list mean all pins in any connection specifier? As far as I can see, that will remove the need for separate connection sets, but please correct me if I have misunderstood. Alternatively (1), Alternatively (2), Alternatively (3), a new syntax for a range of pins that support both numeric and alphabetical ranges, custom value distance within the range and more advanced combinations to generate e.g.
These alternatives are just ideas and need more work to become something useful... See also my #184 (comment) where I suggest to release the current single designator syntax for other usage. |
I was thinking
You mean the dashed lines in the GraphViz output? I'll need to see if we can make double dashed lines work... this sounds like a good idea.
There is a slight misunderstanding. The idea is that an empty pinlist means "connect the connector as a whole" (using one, potentially double dashed, arrow) whereas no pinlist would auto-generate simple connectors (one per pin on the other connector) and link each of them with a singled dashed arrow.
All these ideas are very, good, but best discussed in a separate issue, since this only relates to the |
It would be nice to be able to specify a wire requires a ferrule before being put into a connector. I'm think of the case where someone wants to do something like:
The text was updated successfully, but these errors were encountered: