Posted by SainSmart on

This guide outlines the workflow for double-sided PCB milling using the Cubiko (or similar) CNC system. It covers file preparation, precise zero-point positioning for double-sided boards, G-code generation, and the final milling process.

Shop Cubiko Desktop CNC router 

1. Preparation

Before starting the machine, you need the design files for your PCB.

Before starting the machine, you need the design files for your PCB. Before starting the machine, you need the design files for your PCB. Before starting the machine, you need the design files for your PCB.

Option A: Create Your Own

  1. Design in KiCad: Start by drawing your schematic and PCB layout in KiCad.

  2. Export Files: Generate the Gerber files and Drill files.

    • Tip: Ensure your manufacturing settings match your CNC capabilities.

Option B: Open Source Projects

You can download existing designs from platforms like:

  • GitHub

  • Hackster.io

  • Kitspace.org

  • Open Circuits Wiki

Simply download the Gerber or PCB source files.Simply download the Gerber or PCB source files

2. Positioning & Zero Points (Crucial Step)

Accurate alignment is critical for double-sided milling. You must mathematically determine the zero point for the back side relative to the front.

Step 2.1: Measure PCB Width

  1. Open your PCB file in KiCad (PCB Viewer or Gerber Viewer).

  2. Use the shortcut Ctrl + M to measure.

  3. Measure the exact Width of the PCB along the X-axis (End X - Start X).

  4. Record this value.

Step 2.2: Physical Marking

  1. Take your copper clad board.

  2. Mark the Front Zero Point (usually the bottom-left corner of your working area).

  3. Mark the Back Zero Point.Mark the Back Zero Point

Step 2.3: Calculating the Back Zero

  1. Select your Front Zero Point on the machine.

  2. Record the distance from the zero point to the PCB edge.

  3. Flip logic: When you flip the board to the back:

    • Locate the position of the Front zero.

    • Move along the X-axis by the value of the PCB Width you measured earlier.

    • This new position is your Back Zero Point.

3. G-Code Generation (FlatCAM)

Use CAM software (like FlatCAM) to convert Gerber files into G-code.

Front Side

  1. Import the Top Layer Gerber.

  2. Generate the geometry and CNC job for the traces.Generate the geometry and CNC job for the traces.

Back Side

  1. Import the Bottom Layer Gerber.

  2. Important: Use the "Flip X" tool to mirror the design horizontally.

  3. Generate the geometry and CNC job.Generate the geometry and CNC job.

Drilling

  1. Import the Drill file.

  2. Generate the CNC job for drilling holes.Generate the CNC job for drilling holes.

4. CNC Operations

Phase 1: Milling the Front

  1. Secure the PCB to the CNC bed.

  2. Align the spindle to your marked Front Zero Point.

  3. Load the Front Side G-code file.

Start milling.Milling the Front

Phase 2: The Flip

  1. Once the front is finished, remove the board.

  2. Flip the board counter-clockwise (or vertically depending on your axis setup, ensuring it matches the software "Flip X").

  3. Secure the board again.

Phase 3: Milling the Back

  1. Move the spindle to the calculated Back Zero Point (Front Zero X + PCB Width).

  2. Reset the X/Y coordinates to 0 at this new spot.

  3. Load the Back Side G-code file.

Start milling.Milling the Back

Phase 4: Drilling & Cutout

  1. Change the bit to a drill bit if necessary.

  2. Run the Drill G-code file.

  3. If you have an edge cut file, run it last to release the board.

5. Important Notes & Recommendations

  • Software Mastery: It is highly recommended to read detailed tutorials for FlatCAM and KiCad to understand the specific parameters.

  • Tool Selection: For PCB trace milling, use a 3.17mm shank V-bit (engraving bit).

  • Cut Depth: Set your milling depth (Z-cut) between 0.01mm and 0.05mm. Going deeper may break thin bits or create wide, rough traces.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.