Skip to content
Snippets Groups Projects
index.html 7.32 KiB
Newer Older
  • Learn to ignore specific revisions
  • Quentin Bolsee's avatar
    Quentin Bolsee committed
    <!DOCTYPE html>
    <html>
    
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>HTBAA: amaretti</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    
    <main>
    
    <h1>Carvera PCB tutorial</h1>
    
    <div class=author>
     <p>Quentin Bolsée, 2024</p>
    </div>
    
    <a href="./img/machine.jpg" target=_blank><img src="./img/machine.jpg"/></a>
    
    <p>
    This tutorial will guide you through PCB milling using the Carvera machine, which is an impressive low-cost milling machine with automatic tool changing. In the context of PCB milling, this means that the machine can cut the traces with a fine tool, then swap it for a larger one to cut the board's edge, all <b>automatically</b>.
    </p>
    
    <h2>1. Securing the copper clad</h2>
    
    <p>
    The easiest way to secure the copper clad to the machine is to use clamps. When using clamps, <b>be mindful of two things</b>:
    
    <ul>
     <li>The machine has no knowledge of where the clamps are, and will happily mill into it if you tell it to. That would damage the tool, and possibly the machine itself.</li>
     <li>You need a sacrifical layer under the clad you're planning to cut, or your program will reach the machine's bed when cutting the edge of your board.</li>
    </ul>
    
    The easiest sacrifical layer is simply more copper clad. Use a total of <b>three layers</b> to reach a good height for the clamps:
    </p>
    
    <a href="./img/clad.jpg" target=_blank><img src="./img/clad.jpg"/></a>
    
    <p>
    Next, secure this stack using the clamps. Make sure the lower left corner of your copper clads is pushed against the L bracket present on the machine's bed, with no gap. Use the side of the clamp with a lip, and check that the lip has good engagement with the top of the clad.
    </p>
    
    <a href="./img/clamp.jpg" target=_blank><img src="./img/clamp.jpg"/></a>
    
    <p>
    Use the bracket's two screws to secure the lower-left corner. Make sure they're effectively compressing the top of the clad stack:
    </p>
    
    <a href="./img/screw.jpg" target=_blank><img src="./img/screw.jpg"/></a>
    
    <p>
    Finish off with two more clamps in the back of the machine:
    </p>
    
    <a href="./img/clamp_back.jpg" target=_blank><img src="./img/clamp_back.jpg"/></a>
    
    <p>
    Congratulations! You now won't have to touch the machine until the end of the process. We basically just have to load the file and hit "play".
    </p>
    
    <h2>2. Preparing the file with mods</h2>
    
    <p>
    For the purpose of PCB milling, we'll assume the machine has the following tools loaded:
    
    <ul>
      <li>Tool n°3: 1/32" (0.8mm) flat end mill</li>
      <li>Tool n°5: 1/64" (0.4mm) flat end mill</li>
    </ul>
    
    The 1/64" flat end mill as tool n°5 is not what the machine comes with out of the box. Instead, you can use the 30° 0.2mm V bit the machine has as tool n°2 by default, but V bits tend to leave a lot of burs on milled PCBs. A thin flat end mill is more delicate but worth it for milling quality.
    </p>
    
    <a href="./img/tools.jpg" target=_blank><img src="./img/tools.jpg"/></a>
    
    <p>
    To produce the g-code to mill your PCB, first open <a href=https://modsproject.org/>mods</a> in a web browser. Right-click, then go to programs->open program, and find the "Carvera mill 2D PCB" program under "machines":
    </p>
    
    <a href="./img/mods-carvera.png" target=_blank><img src="./img/mods-carvera.png"/></a>
    
    <p>
    The program looks very daunting, but your input is only needed on the left side:
    <p>
    
    <a href="./img/mods-carvera-program.png" target=_blank><img src="./img/mods-carvera-program.png"/></a>
    
    <p>
    To continue, you'll need a png image of your board's traces, and another png image of your board's edge. You can obtain those files in many ways, for example by converting your gerber files to images using <a href=https://quentinbolsee.pages.cba.mit.edu/gerber2img/>gerber2img</a>.
    </p>
    
    <p>
    Load the two images by clicking "select png file" in the respective nodes, on the left of the program. Double check the DPI value of those images, as it can sometimes fail to be automatically detected, in which case you can change it manually.
    </p>
    
    <a href="./img/mods-carvera-images.png" target=_blank><img src="./img/mods-carvera-images.png"/></a>
    
    <p>
    Next, check the "Tabs" node. Make sure a thin line is connecting the side of the image to your board. If needed, adjust the length of the tabs. If your board has a special shape, you might need to add them manually using some image editing software; just make sure they reach the every last pixels on the left and right sides of the image.
    </p>
    
    <p>
    To obtain your g-code file, simply click on "Calculate" on the central node, marked by a note. The program will become slow or freeze for a few seconds. At the end, you will get a preview and time estimate in the lower right side of the program. The g-code file will <b>autmatically be downloaded to your hard disk</b>. If in doubt, check your Downloads folder, or the browser's download history.
    </p>
    
    <a href="./img/mods-viewer.png" target=_blank><img src="./img/mods-viewer.png"/></a>
    
    <h2>3. Loading the file into CarveraController</h2>
    
    <p>
    Launch CarveraController, and make sure the machine is connected through USB:
    </p>
    
    <a href="./img/cc-USB.png" target=_blank><img src="./img/cc-USB.png"/></a>
    
    <p>
    Next, load the file by clicking the icon in the lower-left corner. The Carvera needs the file to be loaded into its internal memory, so you'll need to upload the file first, by clicking on "upload":
    </p>
    
    <a href="./img/cc-upload.png" target=_blank><img src="./img/cc-upload.png"/></a>
    
    <p>
    Navigate to the file produced by mods, and click on "Upload". Don't click on "Open", as that won't upload the file to the machine.
    </p>
    
    <a href="./img/cc-file.png" target=_blank><img src="./img/cc-file.png"/></a>
    
    <p>
    Next, click on "Close" to go back to the machine's locally stored files. Select the one you just uploaded, and click on "Select".
    </p>
    
    <a href="./img/cc-select.png" target=_blank><img src="./img/cc-select.png"/></a>
    
    <p>
    The toolpath is displayed:
    </p>
    
    <a href="./img/cc-toolpath.png" target=_blank><img src="./img/cc-toolpath.png"/></a>
    
    <p>
    Make sure it looks correct, then click on the gear icon in the lower left corner. A new dialog box opens, letting you configure your program before launching it:
    </p>
    
    <a href="./img/cc-prepare.png" target=_blank><img src="./img/cc-prepare.png"/></a>
    
    <p>
    First, you'll need to set the <b>lower left corner</b> of your program. If your PCB clad has already been used before (as should be the case most of the time), you'll need to measure the X and Y offsets needed to not run into it. Using calipers and a ruler, measure the <b>X and Y distances</b> from the L bracket at which you'd like to mill your board. Make sure to leave some margin, and check that your board will fit in the spot you've picked.
    </p>
    
    <a href="./img/offsets.jpg" target=_blank><img src="./img/offsets.jpg"/></a>
    
    <p>
    Click on "Config" under "Set Work Origin". Configure the following:
    </p>
    
    <ul>
      <li>Tick Anchor1 as the reference</li>
      <li><b>X Offset</b>: the X offset you measured (in mm)</li>
      <li><b>Y Offset</b>: the Y offset you measured (in mm)</li>
    </ul>
    
    <a href="./img/cc-anchor.png" target=_blank><img src="./img/cc-anchor.png"/></a>
    
    <p>
    Click on "Ok" to confirm. Next, let's configure auto-leveling with the probe. Tick both "Scan Margin" and "Auto Leveling", and click on "Config" under Auto Leveling.
    </p>
    
    <a href="./img/cc-probe.png" target=_blank><img src="./img/cc-probe.png"/></a>
    
    <h2>4. Removing your board and cleaning up</h2>
    
    </main>
    
    </body>
    
    </html>