User Tools

Site Tools


geda

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
geda [2013/05/29 08:20] – [PCB Tips] samtodgeda [2019/08/29 12:04] (current) – [Create a new project] maferreira
Line 1: Line 1:
 ====== gEDA ====== ====== gEDA ======
 ===== Installation ===== ===== Installation =====
 +
 -- For Debian the installation is very easy -- For Debian the installation is very easy
-<code bash>aptitude install geda-gschem geda-symbols geda-utils geda-gnetlist pcb geda-xgsch2pcb</code>+<code bash>aptitude install geda-gschem geda-symbols geda-utils geda-gnetlist pcb geda-xgsch2pcb git</code>
  
   - After installation, copy your library folder into your "home directory".   - After installation, copy your library folder into your "home directory".
Line 8: Line 9:
   - Create ~/.gEDA/gschemrc   - Create ~/.gEDA/gschemrc
  
-<code> +===== Configuration ===== 
-(component-library "${HOME}/library/gschem-sym") + 
-(component-library-search "${HOME}/library/gschem-sym/") +At bolay.co, we use our internal library. We didn't need to install them system wide. 
-(load (build-path geda-rc-path "gschem-lightbg"))+We prefere to add the library for each project as a git sub-module, referring to the 
 +exact version of library that match this project. 
 +    
 +===== Create a new project ===== 
 + 
 +  * Create a new directory for the project 
 +  * Init a git repository 
 +  * Clone the gEda_Library repos to Libs (With git submodule) 
 +  * Copy gitignore from Libs/Config/gitignore to .gitignore 
 +  * Launch install script (./Libs/install.sh) 
 +<code bash> 
 +  mkdir ~/Projects 
 +  cd ~/Projects 
 +  mkdir mynewproject 
 +  cd mynewproject 
 +  git init 
 +  git submodule init 
 +  git submodule add git@git.bolay.co:gEDA_library.git Libs 
 +  cp Libs/Config/gitignore .gitignore 
 +  ./Libs/install.sh
 </code> </code>
  
--- copy gschemrc to gnetlistrc+When cloning a project from git.bolay.co, don't forget to do: 
 +<code bash> 
 +  git clone git@git.bolay.co:MyProject.git 
 +  git submodule init 
 +  git submodule update 
 +   
 +  git pull origin <branch>   
 +</code> 
 + 
 +Or  
 + 
 +<code bash> 
 +  git clone --rerursive git@git.bolay.co:MyProject.git 
 +  cd MyProject 
 +  git pull origin <branch> 
 +</code> 
 + 
 +When you want to modify a libray: 
 +<code bash> 
 +  ./Libs/install.sh 
 +  cd Libs/ 
 +  git checkout origin/develop # Don't forget 
 +   
 +  # Do something 
 +  git commit -am "Message like Add DS18B20.sym" 
 +  git push # Don't forget 
 +  cd .. 
 +  git commit -am "Update gEda Library" 
 +   
 +</code> 
 + 
  
 ===== Create Symbol ===== ===== Create Symbol =====
