Mail Archives: geda-help/2019/06/29/11:05:42
This is a multi-part message in MIME format.
--------------000904070606050107070109
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
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.
--------------000904070606050107070109
Content-Type: application/x-geda-symbol;
name="SW_Mountain_101-TS6111T1601-EV__.sym"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="SW_Mountain_101-TS6111T1601-EV__.sym"
diAyMDExMDExNSAyCkwgMTAwIDMwMCAxMDAgOTAwIDMgMCAwIDAgLTEgLTEKTCAxMTAwIDYw
MCAxMzAwIDYwMCAzIDAgMCAwIC0xIC0xCkwgMTMwMCAzMDAgMTMwMCA5MDAgMyAwIDAgMCAt
MSAtMQpMIDMwMCA4MDAgMTEwMCA4MDAgMyAwIDAgMCAtMSAtMQpMIDcwMCAxMjAwIDcwMCAx
NDAwIDMgMCAwIDAgLTEgLTEKViA0MDAgNjAwIDEwMCAzIDAgMCAwIC0xIC0xIDAgLTEgLTEg
LTEgLTEgLTEKViAxMDAwIDYwMCAxMDAgMyAwIDAgMCAtMSAtMSAwIC0xIC0xIC0xIC0xIC0x
CkwgMTAwIDYwMCAzMDAgNjAwIDMgMCAwIDAgLTEgLTEKTCA2MDAgMTQwMCA4MDAgMTQwMCAz
IDAgMCAwIC0xIC0xCkwgNjAwIDEyMDAgODAwIDEyMDAgMyAwIDAgMCAtMSAtMQpMIDgwMCAx
MjAwIDcwMCAxMDAwIDMgMCAwIDAgLTEgLTEKTCA2MDAgMTIwMCA3MDAgMTAwMCAzIDAgMCAw
IC0xIC0xCkwgNzAwIDEwMDAgNzAwIDgwMCAzIDAgMCAwIC0xIC0xClAgMTAwIDEyMDAgMTAw
IDkwMCAxIDAgMAp7ClQgMTAwIDEzMDAgNSAxMCAwIDAgMCAwIDEKcGludHlwZT1wYXMKVCAx
NDMgODUwIDUgMTAgMCAxIDE4MCA2IDEKcGlubGFiZWw9VApUIDU3IDExMDQgNSAxMCAxIDEg
MTgwIDAgMQpwaW5udW1iZXI9MwpUIDEwMC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