Skip to content
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

Allow pin out to be numbered #138

Closed
opolanco23 opened this issue Jul 30, 2020 · 6 comments
Closed

Allow pin out to be numbered #138

opolanco23 opened this issue Jul 30, 2020 · 6 comments

Comments

@opolanco23
Copy link

opolanco23 commented Jul 30, 2020

Hello,

If this is already a feature if you could point me in the right direction that would be awesome.

I have a 26 pin molex connector where only 5 pins are used, so I would like to show which pins of the 26 are actually used. If just describe the pin out its interpreted as there are only 5 pins if I manually add the pin count then I do not know how to specify which of the 26 are used.

type: automotive
    subtype: male
    pincount: 26
    pinout: [GA-NET+, AMP, RCA+, GA-NET-, RCA-]
    notes: GA-NET(BUS) has 68 ohm 1/2 watt resistor

could something like this be used

pincount: 26
pinout:
   pin20: AMP

and any pins not mentioned are assumed blank? If there is already something like this then I apologize and please show me an example.

@kvid
Copy link
Collaborator

kvid commented Jul 30, 2020

Hello,

If this is already a feature if you could point me in the right direction that would be awesome.

I have a 26 pin molex connector where only 5 pins are used, so I would like to show which pins of the 26 are actually used. If just describe the pin out its interpreted as there are only 5 pins if I manually add the pin count then I do not know how to specify which of the 26 are used.

You specify which of the 26 are used by connecting them to wires/cables. See connections in the YAML examples below.

type: automotive
    subtype: male
    pincount: 26
    pinout: [GA-NET+, AMP, RCA+, GA-NET-, RCA-]
    notes: GA-NET(BUS) has 68 ohm 1/2 watt resistor

could something like this be used

pincount: 26
pinout:
   pin20: AMP

and any pins not mentioned are assumed blank? If there is already something like this then I apologize and please show me an example.

Perhaps not exactly what you want, but you could try using e.g. NC or - for unused pins until your last used pin in the pinout and hide_disconnected_pins like in this (slightly modified example 07):

# contributed by @elliotmr

connectors:
  X1:
    type: TE 776164-1
    subtype: female
    hide_disconnected_pins: True
    pincount: 35
    pinout: [NC,-,-,-,AA,BB]
    notes: Unconnected pins are not shown

  X2:
    type: D-Sub
    subtype: female
    pincount: 9
    pinout: [NC,B,-,-,-,-,A]
    hide_disconnected_pins: True
    notes: Unconnected pins are not shown

cables:
  C1:
    wirecount: 2
    gauge: 20 AWG
    colors: [YE, GN]
    length: 1

connecontis:
  -
    - X1: [5,6]
    - C1: [1,2]
    - X2: [7,2] 

ex07+pinout

Alternatively, you also can also rename the pin numbers to obtain the same result (without needing NC or - for unused pins or the hide_disconnected_pins):

# contributed by @elliotmr

connectors:
  X1:
    type: TE 776164-1
    subtype: female
    pincount: 35
    pinnumbers: [5,6]
    pinout: [AA,BB]
    notes: Unconnected pins are not shown

  X2:
    type: D-Sub
    subtype: female
    pincount: 9
    pinnumbers: [2,7]
    pinout: [B,A]
    notes: Unconnected pins are not shown

cables:
  C1:
    wirecount: 2
    gauge: 20 AWG
    colors: [YE, GN]
    length: 1

connections:
  -
    - X1: [5,6]
    - C1: [1,2]
    - X2: [7,2]

@kvid
Copy link
Collaborator

kvid commented Jul 30, 2020

type: automotive
    subtype: male
    pincount: 26
    pinout: [GA-NET+, AMP, RCA+, GA-NET-, RCA-]
    notes: GA-NET(BUS) has 68 ohm 1/2 watt resistor

Based on your your connector info (assuming which 4 pin numbers you are using other than pin 20) and the last alternative in my first comment above, I got this:

connectors:
  Molex1:
    type: automotive
    subtype: male
    pincount: 26
    pinnumbers: [19,20,21,22,23]
    pinout: [GA-NET+, AMP, RCA+, GA-NET-, RCA-]
    notes: GA-NET(BUS) has 68 ohm 1/2 watt resistor

cables:
  Cable1:
    wirecount: 5
    color_code: DIN

connections:
  -
    - Molex1: [19-23]
    - Cable1: [1-5]

issue138

@formatc1702
Copy link
Collaborator

formatc1702 commented Jul 30, 2020

@kvid what branch are you using to generate the example above? pinout should be pinlabels and pinnumbers should be pins?
It is important to add that this will only work in the dev branch currently, not on master.

@kvid
Copy link
Collaborator

kvid commented Jul 30, 2020

@opolanco23 I'm sorry if these last comments might confuse you. The master branch you are using is the current official version. The dev branch also mentioned here is the current development version that change frequently during the work in progress to prepare new versions.

@kvid what branch are you using to generate the example above? pinout should be pinlabels and pinnumbers should be pins?

I did use the master branch because @opolanco23 used pinout in his question, and therefore was not using the dev branch.

It is important to add that this will only work in the dev branch currently, not on master.

Are you sure? I just did that without any errors.

I have also tried it in the dev branch, and by replacing pinout with pinlabels and pinnumbers with pins, I get the exact same output using the dev branch.

@formatc1702
Copy link
Collaborator

Huh, I must have misremembered when this feature was introduced. You're right.

@opolanco23
Copy link
Author

@kvid thanks for the info, what is in the master branch now will work. Feel free to close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants