Code Monkey home page Code Monkey logo

g-code-utils's Introduction

Why do I need a Double-Sided PCB Alignment Tool?

When building double-sided PCBs, turning the board and aligning the other side can be a process that is prone to error. This may end up in misaligned holes like the ones in the following image:

Misaligned Board

Mechanical alignment systems may induce errors above 300-400um, enough to ruin the whole process. By simply drilling a few reference holes and performing a visual alignment we can achieve excellent results. This is done with the help of this software which transposes the G-CODE programs based on the visual measures.

How to use the software

  • Step1: Isolate the Top Copper

    Isolate the Top Copper tracks as shown in the following image.

    Step 1

  • Step2: Drill the alignment holes

    Drill 4 holes following a square or rectangular pattern outside the board edge.

    Step 2

    NOTE: Try to drill small holes (<0.4mm). The smaller the hole the more accurate the calibration in the following steps.

  • Step 3: Register the holes in the tool

    Insert each hole position in the "Original Frame" form:

    Step 3

  • Step4: Turn the board

    Turn the board around the mirroring axis.

    Step 4

  • Step5: Check new hole positions

    After turning the board, the holes will be slightly out of the reference coordinates. This is due to rotation/displacement of the board during the manipulation and imperfections in the board edges.

    Step 5b

    Align the drill with the center of each hole and register the measured position into the "Measured Frame" form:

    Step 5b

    NOTE: A visual alignment is enough to achieve an almost perfect result. However, the alignment must be performed with care, moving the tool with small increments until the desired alignment is reached.

    The software will calculate the Rotation Standard Deviation. This number indicates the deviation of the measured frame from the original shape. Values lower than 0.050 degrees are acceptable. Values higher than 0.050 degrees indicate an incorrect measured frame.

  • Step6: Load de GCODE into the software

    Load the G-CODE program into the software and click Transpose. A new G-CODE program will be calculated which matches the measured holes.

    Step 6

    NOTE: The G-CODE programs must be already mirrored around the desired mirroring axis.

  • Step7: Export and isolate the bottom copper

    Export the new G-CODE program by clicking File -> Save As... and isolate the bottom copper tracks.

    Repeat steps 6 and 7 with all the G-CODE programs that should be transposed in this layer such as soldermask, silkscreen, drill holes, etc.

How to run the software

  • Windows

    Download the latest binaries (x86 or x64) from the Releases Section

  • Linux/Mac

    • Install JRE (Version 8 or higher) from Java Download Page

    • Download the JAR file from the Releases Section

    • Run the software by executing the following command on a terminal:

      java -jar g-code-utils-*.jar

g-code-utils's People

Contributors

alvarogimenez avatar paoloconte avatar

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.