From 008c2ac835836c30c91cff95c3571593692d0929 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 7 Feb 2026 23:15:41 +0300 Subject: [PATCH] Diod init --- Capacitors/Capacitors.bak | 113 +++++++ Capacitors/Capacitors.kicad_sym | 4 +- .../{C0805.kicad_mod => C_0805.kicad_mod} | 4 +- Diodes/Diodes.bak | 152 +++++++++ Diodes/Diodes.kicad_sym | 152 +++++++++ Diodes/Diodes.pretty/D_SMA.kicad_mod | 308 ++++++++++++++++++ .../{R0805.kicad_mod => R_0805.kicad_mod} | 4 +- eda-core.kicad_dbl | 10 +- 8 files changed, 735 insertions(+), 12 deletions(-) rename Capacitors/Capacitors.pretty/{C0805.kicad_mod => C_0805.kicad_mod} (98%) create mode 100644 Diodes/Diodes.bak create mode 100644 Diodes/Diodes.kicad_sym create mode 100644 Diodes/Diodes.pretty/D_SMA.kicad_mod rename Resistors/Resistors.pretty/{R0805.kicad_mod => R_0805.kicad_mod} (98%) diff --git a/Capacitors/Capacitors.bak b/Capacitors/Capacitors.bak index acba36e..9a45c01 100644 --- a/Capacitors/Capacitors.bak +++ b/Capacitors/Capacitors.bak @@ -2,4 +2,117 @@ (version 20231120) (generator "kicad_symbol_editor") (generator_version "8.0") + (symbol "C" + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "C" + (at 3.75 3.75 0) + (do_not_autoplace) + (effects + (font + (size 2.1844 2.1844) + ) + ) + ) + (property "Value" "*" + (at 2.5 -3.75 0) + (do_not_autoplace) + (effects + (font + (size 2.1844 2.1844) + ) + (justify left bottom) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "C_1_0" + (polyline + (pts + (xy -0.75 4) (xy -0.75 -4) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.75 -4) (xy 0.75 4) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (pin passive line + (at -5 0 0) + (length 4.2) + (name "1" + (effects + (font + (size 0 0) + ) + ) + ) + (number "1" + (effects + (font + (size 0 0) + ) + ) + ) + ) + (pin passive line + (at 5 0 180) + (length 4.2) + (name "2" + (effects + (font + (size 0 0) + ) + ) + ) + (number "2" + (effects + (font + (size 0 0) + ) + ) + ) + ) + ) + ) ) diff --git a/Capacitors/Capacitors.kicad_sym b/Capacitors/Capacitors.kicad_sym index 6106ac2..9a45c01 100644 --- a/Capacitors/Capacitors.kicad_sym +++ b/Capacitors/Capacitors.kicad_sym @@ -58,7 +58,7 @@ (xy -0.75 4) (xy -0.75 -4) ) (stroke - (width 0.254) + (width 0.3) (type solid) ) (fill @@ -70,7 +70,7 @@ (xy 0.75 -4) (xy 0.75 4) ) (stroke - (width 0.254) + (width 0.3) (type solid) ) (fill diff --git a/Capacitors/Capacitors.pretty/C0805.kicad_mod b/Capacitors/Capacitors.pretty/C_0805.kicad_mod similarity index 98% rename from Capacitors/Capacitors.pretty/C0805.kicad_mod rename to Capacitors/Capacitors.pretty/C_0805.kicad_mod index 33ca021..18c0f0c 100644 --- a/Capacitors/Capacitors.pretty/C0805.kicad_mod +++ b/Capacitors/Capacitors.pretty/C_0805.kicad_mod @@ -1,4 +1,4 @@ -(footprint "C0805" +(footprint "C_0805" (version 20240108) (generator "pcbnew") (generator_version "8.0") @@ -16,7 +16,7 @@ ) ) ) - (property "Value" "C0805" + (property "Value" "C_0805" (at 0 1.68 0) (layer "F.Fab") (uuid "e1cef26a-9b05-47d0-95ed-57ad6f7a78aa") diff --git a/Diodes/Diodes.bak b/Diodes/Diodes.bak new file mode 100644 index 0000000..f0b3083 --- /dev/null +++ b/Diodes/Diodes.bak @@ -0,0 +1,152 @@ +(kicad_symbol_lib + (version 20231120) + (generator "kicad_symbol_editor") + (generator_version "8.0") + (symbol "DIOD" + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "VD" + (at 4 5.25 0) + (effects + (font + (size 2.1844 2.1844) + ) + ) + ) + (property "Value" "?" + (at 4 2.5 0) + (effects + (font + (size 2.1844 2.1844) + ) + (justify left bottom) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Диод" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "DIOD_1_0" + (polyline + (pts + (xy -2.48 7.242) (xy 2.52 7.242) + ) + (stroke + (width 0.2) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 2.5) (xy 0 7.5) + ) + (stroke + (width 0.2) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.02 7.242) (xy -2.48 3.242) + ) + (stroke + (width 0.2) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.02 7.242) (xy 2.52 3.242) + ) + (stroke + (width 0.2) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.52 3.242) (xy -2.48 3.242) + ) + (stroke + (width 0.2) + (type solid) + ) + (fill + (type none) + ) + ) + (pin passive line + (at 0 9.652 270) + (length 2.286) + (name "1" + (effects + (font + (size 0 0) + ) + ) + ) + (number "1" + (effects + (font + (size 0 0) + ) + ) + ) + ) + (pin passive line + (at 0 0 90) + (length 2.286) + (name "2" + (effects + (font + (size 0 0) + ) + ) + ) + (number "2" + (effects + (font + (size 0 0) + ) + ) + ) + ) + ) + ) +) diff --git a/Diodes/Diodes.kicad_sym b/Diodes/Diodes.kicad_sym new file mode 100644 index 0000000..0327082 --- /dev/null +++ b/Diodes/Diodes.kicad_sym @@ -0,0 +1,152 @@ +(kicad_symbol_lib + (version 20231120) + (generator "kicad_symbol_editor") + (generator_version "8.0") + (symbol "DIOD" + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "VD" + (at 5 6.25 0) + (effects + (font + (size 2.1844 2.1844) + ) + ) + ) + (property "Value" "*" + (at 3.75 2.5 0) + (effects + (font + (size 2.1844 2.1844) + ) + (justify left bottom) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "DIOD_1_0" + (polyline + (pts + (xy -2.48 7.242) (xy 2.52 7.242) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 2.5) (xy 0 7.5) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.02 7.242) (xy -2.48 3.242) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.02 7.242) (xy 2.52 3.242) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.52 3.242) (xy -2.48 3.242) + ) + (stroke + (width 0.3) + (type solid) + ) + (fill + (type none) + ) + ) + (pin passive line + (at 0 10 270) + (length 2.4) + (name "1" + (effects + (font + (size 0 0) + ) + ) + ) + (number "1" + (effects + (font + (size 0 0) + ) + ) + ) + ) + (pin passive line + (at 0 0 90) + (length 2.4) + (name "2" + (effects + (font + (size 0 0) + ) + ) + ) + (number "2" + (effects + (font + (size 0 0) + ) + ) + ) + ) + ) + ) +) diff --git a/Diodes/Diodes.pretty/D_SMA.kicad_mod b/Diodes/Diodes.pretty/D_SMA.kicad_mod new file mode 100644 index 0000000..1783ddb --- /dev/null +++ b/Diodes/Diodes.pretty/D_SMA.kicad_mod @@ -0,0 +1,308 @@ +(footprint "D_SMA" + (version 20240108) + (generator "pcbnew") + (generator_version "8.0") + (layer "F.Cu") + (descr "Diode SMA (DO-214AC)") + (tags "Diode SMA (DO-214AC)") + (property "Reference" "REF**" + (at 0 -2.5 0) + (layer "F.SilkS") + (uuid "78f18f7d-f8a5-43e4-98c1-400155beaace") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "D_SMA" + (at 0 2.6 0) + (layer "F.Fab") + (uuid "d8100462-8cef-473f-be33-7f843be6851c") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "ce5420fc-064d-4516-b636-65b41996b15c") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "c4278de3-51d4-45cb-b37b-42a667e66bc5") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (property "Description" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "aa802e2b-7add-4e63-bcb2-5328ca681d3d") + (effects + (font + (size 1.27 1.27) + (thickness 0.15) + ) + ) + ) + (attr smd) + (fp_line + (start -2.54 -1.524) + (end 2.54 -1.524) + (stroke + (width 0.2) + (type solid) + ) + (layer "F.SilkS") + (uuid "53fd5ede-59c7-4c1a-a238-96e9dddba307") + ) + (fp_line + (start -2.54 1.524) + (end 2.54 1.524) + (stroke + (width 0.2) + (type solid) + ) + (layer "F.SilkS") + (uuid "e43f551a-df5c-464d-aa66-d318657a631c") + ) + (fp_line + (start 2.54 -1.524) + (end 2.54 -1.143) + (stroke + (width 0.2) + (type default) + ) + (layer "F.SilkS") + (uuid "f39654ff-62ef-4232-af90-b09b09b2837f") + ) + (fp_line + (start 2.54 1.524) + (end 2.54 1.143) + (stroke + (width 0.2) + (type default) + ) + (layer "F.SilkS") + (uuid "a68150df-2199-4dc2-b258-efefc572e4c2") + ) + (fp_rect + (start -2.54 -1.524) + (end -1.27 -1.143) + (stroke + (width 0.2) + (type default) + ) + (fill solid) + (layer "F.SilkS") + (uuid "c212d205-1360-4bf6-b607-5cb8af06d635") + ) + (fp_rect + (start -2.54 1.524) + (end -1.27 1.143) + (stroke + (width 0.2) + (type default) + ) + (fill solid) + (layer "F.SilkS") + (uuid "092984d7-ce4e-4902-951c-242b10970cbe") + ) + (fp_line + (start -3.5 -1.75) + (end 3.5 -1.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "dbd4b25f-4fcb-4744-84be-c5e4a4e42837") + ) + (fp_line + (start -3.5 1.75) + (end -3.5 -1.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "2dd2626e-6f74-400d-9266-48b047137055") + ) + (fp_line + (start 3.5 -1.75) + (end 3.5 1.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "4ca79e24-2e7b-47bd-871d-fec997d695df") + ) + (fp_line + (start 3.5 1.75) + (end -3.5 1.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "d08df98a-2ea9-4491-a654-062a8028f290") + ) + (fp_line + (start -2.3 1.5) + (end -2.3 -1.5) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "1431ae02-b3a1-4485-9ca0-26bc320a78c5") + ) + (fp_line + (start -0.64944 -0.79908) + (end -0.64944 0.80112) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "0f99da12-e271-4d4a-8797-6ea6343d195d") + ) + (fp_line + (start -0.64944 0.00102) + (end -1.55114 0.00102) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "f7a8c838-49b4-4488-a08e-d89eb3dc4361") + ) + (fp_line + (start -0.64944 0.00102) + (end 0.50118 -0.79908) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "d558df36-f3a4-4fcf-8ea7-9ca3c5a228aa") + ) + (fp_line + (start -0.64944 0.00102) + (end 0.50118 0.75032) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "d55225e2-3236-4507-bfd9-80a48f293c40") + ) + (fp_line + (start 0.50118 0.00102) + (end 1.4994 0.00102) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "46fe74cf-81ca-444c-a727-666d0e34a994") + ) + (fp_line + (start 0.50118 0.75032) + (end 0.50118 -0.79908) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "7c1208d5-7637-4920-8943-369f975b8a74") + ) + (fp_line + (start 2.3 -1.5) + (end -2.3 -1.5) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "657b2a01-37ca-4d3c-8004-a75e08aa2032") + ) + (fp_line + (start 2.3 -1.5) + (end 2.3 1.5) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "d13e07f1-e4fe-4d02-b51c-871844057f50") + ) + (fp_line + (start 2.3 1.5) + (end -2.3 1.5) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "f849bb85-eee3-44d9-b881-7f1627d4304a") + ) + (fp_text user "${REFERENCE}" + (at 0 -2.5 0) + (layer "F.Fab") + (uuid "84118230-d2f4-4bb3-819b-e1cb088384b6") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" smd roundrect + (at -2 0) + (size 2 1.8) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.1388888889) + (uuid "e092a9e8-b915-4f8c-82db-96bdde4366ac") + ) + (pad "2" smd roundrect + (at 2 0) + (size 2 1.8) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.1388888889) + (uuid "7c00314a-7875-4f2e-ac99-32554d25fcd6") + ) + (model "${KICAD8_3DMODEL_DIR}/Diode_SMD.3dshapes/D_SMA.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) +) diff --git a/Resistors/Resistors.pretty/R0805.kicad_mod b/Resistors/Resistors.pretty/R_0805.kicad_mod similarity index 98% rename from Resistors/Resistors.pretty/R0805.kicad_mod rename to Resistors/Resistors.pretty/R_0805.kicad_mod index 96a4bfc..1c81a5b 100644 --- a/Resistors/Resistors.pretty/R0805.kicad_mod +++ b/Resistors/Resistors.pretty/R_0805.kicad_mod @@ -1,4 +1,4 @@ -(footprint "R0805" +(footprint "R_0805" (version 20240108) (generator "pcbnew") (generator_version "8.0") @@ -16,7 +16,7 @@ ) ) ) - (property "Value" "R0805" + (property "Value" "R_0805" (at 0 1.65 0) (layer "F.Fab") (uuid "83cd9c78-75b4-4eec-9501-2ff4a6e7a26e") diff --git a/eda-core.kicad_dbl b/eda-core.kicad_dbl index 65a8029..aaaf5e9 100644 --- a/eda-core.kicad_dbl +++ b/eda-core.kicad_dbl @@ -12,7 +12,7 @@ "libraries": [ { "name": "Резисторы", - "table": "kicad_component_query", + "table": "kicad_resistors", "key": "id", "symbols": "symbol", "footprints": "footprint", @@ -28,12 +28,11 @@ ], "properties": { "description": "description" - }, - "WHERE": "category = 'Резисторы'" + } }, { "name": "Конденсаторы", - "table": "kicad_component_query", + "table": "kicad_capacitors", "key": "id", "symbols": "symbol", "footprints": "footprint", @@ -49,8 +48,7 @@ ], "properties": { "description": "description" - }, - "WHERE": "category = 'Конденсаторы'" + } } ] }