X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yF7MU1QNZdXamQYF7x4PN4GgnjvDmRDZj8jm8AJqEU8=; b=TNkgnlXBWnm4AxTthqLXPieVBWS0bKrNnSOtBjbM8Adyx8DOnS5v3HWu2fDh+x5geP MSL9HWwDaGd/eJ354fDn6eQAk8T9caNO2Ug1yPEmfK81fIeabFf42JX611MMLQRsBr4/ yhSZptiBmqadV4TvSbJFclEiLJz7iqta4dOMkMp/zm3vlZpVLPxUbDZcFxqMB4SMy+wO GyommK6oMDftF+1HamIf7Z0PlcsKxewuSunJKXCK/HV//1AjsvG5onRBWzH8AKp54RSY 8ttIrKWetaZbOSpr376nFZUkZnJgaUO3AyY/cQicji/fY2qs/31z7TKTcBUPFlRdl43u /PJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yF7MU1QNZdXamQYF7x4PN4GgnjvDmRDZj8jm8AJqEU8=; b=YutgNnkkzEjNRCxM78S3HZHK8WpJnEuDE5zpXeIKVltj5WhjG72NJ4HY6dnpA8XRM1 baxdaZUL+hBs2QEf9hz181vPI8+x0Op+74Q5Ys7PPuUkjtWMv53PsTSGLFMdlWaRhVCF UTDG8VTCQM89doODSTfqtnqH0DayfbH7XADWDTZuqRygFK1V7XC8y9X5DQ54NEh5wpOm OTiOeVfUCH7RfCsuw0xfinAiDcA9y2Qz+em/Uz04bJPdKFG1EHshVaK/INTCui6KIm/1 /76dzDjES3T8OWKYKhexZz595Ym7fTXeIeL2PP9/JP47PRtupm14sLb+sn8n1NFdhTgZ ab1Q== X-Gm-Message-State: AJcUukeO1oRy8gzZ+fbV57dd2p+Q2TbqBVFbYQgehlhg+n23tdCYH45B U4oWh2kHNbyKfOf3rEVIFAcY8mFoUuY9gH+CnE29uA== X-Google-Smtp-Source: ALg8bN4NYfkPkHnuFtzZuvaLpv/XbFNLQb9SZ/HI7s/zLgLBZHQs/zEFyD5RR5LBE+CwO3hBeE+sI56jAulYQr6Hl40= X-Received: by 2002:a65:4381:: with SMTP id m1mr2272295pgp.358.1548256760219; Wed, 23 Jan 2019 07:19:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Chad Parker (parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com]" Date: Wed, 23 Jan 2019 10:19:08 -0500 Message-ID: Subject: Re: [geda-help] Tutorial To: geda-help AT delorie DOT com Content-Type: multipart/alternative; boundary="00000000000036d4bb0580219e00" Reply-To: geda-help AT delorie DOT com --00000000000036d4bb0580219e00 Content-Type: text/plain; charset="UTF-8" Hi Torben- Your file structure isn't quite right. You need to put the gafrc file into the myproject1 directory. Also, add a line to the project file: elements-dir ../pcb-elements This tells gsch2pcb where to look for elements (footprints) when it builds the initial pcb file for you. In gschem, you have to add a "footprint" attribute to each part. This tells gsch2pcb which element file to use for that part. The order of the attributes doesn't matter. If you don't like a particular element, you can change the value of the footprint attribute so that it points to something else. This could be a different one from the built-in library, or it could be one of your custom ones. Similarly, if you don't like a symbol, go ahead and create a custom one. Then you just have to add a footprint attribute to it that points to whatever element file you want to use. The recommended way to create a new symbol is to make a copy of an existing symbol that is similar to what you want and modify it. The actual file structure doesn't matter much. You can organize it however you want. If you'd rather put your elements into the "packages" directory, go ahead. Just update the path in your projects file to point there. You should look through the files you downloaded with CVS, and find the specific symbols and footprints that you want to use. Then copy them into the folders in your project hierarchy. The location of the system library files can be system dependent, but it's often something like: /usr/local/share/gEDA/sym /usr/local/share/pcb/pcblib-newlib The file #one.sch# is either a lock file or a backup file, I don't remember which. --Chad On Wed, Jan 23, 2019 at 6:02 AM Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com] wrote: > Hi Chad, > As I understand you the following file structure will work: > > /home/ > gaf/ > gafrc (contents: (component-library-search "../gschem-sym")) > gschem-sym/ > myproject1/ > board.cmd > board.net > board.pcb > one.sch > PCB.0005336.backup > project (contents: schematics one.sch two.sch & output-name > board) > two.sch > #one.sch# ?????????????? > myproject2 > . > . > . > packages ??????????????? > pcb-elements/ > packages > > where my own symbols are stored in /home/gaf/gschem-sym/ and my own > pcb-elements are stored in /home/gaf/pcb-elements/packages. > The symbols file (as the name implies) only contains symbols (fx. 300 mil, > microprocessor with 8 legs) and the pcb-elements contains actual products > (fx. Picaxe 08M2). > > When I chose a component the first 3 attributes (device, symversion and > refdes) deal with the symbol and the 4th is the actual product? > > Where do I find the sym- and pcb-elements files that turn up when I have > not entered my own versions? > > Can I make do with the already (pre)installed sym files and just enter my > own pcb-elements? > > What should go into the separate file "packages"? > > Will the file (CVS) I showed in my previous mail do as pcb-elements? > > I hope the many questions dont bother you, but your answers would greatly > help me understand the system. > best regards > torben > > > On Tue, Jan 22, 2019 at 7:56 PM Chad Parker (parker DOT charles AT gmail DOT com) > [via geda-help AT delorie DOT com] wrote: > >> Hi Torben- >> >> The files $HOME/.gEDA/gafrc is global, and will apply to all designs. If >> you have centralized libraries, you would want to include them there. For >> example, I have a $HOME/lib/geda/sym directory. So, in $HOME/.gEDA/gafrc, I >> have a line that looks like this: >> >> (component-library "$HOME/lib/geda/sym", "CPark") >> >> Any symbol file that I put in $HOME/lib/geda/sym will show up as part of >> a library in gschem called "CPark" (substitute $HOME with your own path >> absolute path). Paths that you put into this file should be absolute paths >> (e.g. /home/me/lib/geda/sym), not relative (e.g. ./lib/geda/sym). >> >> For a particular project, my project directory might look like this: >> workspace/ >> tutorial/ >> syms/ >> my-gschem-symbol.sym >> elements/ >> my-pcb-footprint.fp >> gafrc >> tutorial.cmd >> tutorial.net >> tutorial.pcb >> tutorial.prj >> tutorial1.sch >> tutorial2.sch >> >> The gafrc file that you see there, is local to the project, so, if I >> execute the following: >> > cd workspace/tutorial >> > gschem & >> >> gschem will use the global file in $HOME/.gEDA/gafrc and also the project >> specific gafrc from the working directory. In the project specific gafrc >> file, I would have a line: >> >> (component-library "./syms" "ProjectSymbols") >> >> and any gschem symbol files I put into the syms subdirectory of my >> project would show up under a library named "ProjectSymbols" in gschem. In >> the tutorial.prj file, you would add a line: >> >> elements-dir ./elements >> >> so that it knows where to look for project specific footprints. >> >> Now you can copy whatever symbols or footprints you want to use into the >> syms or elements directories and they should be found. >> >> --Chad >> >> On Tue, Jan 22, 2019 at 11:21 AM Torben Friis (friistf AT gmail DOT com) [via >> geda-help AT delorie DOT com] wrote: >> >>> Hi, >>> I am still not quite sure what to do. I have created the file: >>> >>> torben AT torben-Aspire-E5-773G:/usr/share/gEDA$ ls /home/.gEDA/gafrc >>> /home/.gEDA/gafrc >>> >>> torben AT torben-Aspire-E5-773G:/usr/share/gEDA$ cat /home/.gEDA/gafrc >>> (component-library-search "../gschem-sym") >>> I have version GSCHEM 1.8.2. >>> >>> I suppose that I have to fill the files "gaf/gschem-sym/" and >>> "gaf/pcb-elements/packages/". >>> >>> I have found a file (CVS Access): >>> >>> PCB "~geda" library >>> >>> 01005 - Standard SMT resistor, capacitor etc >>> 0201 - Standard SMT resistor, capacitor etc >>> 0402 - Standard SMT resistor, capacitor etc >>> 0603 - Standard SMT resistor, capacitor etc >>> 0805 - Standard SMT resistor, capacitor etc >>> 1008 - Standard SMT resistor, capacitor etc >>> 1206 - Standard SMT resistor, capacitor etc >>> 1210 - Standard SMT resistor, capacitor etc >>> 1806 - Standard SMT resistor, capacitor etc >>> 1806 - Standard SMT resistor, capacitor etc >>> 1825 - Standard SMT resistor, capacitor etc >>> 2706 - Standard SMT resistor, capacitor etc >>> ACY1000 - Axial non-polar component (typically resistor or >>> capacitor), >>> ACY1000P - Axial polar component (typically capacitor), >>> . >>> . >>> . >>> >>> If that is indeed the PCB-elements file, where do I find the >>> corresponding symbols file? >>> best regards >>> torben >>> >>> >>> On Thu, Jan 10, 2019 at 2:49 PM Chad Parker (parker DOT charles AT gmail DOT com) >>> [via geda-help AT delorie DOT com] wrote: >>> >>>> Torben- >>>> >>>> Look under the "Setup" section of the tutorial where he talks about >>>> setting up a project directory structure. >>>> >>>> http://wiki.geda-project.org/geda:gsch2pcb_tutorial#setup >>>> >>>> "in each project directory (like myproject1 and myproject2) there could >>>> be a *gafrc* file..." >>>> >>>> --Chad >>>> >>>> On Thu, Jan 10, 2019 at 4:14 AM Torben Friis (friistf AT gmail DOT com) [via >>>> geda-help AT delorie DOT com] wrote: >>>> >>>>> Hi Chad, >>>>> Before I got your reply I had prepared the following: >>>>> I might add that I have added "picaxe" to /usr/share/gEDA/sym/ with >>>>> the following 3 symbols: >>>>> >>>>> SIP3.fp >>>>> SIP4.fp >>>>> SO8W.fp >>>>> >>>>> but picaxe does not show up under Library. >>>>> >>>>> I have followed BW's tutorial, but I do not have a gafrc file. How do >>>>> I get that? >>>>> torben >>>>> >>>>> On Wed, Jan 9, 2019 at 1:43 PM Torben Friis wrote: >>>>> >>>>>> Hi Chad, >>>>>> In gschem I only have "library" to chose symbols from. I wanted more >>>>>> - fx. newlib. How do I get it? >>>>>> >>>>>> I have used the instructions in: >>>>>> >>>>>> http://www.gedasymbols.org/cvs.html >>>>>> >>>>>> to place the following: >>>>>> >>>>>> torben AT torben-Aspire-E5-773G: ls /home/geda >>>>>> CVS CVSROOT scripts www >>>>>> >>>>>> where /home/geda was an empty directory. >>>>>> >>>>>> torben AT torben-Aspire-E5-773G:/home/geda/scripts$ ls >>>>>> 2pad.cgi dilpad.cgi footprint.pcb reindex >>>>>> cgi-lib.pl eps2png global_list.cgi search.cgi >>>>>> csv.cgi footprint.cgi make-fp-library symbol.cgi >>>>>> CVS footprint.html math.pl symbol.html >>>>>> >>>>>> Can I get from this to a more comprehensive list of symbols in >>>>>> gschem? I am stuck. >>>>>> best regards >>>>>> torben >>>>>> >>>>>> >>>>>> On Thu, Jan 3, 2019 at 7:58 PM Torben Friis >>>>>> wrote: >>>>>> >>>>>>> Hi Chad, >>>>>>> OK. I will try again. >>>>>>> torben >>>>>>> >>>>>>> On Thu, Jan 3, 2019 at 3:45 PM Chad Parker (parker DOT charles AT gmail DOT com) >>>>>>> [via geda-help AT delorie DOT com] wrote: >>>>>>> >>>>>>>> Torben- >>>>>>>> >>>>>>>> The square terminal generally indicates "pin 1" of the device. This >>>>>>>> is done so that when you're installing the components, you know the proper >>>>>>>> orientation. For some parts this is important, like for the opamps in the >>>>>>>> design. For other parts, like the resistors, it doesn't matter, they can go >>>>>>>> either way. >>>>>>>> >>>>>>>> Part of the fun of building a circuit board is figuring out where >>>>>>>> to place the components and how to connect them, kind of like a puzzle, but >>>>>>>> with no one answer. You can place them however you like. Many people use a >>>>>>>> strategy where you try to place the parts such that you minimize the >>>>>>>> lengths of the traces connecting those parts. You could also arrange them >>>>>>>> in a pattern to resemble a bug, or a star, or anything you find >>>>>>>> aesthetically pleasing. In most cases (i.e. not radio frequency or high >>>>>>>> speed (>10s of MHz) digital electronics), the exact placement of parts >>>>>>>> doesn't matter. >>>>>>>> >>>>>>>> --Chad >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jan 3, 2019 at 9:32 AM Torben Friis (friistf AT gmail DOT com) >>>>>>>> [via geda-help AT delorie DOT com] wrote: >>>>>>>> >>>>>>>>> Hi Chad, >>>>>>>>> Should I place R101, R102 and R103 together? And if I do, >>>>>>>>> should'nt R103 have round terminal points at both ends? I assume that the >>>>>>>>> square ones are to be connected to the GND. >>>>>>>>> I am not an electronics expert. >>>>>>>>> torben >>>>>>>>> >>>>>>>>> On Thu, Jan 3, 2019 at 2:13 PM Chad Parker ( >>>>>>>>> parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>> >>>>>>>>>> Torben- >>>>>>>>>> >>>>>>>>>> Okay, I see what you're referring to. This is a bug in the >>>>>>>>>> tutorial. It looks to me like the first set of figures were created with an >>>>>>>>>> older version of PCB and the other set with a newer one and a later date. >>>>>>>>>> What likely happened is that the same circuit was used, but the schematic >>>>>>>>>> was redrawn when the new figures were added, and because the parts would >>>>>>>>>> have been arranged differently, the reference designators ended up >>>>>>>>>> changing. The underlying circuit appears to be the same, just the names of >>>>>>>>>> the parts have been swapped. You can even see that the footprint of R101 is >>>>>>>>>> different. >>>>>>>>>> >>>>>>>>>> Ultimately, the rat lines on your pcb should be consistent with >>>>>>>>>> the connections you made in the schematic. So, as long as you connect your >>>>>>>>>> parts accordingly, you should be fine. >>>>>>>>>> >>>>>>>>>> Thanks for pointing this out. We should fix it so that it's >>>>>>>>>> consistent. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> --Chad >>>>>>>>>> >>>>>>>>>> On Wed, Jan 2, 2019 at 5:36 PM Torben Friis (friistf AT gmail DOT com) >>>>>>>>>> [via geda-help AT delorie DOT com] wrote: >>>>>>>>>> >>>>>>>>>>> Hi Chad, >>>>>>>>>>> The link is: >>>>>>>>>>> >>>>>>>>>>> http://wiki.geda-project.org/geda:gsch2pcb_tutorial >>>>>>>>>>> best regards >>>>>>>>>>> torben >>>>>>>>>>> >>>>>>>>>>> On Wed, Jan 2, 2019 at 10:55 PM Chad Parker ( >>>>>>>>>>> parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Torben- >>>>>>>>>>>> >>>>>>>>>>>> Are you still working through the Bill Wilson tutorial? If so, >>>>>>>>>>>> I'm not sure what you mean by page 6. Can you please provide a link to the >>>>>>>>>>>> tutorial you're referring to? >>>>>>>>>>>> >>>>>>>>>>>> Thanks, >>>>>>>>>>>> --Chad >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Jan 2, 2019 at 3:44 PM Torben Friis (friistf AT gmail DOT com) >>>>>>>>>>>> [via geda-help AT delorie DOT com] wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi Chad, >>>>>>>>>>>>> I am confused by the UBUNTU geda tutorial. >>>>>>>>>>>>> In the beginning R101, R102 and R103 are placed together. On >>>>>>>>>>>>> page 6 R102, R201 and R103 are placed together in the same place and R102 >>>>>>>>>>>>> is placed where R201 was before. >>>>>>>>>>>>> I have other problems - fx with lines created in PCB - but I >>>>>>>>>>>>> would take one example to see if the confusion is my problem. >>>>>>>>>>>>> torben >>>>>>>>>>>>> >>>>>>>>>>>>> On Sat, Dec 29, 2018 at 5:10 PM Torben Friis < >>>>>>>>>>>>> friistf AT gmail DOT com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Chad, >>>>>>>>>>>>>> I deleted all files except Project, one.sch and two.sch and >>>>>>>>>>>>>> ran gsch2pcb once - and it worked. >>>>>>>>>>>>>> torben >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Wed, Dec 26, 2018 at 11:11 PM Chad Parker ( >>>>>>>>>>>>>> parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi Torben- >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> The second time you run gsch2pcb it looks at the >>>>>>>>>>>>>>> differences. The first time it may not have picked up all of the elements >>>>>>>>>>>>>>> due to footprint name errors. The second time (and all subsequent times) >>>>>>>>>>>>>>> you run it, it produces board.*new*.pcb, which contains the >>>>>>>>>>>>>>> new elements, so that it doesn't overwrite your original file. To get them >>>>>>>>>>>>>>> into the layout, you have to do as it says: open the layout then go to the >>>>>>>>>>>>>>> file menu, select "load layout data to paste buffer", and select >>>>>>>>>>>>>>> board.new.pcb. Then you can paste them into the layout. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Alternatively, if you haven't done any work on the pcb yet, >>>>>>>>>>>>>>> you can delete board.pcb and board.new.pcb and rerun gsch2pcb. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Also, make sure that you execute Select > Disperse All >>>>>>>>>>>>>>> Elements, as sometimes the elements will overlap when they're brought into >>>>>>>>>>>>>>> the layout. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Cheers, >>>>>>>>>>>>>>> --Chad >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Wed, Dec 26, 2018 at 2:44 PM Torben Friis ( >>>>>>>>>>>>>>> friistf AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> It is rather confusing. When I run gsch2pcb project I get: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> ---------------------------------- >>>>>>>>>>>>>>>> Done processing. Work performed: >>>>>>>>>>>>>>>> 5 file elements and 0 m4 elements added to board.new.pcb. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Next steps: >>>>>>>>>>>>>>>> 1. Run pcb on your file board.pcb. >>>>>>>>>>>>>>>> 2. From within PCB, select "File -> Load layout data to >>>>>>>>>>>>>>>> paste buffer" >>>>>>>>>>>>>>>> and select board.new.pcb to load the new footprints >>>>>>>>>>>>>>>> into your existing layout. >>>>>>>>>>>>>>>> 3. From within PCB, select "File -> Load netlist file" and >>>>>>>>>>>>>>>> select >>>>>>>>>>>>>>>> board.net to load the updated netlist. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> 4. From within PCB, enter >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> :ExecuteFile(board.cmd) >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> to update the pin names of all footprints. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> First it does not tally with the description given in the >>>>>>>>>>>>>>>> tutorial - I am using the one that comes with Ubuntu. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Second, when I run pcb board.pcb I get only the transistor >>>>>>>>>>>>>>>> and the resistor on the screen with a yellow line leading nowhere. >>>>>>>>>>>>>>>> Should'nt I get both one.sch and two.sch? If I folllow the instructions >>>>>>>>>>>>>>>> above I add the one.sch to the screen all bundled up. Both one.sch and >>>>>>>>>>>>>>>> two.sch appear to be OK. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> As I say, I am confused. >>>>>>>>>>>>>>>> best ergards >>>>>>>>>>>>>>>> torben >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Wed, Dec 26, 2018 at 3:46 PM Torben Friis < >>>>>>>>>>>>>>>> friistf AT gmail DOT com> wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> It worked. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Wed, Dec 26, 2018 at 3:26 PM Chad Parker ( >>>>>>>>>>>>>>>>> parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>>>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Hi Torben- >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Welcome to the community! Please feel free to post any >>>>>>>>>>>>>>>>>> questions you may have. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> I think the issue is that the CONNECTOR is no longer an >>>>>>>>>>>>>>>>>> m4 element, so, it's not generating it the way the tutorial thinks it >>>>>>>>>>>>>>>>>> should. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Looking through the pcb element footprints, there is, >>>>>>>>>>>>>>>>>> however, a footprint "CONNECTOR 1 2". I suspect that will serve for your >>>>>>>>>>>>>>>>>> purposes. Please try changing "CONNECTOR 2 1" --> "CONNECTOR 1 2" and see >>>>>>>>>>>>>>>>>> if that fixes it. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Thanks, >>>>>>>>>>>>>>>>>> --Chad >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Wed, Dec 26, 2018 at 7:00 AM Torben Friis ( >>>>>>>>>>>>>>>>>> friistf AT gmail DOT com) [via geda-help AT delorie DOT com] < >>>>>>>>>>>>>>>>>> geda-help AT delorie DOT com> wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>>>>> This is my first attempt at using geda-help. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> When in the Bill Wilson gEDA tutorial I use: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> gsch2pcb project >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> I get the following message in the log: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> CONN202: can't find PCB element for footprint >>>>>>>>>>>>>>>>>>> CONNECTOR-2-1 (value=unknown). >>>>>>>>>>>>>>>>>>> So device CONN202 will not be in the layout. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> The attributes of the connector are. >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> device: BNC >>>>>>>>>>>>>>>>>>> footprint: CONNECTOR 2 1 >>>>>>>>>>>>>>>>>>> refdes: CONN202 >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> I think that I have followed the instructions, so what >>>>>>>>>>>>>>>>>>> is wrong? >>>>>>>>>>>>>>>>>>> best regards >>>>>>>>>>>>>>>>>>> torben >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> --00000000000036d4bb0580219e00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Torben-

Your file structu= re isn't quite right. You need to put the gafrc file into the myproject= 1 directory. Also, add a line to the project file:

elements-dir ../pcb-elements

This tells gsch2pcb = where to look for elements (footprints) when it builds the initial pcb file= for you.

In gschem, you have to add a "footp= rint" attribute to each part. This tells gsch2pcb which element file t= o use for that part. The order of the attributes doesn't matter. If you= don't like a particular element, you can change the value of the footp= rint attribute so that it points to something else. This could be a differe= nt one from the built-in library, or it could be one of your custom ones. S= imilarly, if you don't like a symbol, go ahead and create a custom one.= Then you just have to add a footprint attribute to it that points to whate= ver element file you want to use.

The recommended = way to create a new symbol is to make a copy of an existing symbol that is = similar to what you want and modify it.

The a= ctual file structure doesn't matter much. You can organize it however y= ou want. If you'd rather put your elements into the "packages"= ; directory, go ahead. Just update the path in your projects file to point = there.

You should look through the files you downl= oaded with CVS, and find the specific symbols and footprints that you want = to use. Then copy them into the folders in your project hierarchy.

The location of the system library files can be syste= m dependent, but it's often something like:
/usr/local/share/= gEDA/sym
/usr/local/share/pcb/pcblib-newlib

