Monday, 4 November 2019

Tutorial 1.15: Gerber Files for Printed Circuit Board



Generate Gerber Files







1.       In general, you will have a Gerber file for each layer of your board.

2.       This means you will have a Gerber file for each of the front and back copper layers, 

          solder mask and silkscreen and so on.

3.       In KiCad double click on the PCB Layout Editor and the Pcbnew 

          window opens.

4.      In Pcbnew click on File then click on the Plot … icon  

         (icon with plotter with paper protruding).

5.       The Plot window opens. 

6.       Click on the folder next to Output directory: and navigate to your project file.

7.       Open a new file called Gerbers.

8.       Click Select File

Plot Window Settings 


1.      Under Included Layers check:

         1.1.       F.Cu.

         1.2.       B.Cu. 

         1.3.       F.SilkS.

         1.4.       B.SilkS.

         1.5.       F.Mask.

          1.6.      B.Mask.

          1.7.      Edge.Cuts.


2.       Under General Options check:

         2.1.        Plot footprint values.

         2.2.       Plot footprint references.

         2.3.       Exclude PCB edge layer from other layers.


3.     In the Gerber Options area check the box next to 

        Use Protel filename extensions. 


4.      Eventually, the Plot window should be as shown in figure 1.15A below:

Fig. 1.15A: Plot Window

5.    Click Plot.


Output Messages


1.       From the Output Messages it can be seen that the following plot files are created: 

         1.1.       -F_Cu.gtl;

         1.2.       -B_Cu.gbl;

         1.3.       -F_SilkS.gto; 

         1.4.       -B_SilkS.gbo; 

         1.5.       -F_Mask.gts;

         1.6.       -B_Mask.gbs; and

         1.7.       -Edge_Cuts.gm1. 

2.      This can be seen in the Output Messages box shown in figure 1.15B below:



Fig. 1.15B: Files Generated Displayed in the Output Messages Box


2.        Click Save and save the report.txt file.


Generate Drill File


1.       Click Generate Drill Files….

2.       A Generate Drill Files window opens. 

3.       Select:

          3.1.        Excellon: PTH and NPTH in a single file.

          3.2.        Map File Format: PostScript.

          3.3.        Drill Origin: Absolute.

          3.4.        Drill Units: Inches.

          3.5.        Zeros Format: Decimal format

4.      Click Generate Drill File.

5.      The Generate Drill Files window and the result can be seen in figure 1.15C below:



Fig. 1.15C: Generate Drill Files Window and Result


6.     Click Generate Map File.

7.     The result is shown in the Messages box  of the Generate Drill Files window 

        shown in figure 1.15D below:



Fig. 1.15D: Results in Messages box of the Generate Drill Files


8.       In the Messages box it is shown that the following files are created:

9.       -drl_map.ps.

10.     These files must be given to a manufacturer to manufacture your PCB.

11.     Click Close to close the Generate Drill Files window.

12.    Click Close again to close the Plot window. 



View the Gerber Files 

Front Layer



1.       In KiCad (5.1.2) click on Gerber Viewer (icon with black PCB and GBR written 



          on the lower right.



2.       The Gerbview window opens. 



3.       Click File and click Open Excellon Drill File(s) … .



4.       Select file with .drl extension. 



5.       This shows the component's legs holes and via holes as in figure 1.15E below:


Fig. 1.15E: Drill Files Showing Holes of Component's Legs and Via Holes


6.       Click File and click Open Gerber File(s) …

7.       Select the file with – Edge_Cuts.gm1 file extension.

8.       You should see the outline of the board as shown in figure 1.15F below:

Fig. 1.15F: Edge_Cuts File Showing Outline of Board

9.       Click File and click Open Gerber File(s) … .

10.     Select the front silkscreen file or the file with the -F.SilkS.gto file extension.

11.     The front silkscreen file can be seen in figure 1.15G below:

Fig. 1.15G: Front Silk Screen
12.     From the above, you can see the holes and vias line up with the silkscreen.

13.     Click File and click Open Gerber File(s) … .

14.     Select the front copper file or the file with the -F_Cu.gtl file extension.

15.     The front copper file is now added to the previous files as shown in figure 1.15H

          below:

Fig. 1.15H: Front Copper File Showing the Front Copper Track or Layer

16.     Click File and click Open Gerber File(s) … .

17.     Select the front solder mask file or the file with the -F_Mask.gts file extension.

18.     Turn off the front copper layer file by unselecting the checkbox.

19.      Otherwise, you won't see the front solder mask file.

20.      The front solder mask file is now also added to the previous files and can be seen

           in figure 1.15I below comprising brown-red circles and squares:

Fig. 1.15I Front Solder Mask Shown With Front Copper Turned Off

22.     Remember the files with the F.Mask and B.Mask extensions define the area

          that is free of solder mask.

23.     It is the negative of the resulting solder mask film that covers the board.

24.     The brown-red circles and squares show where the solder will be deposited
       
           in order to connect the components.

25.     As you open the layer files, they are allocated to a Graphic layer by a number

          which is indicated by the Layers Manager window on the right.

26.     In the Layers Manager, you can select a layer by clicking on the blue diamond on

          the left.

27.     You can also by selecting the checkbox of a layer display the layer or by

          deselecting not display a particular layer.

28.      When finished close Gerbview.




Repeat For the Back Layers


1.      Repeat the process for the back layers.

2.      Once again click File and click Open Excellon Drill File(s) … .

3.       Select file with .drl extension.

4.       Also, select the file with – Edge_Cuts.gm1 file extension so you can see the outline

          of the board.

5.       This shows the component's legs holes and via holes as in figure 1.15E above:

6.       Click File and click Open Gerber File(s) … .

7.       Open the back-solder mask file or the file with the -B_Mask.gbs file extension.

8.      The back-solder mask file is where the back-solder mask file -B_Mask.gbs file should

          line up with the drill hole layer as shown in figure 1.15J below:


Fig. 1.15J: Back Solder Mask Layer Lines Up With Drill Hole File


9.        Also, load the back copper and back silkscreen files.

10.      In figure 1.15K below is shown the drill hole layer. solder mask layer and back

           copper layer.

Fig. 1.15K: Drill Layer Back Solder Mask and Copper Layer



11.      Check that everything lines up.


12.      As you open the files, they are allocated to a Graphic layer by a number which

           is indicated by the Layers Manager window on the right.

13.      In the Layers Manager, you can select a layer by clicking on the blue diamond

           on the left.

14.      You can also by selecting the checkbox of a layer display the layer or by deselecting

            not display a particular layer.

15.       By turning the layers on and off you can check if everything lines up.

16.       When finished close Gerbview.






1 comment:

  1. I need Gerber AccuMark 10.0.0.351 Full Version Download. Please provide the link.
    Apple iPhone 13 Pro Max

    ReplyDelete