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

jlcparts-based parts library #374

Merged
merged 43 commits into from
Aug 19, 2024
Merged

jlcparts-based parts library #374

merged 43 commits into from
Aug 19, 2024

Conversation

ducky64
Copy link
Collaborator

@ducky64 ducky64 commented Aug 19, 2024

A set of parts libraries based on data available from https://github.com/yaqwsx/jlcparts

JLC no longer (well, hasn't for a few years now) makes their entire parts library available by CSV, and the current parts table is starting to get outdated with parts no longer available or basic parts. jlcparts seems to be able to get an up-to-date library as well as do some parsing of parametric parts.

Since the data here isn't deterministic, this is strictly opt-in; all test boards will continue to be based on the included CSV. By nature this won't be as well-tested.

To use these parts:

  1. clone jlcparts, download the cached parts list and build its tables (according to its readme)
  2. in the top-level board design file, add JlcPartsBase.config_root_dir("/path/to/jlcparts-repo/web/public/data/")
  3. in the top-level design, add JlcPartsRefinements to the superclass list before (takes priority over) other refinements

so if this was done on the SMU example, it would look like:

import ...
JlcPartsBase.config_root_dir(".../jlcparts/web/public/data/")
...
class UsbSourceMeasure(JlcPartsRefinements, JlcBoardTop):
  def contents(self) -> None:
    ...

Other changes

  • Add green-yellow to TableLed, different than a more intense green I guess
  • Add TableLed
  • Internal semantics: these are now exact even when no tolerance is specified: FerriteBead.DC_RESISTANCE, Fet.RDS_ON, Inductor.DC_RESISTANCE,
  • Pin dependency versions in requirements.txt

@ducky64 ducky64 merged commit 568ce9b into master Aug 19, 2024
11 checks passed
@ducky64 ducky64 deleted the jlcparts branch August 19, 2024 03:44
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

Successfully merging this pull request may close these issues.

1 participant