Difference between revisions of "GEDA"

From ArchWiki
Jump to: navigation, search
(Create schematic symbol)
(update Pkg/AUR templates (https://github.com/lahwaacz/wiki-scripts/blob/master/update-package-templates.py))
 
(4 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
Installing {{pkg|geda-gaf}} will give you the schematic editor and attribute editor, which is available in the [[official repositories]]. It may also be necessary to install {{pkg|ttf-dejavu}} and {{pkg|ttf-liberation}} to get the correct font scaling.
 
Installing {{pkg|geda-gaf}} will give you the schematic editor and attribute editor, which is available in the [[official repositories]]. It may also be necessary to install {{pkg|ttf-dejavu}} and {{pkg|ttf-liberation}} to get the correct font scaling.
  
Installing {{AUR|pcb}} will give you the PCB editor, available from the [[AUR]].
+
Installing {{Pkg|pcb}} will give you the PCB editor, available from the [[AUR]].
  
Also you can install {{AUR|xgsch2pcb}} ([[AUR]]), graphical interface to the gsch2pcb command-line tool for converting *.sch to *.pcb.
+
Also you can install {{AUR|xgsch2pcb}}{{Broken package link|{{aur-mirror|xgsch2pcb}}}} ([[AUR]]), graphical interface to the gsch2pcb command-line tool for converting *.sch to *.pcb.
  
 
== Configuration ==
 
== Configuration ==
Line 21: Line 21:
 
=== Create schematic symbol ===
 
=== Create schematic symbol ===
 
You can create new as you are creating schematics themselves. Open an empty file
 
You can create new as you are creating schematics themselves. Open an empty file
  # gschem mysymbol.sym
+
  $ gschem mysymbol.sym
and add pins with <code>ap</code> and attributes with <code>aa</code>. After you are done, do not forget to translate your symbol to absolute zero with <code>et</code>. If you don't, your symbol will probably be outside of your viewport once you are going to place it in your schematic.
+
and add pins with <code>ap</code> and attributes with <code>aa</code>. Check the [http://wiki.geda-project.org/geda:master_attributes_list geda wiki] for details. After you are done, do not forget to translate your symbol to absolute zero with <code>et</code>. If you do not, your symbol will probably be outside of your viewport once you are going to place it in your schematic.
  
 
Save the symbol with <code>fs</code> and check it with
 
Save the symbol with <code>fs</code> and check it with
  # gsymcheck -vv mysymbol.sym
+
  $ gsymcheck -vv mysymbol.sym
  
 
==== Schematic Search Path ====
 
==== Schematic Search Path ====
Line 36: Line 36:
 
=== Create schematic ===
 
=== Create schematic ===
 
Run schematic editor:
 
Run schematic editor:
  # gschem
+
  $ gschem
 
See also:
 
See also:
  
Line 42: Line 42:
  
 
=== Create and route PCB ===
 
=== Create and route PCB ===
Once you have reached a point of your schematic where you want to start routing the PCB (you can do this in an iterative fashion), it's time to create a gsch2pcb project. Add the following lines to a newly created file, called <code>firstpcb.prj</code>:
+
Once you have reached a point of your schematic where you want to start routing the PCB (you can do this in an iterative fashion), it is time to create a gsch2pcb project. Add the following lines to a newly created file, called <code>firstpcb.prj</code>:
 
  schematics firstpcb.sch
 
  schematics firstpcb.sch
 
  empty-footprint nofootprint
 
  empty-footprint nofootprint
Line 58: Line 58:
  
 
Now execute gsch2pcb with this project file:
 
Now execute gsch2pcb with this project file:
  gsch2pcb -f firstpcb.prj
+
  $ gsch2pcb -f firstpcb.prj
 
gsch2pcb will tell you what to do next or if there were any errors.
 
gsch2pcb will tell you what to do next or if there were any errors.
  
 
=== Export to gerber ===
 
=== Export to gerber ===

Latest revision as of 20:45, 19 December 2015

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:GEDA#)

The gEDA project has produced and continues working on a full GPL'd suite and toolkit of Electronic Design Automation tools. These tools are used for electrical circuit design, schematic capture, simulation, prototyping, and production. Currently, the gEDA project offers a mature suite of free software applications for electronics design, including schematic capture, attribute management, bill of materials (BOM) generation, netlisting into over 20 netlist formats, analog and digital simulation, and printed circuit board (PCB) layout.

The gEDA project was started because of the lack of free EDA tools for POSIX systems with the primary purpose of advancing the state of free hardware or open source hardware. The suite is mainly being developed on the GNU/Linux platform with some development effort going into making sure the tools run on other platforms as well.

(Source: gEDA homepage)

Installation

Installing geda-gaf will give you the schematic editor and attribute editor, which is available in the official repositories. It may also be necessary to install ttf-dejavu and ttf-liberation to get the correct font scaling.

Installing pcb will give you the PCB editor, available from the AUR.

Also you can install xgsch2pcbAUR[broken link: archived in aur-mirror] (AUR), graphical interface to the gsch2pcb command-line tool for converting *.sch to *.pcb.

Configuration

First PCB

Create schematic symbol

You can create new as you are creating schematics themselves. Open an empty file

$ gschem mysymbol.sym

and add pins with ap and attributes with aa. Check the geda wiki for details. After you are done, do not forget to translate your symbol to absolute zero with et. If you do not, your symbol will probably be outside of your viewport once you are going to place it in your schematic.

Save the symbol with fs and check it with

$ gsymcheck -vv mysymbol.sym

Schematic Search Path

Do not forget to place your symbol within the search path of gschem. It may also be helpful to extend this path to a folder in your own project by creating a file named
gafrc
in the project folder with the following content
(component-library "./symbols")

and then copy all symbols required by the project into a subfolder called "symbols".

Create PCB footprint

Create schematic

Run schematic editor:

$ gschem

See also:

FAQ page

Create and route PCB

Once you have reached a point of your schematic where you want to start routing the PCB (you can do this in an iterative fashion), it is time to create a gsch2pcb project. Add the following lines to a newly created file, called firstpcb.prj:

schematics firstpcb.sch
empty-footprint nofootprint
output-name firstpcb

This project will read from firstpcb.sch, ignore any parts having a footprint called 'nofootprint' and the output files will start be:

  • The PCB: firstpcb.pcb
  • The netlist: firstpcb.net
  • Pin name commands: firstpcb.cmd
  • ...

If you opted for a local symbols directory, you should include it here. Also you probably want a local footprint directory, too. So add these lines to the prj file:

elements-dir footprints
elements-dir symbols

Now execute gsch2pcb with this project file:

$ gsch2pcb -f firstpcb.prj

gsch2pcb will tell you what to do next or if there were any errors.

Export to gerber