mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-19 10:31:32 +02:00
labsw/: schematics symbols and footprints
This commit is contained in:
parent
dd0c4ec3f9
commit
2c5a008983
29
labsw/components/opto-trans-4.lib
Normal file
29
labsw/components/opto-trans-4.lib
Normal file
@ -0,0 +1,29 @@
|
||||
EESchema-LIBRARY Version 2.3 Date: Tue Aug 23 02:34:30 2011
|
||||
#
|
||||
# OPTO-TRANS-4
|
||||
#
|
||||
DEF OPTO-TRANS-4 U 0 0 Y Y 1 F N
|
||||
F0 "U" -150 200 60 H V C CNN
|
||||
F1 "OPTO-TRANS-4" 0 -225 60 H V C CNN
|
||||
DRAW
|
||||
S -200 150 250 -150 0 1 0 N
|
||||
P 2 0 1 0 -150 -50 -50 -50 N
|
||||
P 2 0 1 0 -100 100 -150 100 N
|
||||
P 2 0 1 0 25 -75 0 -75 N
|
||||
P 2 0 1 0 25 -25 0 -25 N
|
||||
P 2 0 1 0 100 0 175 -75 N
|
||||
P 2 0 1 0 100 100 100 -100 N
|
||||
P 2 0 1 0 200 100 100 0 N
|
||||
P 3 0 1 0 -100 -50 -100 -100 -150 -100 N
|
||||
P 3 0 1 0 -25 -25 25 -75 25 -50 N
|
||||
P 3 0 1 0 -25 25 25 -25 25 0 N
|
||||
P 4 0 1 0 200 -100 150 -100 200 -50 200 -100 N
|
||||
P 6 0 1 0 -100 100 -100 50 -150 50 -100 -50 -50 50 -100 50 N
|
||||
X A 1 -350 100 200 R 50 50 1 1 P
|
||||
X K 2 -350 -100 200 R 50 50 1 1 P
|
||||
X E 3 400 -100 200 L 50 50 1 1 P
|
||||
X C 4 400 100 200 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
28
labsw/components/spdt-c.lib
Normal file
28
labsw/components/spdt-c.lib
Normal file
@ -0,0 +1,28 @@
|
||||
EESchema-LIBRARY Version 2.3 Date: Tue Aug 23 03:05:31 2011
|
||||
#
|
||||
# SPDT-C
|
||||
#
|
||||
DEF SPDT-C K 0 40 Y N 1 F N
|
||||
F0 "K" -300 0 60 H V C CNN
|
||||
F1 "SPDT-C" 450 -50 60 H V C CNN
|
||||
DRAW
|
||||
S 0 50 -200 -50 0 1 0 N
|
||||
P 2 0 1 0 -100 -50 -100 -100 N
|
||||
P 2 0 1 0 -100 50 -100 100 N
|
||||
P 2 0 1 0 0 0 125 0 N
|
||||
P 2 0 1 0 100 -100 200 -100 N
|
||||
P 3 0 1 0 100 50 100 100 0 100 N
|
||||
P 3 0 1 0 100 50 150 -50 150 -100 N
|
||||
P 3 0 1 0 200 50 200 100 300 100 N
|
||||
X A1 A1 -100 300 200 D 50 50 1 1 P
|
||||
X A2 A2 -100 -300 200 U 50 50 1 1 P
|
||||
X 11A 11A 100 -300 200 U 50 50 1 1 P
|
||||
X 12A 12A 0 300 200 D 50 50 1 1 P
|
||||
X 14A 14A 200 300 200 D 50 50 1 1 P
|
||||
X 11B 11B 200 -300 200 U 50 50 1 1 P
|
||||
X 12B 12B 100 300 200 D 50 50 1 1 P
|
||||
X 14B 14B 300 300 200 D 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
16
labsw/modules/Makefile
Normal file
16
labsw/modules/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
MODULES=dip header relay
|
||||
|
||||
.SUFFIXES: .fpd .mod
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(MODULES:%=%.mod)
|
||||
|
||||
clean:
|
||||
rm -f *~*.fpd
|
||||
|
||||
spotless: clean
|
||||
rm -f $(MODULES:%=%.mod)
|
||||
|
||||
.fpd.mod:
|
||||
fped -k $< $@
|
73
labsw/modules/dip.fpd
Normal file
73
labsw/modules/dip.fpd
Normal file
@ -0,0 +1,73 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame pin {
|
||||
__0: vec @(hole/2, hole/2)
|
||||
__1: vec @(-hole/2, -hole/2)
|
||||
hole . __0
|
||||
__2: vec @(-ratio*hole/2, ratio*hole/2)
|
||||
__3: vec @(ratio*hole/2, -ratio*hole/2)
|
||||
rpad "$n" __2 .
|
||||
}
|
||||
|
||||
frame pin_top {
|
||||
set n = N-i
|
||||
|
||||
frame pin @
|
||||
}
|
||||
|
||||
frame pin_bottom {
|
||||
set n = i+1
|
||||
|
||||
frame pin @
|
||||
}
|
||||
|
||||
frame pins {
|
||||
loop i = 0, side-1
|
||||
|
||||
__0: vec @(pitch*(i-(side-1)/2), 0mm)
|
||||
__1: vec .(0mm, width/2)
|
||||
frame pin_top .
|
||||
__2: vec __0(0mm, -width/2)
|
||||
frame pin_bottom .
|
||||
}
|
||||
|
||||
frame marker {
|
||||
set r = (side*pitch-x)/2-w
|
||||
|
||||
set clear = 0.3mm
|
||||
|
||||
__0: vec @(-x/2-r-clear, -y/2+r)
|
||||
__1: vec .(0mm, r)
|
||||
circ __0 . w
|
||||
}
|
||||
|
||||
frame outline {
|
||||
set x = (side-1)*pitch+ratio*hole
|
||||
|
||||
set y = width-pitch
|
||||
|
||||
set w = 5mil
|
||||
|
||||
__0: vec @(x/2, y/2)
|
||||
__1: vec @(-x/2, -y/2)
|
||||
rect . __0 w
|
||||
frame marker @
|
||||
}
|
||||
|
||||
package "DIP-$N-${width}"
|
||||
unit mm
|
||||
|
||||
set N = 2*side
|
||||
|
||||
set width = 300mil
|
||||
|
||||
set hole = 0.5mm
|
||||
|
||||
set ratio = 2.5
|
||||
|
||||
set pitch = 100mil
|
||||
|
||||
loop side = 2, 20
|
||||
|
||||
frame outline @
|
||||
frame pins @
|
55
labsw/modules/header.fpd
Normal file
55
labsw/modules/header.fpd
Normal file
@ -0,0 +1,55 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame pin {
|
||||
set n = col*R+row+1
|
||||
|
||||
__0: vec @(hole/2, hole/2)
|
||||
__1: vec @(hole*ratio/2, -hole*ratio/2)
|
||||
__2: vec @(-hole/2, -hole/2)
|
||||
hole . __0
|
||||
__3: vec @(-hole*ratio/2, hole*ratio/2)
|
||||
rpad "$n" . __1
|
||||
}
|
||||
|
||||
frame pins {
|
||||
loop row = 0, R-1
|
||||
|
||||
loop col = 0, C-1
|
||||
|
||||
__1: vec @(-P*(C-1)/2, -P*(R-1)/2)
|
||||
__0: vec .(col*P, row*P)
|
||||
frame pin .
|
||||
}
|
||||
|
||||
frame outline {
|
||||
set x = C*P
|
||||
|
||||
set y = R*P
|
||||
|
||||
__0: vec @(x/2, y/2)
|
||||
__1: vec @(-x/2, -y/2)
|
||||
rect . __0 width
|
||||
}
|
||||
|
||||
package "HDR-${C}x${R}-$P"
|
||||
unit mm
|
||||
|
||||
table
|
||||
{ R }
|
||||
{ 1 }
|
||||
{ 2 }
|
||||
|
||||
table
|
||||
{ P, hole, ratio }
|
||||
{ 100mil, 0.8mm, 2 }
|
||||
{ 200mil, 1mm, 2.5 }
|
||||
|
||||
set width = 5mil
|
||||
|
||||
loop C = 2, 20
|
||||
|
||||
frame pins @
|
||||
frame outline @
|
||||
measy outline.__1 >> outline.__0 1mm
|
||||
measx pin.__2 -> pin.__0 -P/2-1mm
|
||||
measx pin.__3 -> pin.__1 (R-0.5)*P+1mm
|
56
labsw/modules/relay.fpd
Normal file
56
labsw/modules/relay.fpd
Normal file
@ -0,0 +1,56 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame pin {
|
||||
__0: vec @(hole/2, hole/2)
|
||||
__1: vec @(-hole/2, -hole/2)
|
||||
hole . __0
|
||||
__2: vec @(ratio*hole/2, -ratio*hole/2)
|
||||
__3: vec @(-ratio*hole/2, ratio*hole/2)
|
||||
rpad "$name" . __2
|
||||
}
|
||||
|
||||
frame pins {
|
||||
table
|
||||
{ name, dy, dx }
|
||||
{ "A1", 1, 0 }
|
||||
{ "A2", -1, 0 }
|
||||
{ "12A", 1, 6 }
|
||||
{ "12B", -1, 6 }
|
||||
{ "11A", 1, 8 }
|
||||
{ "11B", -1, 8 }
|
||||
{ "14A", 1, 10 }
|
||||
{ "14B", -1, 10 }
|
||||
|
||||
set x = dx*grid
|
||||
|
||||
set y = dy*grid*1.5
|
||||
|
||||
__0: vec @(x, y)
|
||||
frame pin .
|
||||
}
|
||||
|
||||
frame outline {
|
||||
set x0 = -grid
|
||||
|
||||
set x1 = x0+29mm
|
||||
|
||||
set y = 2.5*grid
|
||||
|
||||
__1: vec @(x0, -y)
|
||||
__0: vec @(x1, y)
|
||||
rect __1 . w
|
||||
}
|
||||
|
||||
package "RELAY"
|
||||
unit mm
|
||||
|
||||
set grid = 2.52mm
|
||||
|
||||
set hole = 1.3mm
|
||||
|
||||
set ratio = 2
|
||||
|
||||
set w = 5mil
|
||||
|
||||
frame pins @
|
||||
frame outline @
|
Loading…
Reference in New Issue
Block a user