How to export kicad PCB to gerber files

Posted by

What are Gerber Files and Why Do You Need Them?

Gerber files are the standard file format used in the PCB manufacturing industry to describe the printed circuit board designs. They contain all the necessary information required for PCB Fabrication, including the copper layers, solder mask, silkscreen, and drill data. When you design a PCB using KiCad, you need to generate Gerber files to send to the PCB manufacturer for production.

Benefits of Using Gerber Files

  1. Universally accepted format: Gerber files are widely used and accepted by PCB manufacturers worldwide, making it easy to get your PCB fabricated anywhere.
  2. Ensures accuracy: Gerber files contain precise data about your PCB Design, ensuring that the manufacturer can produce boards exactly as you designed them.
  3. Facilitates communication: By providing Gerber files to the manufacturer, you can clearly communicate your design requirements and avoid any misunderstandings or errors.

Step-by-Step Guide to Exporting KiCad PCB to Gerber Files

Follow these steps to export your KiCad PCB design to Gerber files:

Step 1: Open the PCB Layout Editor

  1. Launch KiCad and open your PCB project.
  2. Click on the “PCB Editor” button or go to “Tools” > “PCB Editor” to open the PCB layout editor.

Step 2: Check the PCB Design

Before generating Gerber files, it’s essential to review your PCB design for any errors or inconsistencies.

  1. Run DRC (Design Rule Check): Go to “Inspect” > “Design Rules Checker” to run a DRC. This will help identify any design rule violations that need to be fixed before proceeding.
  2. Verify the board outline: Ensure that the board outline is correctly defined and matches your desired PCB shape and size.
  3. Check the layers: Review each layer of your PCB design to make sure all the components, traces, and vias are placed correctly.

Step 3: Access the Plot Dialog

  1. In the PCB layout editor, go to “File” > “Plot…” to open the plot dialog window.

Step 4: Configure the Plot Settings

In the plot dialog window, you need to configure various settings to generate the Gerber files.

  1. Output directory: Choose the folder where you want to save the generated Gerber files.
  2. Plot format: Select “Gerber” as the plot format.
  3. Layers to plot: Select the layers you want to include in the Gerber files. Typically, you’ll need to plot the following layers:
  4. F.Cu (Front Copper)
  5. B.Cu (Back Copper)
  6. F.SilkS (Front Silkscreen)
  7. B.SilkS (Back Silkscreen)
  8. F.Mask (Front Solder Mask)
  9. B.Mask (Back Solder Mask)
  10. Edge.Cuts (Board Outline)
  11. Plot options: Configure the following plot options:
  12. Scale: 1:1
  13. Negative plot: Unchecked
  14. Exclude PCB edge layer from other layers: Checked
  15. Use auxiliary axis as origin: Unchecked
  16. Gerber Options: Click on the “Gerber Options” button to open the Gerber options dialog. Set the following options:
  17. Format: 4.6 (unit mm)
  18. Coordinate format: 4.6
  19. Suppress leading zeros: Unchecked
  20. Suppress trailing zeros: Checked
  21. Clear aperture macros: Checked
  22. Line width: 0.1 mm

Step 5: Generate Drill Files

In addition to the Gerber files, you also need to generate drill files that specify the locations and sizes of the holes in your PCB.

  1. In the plot dialog window, click on the “Generate Drill Files…” button.
  2. Configure the following drill file settings:
  3. Drill units: Millimeters
  4. Zeros format: Decimal format
  5. Drill map file format: PostScript
  6. Drill report format: Report
  7. Merge PTH and NPTH holes into one file: Checked
  8. Click “OK” to generate the drill files.

Step 6: Plot the Gerber and Drill Files

  1. Back in the plot dialog window, click on the “Plot” button to generate the Gerber files.
  2. Wait for the plotting process to complete. You should see a message indicating that the Gerber files were successfully created.
  3. Close the plot dialog window.

Step 7: Verify the Generated Files

  1. Navigate to the output directory you specified earlier.
  2. Check that all the necessary Gerber and drill files were generated. You should have files with extensions like .gbr, .drl, .rpt, etc.
  3. Open the Gerber files using a Gerber Viewer to ensure that they match your PCB design. Popular Gerber viewers include:
  4. GerbView (included with KiCad)
  5. ViewMate
  6. CAM350
  7. Ucamco UcamX

Step 8: Compress and Send the Files to the Manufacturer

  1. Compress all the generated Gerber and drill files into a single ZIP archive.
  2. Send the ZIP file to your chosen PCB manufacturer, along with any additional instructions or requirements for your PCB order.
File Type Extension Description
Copper Layers .gtl, .gbl Top and bottom copper layers
Solder Mask .gts, .gbs Top and bottom solder mask layers
Silkscreen .gto, .gbo Top and bottom silkscreen layers
Board Outline .gko PCB outline and cutouts
Drill Files .drl, .rpt Drill data and report

Frequently Asked Questions (FAQ)

  1. What are the most common issues encountered when exporting KiCad PCB to Gerber files?
  2. Incorrect layer selection
  3. Improper plot settings
  4. Missing or incorrect drill files
  5. Inconsistencies between Gerber files and original PCB design

  6. How can I ensure that my Gerber files are correctly generated?

  7. Double-check the plot settings and layer selection before generating the files
  8. Use a Gerber viewer to visually inspect the generated files
  9. Compare the Gerber files with your original PCB design to ensure consistency

  10. What should I do if my PCB manufacturer reports issues with the Gerber files?

  11. Ask the manufacturer for specific details about the issues they encountered
  12. Review your plot settings and make necessary adjustments
  13. Regenerate the Gerber files and send them to the manufacturer for verification

  14. Can I include additional information or instructions for the PCB manufacturer?

  15. Yes, you can include a README file or a fabrication drawing with your Gerber files
  16. Provide clear instructions on any special requirements, such as PCB Thickness, material, or surface finish

  17. How can I learn more about Gerber files and PCB fabrication?

  18. Consult the KiCad documentation and tutorials
  19. Visit PCB manufacturing websites and read their guidelines and resources
  20. Engage with the KiCad community and forums to learn from experienced designers
  21. Attend workshops or courses on PCB design and fabrication

By following this step-by-step guide and understanding the key concepts behind Gerber files, you’ll be able to successfully export your KiCad PCB designs and have them manufactured with ease. Remember to always double-check your settings, use Gerber viewers for verification, and communicate clearly with your PCB manufacturer to ensure the best results.

Leave a Reply

Your email address will not be published. Required fields are marked *