<= div>The file #one.sch# is either a lock file or a backup file, I don't = remember which.

--Chad

On Wed, Jan 23= , 2019 at 6:02 AM Torben Friis (friist= f AT gmail DOT com) [via geda-help AT de= lorie.com] <geda-help AT delor= ie.com> wrote:
Hi Chad,
As = I understand you the following file structure will work:

/home/
= =C2=A0=C2=A0=C2=A0 gaf/
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 gafrc (con= tents: (component-library-search "../gschem-sym"))
=C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 gschem-sym/
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 myproject1/
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 board.cmd
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <= a href=3D"http://board.net" target=3D"_blank">board.net
=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 board.pcb
=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 one.sch
=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 PCB.0005336.backup
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 project (contents: schematics one.sc= h two.sch & output-name board)
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 two.sch
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 #one.sch#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ??????????????
=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 myproject2
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 .
=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 .
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 .
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 packages=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ???????????????
=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 pcb-elements/
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 packages
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=
where my own symbols are stored in /home/gaf/gschem-sym/ and my own pc= b-elements are stored in /home/gaf/pcb-elements/packages.
The symbols fi= le (as the name implies) only contains symbols (fx. 300 mil, microprocessor= with 8 legs) and the pcb-elements contains actual products (fx. Picaxe 08M= 2).

When I chose a component the first 3 attributes (device, symvers= ion and refdes) deal with the symbol and the 4th is the actual product?
=
Where do I find the sym- and pcb-elements files that turn up when I hav= e not entered my own versions?

Can I make do with the already (pre)i= nstalled sym files and just enter my own pcb-elements?

What should g= o into the separate file "packages"?

Will the file (CVS) I= showed in my previous mail do as pcb-elements?

I hope the many ques= tions dont bother you, but your answers would greatly help me understand th= e system.
best regards
torben


On Tue, Jan 22, 2019 at 7:56 PM Chad Parker (parker DOT charles AT gmail DOT com) [via = geda-help AT delori= e.com] <g= eda-help AT delorie DOT com> wrote:
Hi Torben-

The files $HOME/.gEDA/gafrc is global, and will apply to all designs. If= you have centralized libraries, you would want to include them there. For = example, I have a $HOME/lib/geda/sym directory. So, in $HOME/.gEDA/gafrc, I= have a line that looks like this:

(component-libr= ary "$HOME/lib/geda/sym", "CPark")

=
Any symbol file that I put in $HOME/lib/geda/sym will show up as part = of a library in gschem called "CPark" (substitute $HOME with your= own path absolute path). Paths that you put into this file should be absol= ute paths (e.g. /home/me/lib/geda/sym), not relative (e.g. ./lib/geda/sym).=

For a particular project, my project director= y might look like this:
workspace/
=C2=A0=C2=A0=C2=A0 t= utorial/
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 syms/
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 my-gschem-symbo= l.sym
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 elements/
<= div>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 my-p= cb-footprint.fp
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 gafrc
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tutorial.cmd=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tutorial.net
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tutorial.pcb
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 tutorial.prj
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 tutorial1.sch
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 tutorial2.sch
=C2=A0=C2=A0=C2=A0
T= he gafrc file that you see there, is local to the project, so, if I execute= the following:
> cd workspace/tutorial
> gschem = &

gschem will use the global file in $HOME/.gE= DA/gafrc and also the project specific gafrc from the working directory. In= the project specific gafrc file, I would have a line:

=
(component-library "./syms" "ProjectSymbols")

and any gschem symbol files I put into the syms subdir= ectory of my project would show up under a library named "ProjectSymbo= ls" in gschem. In the tutorial.prj file, you would add a line:

elements-dir ./elements

so t= hat it knows where to look for project specific footprints.

<= /div>
Now you can copy whatever symbols or footprints you want to use i= nto the syms or elements directories and they should be found.
--Chad

On Tue, Jan 22, 2019 at 11:21 AM Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com]= <geda-help AT d= elorie.com> wrote:
Hi,
I am= still not quite sure what to do. I have created the file:

