Differences

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

Link to this comparison view

Next revision
Previous revision
notes:geda_tips [2012/07/15 09:38]
admin created
notes:geda_tips [2013/02/02 11:20] (current)
Line 1: Line 1:
 ====== gschem tips ====== ====== gschem tips ======
 +===== Using custom symbols in schema =====
 +Specify locations of custom symbols in ~/​.gEDA/​gafrc configuration file:
 +<​code>​
 +(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"​))
 +</​code>​
 ===== Generating BOM from schema ===== ===== Generating BOM from schema =====
   * make a text file called '​attribs'​ listing the attributes you want in the BOM, for example:   * make a text file called '​attribs'​ listing the attributes you want in the BOM, for example:
  
 <​code>​ <​code>​
-$ print "device\nfootprint\ncomment" > ./attribs+$ print "value\nmanufacturer\nfootprint\nvendor\nvendor_part_number" > ./attribs
 $ cat ./attribs $ cat ./attribs
-device+value 
 +manufacturer
 footprint footprint
-comment+vendor 
 +vendor_part_number
 $ $
 </​code>​ </​code>​
 No need to explicitly specify '​refdes',​ it is always added. No need to explicitly specify '​refdes',​ it is always added.
  
-  * Let gnetlist create the BOM+  * Let gnetlist create the BOM and sort it using '​refdes'​
  
 <​code>​ <​code>​
-$ gnetlist -g bom -o bom.txt file1.sch ​[file2.sch file3.sch ...]+$ gnetlist -g bom -o file1.bom file1.sch 
 +$ sort -o file1.bom file1.bom 
 +</​code>​ 
 +Tabulator is used as a separator in this case. There is also a possibility to generate BOM with colon used as a separator:​ 
 +<​code>​ 
 +$ gnetlist -g bom2 -o file1.bom file1.sch 
 +</​code>​ 
 +====== pcb tips ====== 
 +===== Customizing location of footprints ===== 
 +<​code>​ 
 +$ echo "​lib-newlib = /​home/​dambi/​projects/​gaf/​pcb-footprints"​ > ~/​.pcb/​settings 
 +</​code>​ 
 +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.: 
 +<​code>​ 
 +$ 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
 </​code>​ </​code>​
 +====== Useful links ======
 +[[http://​www.geda-project.org/​|gEDA project]]\\
 +[[http://​wiki.geda-project.org/​|gEDA Wiki]]\\
 +[[http://​wiki.geda-project.org/​geda:​gschem_symbol_creation|gschem symbol creation guide]]\\
 +[[http://​www.gedasymbols.org|Repository of contributed symbols and footprints]]\\
 +[[http://​pcb.geda-project.org/​|pcb project]]\\
 +[[http://​pcb.geda-project.org/​pcb-20110918/​pcb.pdf|PCB-20110918 manual]]\\
 +[[http://​wiki.geda-project.org/​geda:​pcb_footprints|pcb footprint guide]]\\
 +[[http://​www.brorson.com/​gEDA/​land_patterns_20070805.pdf|Footprint creation guide]]\\
 +[[http://​wiki.geda-project.org/​geda:​gsch2pcb_tutorial|gschem to pcb tutorial]]\\
 +[[http://​tinymicros.com/​mediawiki/​images/​3/​3c/​IPC-SM-782A.pdf|IPC-SM-782A.pdf]] (IPC SM 782A Surface Mount Design and Land Pattern Standard)\\
notes/geda_tips.1342337898.txt.gz · Last modified: 2013/02/02 11:21 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0