User Tools

Site Tools


geda:gsch2pcb_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
geda:gsch2pcb_tutorial [2014/04/25 02:39]
vzh <key> formatting
geda:gsch2pcb_tutorial [2017/08/10 19:12] (current)
fisichel Added "Add a ground plane" and "Add a via" sections to pcb
Line 379: Line 379:
  
  
-=== Looking ​at the other side of the board ===+=== Look at the other side of the board ===
 In some layouts it is important to put components on either side of In some layouts it is important to put components on either side of
 the board, although not for the preceding example. In such a case the board, although not for the preceding example. In such a case
Line 392: Line 392:
 be fabricated in the same step (i.e. etched with photo-lithography) are grouped be fabricated in the same step (i.e. etched with photo-lithography) are grouped
 together. together.
 +
 +=== Add a Ground Plane ===
 +This section goes over how to add a ground plane. For this section, the top layer of the board looks like this:​\\ ​
 +{{geda:​170810_002_groundplane.png |top side}} \\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +If you haven'​t done so already, flip your board to the back side by pressing <​key>​tab</​key>​. You might have to move the vertical scroll bar to find your board. It's there. This is what it should look like:​\\ ​
 +{{geda:​170810_004_groundplane.png |back side}} \\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +{{geda:​170810_008_groundplane.png |bottom button}}Select the "​Bottom"​ layer from the left.\\ ​
 +\\ 
 +Use the {{geda:​170810_005_groundplane.png |RECT side}} rectangle (RECT) tool, click once in the upper left corner and then once again in the lower right corner.\\ ​
 +\\ 
 +{{geda:​170810_010_groundplane.png |rectangle}}\\ ​
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +PCB should fill in the area for you. Now, switch back to the top side using <​key>​tab</​key>​. You have just made a copper plane. We will make it a ground plane in the next section.\\ ​
 +\\ 
 +=== Add a via ===
 +Let's say we need to ground the pins from R102 and R201. We can use the copper plane we just created. A via will get you through the board. We will accept the defaults that are set using the route styles button. Feel free to open that dialog box and explore. \\ 
 +\\ 
 +{{geda:​170810_013_via.png |Route styles button}}\\ ​
 +\\ 
 +\\ 
 +{{geda:​170810_014_via.png |Via button}} Next, click on the via button, and click above and between the unconnected pins on R102 and R201.\\ ​
 +\\ 
 +{{geda:​170810_015_via.png |via placement}}\\ ​
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +We will connect to this via using the line tool. \\ 
 +Click the "​Top"​ button to make the top layer active. \\ 
 +Click the line button and click on the left resistor end, and then on the via. Press escape, then with the line tool again, click on the right resistor end, and on the via. \\
 +The top side is connected.\\ ​
 +{{geda:​170810_016_via.png |via placement}}\\ ​
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +Now, we need to connect the bottom side to the via. Press <​key>​tab</​key>​ and also press the "​Bottom"​ layer button to make it active. If the bottom layer icon has a little triangle in with mostly white space, it is hidden. Click in that box to make it visible. \\ 
 +{{geda:​170810_017_via.png |select tool}}Using the select tool, click on the via annulus.\\ ​
 +\\ 
 +\\ 
 +{{geda:​170810_018_via.png |via placement}}\\ ​
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +With the copper annulus selected, press ctrl-shift-k. That should shrink the clearance area of the annulus to allow the copper to touch the annulus.\\ ​
 +{{geda:​170810_020_via.png |via placement}}\\ ​
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +The pins from the resistors are now connected to the plane you created earlier. You can click "​Top"​ and press <​key>​tab</​key>​ to get back to the top view of the board.\\
 +{{geda:​170810_022_via.png |via placement}}\\ ​
 +
  
 ===== Modifying Schematics ===== ===== Modifying Schematics =====
Line 470: Line 579:
 have **net** attributes which can assign pins to a particular have **net** attributes which can assign pins to a particular
 net.  Instead of hooking up each opamp pin 8 to Vcc and pin 4 to net.  Instead of hooking up each opamp pin 8 to Vcc and pin 4 to
-to Vee on the schematic, we can have that happen automatically and+Vee on the schematic, we can have that happen automatically and
 eliminate the pins on the schematic. ​ To do this, just copy the eliminate the pins on the schematic. ​ To do this, just copy the
 original symbol to our custom gschem symbol directory, giving it original symbol to our custom gschem symbol directory, giving it
Line 495: Line 604:
 == Add global Nets to in Numbers == == Add global Nets to in Numbers ==
 {{geda:​gschem-sym-3.png |Step 3}}From the menu **Add->​Attribute** {{geda:​gschem-sym-3.png |Step 3}}From the menu **Add->​Attribute**
-  * Add a **net** attribute with value **Vcc:8** Select **Show Name &amp; Value** and make it invisible. +  * Add a **net** attribute with value **Vcc:8** Select **Show Name & Value** and make it invisible. 
-  * Add a **net** attribute with value **Vee:4** Make it **Show Name &amp; Value** and invisible.+  * Add a **net** attribute with value **Vee:4** Make it **Show Name & Value** and invisible.
   * Make the **device** attribute be just **OPAMP**.   * Make the **device** attribute be just **OPAMP**.
  
Line 547: Line 656:
 [[geda:​gschem_symbol_creation|Symbol Creation Document]] on the [[geda:​gschem_symbol_creation|Symbol Creation Document]] on the
 [[geda:​documentation|gEDA Documentation]] page. [[geda:​documentation|gEDA Documentation]] page.
- 
- 
  
 ===== Custom file elements ===== ===== Custom file elements =====
Line 588: Line 695:
 **Note:** if you save the element with a name which is the same **Note:** if you save the element with a name which is the same
 as a **m4 element**, gsch2pcb will preferentially use the m4 as a **m4 element**, gsch2pcb will preferentially use the m4
-element unless you give gsch2pcb the --use-files (or -f) option.+element unless you give gsch2pcb the %%--use-files%% (or -f) option.
 You may put **use-files** in a project file if you want to always You may put **use-files** in a project file if you want to always
 give priority to using **file elements**. ​ The m4 element names appear give priority to using **file elements**. ​ The m4 element names appear
Line 694: Line 801:
 directory will most likely be **/​usr/​share/​pcb/​m4** or directory will most likely be **/​usr/​share/​pcb/​m4** or
 **/​usr/​local/​share/​pcb/​m4**,​ while on earlier PCB versions it could be **/​usr/​local/​share/​pcb/​m4**,​ while on earlier PCB versions it could be
-**/​usr/​X11R6/​lib/​X11/​pcb/​m4** (run //gsch2pcb --help// or+**/​usr/​X11R6/​lib/​X11/​pcb/​m4** (run //%%gsch2pcb --help%%// or
 //gsch2pcb -v project// to see which of these directories gsch2pcb //gsch2pcb -v project// to see which of these directories gsch2pcb
 is using). ​ But if your install is somewhere else you will is using). ​ But if your install is somewhere else you will
geda/gsch2pcb_tutorial.1398407978.txt.gz · Last modified: 2014/04/25 02:39 by vzh