delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2019/06/29/16:05:46

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:reply-to:from:date:message-id
:subject:to:content-transfer-encoding;
bh=Ni7WjUOWR3TXk3QD2FoYIjrSEQWKdDo8NDZxJnL+n6U=;
b=P+uXP6sDaIAI+izGk73Qm+/O0/q8i+5y+jnuhrtG6USQHJPF1JVbd+6ZOpwO0poyU1
/UmNOTcz6bTX/8+ilLE4YH2cbjGFJlP82qPsDSx/2Jxblm42yOy2gFj3a4xy4tnihnPc
sBF4tRKcroFOkwSlcJOKVwuSqBVqdqIKM11FX6ZJ9MhJ01bPZf1u5BdAP0w1HWR6za6N
z7mnHFZ/6wy5ccA1Il3uIZkVbDThKlo4QfAMQRVfN4Nvk9dKClW/El7aEvJamIZUIk8N
SIZM32Kn2hDkwlvsYR2Atj7WaybmCFlwoeIsCi47XRqTLV5y2t2bX1GtEBVIkkqJ2AEy
fbOQ==
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:reply-to
:from:date:message-id:subject:to:content-transfer-encoding;
bh=Ni7WjUOWR3TXk3QD2FoYIjrSEQWKdDo8NDZxJnL+n6U=;
b=m6HyFObjMrOIG16eKcE/iPZzdBjr3M+uxk1R+I+jhAKqxEVxjvBAv8n5bA2UvxGQlH
slmvjFUOLcYoE5T/NSJ9mdNUqrZBKHKa0efp7cpB9ZD01dm/f+9dzTxfqKNNtcX9zgDA
UT4/oPznKoAmYCgcOhMvig0/sHa8fPU/NxNaWMq3f92EJ/SS2AGgYKN6vUe//qakeXbD
MpVNor9ZVdRC93x0mTJAmr0klh+JRIsWXpmeJQSONq0bPtHh8/m8e8XJL+4+z/DeFN83
T3oHwlxwAULWYvTIV8Isr+a0aJXAbbVM26UIBDHEHGpJ3z0fH8wllQaA3mSLHFJIMnM6
nU2w==
X-Gm-Message-State: APjAAAUdqvNb7ty0EmCclgSGfFcCecvOKY48jYehtbr+3QbLUfoDxAcR
HpGPCSpOnQ2CAaZoiVPQNq1rkwsI0W09qrhsfzQJykRD
X-Google-Smtp-Source: APXvYqxCshT1AYn1u0xG4idE8tSqbDKc6V/fEqmCQrJ6JVt5KFqQCIpiCTD+ugfG3O01HJoErwEpbPhkl822YXmxWcI=
X-Received: by 2002:a63:211c:: with SMTP id h28mr3071148pgh.438.1561837918998;
Sat, 29 Jun 2019 12:51:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAONhAoupFWT2NX0fsv6Yr78pqW1A6HYpSJKwMSog=i3WGK2Yiw AT mail DOT gmail DOT com>
<5D177AF1 DOT 7080101 AT xs4all DOT nl> <CAONhAosu17hvyf72HD0B_G9n4j1g2XepzwBNjEWwdk_+x-M-ZQ AT mail DOT gmail DOT com>
In-Reply-To: <CAONhAosu17hvyf72HD0B_G9n4j1g2XepzwBNjEWwdk_+x-M-ZQ@mail.gmail.com>
From: "=?UTF-8?B?Q3PDoW55aSBQw6Fs?= (csanyipal AT gmail DOT com) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
Date: Sat, 29 Jun 2019 21:51:37 +0200
Message-ID: <CAONhAotOOrS982Q92_RpB-zSjusst+M=geJ-ocmnG1U+RXa6Lg@mail.gmail.com>
Subject: Re: [geda-help] How to name footprint for a pushbutton switch?
To: gEDA Help <geda-help AT delorie DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x5TJqU2f006095
Reply-To: geda-help AT delorie DOT com

