<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- this stylesheet will later on be added by lfparser automatically: -->
  <style type="text/css">
<!--
  pre { font-family:monospace,Courier }
  pre.code { font-family:monospace,Courier;background-color:#aedbe8; }
  p.code { width:80%; alignment:center; background-color:#aedbe8; 
        border-style:none; border-width:medium; border-color:#aedbe8; 
        padding:0.1cm ; text-align:left }
-->
  </style>
</head>
<body>
<h1>Using gEDA</h1>
<h4>ArticleCategory: [Choose a category, translators: do not translate
this, see list below for available categories]</h4>
Applications
<h4>AuthorImage:[Here we need a little image from you]</h4>
<img src="../../common/images2/article355/iznoT2.png"
 alt="[Photo of the Author]" height="100" width="100">
<h4>TranslationInfo:[Author + translation history. mailto: or http://homepage]</h4>
<p>original in en <a href="mailto:iznogood/at/iznogood-factory.org">Iznogood</a></p>

<h4>AboutTheAuthor:[A small biography about the author]</h4>
<p>Involved in GNU/Linux for a while, I'm now running a Debian
system. Despite electronic studies, I've mostly done a translation work for the
GNU/Linux community.
</p>
<h4>Abstract:[Here you write a little summary]</h4>
How to develop some Printed Board Circuits with free tools from the
<a href="http://www.geda.seul.org">gEDA</a> community.
<h4>ArticleIllustration:[One image that will end up at the top of the
article]</h4>
<img src="../../common/images2/article355/logo.png" alt="[Illustration]"
 height="85" hspace="10" width="300">
<h4>ArticleBody:[The main part of the article]</h4>
<h2>Introduction</h2>
Why another article to talk about EDA, Electronic Design Automation?
Because there is more than one way to do it and this one is free. One of
its best particularity is the fact that we have a set of tools, some
graphical ones but mostly command line based. With this article, I will just
show how to make a PCB (Printed Circuit Board) from the beginning.
<h2>What is gEDA?</h2>
Most important, gEDA is a set of free (in the GPL way) electronic tools.
It is therefore always in development state.
I put here
the gEDA diagram. Click on it to enlarge.
<br>
<br>
<center><a href="../../common/images2/article355/gEDA.png"><img src="../../common/images2/article355/gEDA1.png" alt="[Illustration]" hspace="10" width="600" height="368"></a></center><br>
In the center, we have gschem, the graphical schematic and symbol
editor.
It can be called by geda, the manager, on top of gschem. With it, you
can not only launch gschem but a spice simulator, a pcb designer, a
gerber and a waveform viewer.<br>
On the top left, with tragesym, you can create symbols and gsymcheck
will check them.<br> Most interesting for us, down gschem, we have 
two ways of doing net-lists. It is a gEDA particularity: every exchange
file is in plain text, only the extension indicate the goal:
<br>
<ul>
  <li>.sym for symbols files</li>
  <li>.sch for schematic files&nbsp;</li>
  <li>.net for net-list files&nbsp;</li>
  <li>.pcb for pcb files and so on...<br>
  </li>
</ul>
You have gnetlist, the "official" way to do net-listing for spice
simulation with tclspice, ngspice, gnucap, Verilog synthesis with
Icarus or PCB creation. gsch2pcb is a net-lister dedicated for pcb. It
does the translation from .sch file components to pcb file, back
and forth. And to finish, we check the pcb file with gerbv.
<br>
In this article I will only talk about gschem, gsch2pcb and PCB. We
will begin with gschem.<br>
<h2>Placing components with gschem</h2>
I won't talk a lot about installation: apt-get install geda-gschem
geda-symbols geda-utils pcb for GNU/Debian. <br>
On others systems,
download the required files on http://geda.seul.org/source.html,
http://pcb.sourceforge.net/ for PCB and ./configure &amp; make &amp;
make install as usual.<br>
<br>
Ok, let's open gschem. We have two ways to do it: we open it with the
command gschem alone or we put a filename like: <i>gschem sample.sch</i>. Now
we can place components: one more time, we have two choices: with the mouse
and "Add Component" or from the keyboard with "i". We select BNC-1.sym,
pwrjack-1.sym in connector, 2 resistor-2.sym, 1
resistor-variable-2.sym, 2 capacitor-1.sym, 2 capacitor-2.sym,
bridge-1.sym in analog, lm317-1.sym in linear.
We will have this picture as result:
<br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample1.png"  width="589" height="468"><br>
</div>
<br>
<br>
Don't worry, you can download all files 
<a href="http://www.iznogood-factory.org/pub/gEDA/introgEDA.en.html">from
my homepage (updated)</a> or <a href="../../common/src2/article355/">from
this server</a>.
<br> 
Now we can wire the components. To do it, we need to move them
and make rotations. Since we are lazy people, we will use keyboard
shortcuts: click on component then "er" for rotation, "ei" for
mirroring, "m" for moving, and "n" for wiring the components. We can
select only the part name to move or rotate it. <br>
<br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample2.png"  width="583" height="425"><br>
</div>
<br>
<br>
Once done, we can edit each component attribute with "ee". We can begin
with the most important component : LM317. When we open the attribute
box, we can see this:<br>
<br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample3.png"  width="322" height="402"><br>
</div>
<br>
<br>
We write LM317 into value name and TO220L for footprint (make it
invisible). For resistors, the value is indicated above on the schema
and the footprint is R025. And so on for capacitors,
potentiometers (you can see the sample.sch file added to the
article)...
Once we have finished, we can save it with a "fs" if the file have a
name and "fa" otherwise.
<br>
<h2>Translation with gsch2pcb</h2>
First, we need to give a number to the parts with the command:
<pre class="code">refdes_renum sample.sch<br><br></pre>
If we reopen the file, we will see all ? from R?, C? U? changed to a
number. This mean we can make a net-list. First we must
install some footprint library and make a project file. We need to do
it because there is a lack of documentation for pcb footprint use
with gschem or I haven't found it. A good footprint set can be found
here :
<a
href="http://web.wt.net/%7Ebillw/gsch2pcb/gsch2pcb-libs.tar.gz">http://
web.wt.net/%7Ebillw/gsch2pcb/gsch2pcb-libs.tar.gz</a>. (<a
href="../../common/src2/article355/">local copy</a>)<br>
Download and install it with:
<pre class="code">
mv gsch2pcb-libs.tar.gz ~/toTheLocationYouWant/
tar xvzf gsch2pcb-libs.tar.gz
</pre> 
Then you
can make a project file with:<br>
<br>
schematics sample.sch
<br>
elements-dir ~/XXX/pcb-elements
<br>
output-name sample<br>
<br>
I have named it sampleLFprojet but you can use the name you want.
The schematics is for our gschem file. Elements-dir gives to pcb the
footprint directory to use (replace XXX with your directory location
for
pcb-elements). And the output-name is to continue with the sample name
for pcb. We save it in the same sample.sch directory.<br>
<br>
The next step is to run:<br>
<pre class="code">gsch2pcb tutorialLFprojet<br><br></pre>
The output are files named sample.board and sample.net. The first one
lists all
component parts to be used with PCB and the second one is the net
listing.<br>
<h2>Making a circuit with PCB</h2>
We can start now with PCB. Open :
<pre class="code">pcb sample.pcb<br><br></pre>
You will have this picture :
<br>
<br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample4.png"  width="447" height="316"><br>
</div>
<br>
<br>
All components are packed to the left up side. We need to place the
components on the board. Then we call the wires (nets) with the
sample.net file with File --&gt; load net-list file and optimize Connect
--&gt; rast-nets. It's quite magic.
<br>
<br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample5.png"  width="600" height="628"><br>
</div>
<br>
<br>
Now we place nets as desired with Line and solder mask selection. <br>
<br>
<div style="text-align: center;"><img alt="" src="../../common/images2/article355/sample6.png"  width="600" height="592"><br>
<br>
<br>
</div>
It's finished: you just have to save and make a File --&gt; print layout
to have your pcb printed.
<h2>Conclusion</h2>
The goal of this article was just to have a straight and rough
introduction to of some of the gEDA tools available and to show an easy,
short way to make a PCB.  But gEDA is so much more that it will take
you a long time to play around with it: you will need to make a lot of
optimizations to make an output usable for professional pcb makers.
<br>
<h2>Related articles</h2>
This article is mainly influenced and based on the Bill Wilson
bill--at--gkrellm.net documentation <a

href="http://web.wt.net/%7Ebillw/gsch2pcb/gsch2pcb.html">gsch2pcb.html</a>.<br> And you can find more information at <a
 href="http://www.geda.seul.org">www.geda.seul.org</a>. <br>
PCB can be found at <a href="http://pcb.sourceforge.net/">pcb.sourceforge.net</a>.<br>
If you understadn french then you can find more on 
<a href="http://www.iznogood-factory.org">http://www.iznogood-factory.org</a> 
and for english speaking people, there is  some stuff 
<a href="http://www.iznogood-factory.org/pub/gEDA/introgEDA.en.html">here</a>.<br><br>
<!-- vim: set sw=2 ts=2 et tw=74: -->
</body>
</html>