Line 179: Line 230:
  
  
 +For more information, please visit : [[http://www.brorson.com/gEDA/land_patterns_20070818.pdf]]
 +or another link for the same doc [[https://github.com/evanfarrar/opensprints/raw/0b994c2b6b539b8a3beab4ea42a6447f10e396a3/hardware/interface_board/geda/docs/land_patterns_20070818.pdf]]
 ===== Schematic to PCB ===== ===== Schematic to PCB =====
  
Line 195: Line 248:
   - If there isn't any error, you can start your PCB.   - If there isn't any error, you can start your PCB.
  
 +
 +If the first solution does not work, try this:
 +
 +  - Open the terminal 
 +  - cd /AAA/BBB/YOUR_FOLDER (Folder where your schematic is located)
 +  - gsch2pcb -d /AAA/BBB/YOUR_SCHEMATIC.sch
 +  - Now, a new file was created on your folder (YOUR_SCHEMATIC.pcb) 
 +  - Run the .pcb and it's done
 +
 +Sometimes, the netlist does not load:
 +  - In the .pcb, select **File->Load netlist file**
 +  - Search in your folder the .net
 +  - Type o to optimise rat
 +  - You can start route
 ===== Import the board on PCB ===== ===== Import the board on PCB =====
  
Line 321: Line 388:
  
 If you want to convert your component into a single element, select all your component , copy it into the buffer. Select Buffer in the toolbar, click to **Convert buffer to element** and **Paste buffer to layout**. It's done, your component is edit. If you want to convert your component into a single element, select all your component , copy it into the buffer. Select Buffer in the toolbar, click to **Convert buffer to element** and **Paste buffer to layout**. It's done, your component is edit.
 +
 +===== Add a new footprint in your pcb =====
 +
 +  - Open the terminal
 +  - cd /AAA/BBB/YOUR_FOLDER (Folder where your schematic is located)
 +  - gsch2pcb -d /AAA/BBB/YOUR_SCHEMATIC.sch
 +  - Run pcb on your file YOUR_SCHEMATIC.pcb
 +  - Select **File -> Load layout data to paste buffer**
 +  - Select YOUR_SCHEMATIC.new.pcb to load your new footprint
 +  - Select **File -> Load netlist file** and select YOUR_SCHEMATIC.net
 +  - Type o to optimize rat
 +
 =====PCB Tips===== =====PCB Tips=====
  
Line 344: Line 423:
 There's some useless keyboard shortcut on gEDA : There's some useless keyboard shortcut on gEDA :
  
-   * 1 to 9 => change layer +   * **1 to 9 => change layer** 
-   * F1 to F11 => Tool selection (all description in PCB Tips)+   * **F1 to F11 => Tool selection (all description in PCB Tips)**
    * del => delete component, track, via, etc at the cursor location    * del => delete component, track, via, etc at the cursor location
    * shift+del => delete selected objects    * shift+del => delete selected objects
-   * u => undo operation +   * **u => undo operation** 
-   * shift+r => redo operation+   * **shift+r => redo operation**
    * m => move our track on the selected layer    * m => move our track on the selected layer
    * shift+m => move selected object on the selected layer    * shift+m => move selected object on the selected layer
-   * b => change a component between the top and the bottom+   * **b => change a component between the top and the bottom**
    * shift+b => change all component selected between the top and the bottom    * shift+b => change all component selected between the top and the bottom
    * z & shift+z => Zoom    * z & shift+z => Zoom
    * v => zoom out completely    * v => zoom out completely
-   * tab => switch the side of the view +   * **tab => switch the side of the view** 
-   * n => edit all kind of text+   * **n => edit all kind of text**
    * h => show/hide component name    * h => show/hide component name
    * d => show/hide the number/name of pin/via    * d => show/hide the number/name of pin/via
-   * f => highlight selected connection+   * **f => highlight selected connection**
    * shift+f => reset all highlight connection    * shift+f => reset all highlight connection
    * i => open library window    * i => open library window
Line 371: Line 450:
    * maj+v & maj+ctrl+v =>add or subtract 5mil to default via size    * maj+v & maj+ctrl+v =>add or subtract 5mil to default via size
    * alt+v & maj+alt+v =>add or subtract 5mil to default via drill    * alt+v & maj+alt+v =>add or subtract 5mil to default via drill
-   * o => acualise and optimize all rats +   * **o => acualise and optimize all rats** 
-   => bring out the connexion+   **q => make a line/pad rectangular** 
 +   * k => increase the size of the clearance of a track 
 +   * shift+k => decrease the size of the clearance of a track
  
 +=====Plan de masse=====
  
 +Pour pouvoir créer un plan de masse ou de VCC, il suffit de tracer un rectangle. 
 +
 +En utilisant l'outil **THRM** et en cliquant sur des trous, cela va directement connecter le trou au plan. 
 +
 +{{:via_hole.png?200|}}
 +
 +Pour connecter directement une piste au plan, il faut décocher la case "**New lines, arcs clear polygons**" dans l'onglet **Settings**. Ainsi, lorsqu'on tracera une nouvelle piste, elle va se connecter toute seule au plan. Pour les anciennes pistes, il faudra les retracer, autrement elles ne seront pas connectées. 
 +
 +**Attention:** cochez à nouveau la case si vous refaites une piste qui ne doit pas être connectée au plan !  
 =====Create a build of material from shematics===== =====Create a build of material from shematics=====
  
Line 400: Line 491:
  
 <note important>You mustn't be a root when you write this command</note> <note important>You mustn't be a root when you write this command</note>
 +
 +=====Create a .zip with the terminal=====
 +
 +  * Open your terminal
 +  * cd /Projectfile
 +  * $ 7z a -tzip Projectfile.zip .
 +
 +
  
 =====Create a screen of your PCB===== =====Create a screen of your PCB=====
Line 467: Line 566:
  
 <note warning>Do not forget the :1 after the name, otherwise it will not work.</note> <note warning>Do not forget the :1 after the name, otherwise it will not work.</note>
 +
 +==== gschem2pcb with command line ====
 +
 +gsch2pcb EdgeBoard_DS18B20.sch --elements-dir ../gEDA_library/PCB_elements/
  
  
Line 472: Line 575:
 ==== Links ===== ==== Links =====
   * http://wiki.geda-project.org/   * http://wiki.geda-project.org/
 +  * http://underhill.hhhh.org/ldoc/geda-gaf/wiki/geda-pcb_tips.fr.html
   * [[http://www.iznogood-factory.org/pub/gEDA/tutorialfr.html|iznogood]]   * [[http://www.iznogood-factory.org/pub/gEDA/tutorialfr.html|iznogood]]
   * [[http://www.gedasymbols.org|Footprints]]   * [[http://www.gedasymbols.org|Footprints]]
geda.1369815617.txt.gz · Last modified: 2013/05/29 08:20 by samtod