Csányi Pál <csanyipal AT gmail DOT com> ezt írta (időpont: 2019. jún. 29., Szo, 19:02):
>
> Hi Bert,
>
> Bert Timmerman (bert DOT timmerman AT xs4all DOT nl) [via geda-help AT delorie DOT com]
> <geda-help AT delorie DOT com> ezt írta (időpont: 2019. jún. 29., Szo,
> 17:15):
> >
> > Csányi Pál (csanyipal AT gmail DOT com) [via geda-help AT delorie DOT com] wrote:
> > > Hi,
> > >
> > > I am creating a symbol and footprint for a tactile switch.
> > > So far I have the symbol which is not finished yet and is like this:
> > > <symbol>
> > > v 20130925 2
> > > L 41400 48300 41400 50300 3 0 0 0 -1 -1
> > > L 42400 49300 42600 49300 3 0 0 0 -1 -1
> > > L 42600 48300 42600 50300 3 0 0 0 -1 -1
> > > L 41600 49500 42400 49500 3 0 0 0 -1 -1
> > > L 42000 49900 42000 50100 3 0 0 0 -1 -1
> > > V 41700 49300 100 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
> > > V 42300 49300 100 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
> > > L 41400 49300 41600 49300 3 0 0 0 -1 -1
> > > L 41900 50100 42100 50100 3 0 0 0 -1 -1
> > > L 41900 49900 42100 49900 3 0 0 0 -1 -1
> > > L 42100 49900 42000 49700 3 0 0 0 -1 -1
> > > L 41900 49900 42000 49700 3 0 0 0 -1 -1
> > > L 42000 49700 42000 49500 3 0 0 0 -1 -1
> > > P 41400 50600 41400 50300 1 0 0
> > > {
> > > T 41400 50700 5 10 0 0 0 0 1
> > > pintype=pwr
> > > T 41443 50250 5 10 1 1 180 6 1
> > > pinlabel=T
> > > T 41357 50504 5 10 1 1 180 0 1
> > > pinnumber=3
> > > T 41400 50700 5 10 0 0 0 0 1
> > > pinseq=3
> > > }
> > > P 42600 50600 42600 50300 1 0 0
> > > {
> > > T 42600 50700 5 10 0 0 0 0 1
> > > pintype=pwr
> > > T 42442 50250 5 10 1 1 180 6 1
> > > pinlabel=T
> > > T 42738 50500 5 10 1 1 180 0 1
> > > pinnumber=1
> > > T 42600 50700 5 10 0 0 0 0 1
> > > pinseq=1
> > > }
> > > P 41400 48000 41400 48300 1 0 0
> > > {
> > > T 41400 47900 5 10 0 0 0 0 1
> > > pintype=pwr
> > > T 41553 48476 5 10 1 1 180 0 1
> > > pinlabel=T
> > > T 42738 50500 5 10 1 1 180 0 1
> > > pinnumber=1
> > > T 42600 50700 5 10 0 0 0 0 1
> > > pinseq=1
> > > }
> > > P 41400 48000 41400 48300 1 0 0
> > > {
> > > T 41400 47900 5 10 0 0 0 0 1
> > > pintype=pwr
> > > T 41553 48476 5 10 1 1 180 0 1
> > > pinlabel=T
> > > T 41251 48229 5 10 1 1 180 6 1
> > > pinnumber=4
> > > T 41400 47900 5 10 0 0 0 0 1
> > > pinseq=4
> > > }
> > > P 42600 48000 42600 48300 1 0 0
> > > {
> > > T 42600 47900 5 10 0 0 0 0 1
> > > pintype=pwr
> > > T 42556 48480 5 10 1 1 180 0 1
> > > pinlabel=T
> > > T 42639 48234 5 10 1 1 180 6 1
> > > pinnumber=2
> > > T 42600 47900 5 10 0 0 0 0 1
> > > pinseq=2
> > > }
> > > T 42900 49200 8 10 1 1 0 0 1
> > > device=SWITCH
> > > T 42900 49500 8 10 1 1 0 0 1
> > > description=Normally open pushbutton switch with 4 terminals.
> > > T 42900 49800 8 10 1 1 0 0 1
> > > author=Csanyi Pal csanyipal AT gmail DOT com
> > > T 42900 48900 8 10 1 1 0 0 1
> > > dist-license=GPL,  http://www.gnu.org/licenses/gpl.html
> > > </symbol>
> > >
> > > The datasheet for this part can be downloaded from here:
> > > https://eu.mouser.com/datasheet/2/209/MS-100630-1172392.pdf
> > >
> > > The symbol will have the 'tactile-switch-4-terminals-no-1.sym' name,
> > > but how to name the footprint for this symbol?
> > >
> > > In gSchem editor one can see the preview for switch-pushbutton-no-2.sym
> > > which has footprint named as 'H1x2-op-1'.
> > >
> > > What is the logic in this footprint name?
> > >
> > > I am reading the
> > > http://wiki.geda-project.org/geda:pcb_footprint_naming_conventions
> > >
> > > but can't figure out how to name my footprint.
> > >
> > > Any advices will be appreciated!
> > >
> > >
> > Hi,
> >
> > I looked at your symbol and made the following changes:
> >
> > - hided attributes which should not be visible,
> >
> > - removed a duplicate pin (#4, two on top of each other),
> >
> > - made the symbol more compact,
> >
> > - hided pinlabels that mde no sense (to me ;-),
> >
> > - changed pintypes "pwr" to "pas" (power to passive),
> >
> > - added a "footprint=H1x2-op-2.fp" attribute (hidden, the name is
> > anything you want ... watch out for quirks when using "-" in the
> > footprint filename though, the m4 processor invoked by pcb to process
> > the older m4 footprints (oldlib) may us it for arithmatics and cause all
> > sorts of strange behaviour ;- ),
> >
> > - did a "symbol translate (0) to move everything to the left-down-most
> > corner.
> >
> >
> > While not all changes are mandatory and may be just my personal style, I
> > hope this helps a bit.
> >
> > Kind regards,
> >
> > Bert Timmerman.
>
> Thank you very much for the reply.
> I just changed this symbol and attached to this mail.
>
> Is it right now? What do you think?

I just added and commit this symbol to
http://www.gedasymbols.org/user/csanyi_pal/

but I can't see it on that page out there yet. Why?

-- 
Best, Pali

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019