From 8b216cf9ffd3554410b1ce3ef0a83d927eeaa81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 10 Jun 2022 19:55:18 +0200 Subject: [PATCH] lib: add most common components --- .qeda.yaml | 3 ++ kicad/mylib.3dshapes/CAPC1608X92N.wrl | 35 ++++++++++++++ kicad/mylib.3dshapes/LEDC2012X80N.wrl | 35 ++++++++++++++ kicad/mylib.3dshapes/UC1608X55N.wrl | 35 ++++++++++++++ kicad/mylib.dcm | 17 +++++++ kicad/mylib.lib | 57 +++++++++++++++++++++++ kicad/mylib.pretty/CAPC1608X92N.kicad_mod | 38 +++++++++++++++ kicad/mylib.pretty/LEDC2012X80N.kicad_mod | 42 +++++++++++++++++ kicad/mylib.pretty/UC1608X55N.kicad_mod | 38 +++++++++++++++ 9 files changed, 300 insertions(+) create mode 100644 kicad/mylib.3dshapes/CAPC1608X92N.wrl create mode 100644 kicad/mylib.3dshapes/LEDC2012X80N.wrl create mode 100644 kicad/mylib.3dshapes/UC1608X55N.wrl create mode 100644 kicad/mylib.dcm create mode 100644 kicad/mylib.lib create mode 100644 kicad/mylib.pretty/CAPC1608X92N.kicad_mod create mode 100644 kicad/mylib.pretty/LEDC2012X80N.kicad_mod create mode 100644 kicad/mylib.pretty/UC1608X55N.kicad_mod diff --git a/.qeda.yaml b/.qeda.yaml index 68681cd..afa9e9d 100644 --- a/.qeda.yaml +++ b/.qeda.yaml @@ -9,3 +9,6 @@ config: preferManufacturer: false smoothPadCorners: false library: + - resistor/r0603 + - capacitor/c0603 + - diode/led0805 diff --git a/kicad/mylib.3dshapes/CAPC1608X92N.wrl b/kicad/mylib.3dshapes/CAPC1608X92N.wrl new file mode 100644 index 0000000..5031d52 --- /dev/null +++ b/kicad/mylib.3dshapes/CAPC1608X92N.wrl @@ -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.4 -0.8 0, + 0.4 -0.8 0, + 0.4 0.8 0, + -0.4 0.8 0, + -0.4 -0.8 0.92, + 0.4 -0.8 0.92, + 0.4 0.8 0.92, + -0.4 0.8 0.92 + ] + } + 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 + ] + } +} diff --git a/kicad/mylib.3dshapes/LEDC2012X80N.wrl b/kicad/mylib.3dshapes/LEDC2012X80N.wrl new file mode 100644 index 0000000..ee6ce88 --- /dev/null +++ b/kicad/mylib.3dshapes/LEDC2012X80N.wrl @@ -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.6 -1 0, + 0.6 -1 0, + 0.6 1 0, + -0.6 1 0, + -0.6 -1 0.8, + 0.6 -1 0.8, + 0.6 1 0.8, + -0.6 1 0.8 + ] + } + 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 + ] + } +} diff --git a/kicad/mylib.3dshapes/UC1608X55N.wrl b/kicad/mylib.3dshapes/UC1608X55N.wrl new file mode 100644 index 0000000..d043031 --- /dev/null +++ b/kicad/mylib.3dshapes/UC1608X55N.wrl @@ -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.4 -0.8 0, + 0.4 -0.8 0, + 0.4 0.8 0, + -0.4 0.8 0, + -0.4 -0.8 0.55, + 0.4 -0.8 0.55, + 0.4 0.8 0.55, + -0.4 0.8 0.55 + ] + } + 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 + ] + } +} diff --git a/kicad/mylib.dcm b/kicad/mylib.dcm new file mode 100644 index 0000000..6ba1a6b --- /dev/null +++ b/kicad/mylib.dcm @@ -0,0 +1,17 @@ +EESchema-DOCLIB Version 2.0 Date: 00/00/0000 00:00:00 +# +$CMP R0603 +D resistor, chip, 1.6x0.8 mm +$ENDCMP +# +$CMP C0603 +D Chip capacitor 1.6x0.8 mm +K Capacitor +$ENDCMP +# +$CMP LED0805 +D diode, LED, chip, 2.0x1.2 mm +K LED +$ENDCMP +# +# End Doc Library diff --git a/kicad/mylib.lib b/kicad/mylib.lib new file mode 100644 index 0000000..01d5dac --- /dev/null +++ b/kicad/mylib.lib @@ -0,0 +1,57 @@ +EESchema-LIBRARY Version 2.3 Date: 00/00/0000 00:00:00 +#encoding utf-8 +# +# R0603 +# +DEF R0603 R 0 40 N N 1 L N +F0 "R" 0 70 50 H V C BNN +F1 "R0603" 0 -70 50 H V C TNN +F2 "mylib:UC1608X55N" 0 0 0 H I C CNN +$FPLIST + UC1608X55N +$ENDFPLIST +DRAW +S -100 40 100 -40 1 1 12 f +X L 1 -150 0 50 R 50 50 1 1 P +X R 2 150 0 50 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# C0603 +# +DEF C0603 C 0 40 N N 1 L N +F0 "C" 0 110 50 H V C BNN +F1 "C0603" 0 -110 50 H V C TNN +F2 "mylib:CAPC1608X92N" 0 0 0 H I C CNN +$FPLIST + CAPC1608X92N +$ENDFPLIST +DRAW +P 2 1 1 12 -15 80 -15 -80 N +P 2 1 1 12 15 80 15 -80 N +X L 1 -100 0 85 R 50 50 1 1 P +X R 2 100 0 85 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# LED0805 +# +DEF LED0805 D 0 40 N N 1 L N +F0 "D" 0 80 50 H V C BNN +F1 "LED0805" 0 -80 50 H V C TNN +F2 "mylib:LEDC2012X80N" 0 0 0 H I C CNN +$FPLIST + LEDC2012X80N +$ENDFPLIST +DRAW +P 4 1 1 12 -40 50 40 0 -40 -50 -40 50 f +P 2 1 1 12 40 50 40 -50 N +P 2 1 1 12 50 75 100 125 N +P 4 1 1 12 68 107 100 125 82 93 68 107 F +P 2 1 1 12 75 50 125 100 N +P 4 1 1 12 93 82 125 100 107 68 93 82 F +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 +# End Library diff --git a/kicad/mylib.pretty/CAPC1608X92N.kicad_mod b/kicad/mylib.pretty/CAPC1608X92N.kicad_mod new file mode 100644 index 0000000..ed9af4c --- /dev/null +++ b/kicad/mylib.pretty/CAPC1608X92N.kicad_mod @@ -0,0 +1,38 @@ +(module CAPC1608X92N (layer F.Cu) + (attr smd) + (pad 1 smd rect (at 0.000 -0.750) (size 1.250 1.100) (layers F.Cu F.Mask F.Paste) + (solder_mask_margin 0.050)) + (pad 2 smd rect (at 0.000 0.750) (size 1.250 1.100) (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.925 -0.900) (end -0.925 0.900) (layer F.SilkS) (width 0.200)) + (fp_line (start 0.925 -0.900) (end 0.925 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 CAPC1608X92N (at 0.000 0.000 90) (layer F.Fab) + (effects (font (size 0.528 0.528) (thickness 0.100))) + ) + (fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab) + (effects (font (size 0.528 0.528) (thickness 0.100))) + ) + (fp_line (start -0.400 -0.800) (end 0.400 -0.800) (layer F.Fab) (width 0.100)) + (fp_line (start 0.400 -0.800) (end 0.400 0.800) (layer F.Fab) (width 0.100)) + (fp_line (start 0.400 0.800) (end -0.400 0.800) (layer F.Fab) (width 0.100)) + (fp_line (start -0.400 0.800) (end -0.400 -0.800) (layer F.Fab) (width 0.100)) + (fp_line (start -0.875 -1.550) (end -0.875 -1.050) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.875 -1.050) (end -0.875 1.050) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.875 1.050) (end -0.875 1.550) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.875 1.550) (end 0.875 1.550) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.875 1.550) (end 0.875 1.050) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.875 1.050) (end 0.875 -1.050) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.875 -1.050) (end 0.875 -1.550) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.875 -1.550) (end -0.875 -1.550) (layer F.CrtYd) (width 0.050)) + (model CAPC1608X92N.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.3937 0.3937 0.3937)) + (rotate (xyz 0 0 0 )) + ) +) diff --git a/kicad/mylib.pretty/LEDC2012X80N.kicad_mod b/kicad/mylib.pretty/LEDC2012X80N.kicad_mod new file mode 100644 index 0000000..6f2c0be --- /dev/null +++ b/kicad/mylib.pretty/LEDC2012X80N.kicad_mod @@ -0,0 +1,42 @@ +(module LEDC2012X80N (layer F.Cu) + (attr smd) + (pad 1 smd rect (at 0.000 -0.900) (size 1.600 1.100) (layers F.Cu F.Mask F.Paste) + (solder_mask_margin 0.050)) + (pad 2 smd rect (at 0.000 0.900) (size 1.600 1.100) (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.100 -1.100) (end -1.100 1.100) (layer F.SilkS) (width 0.200)) + (fp_line (start 1.100 -1.100) (end 1.100 1.100) (layer F.SilkS) (width 0.200)) + (fp_line (start -1.100 -1.100) (end -1.100 -1.750) (layer F.SilkS) (width 0.200)) + (fp_line (start -1.100 -1.750) (end 1.100 -1.750) (layer F.SilkS) (width 0.200)) + (fp_line (start 1.100 -1.750) (end 1.100 -1.100) (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 LEDC2012X80N (at 0.000 0.000 90) (layer F.Fab) + (effects (font (size 0.792 0.792) (thickness 0.100))) + ) + (fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab) + (effects (font (size 0.792 0.792) (thickness 0.100))) + ) + (fp_line (start 0.000 -1.000) (end 0.600 -1.000) (layer F.Fab) (width 0.100)) + (fp_line (start 0.600 -1.000) (end 0.600 1.000) (layer F.Fab) (width 0.100)) + (fp_line (start 0.600 1.000) (end -0.600 1.000) (layer F.Fab) (width 0.100)) + (fp_line (start -0.600 1.000) (end -0.600 -0.400) (layer F.Fab) (width 0.100)) + (fp_line (start -0.600 -0.400) (end 0.000 -1.000) (layer F.Fab) (width 0.100)) + (fp_line (start -1.050 -1.700) (end -1.050 -1.250) (layer F.CrtYd) (width 0.050)) + (fp_line (start -1.050 -1.250) (end -1.050 1.250) (layer F.CrtYd) (width 0.050)) + (fp_line (start -1.050 1.250) (end -1.050 1.700) (layer F.CrtYd) (width 0.050)) + (fp_line (start -1.050 1.700) (end 1.050 1.700) (layer F.CrtYd) (width 0.050)) + (fp_line (start 1.050 1.700) (end 1.050 1.250) (layer F.CrtYd) (width 0.050)) + (fp_line (start 1.050 1.250) (end 1.050 -1.250) (layer F.CrtYd) (width 0.050)) + (fp_line (start 1.050 -1.250) (end 1.050 -1.700) (layer F.CrtYd) (width 0.050)) + (fp_line (start 1.050 -1.700) (end -1.050 -1.700) (layer F.CrtYd) (width 0.050)) + (model LEDC2012X80N.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.3937 0.3937 0.3937)) + (rotate (xyz 0 0 0 )) + ) +) diff --git a/kicad/mylib.pretty/UC1608X55N.kicad_mod b/kicad/mylib.pretty/UC1608X55N.kicad_mod new file mode 100644 index 0000000..8cd9686 --- /dev/null +++ b/kicad/mylib.pretty/UC1608X55N.kicad_mod @@ -0,0 +1,38 @@ +(module UC1608X55N (layer F.Cu) + (attr smd) + (pad 1 smd rect (at 0.000 -0.700) (size 1.100 0.750) (layers F.Cu F.Mask F.Paste) + (solder_mask_margin 0.050)) + (pad 2 smd rect (at 0.000 0.700) (size 1.100 0.750) (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.850 -0.900) (end -0.850 0.900) (layer F.SilkS) (width 0.200)) + (fp_line (start 0.850 -0.900) (end 0.850 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 UC1608X55N (at 0.000 0.000 90) (layer F.Fab) + (effects (font (size 0.528 0.528) (thickness 0.100))) + ) + (fp_text user REF** (at 0.000 0.000 90) hide (layer F.Fab) + (effects (font (size 0.528 0.528) (thickness 0.100))) + ) + (fp_line (start -0.400 -0.800) (end 0.400 -0.800) (layer F.Fab) (width 0.100)) + (fp_line (start 0.400 -0.800) (end 0.400 0.800) (layer F.Fab) (width 0.100)) + (fp_line (start 0.400 0.800) (end -0.400 0.800) (layer F.Fab) (width 0.100)) + (fp_line (start -0.400 0.800) (end -0.400 -0.800) (layer F.Fab) (width 0.100)) + (fp_line (start -0.730 -1.255) (end -0.730 -0.980) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.730 -0.980) (end -0.730 0.980) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.730 0.980) (end -0.730 1.255) (layer F.CrtYd) (width 0.050)) + (fp_line (start -0.730 1.255) (end 0.730 1.255) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.730 1.255) (end 0.730 0.980) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.730 0.980) (end 0.730 -0.980) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.730 -0.980) (end 0.730 -1.255) (layer F.CrtYd) (width 0.050)) + (fp_line (start 0.730 -1.255) (end -0.730 -1.255) (layer F.CrtYd) (width 0.050)) + (model UC1608X55N.wrl + (at (xyz 0 0 0)) + (scale (xyz 0.3937 0.3937 0.3937)) + (rotate (xyz 0 0 0 )) + ) +)