Coder Social home page Coder Social logo

Comments (5)

jonroger avatar jonroger commented on June 11, 2024 1

Great idea, much better than what I was thinking. JLCPCB has the data because they display a preview - I'll talk to them and see if they will assist.

from kicad-jlcpcb-bom-plugin.

urish avatar urish commented on June 11, 2024

Thanks! Here is a proposed solution:

  1. Create a database of JLCPCB Part Number and Rotation Override. This database can be hosted as a CSV file in this repo, so it'll be a collaborative effort
  2. The pos_to_cpl script can then look at the BOM file to map Designator to LCSC Part #, and find the rotation based on that.

WDYT?

from kicad-jlcpcb-bom-plugin.

jonroger avatar jonroger commented on June 11, 2024

JLCPCB was helpful, but says that they don't have information as to how each part is oriented on tape. But package (eg, SOIC8) is available for each part and I see that others do regex matching on footprint to determine the rotation needed transform from tape to the kicad standard. Not clear to me how reliable this is - but it may be the best option.

from kicad-jlcpcb-bom-plugin.

rokan51 avatar rokan51 commented on June 11, 2024

Wery nice!

With regard to kicad_pos_to_cpl.py:

I like the simplicity of your kicad_pos_to_cpl.py script (cant say anything about BOM as I use kibom-master with customl jlc-kibom.ini to generate JLCPCB bom and using [JOIN] to to accumulate/rename columns), however a few small additions to your kicad_pos_to_cpl.py might be useful:

  • I also think that 'Package' should be used (instead of 'Ref', line 34 in kicad_pos_to_cpl.py).
  • for the idea adding regexp possibility (using some python regexp library) for matching. First match would "win" (that is order could matter - this would allow adding exceptions to more general rules by prepending a new rule)
  • having possibility of multiple rules, eg project specific: one: For instance if in the directory would contain file "pos_to_cpl.db" and [/some/global/pos_to_cpl] would be the 3rd argument (default database file), those two can be merged (with local prior to global to allow override). This means that the same script (or wrapper) can be then used to all projects with possibility to add custom project-specific additions/overrides.
  • possibility to add two more columns dX dY for translation offsets (when missing defaulted to 0)

Maybe additional option for negating x axis for bottom side (it seems to me that kicad .pos is inverted for bottom side but JLC requires it as coordinates would look from "side of components" - am i correct?),

Thanks, R.

from kicad-jlcpcb-bom-plugin.

DanielO avatar DanielO commented on June 11, 2024

+1 for package idea - I made that modification (in the simplest way - no REs etc) and it seemed quite effective.

from kicad-jlcpcb-bom-plugin.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.