Table of Contents

gschem tips

Using custom symbols in schema

Specify locations of custom symbols in ~/.gEDA/gafrc configuration file:

(define gedasymbols "/data/smb/users/dambi/projects/gaf/sym")
(component-library (build-path gedasymbols "analog"))
(component-library (build-path gedasymbols "connector"))
(component-library (build-path gedasymbols "linear"))
(component-library (build-path gedasymbols "micro"))
(component-library (build-path gedasymbols "misc"))
(component-library (build-path gedasymbols "power"))

Generating BOM from schema

$ print "value\nmanufacturer\nfootprint\nvendor\nvendor_part_number" > ./attribs
$ cat ./attribs
value
manufacturer
footprint
vendor
vendor_part_number
$

No need to explicitly specify 'refdes', it is always added.

$ gnetlist -g bom -o file1.bom file1.sch
$ sort -o file1.bom file1.bom

Tabulator is used as a separator in this case. There is also a possibility to generate BOM with colon used as a separator:

$ gnetlist -g bom2 -o file1.bom file1.sch

pcb tips

Customizing location of footprints

$ echo "lib-newlib = /home/dambi/projects/gaf/pcb-footprints" > ~/.pcb/settings

Since that setting has effect of replacing standard location of footprint library with the custom one, it is necessary to make footprints from standard library accessible in some way. To address that, symlinks from custom location to standard one were created for desired footprints, e.g.:

$ cd ~/projects/gaf/pcb-footprints/
$ ls -l 0805.fp 
lrwxrwxrwx   1 dambi    dambi         47 Jul 18 11:37 0805.fp -> /usr/local/share/pcb/pcblib-newlib/geda/0805.fp

Useful links

gEDA project
gEDA Wiki
gschem symbol creation guide
Repository of contributed symbols and footprints
pcb project
PCB-20110918 manual
pcb footprint guide
Footprint creation guide
gschem to pcb tutorial
IPC-SM-782A.pdf (IPC SM 782A Surface Mount Design and Land Pattern Standard)