torben AT to= rben-Aspire-E5-773G:/usr/share/gEDA$ ls /home/.gEDA/gafrc
/home/.gEDA/ga= frc

torben AT torben-Aspire-E5-773G:/usr/share/gEDA$ cat /home/.gEDA/ga= frc
(component-library-search "../gschem-sym")
I have versi= on GSCHEM 1.8.2.

I suppose that I have to fill the files "gaf/g= schem-sym/" and "gaf/pcb-elements/packages/".

I have = found a file (CVS Access):

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 PCB "~geda" library

=C2=A0=C2=A0=C2=A0 010= 05 - Standard SMT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 0201 - Stan= dard SMT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 0402 - Standard SMT = resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 0603 - Standard SMT resistor,= capacitor etc
=C2=A0=C2=A0=C2=A0 0805 - Standard SMT resistor, capacito= r etc
=C2=A0=C2=A0=C2=A0 1008 - Standard SMT resistor, capacitor etc
= =C2=A0=C2=A0=C2=A0 1206 - Standard SMT resistor, capacitor etc
=C2=A0=C2= =A0=C2=A0 1210 - Standard SMT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0= 1806 - Standard SMT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 1806 - S= tandard SMT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 1825 - Standard S= MT resistor, capacitor etc
=C2=A0=C2=A0=C2=A0 2706 - Standard SMT resist= or, capacitor etc
=C2=A0=C2=A0=C2=A0 ACY1000 - Axial non-polar component= (typically resistor or capacitor),
=C2=A0=C2=A0=C2=A0 ACY1000P - Axial = polar component (typically capacitor),
=C2=A0=C2=A0=C2=A0 .
=C2=A0= =C2=A0=C2=A0 .
=C2=A0=C2=A0=C2=A0 .

