Date:2014-06-01 07:10:34 (4 years 10 months ago)
Author:Werner Almesberger
Commit:b7d32fa1aaf2ad6554eee3c0cb54873244acb956
Message:modules/1059.fpd (1059, 1060): Keystone CR2032 battery holders (TH and SMT)

Files: AUTHORS (1 diff)
modules/1059.fpd (1 diff)
modules/HIERARCHY (2 diffs)
modules/Makefile (1 diff)

Change Details

AUTHORS
115115  modules/lp2032sm.fpd
116116  modules/pogo.fpd
117117  modules/sod.fpd
118  modules/1059.fpd
118119
119120Xiangfu <xiangfu@openmobilefree.net>
120121
modules/1059.fpd
1/* MACHINE-GENERATED ! */
2
3frame smt {
4    table
5        { Cx, Px, Py }
6        { 29.31mm, 2.59mm+add, 3.61mm+add }
7
8    table
9        { pad, dx }
10        { 1, -1 }
11        { 2, 1 }
12
13    set add = 0.1mm
14
15    loop if = th, 0
16
17    __0: vec @(Cx/2*dx, 0mm)
18    __1: vec .(Px/2, Py/2)
19    __2: vec __0(-Px/2, -Py/2)
20    pad "$pad" . __1
21}
22
23frame th {
24    table
25        { Cx, Cy, Hd }
26        { 26.92mm, 2.54mm, 0.97mm }
27
28    set aspect = 2.5
29
30    set Rd = Hd*aspect
31
32    table
33        { pin, dx, dy }
34        { 1, -1, 0 }
35        { 2, 1, 1 }
36        { 2, 1, -1 }
37
38    loop if = 1, th
39
40    __0: vec @(Cx/2*dx, Cy/2*dy)
41    __1: vec .(Hd/2, Hd/2)
42    __2: vec __0(-Hd/2, -Hd/2)
43    hole . __1
44    __3: vec __0(-Rd/2, Rd/2)
45    __4: vec __0(Rd/2, -Rd/2)
46    rpad "$pin" __3 .
47}
48
49frame battery {
50    __0: vec @(batr, 0mm)
51    circ @ . w
52}
53
54frame corners {
55    table
56        { dx, dy, corner }
57        { -1, -1, 0mm }
58        { -1, 1, 0mm }
59        { 1, -1, 0mm }
60        { 1, 1, 1.5mm }
61
62    set h = My/2*dy
63
64    __0: vec @(Mx/2*dx, My/2*dy)
65    __1: vec .(0mm, corner*-dy)
66    __2: vec __0(corner*-dx, 0mm)
67    line . __1 w
68    __3: vec __0(0mm, (My-Ty)/2*-dy)
69    line __1 . w
70    __5: vec .((Tx-Mx)/2*dx, 0mm)
71    line . __3 w
72    __4: vec @(sqrt(batr*batr-h*h)*dx, h)
73    line . __2 w
74}
75
76package "$name"
77unit mm
78
79set batr = 10mm
80
81set w = 5mil
82
83table
84    { Mx, My, Tx, Ty }
85    { 22mm, 16mm, 28.4mm, 7mm }
86
87table
88    { name, th }
89    { "1059", 1 }
90    { "1060", 0 }
91
92frame battery @
93frame corners @
94frame th @
95frame smt @
96measx corners.__0 -> corners.__0 -4mm
97measx corners.__5 -> corners.__5 -10mm
98measy corners.__0 -> corners.__0 9mm
99measy corners.__5 -> corners.__5 4mm
100measy smt.__2 -> smt.__1 -3.6mm
101measx smt.__2 -> smt.__1 -1mm
102measx smt.__0 >> smt.__0 12mm
103measx th.__0 >> th.__0 12mm
104measx th.__3 >> th.__4 12mm
105measy th.__2 -> th.__1 -3mm
106measx th.__3 -> th.__4 -3.5mm
107measx smt.__2 >> smt.__1 15mm
modules/HIERARCHY
8888    SMT
8989        8:10-SOCKET-RA
9090        8:10-SOCKET-RA-PUSH-PULL
91        1059
9192        BAT-LP2032SM
9293        BAT-BLP2032SM
9394        MEMCARD8-AMP-10100660
...... 
102103            he-shrouded-3x2pins-2mm
103104            he-shrouded-7x2pins-2mm
104105    TH
106        1060
105107        BAT-CLIP-AA-TH
106108        BAT-CLIP-AA-TH-PAIR
107109        DCJACK-14.4mmx9mm
modules/Makefile
1MODULES=8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
1MODULES=1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
22    bat-clip-aa-th bga \
33    c-smd c-t-smd \
44    dcjack dfn din-5 dip dip4of6 do-214 dvi-recept-ra \

Archive Download the corresponding diff file

Branches:
master



interactive