Date:2012-05-28 15:10:42 (8 years 2 months ago)
Author:Adam Wang
Commit:e92838c7654987bc9a5ec05868416522f09bb5c1
Message:ir.fpd: added IR receiver footprint

Files: modules/INFO (1 diff)
modules/ir.fpd (1 diff)

Change Details

modules/INFO
162162# - R-PDSO-G16
163163# http://www-s.ti.com/sc/psheets/mpds178g/mpds178g.pdf
164164
165# IR Receiver Module
166F: ir
167#
168# From Vishay:
169#
170# - the TSOP322.., TSOP324.., TSOP348.., TSOP344.. data sheet
171# http://www.vishay.com/docs/81732/tsop348.pdf
172
modules/ir.fpd
1/* MACHINE-GENERATED ! */
2
3frame pin {
4    __0: vec @(hole/2, hole/2)
5    __1: vec @(-hole/2, -hole/2)
6    hole . __0
7    __2: vec @(-ratio*hole/2, ratio*hole/2)
8    __3: vec @(ratio*hole/2, -ratio*hole/2)
9    rpad "$n" __2 .
10}
11
12frame pin_hole {
13    set n = i+1
14
15    frame pin @
16}
17
18frame pins {
19    loop i = 0, N-1
20
21    __0: vec @(pitch*(i-(N-1)/2), 0mm)
22    __2: vec .(0mm, -(rear+thick/2))
23    frame pin_hole .
24}
25
26frame outline {
27    set w = 5mil
28
29    __0: vec @(L/2-pin_width/2, 0mm)
30    line @ . w
31    __2: vec .(0.35mm, 0mm)
32    __1: vec @(-(L/2-pin_width/2), 0mm)
33    line @ . w
34    __3: vec .(-0.35mm, 0mm)
35    __4: vec @(-L/2, -(rear+thick))
36    __5: vec @(L/2, -(rear+thick))
37    __6: vec @(L/2-pin_width/2, -front)
38    __10: vec .(0.3mm, 1.5mm)
39    line . __6 w
40    __7: vec @(-(L/2-pin_width/2), -front)
41    __11: vec .(-0.3mm, 1.5mm)
42    line . __7 w
43    __8: vec @(0mm, -surface)
44    __9: vec @(0mm, -3mm)
45    __12: vec __0(0.2mm, -0.5mm)
46    line . __0 w
47    __13: vec __1(-0.2mm, -0.5mm)
48    line . __1 w
49    __14: vec __6(-0.29mm, 0mm)
50    line __6 . w
51    __15: vec __7(0.29mm, 0mm)
52    arc __9 . __14 w
53    line __7 . w
54}
55
56package "TSOP348"
57unit auto
58
59table
60    { N, L, front, rear, surface, thick, pin_width }
61    { 3, 6mm, 4.1mm, 1.3mm, 5.6mm, 0.5mm, 0.7mm }
62
63set hole = 0.8mm
64
65set pitch = 100mil
66
67set ratio = 2
68
69frame outline @
70frame pins @
71meas outline.__3 >> outline.__2 1mm
72meas pins.__2 -> pins.__2 2mm
73measy outline.__0 << pins.__2 -1mm
74measy outline.__0 >> outline.__6 1.5mm
75measy outline.__0 >> outline.__8 2mm
76measy pin.__1 -> pin.__0 1mm
77measy pin.__3 -> pin.__2 3mm
78measx outline.__9 >> pins.__2 -0.5mm

Archive Download the corresponding diff file

Branches:
master



interactive