If that is indeed the PCB-ele= ments file, where do I find the corresponding symbols file?
best regards=
torben


On Thu, Jan 10, 2019 at 2:49 PM Chad P= arker (parker= .charles AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Torben-

Look under the "Setup&q= uot; section of the tutorial where he talks about setting up a project dire= ctory structure.


&qu= ot;in each project directory (like myproject1 and myproject2) there could b= e a gafrc file..."

--Chad

On Thu, = Jan 10, 2019 at 4:14 AM Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> = wrote:
Hi Chad,
Before I got your reply I had prepared the following:
I might add that I have added "picaxe" to /usr/share/gEDA/s= ym/ with the following 3 symbols:

SIP3.fp
SIP4.fp
SO8W.fp

but picaxe = does not show up under Library.

I have followed BW's tutorial, but I do not have a gafrc file= . How do I get that?
torben

On Wed, Jan 9, 2019 at 1:= 43 PM Torben Friis <friistf AT gmail DOT com> wrote:
Hi= Chad,
In gschem I only have "library" to chose symbols from. = I wanted more - fx. newlib. How do I get it?

I have used the instruc= tions in:

http://www.gedasymbols.org/cvs.html

to place the followi= ng:

torben AT torben-Aspire-E5-773G: ls /home/geda
CVS=C2=A0 CVSROOT= =C2=A0 scripts=C2=A0 www

where /home/geda was an empty directory.
torben AT torben-Aspire-E5-773G:/home/geda/scripts$ ls
2pad.cgi=C2=A0= =C2=A0=C2=A0 dilpad.cgi=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 footprint.pcb=C2=A0= =C2=A0=C2=A0 reindex
cgi= -lib.pl=C2=A0 eps2png=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 g= lobal_list.cgi=C2=A0 search.cgi
csv.cgi=C2=A0=C2=A0=C2=A0=C2=A0 footprin= t.cgi=C2=A0=C2=A0 make-fp-library=C2=A0 symbol.cgi
CVS=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 footprint.html=C2=A0 math.pl=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 symbol.html

Can I get from this to a more comprehensive= list of symbols in gschem? I am stuck.
best regards
torben


On Thu, Jan= 3, 2019 at 7:58 PM Torben Friis <friistf AT gmail DOT com> wrote:
Hi Ch= ad,
OK. I will try again.
t= orben

On Thu= , Jan 3, 2019 at 3:45 PM Chad Parker (parker DOT charles AT gmail DOT com) [via geda-help AT delorie DOT com] <= geda-help AT delori= e.com> wrote:
Torben-

The square term= inal generally indicates "pin 1" of the device. This is done so t= hat when you're installing the components, you know the proper orientat= ion. For some parts this is important, like for the opamps in the design. F= or other parts, like the resistors, it doesn't matter, they can go eith= er way.

Part of the fun of building a circuit = board is figuring out where to place the components and how to connect them= , kind of like a puzzle, but with no one answer. You can place them however= you like. Many people use a strategy where you try to place the parts such= that you minimize the lengths of the traces connecting those parts. You co= uld also arrange them in a pattern to resemble a bug, or a star, or anythin= g you find aesthetically pleasing. In most cases (i.e. not radio frequency = or high speed (>10s of MHz) digital electronics), the exact placement of= parts doesn't matter.

--Chad


On Thu, J= an 3, 2019 at 9:32 AM Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wr= ote:
Hi Chad,
Should I place = R101, R102 and R103 together? And if I do, should'nt R103 have round te= rminal points at both ends? I assume that the square ones are to be connect= ed to the GND.
I am not an electronics expert.
<= /div>
torben

Torben-

<= /div>
Okay, I see what you're referring to. This is a bug in the tu= torial. It looks to me like the first set of figures were created with an o= lder version of PCB and the other set with a newer one and a later date. Wh= at likely happened is that the same circuit was used, but the schematic was= redrawn when the new figures were added, and because the parts would have = been arranged differently, the reference designators ended up changing. The= underlying circuit appears to be the same, just the names of the parts hav= e been swapped. You can even see that the footprint of R101 is different.

Ultimately, the rat lines on your pcb should be con= sistent with the connections you made in the schematic. So, as long as you = connect your parts accordingly, you should be fine.

Thanks for pointing this out. We should fix it so that it's consi= stent.

Thanks,
--Chad

On Wed, Jan 2, 2019 at 5:3= 6 PM Torben Friis (f= riistf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
Hi Chad,
The link is:

best regards
torben

Torben-

Are = you still working through the Bill Wilson tutorial? If so, I'm not sure= what you mean by page 6. Can you please provide a link to the tutorial you= 're referring to?

Thanks,
--Chad=

On Wed, Jan= 2, 2019 at 3:44 PM Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrot= e:
Hi Chad,
I am confused by th= e UBUNTU geda tutorial.
In the beginning R101, R102= and R103 are placed together. On page 6=C2=A0 R102, R201 and R103 are plac= ed together in the same place and R102 is placed where R201 was before.
I have other problems - fx with lines created in PCB -= but I would take one example to see if the confusion is my problem.
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ;font-size:large">torben

On Sat, Dec 29, 2018 at 5:10 PM Torben Friis <friistf AT gmail DOT com> wrote:<= br>
Hi Chad,
I deleted all files ex= cept Project, one.sch and two.sch and ran gsch2pcb once - and it worked.
torben

=
Hi Torben-
The second time you run gsch2pcb it looks at the differences. = The first time it may not have picked up all of the elements due to footpri= nt name errors. The second time (and all subsequent times) you run it, it p= roduces board.new.pcb, which contains the new elements, so that it d= oesn't overwrite your original file. To get them into the layout, you h= ave to do as it says: open the layout then go to the file menu, select &quo= t;load layout data to paste buffer", and select board.new.pcb. Then yo= u can paste them into the layout.

Alternativel= y, if you haven't done any work on the pcb yet, you can delete board.pc= b and board.new.pcb and rerun gsch2pcb.

Also, make= sure that you execute Select > Disperse All Elements, as sometimes the = elements will overlap when they're brought into the layout.

Cheers,
--Chad

On Wed, Dec 26, 2018 at 2:44 = PM Torben Friis (fri= istf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
Hi,
It is rather confusing. When I run gsch2pcb project I get:
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ;font-size:large">
----------------------------= ------
Done processing.=C2=A0 Work performed:
5 file elements and 0 m= 4 elements added to board.new.pcb.

Next steps:
1.=C2=A0 Run pcb o= n your file board.pcb.
2.=C2=A0 From within PCB, select "File ->= Load layout data to paste buffer"
=C2=A0=C2=A0=C2=A0 and select bo= ard.new.pcb to load the new footprints into your existing layout.
3.=C2= =A0 From within PCB, select "File -> Load netlist file" and se= lect
=C2=A0=C2=A0=C2=A0 = board.net to load the updated netlist.

4.=C2=A0 From within PCB,= enter

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = :ExecuteFile(board.cmd)

=C2=A0=C2=A0=C2=A0 to update the pin names o= f all footprints.

Firs= t it does not tally with the description given in the tutorial - I am using= the one that comes with Ubuntu.

Second, when I run pcb board.pcb I get only the transistor and t= he resistor on the screen with a yellow line leading nowhere. Should'nt= I get both one.sch and two.sch? If I folllow the instructions above I add = the one.sch to the screen all bundled up. Both one.sch and two.sch appear t= o be OK.

As I say,= I am confused.
best ergards
torben

On Wed, Dec 26, 2018 at 3:46 PM Torben Friis <friistf AT gmail DOT com> w= rote:
It worked.

On Wed, Dec 26, 2018 at 3:26 PM Chad Parker (parker.charles@= gmail.com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
Hi Torben-

Welcome to the community! Please feel free to post a= ny questions you may have.

I think the issue i= s that the CONNECTOR is no longer an m4 element, so, it's not generatin= g it the way the tutorial thinks it should.

L= ooking through the pcb element footprints, there is, however, a footprint &= quot;CONNECTOR 1 2". I suspect that will serve for your purposes. Plea= se try changing "CONNECTOR 2 1" --> "CONNECTOR 1 2" = and see if that fixes it.

Thanks,
--Chad=





On Wed, Dec 26, 2018 at 7:= 00 AM Torben Friis (= friistf AT gmail DOT com) [via geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
Hi,
This is my first attempt at using geda-h= elp.

When in the Bill Wilson gEDA tutorial I use:

gsch2pcb pr= oject

I get the following message in the log:

CONN202: can= 9;t find PCB element for footprint CONNECTOR-2-1 (value=3Dunknown).
So d= evice CONN202 will not be in the layout.

The attributes of the conne= ctor are.

device: BNC
footprint: CONNECTOR 2 1
refdes: CONN202=

I think that I have followed the instructions, so what is wrong?best regards
torben
--00000000000036d4bb0580219e00--