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

AWG to mm2 Conversion Error #335

Closed
cjohnsonoem opened this issue Apr 30, 2024 · 2 comments
Closed

AWG to mm2 Conversion Error #335

cjohnsonoem opened this issue Apr 30, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@cjohnsonoem
Copy link

Here is some simplified code to generate a cable harness using 20 AWG wire. When the output is generated, it converts 20 AWG to 0.75mm2, which is 18 AWG. Correct value should be 0.5mm2.

connectors:
  X1:
    type: JAE Electronics IL-AG5-6P-S3C1
    subtype: male
    pinlabels: [ACC, SUPPLY, IGN, SEC_SUPPLY, SEC_SIGNAL]

  X2:
    type: JAE Electronics IL-AG5-6S-S3C1
    subtype: female
    pinlabels: [ACC, SUPPLY, IGN, SEC_SUPPLY, SEC_SIGNAL]

cables:
  W1:
    gauge: 20 AWG
    show_equiv: true
    length: 0.125
    colors: [RD,BK,GN,BU,YE]
    wirecount: 5
    shield: false
  
connections:
  - # connect input to output
    - X1: [1-5]
    - W1: [1-5]
    - X2: [1-5]

image

It appears that the table in wv_helper.py is incorrect:

awg_equiv_table = {
    '0.09': '28',
    '0.14': '26',
    '0.25': '24',
    '0.34': '22',
    '0.5': '21',
    '0.75': '20',
    '1': '18',
    '1.5': '16',
    '2.5': '14',
    '4': '12',
    '6': '10',
    '10': '8',
    '16': '6',
    '25': '4',
    '35': '2',
    '50': '1',
}
@cjohnsonoem
Copy link
Author

Sorry, it appears this issue has already been hashed in #282

@kvid
Copy link
Collaborator

kvid commented May 1, 2024

@cjohnsonoem - Please contribute to the original issue you already found yourself! Read the comments and find out if any suggested solution would resolve your use case. Add also your own alternative thoughts. Even though it's many months since the last comment, this issue is not dead.

@kvid kvid added the duplicate This issue or pull request already exists label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants