lib: add used parts

This commit is contained in:
King Kévin 2022-06-22 19:19:32 +02:00
parent e11dc84d57
commit 5b76e62da5
9 changed files with 381 additions and 0 deletions

View File

@ -12,3 +12,6 @@ library:
- resistor/r0603
- capacitor/c0603
- diode/led0805
- transistor/nmos_bss138
- mcu/st_stm8s003x3@p
- resistor/trimpot_3mm

View File

@ -0,0 +1,35 @@
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
diffuseColor 0.37 0.37 0.37
emissiveColor 0.0 0.0 0.0
specularColor 1.0 1.0 1.0
ambientIntensity 1.0
transparency 0.5
shininess 1.0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1.65 -1.9 0,
1.65 -1.9 0,
1.65 1.9 0,
-1.65 1.9 0,
-1.65 -1.9 1.2,
1.65 -1.9 1.2,
1.65 1.9 1.2,
-1.65 1.9 1.2
]
}
coordIndex [
0,1,2,3,-1
4,5,6,7,-1
0,1,5,4,-1
2,3,7,6,-1
0,3,7,4,-1
1,2,6,5,-1
]
}
}

View File

@ -0,0 +1,35 @@
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
diffuseColor 0.37 0.37 0.37
emissiveColor 0.0 0.0 0.0
specularColor 1.0 1.0 1.0
ambientIntensity 1.0
transparency 0.5
shininess 1.0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-2.2 -3.25 0,
2.2 -3.25 0,
2.2 3.25 0,
-2.2 3.25 0,
-2.2 -3.25 1.2,
2.2 -3.25 1.2,
2.2 3.25 1.2,
-2.2 3.25 1.2
]
}
coordIndex [
0,1,2,3,-1
4,5,6,7,-1
0,1,5,4,-1
2,3,7,6,-1
0,3,7,4,-1
1,2,6,5,-1
]
}
}

View File

@ -0,0 +1,35 @@
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
diffuseColor 0.37 0.37 0.37
emissiveColor 0.0 0.0 0.0
specularColor 1.0 1.0 1.0
ambientIntensity 1.0
transparency 0.5
shininess 1.0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-0.6499999999999999 -1.46 0,
0.6499999999999999 -1.46 0,
0.6499999999999999 1.46 0,
-0.6499999999999999 1.46 0,
-0.6499999999999999 -1.46 1.12,
0.6499999999999999 -1.46 1.12,
0.6499999999999999 1.46 1.12,
-0.6499999999999999 1.46 1.12
]
}
coordIndex [
0,1,2,3,-1
4,5,6,7,-1
0,1,5,4,-1
2,3,7,6,-1
0,3,7,4,-1
1,2,6,5,-1
]
}
}

View File

@ -14,4 +14,20 @@ D diode, LED, chip, 2.0x1.2 mm
K LED
$ENDCMP
#
$CMP BSS138
D transistor, MOSFET, n-channel, enhancement mode vertical DMOS, GSD
F https://www.onsemi.com/pdf/datasheet/bss138-d.pdf
$ENDCMP
#
$CMP STM8S003x3
D 16-MHz STM8S 8-bit MCU, 8-Kbyte Flash memory, 128-byte data EEPROM, 10-bit ADC, 3 timers, UART, SPI, I2C
K IC, MCU, Micro-Controller, STM8S
F https://www.st.com/resource/en/datasheet/stm8s003f3.pdf
$ENDCMP
#
$CMP TRIMPOT_3MM
D 3 mm surface mount trimming potentiometer
F https://datasheet.lcsc.com/szlcsc/Hokuriku-Elec-Industry-VG039NCHXTB153_C128547.pdf
$ENDCMP
#
# End Doc Library

View File

@ -54,4 +54,92 @@ X A 2 -100 0 60 R 50 50 1 1 P
X C 1 100 0 60 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# BSS138
#
DEF BSS138 VT 0 40 Y N 1 L N
F0 "VT" 70 180 50 H V R BNN
F1 "BSS138" 70 -180 50 H V R TNN
F2 "qeda:SOT95P237X112-3N" 0 0 0 H I C CNN
F3 "https://www.onsemi.com/pdf/datasheet/bss138-d.pdf" 0 0 0 H I C CNN
$FPLIST
SOT95P237X112-3N
$ENDFPLIST
DRAW
C 0 0 150 1 1 12 f
P 2 1 1 12 -37 100 -37 48 N
P 2 1 1 12 -37 26 -37 -26 N
P 2 1 1 12 -37 -48 -37 -100 N
P 2 1 1 12 -37 -74 150 -74 N
P 2 1 1 12 150 -74 150 -100 N
P 2 1 1 12 -37 74 150 74 N
P 2 1 1 12 150 74 150 100 N
P 2 1 1 12 -150 -100 -67 -100 N
P 2 1 1 12 -67 100 -67 -100 N
P 2 1 1 12 -37 0 38 0 N
P 2 1 1 12 38 0 38 -74 N
P 3 1 1 12 0 15 -37 0 0 -15 F
P 2 1 1 12 86 74 86 16 N
P 2 1 1 12 86 -16 86 -74 N
P 4 1 1 12 68 -16 105 -16 86 16 68 -16 N
P 2 1 1 12 68 16 105 16 N
X G 1 -350 -100 200 R 50 50 1 1 I
X D 3 150 300 200 D 50 50 1 1 U
X S 2 150 -300 200 U 50 50 1 1 U
ENDDRAW
ENDDEF
#
# STM8S003x3
#
DEF STM8S003x3 U 0 40 Y Y 1 L N
F0 "U" 0 30 50 H V L BNN
F1 "STM8S003x3" 680 -1330 50 H V L TNN
F2 "qeda:SOP65P640X120-20N" 0 0 0 H I C CNN
F3 "https://www.st.com/resource/en/datasheet/stm8s003f3.pdf" 0 0 0 H I C CNN
ALIAS STM8S003F3 STM8S003K3
$FPLIST
SOP65P640X120-20N
$ENDFPLIST
DRAW
S 0 0 1150 -1300 1 1 12 f
X PA1/OSCIN 5 -200 -300 200 R 50 50 1 1 B
X PA2/OSCOUT 6 -200 -400 200 R 50 50 1 1 B
X PA3 10 -200 -500 200 R 50 50 1 1 B
X PB4 12 -200 -700 200 R 50 50 1 1 B
X PB5 11 -200 -800 200 R 50 50 1 1 B
X NRST 4 -200 -1000 200 R 50 50 1 1 I
X PC3 13 1350 -100 200 L 50 50 1 1 B
X PC4 14 1350 -200 200 L 50 50 1 1 B
X PC5 15 1350 -300 200 L 50 50 1 1 B
X PC6 16 1350 -400 200 L 50 50 1 1 B
X PC7 17 1350 -500 200 L 50 50 1 1 B
X PD1/SWIM 18 1350 -700 200 L 50 50 1 1 B
X PD2 19 1350 -800 200 L 50 50 1 1 B
X PD3 20 1350 -900 200 L 50 50 1 1 B
X PD4 1 1350 -1000 200 L 50 50 1 1 B
X PD5 2 1350 -1100 200 L 50 50 1 1 B
X PD6 3 1350 -1200 200 L 50 50 1 1 B
X VCAP 8 600 200 200 D 50 50 1 1 W
X VDD 9 700 200 200 D 50 50 1 1 W
X VSS 7 650 -1500 200 U 50 50 1 1 W
ENDDRAW
ENDDEF
#
# TRIMPOT_3MM
#
DEF TRIMPOT_3MM R 0 0 Y Y 1 L N
F0 "R" 150 30 50 H V C BNN
F1 "TRIMPOT_3MM" 150 -330 50 H V C TNN
F2 "qeda:RESISTOR_TRIMPOT_3MM" 0 0 0 H I C CNN
F3 "https://datasheet.lcsc.com/szlcsc/Hokuriku-Elec-Industry-VG039NCHXTB153_C128547.pdf" 0 0 0 H I C CNN
$FPLIST
RESISTOR_TRIMPOT_3MM
$ENDFPLIST
DRAW
S 0 0 300 -300 1 1 12 f
S 50 -110 250 -190 1 1 12 f
P 2 1 1 12 70 -230 230 -70 N
P 2 1 1 12 210 -50 250 -90 N
ENDDRAW
ENDDEF
# End Library

View File

@ -0,0 +1,38 @@
(module RESISTOR_TRIMPOT_3MM (layer F.Cu)
(attr smd)
(pad 1 smd rect (at -1.000 1.800) (size 1.200 1.200) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 3 smd rect (at 1.000 1.800) (size 1.200 1.200) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 2 smd rect (at 0.000 -1.550) (size 1.600 1.500) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(fp_text reference REF** (at 0.000 0.000) (layer F.SilkS)
(effects (font (size 1.200 1.200) (thickness 0.200)))
)
(fp_line (start -1.750 -2.000) (end -1.100 -2.000) (layer F.SilkS) (width 0.200))
(fp_line (start 1.100 -2.000) (end 1.750 -2.000) (layer F.SilkS) (width 0.200))
(fp_line (start 1.750 -2.000) (end 1.750 0.900) (layer F.SilkS) (width 0.200))
(fp_line (start -1.750 -2.000) (end -1.750 0.900) (layer F.SilkS) (width 0.200))
(fp_circle (center 0.000 0.000) (end 0.000 0.500) (layer F.Fab) (width 0.100))
(fp_line (start -0.700 0.000) (end 0.700 0.000) (layer F.Fab) (width 0.100))
(fp_line (start 0.000 -0.700) (end 0.000 0.700) (layer F.Fab) (width 0.100))
(fp_text value RESISTOR_TRIMPOT_3MM (at 0.000 0.000 90) (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_line (start -1.650 -1.900) (end 1.650 -1.900) (layer F.Fab) (width 0.100))
(fp_line (start 1.650 -1.900) (end 1.650 1.900) (layer F.Fab) (width 0.100))
(fp_line (start 1.650 1.900) (end -1.650 1.900) (layer F.Fab) (width 0.100))
(fp_line (start -1.650 1.900) (end -1.650 -1.900) (layer F.Fab) (width 0.100))
(fp_line (start -1.900 -2.550) (end 1.900 -2.550) (layer F.CrtYd) (width 0.050))
(fp_line (start 1.900 -2.550) (end 1.900 2.650) (layer F.CrtYd) (width 0.050))
(fp_line (start 1.900 2.650) (end -1.900 2.650) (layer F.CrtYd) (width 0.050))
(fp_line (start -1.900 2.650) (end -1.900 -2.550) (layer F.CrtYd) (width 0.050))
(model RESISTOR_TRIMPOT_3MM.wrl
(at (xyz 0 0 0))
(scale (xyz 0.3937 0.3937 0.3937))
(rotate (xyz 0 0 0 ))
)
)

View File

@ -0,0 +1,81 @@
(module SOP65P640X120-20N (layer F.Cu)
(attr smd)
(pad 1 smd rect (at -2.950 -2.925) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 2 smd rect (at -2.950 -2.275) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 3 smd rect (at -2.950 -1.625) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 4 smd rect (at -2.950 -0.975) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 5 smd rect (at -2.950 -0.325) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 6 smd rect (at -2.950 0.325) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 7 smd rect (at -2.950 0.975) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 8 smd rect (at -2.950 1.625) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 9 smd rect (at -2.950 2.275) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 10 smd rect (at -2.950 2.925) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 20 smd rect (at 2.950 -2.925) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 19 smd rect (at 2.950 -2.275) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 18 smd rect (at 2.950 -1.625) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 17 smd rect (at 2.950 -0.975) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 16 smd rect (at 2.950 -0.325) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 15 smd rect (at 2.950 0.325) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 14 smd rect (at 2.950 0.975) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 13 smd rect (at 2.950 1.625) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 12 smd rect (at 2.950 2.275) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(pad 11 smd rect (at 2.950 2.925) (size 1.525 0.450) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.001))
(fp_text reference REF** (at 0.000 0.000) (layer F.SilkS)
(effects (font (size 1.200 1.200) (thickness 0.200)))
)
(fp_line (start -2.300 -3.450) (end 2.300 -3.450) (layer F.SilkS) (width 0.200))
(fp_line (start 2.300 3.450) (end -2.300 3.450) (layer F.SilkS) (width 0.200))
(fp_line (start -2.300 -3.450) (end -4.013 -3.450) (layer F.SilkS) (width 0.200))
(fp_line (start -4.013 -3.450) (end -4.013 -2.700) (layer F.SilkS) (width 0.200))
(fp_circle (center 0.000 0.000) (end 0.000 0.500) (layer F.Fab) (width 0.100))
(fp_line (start -0.700 0.000) (end 0.700 0.000) (layer F.Fab) (width 0.100))
(fp_line (start 0.000 -0.700) (end 0.000 0.700) (layer F.Fab) (width 0.100))
(fp_text value SOP65P640X120-20N (at 0.000 0.000 90) (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab)
(effects (font (size 1.000 1.000) (thickness 0.100)))
)
(fp_line (start -1.200 -3.250) (end 2.200 -3.250) (layer F.Fab) (width 0.100))
(fp_line (start 2.200 -3.250) (end 2.200 3.250) (layer F.Fab) (width 0.100))
(fp_line (start 2.200 3.250) (end -2.200 3.250) (layer F.Fab) (width 0.100))
(fp_line (start -2.200 3.250) (end -2.200 -2.250) (layer F.Fab) (width 0.100))
(fp_line (start -2.200 -2.250) (end -1.200 -3.250) (layer F.Fab) (width 0.100))
(fp_line (start -3.963 -3.400) (end -2.450 -3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start -2.450 -3.400) (end -2.450 -3.500) (layer F.CrtYd) (width 0.050))
(fp_line (start -2.450 -3.500) (end 2.450 -3.500) (layer F.CrtYd) (width 0.050))
(fp_line (start 2.450 -3.500) (end 2.450 -3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start 2.450 -3.400) (end 3.963 -3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start 3.963 -3.400) (end 3.963 3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start 3.963 3.400) (end 2.450 3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start 2.450 3.400) (end 2.450 3.500) (layer F.CrtYd) (width 0.050))
(fp_line (start 2.450 3.500) (end -2.450 3.500) (layer F.CrtYd) (width 0.050))
(fp_line (start -2.450 3.500) (end -2.450 3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start -2.450 3.400) (end -3.963 3.400) (layer F.CrtYd) (width 0.050))
(fp_line (start -3.963 3.400) (end -3.963 -3.400) (layer F.CrtYd) (width 0.050))
(model SOP65P640X120-20N.wrl
(at (xyz 0 0 0))
(scale (xyz 0.3937 0.3937 0.3937))
(rotate (xyz 0 0 0 ))
)
)

View File

@ -0,0 +1,50 @@
(module SOT95P237X112-3N (layer F.Cu)
(attr smd)
(pad 1 smd rect (at -1.150 -0.950) (size 1.100 0.600) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 2 smd rect (at -1.150 0.950) (size 1.100 0.600) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(pad 3 smd rect (at 1.150 0.000) (size 1.100 0.600) (layers F.Cu F.Mask F.Paste)
(solder_mask_margin 0.050))
(fp_text reference REF** (at 0.000 0.000) (layer F.SilkS)
(effects (font (size 1.200 1.200) (thickness 0.200)))
)
(fp_line (start -0.750 -1.560) (end 0.750 -1.560) (layer F.SilkS) (width 0.200))
(fp_line (start 0.750 -1.560) (end 0.750 -0.600) (layer F.SilkS) (width 0.200))
(fp_line (start 0.750 0.600) (end 0.750 1.560) (layer F.SilkS) (width 0.200))
(fp_line (start 0.750 1.560) (end -0.750 1.560) (layer F.SilkS) (width 0.200))
(fp_line (start -0.750 -0.350) (end -0.750 0.350) (layer F.SilkS) (width 0.200))
(fp_line (start -0.750 -1.550) (end -2.000 -1.550) (layer F.SilkS) (width 0.200))
(fp_line (start -2.000 -1.550) (end -2.000 -0.650) (layer F.SilkS) (width 0.200))
(fp_circle (center 0.000 0.000) (end 0.000 0.500) (layer F.Fab) (width 0.100))
(fp_line (start -0.700 0.000) (end 0.700 0.000) (layer F.Fab) (width 0.100))
(fp_line (start 0.000 -0.700) (end 0.000 0.700) (layer F.Fab) (width 0.100))
(fp_text value SOT95P237X112-3N (at 0.000 0.000 90) (layer F.Fab)
(effects (font (size 0.858 0.858) (thickness 0.100)))
)
(fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab)
(effects (font (size 0.858 0.858) (thickness 0.100)))
)
(fp_line (start 0.000 -1.460) (end 0.650 -1.460) (layer F.Fab) (width 0.100))
(fp_line (start 0.650 -1.460) (end 0.650 1.460) (layer F.Fab) (width 0.100))
(fp_line (start 0.650 1.460) (end -0.650 1.460) (layer F.Fab) (width 0.100))
(fp_line (start -0.650 1.460) (end -0.650 -0.810) (layer F.Fab) (width 0.100))
(fp_line (start -0.650 -0.810) (end 0.000 -1.460) (layer F.Fab) (width 0.100))
(fp_line (start -1.950 -1.500) (end -0.900 -1.500) (layer F.CrtYd) (width 0.050))
(fp_line (start -0.900 -1.500) (end -0.900 -1.710) (layer F.CrtYd) (width 0.050))
(fp_line (start -0.900 -1.710) (end 0.900 -1.710) (layer F.CrtYd) (width 0.050))
(fp_line (start 0.900 -1.710) (end 0.900 -0.550) (layer F.CrtYd) (width 0.050))
(fp_line (start 0.900 -0.550) (end 1.950 -0.550) (layer F.CrtYd) (width 0.050))
(fp_line (start 1.950 -0.550) (end 1.950 0.550) (layer F.CrtYd) (width 0.050))
(fp_line (start 1.950 0.550) (end 0.900 0.550) (layer F.CrtYd) (width 0.050))
(fp_line (start 0.900 0.550) (end 0.900 1.710) (layer F.CrtYd) (width 0.050))
(fp_line (start 0.900 1.710) (end -0.900 1.710) (layer F.CrtYd) (width 0.050))
(fp_line (start -0.900 1.710) (end -0.900 1.500) (layer F.CrtYd) (width 0.050))
(fp_line (start -0.900 1.500) (end -1.950 1.500) (layer F.CrtYd) (width 0.050))
(fp_line (start -1.950 1.500) (end -1.950 -1.500) (layer F.CrtYd) (width 0.050))
(model SOT95P237X112-3N.wrl
(at (xyz 0 0 0))
(scale (xyz 0.3937 0.3937 0.3937))
(rotate (xyz 0 0 0 ))
)
)