From c472530a6c955e22f5ff0c32b6337056ae252db7 Mon Sep 17 00:00:00 2001 From: LHSmicius Date: Thu, 7 Dec 2023 00:21:25 +0200 Subject: [PATCH 1/3] add zener, fix some other diodes --- entities/diode/diode.json | 3 +- entities/diode/schottky_diode.json | 2 +- entities/diode/zener_diode.json | 20 ++ parts/diode/{ => schottky}/base-sod-123.json | 4 +- parts/diode/zener/base-sot-23.json | 51 +++ symbols/diode/zener_diode.json | 328 +++++++++++++++++++ units/diode/zener_diode.json | 20 ++ 7 files changed, 424 insertions(+), 4 deletions(-) create mode 100644 entities/diode/zener_diode.json rename parts/diode/{ => schottky}/base-sod-123.json (92%) create mode 100644 parts/diode/zener/base-sot-23.json create mode 100644 symbols/diode/zener_diode.json create mode 100644 units/diode/zener_diode.json diff --git a/entities/diode/diode.json b/entities/diode/diode.json index 56ba76d30c..8ba4eb65c8 100644 --- a/entities/diode/diode.json +++ b/entities/diode/diode.json @@ -12,7 +12,8 @@ "prefix": "D", "tags": [ "diode", - "discrete" + "discrete", + "generic" ], "type": "entity", "uuid": "c44a773c-cdf5-4193-b5be-ab54952f3f28" diff --git a/entities/diode/schottky_diode.json b/entities/diode/schottky_diode.json index e6238dbcee..75e91d4099 100644 --- a/entities/diode/schottky_diode.json +++ b/entities/diode/schottky_diode.json @@ -13,7 +13,7 @@ "tags": [ "diode", "discrete", - "schottky" + "generic" ], "type": "entity", "uuid": "cba5158c-706d-4f10-b48a-2de7e5a82a4c" diff --git a/entities/diode/zener_diode.json b/entities/diode/zener_diode.json new file mode 100644 index 0000000000..f95130e387 --- /dev/null +++ b/entities/diode/zener_diode.json @@ -0,0 +1,20 @@ +{ + "gates": { + "46497e15-9591-4edb-a642-da58ed27bef8": { + "name": "Main", + "suffix": "", + "swap_group": 0, + "unit": "99e6b7ce-dbf9-4402-85bb-543f9d80892e" + } + }, + "manufacturer": "", + "name": "Zener diode", + "prefix": "D", + "tags": [ + "diode", + "discrete", + "generic" + ], + "type": "entity", + "uuid": "a7ec2682-3089-485e-a7d4-0f684ed46e9c" +} \ No newline at end of file diff --git a/parts/diode/base-sod-123.json b/parts/diode/schottky/base-sod-123.json similarity index 92% rename from parts/diode/base-sod-123.json rename to parts/diode/schottky/base-sod-123.json index 0ad636c97a..e8e0b658ec 100644 --- a/parts/diode/base-sod-123.json +++ b/parts/diode/schottky/base-sod-123.json @@ -1,7 +1,7 @@ { "MPN": [ false, - "base SOD-123 diode" + "base SOD-123 schottky diode" ], "datasheet": [ false, @@ -9,7 +9,7 @@ ], "description": [ false, - "" + "base schottky diode, SOD-123" ], "entity": "cba5158c-706d-4f10-b48a-2de7e5a82a4c", "inherit_model": false, diff --git a/parts/diode/zener/base-sot-23.json b/parts/diode/zener/base-sot-23.json new file mode 100644 index 0000000000..c1fe29e465 --- /dev/null +++ b/parts/diode/zener/base-sot-23.json @@ -0,0 +1,51 @@ +{ + "MPN": [ + false, + "base SOT-23 zener diode" + ], + "datasheet": [ + false, + "" + ], + "description": [ + false, + "base zener diode, SOT-23" + ], + "entity": "a7ec2682-3089-485e-a7d4-0f684ed46e9c", + "flags": { + "base_part": "set", + "exclude_bom": "clear", + "exclude_pnp": "clear" + }, + "inherit_model": true, + "inherit_tags": false, + "manufacturer": [ + false, + "" + ], + "model": "1ebac498-5423-42dc-90a6-7ad333585f6a", + "package": "a37e4931-af72-4de0-b4e4-0357747ba44d", + "pad_map": { + "531c3759-a1b6-40c6-9474-5554dc94bcec": { + "gate": "46497e15-9591-4edb-a642-da58ed27bef8", + "pin": "16ee5a5c-8eea-4447-ad48-04d973776e3a" + }, + "9fe9b6c3-f887-4523-976a-6aa050235658": { + "gate": "46497e15-9591-4edb-a642-da58ed27bef8", + "pin": "b57ca2a1-1bbf-43f0-b0a0-bf953094a8de" + } + }, + "parametric": {}, + "tags": [ + "diode", + "smd", + "zener" + ], + "type": "part", + "uuid": "bde70492-14a5-4e33-b3b6-f1f7330655d5", + "value": [ + false, + "" + ], + "version": 1 +} \ No newline at end of file diff --git a/symbols/diode/zener_diode.json b/symbols/diode/zener_diode.json new file mode 100644 index 0000000000..fd00892fbf --- /dev/null +++ b/symbols/diode/zener_diode.json @@ -0,0 +1,328 @@ +{ + "arcs": {}, + "can_expand": false, + "junctions": { + "0ab64161-d4fe-499b-be40-6a5707f58418": { + "position": [ + -875000, + -1250000 + ] + }, + "500db358-8a63-41e9-8ec6-449bcd1ec210": { + "position": [ + -1250000, + 0 + ] + }, + "96e480fc-8c39-4692-aa5d-244560508fb6": { + "position": [ + -1250000, + 1250000 + ] + }, + "a2d20398-695c-4bb9-a275-58e5cce70a15": { + "position": [ + -1625000, + 1250000 + ] + }, + "c0244b44-f628-4ee8-b738-024c5138afa3": { + "position": [ + -1250000, + -1250000 + ] + }, + "e4467c53-9282-4397-b8e2-11be10738149": { + "position": [ + 1250000, + 1250000 + ] + }, + "fc50af28-c6b4-4e2a-b865-e09a08f8f77a": { + "position": [ + 1250000, + -1250000 + ] + } + }, + "lines": { + "0ac250a5-0a43-4277-b616-6929220a0186": { + "from": "96e480fc-8c39-4692-aa5d-244560508fb6", + "layer": 0, + "to": "a2d20398-695c-4bb9-a275-58e5cce70a15", + "width": 0 + }, + "3e5dd322-57ab-4b74-97aa-b04d4706dbe7": { + "from": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "layer": 0, + "to": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "width": 0 + }, + "604295a8-72ee-433c-b5ca-b25ca8c9b568": { + "from": "96e480fc-8c39-4692-aa5d-244560508fb6", + "layer": 0, + "to": "c0244b44-f628-4ee8-b738-024c5138afa3", + "width": 0 + }, + "6447a62f-1042-46ed-a493-b9f0ba8621bc": { + "from": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "layer": 0, + "to": "e4467c53-9282-4397-b8e2-11be10738149", + "width": 0 + }, + "69d2c761-a12b-4221-ba28-dfc0482eef50": { + "from": "e4467c53-9282-4397-b8e2-11be10738149", + "layer": 0, + "to": "500db358-8a63-41e9-8ec6-449bcd1ec210", + "width": 0 + }, + "83d0f2b5-8f15-495a-84f3-abf51886542b": { + "from": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "layer": 0, + "to": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "width": 0 + }, + "9cde4a7c-df4e-4b90-a091-ad95083c1373": { + "from": "500db358-8a63-41e9-8ec6-449bcd1ec210", + "layer": 0, + "to": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "width": 0 + }, + "b0576764-020d-4c23-98c6-cf0410b41550": { + "from": "c0244b44-f628-4ee8-b738-024c5138afa3", + "layer": 0, + "to": "0ab64161-d4fe-499b-be40-6a5707f58418", + "width": 0 + }, + "d2521c2e-7c48-4c43-a542-b2f2da460835": { + "from": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "layer": 0, + "to": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", + "width": 0 + } + }, + "name": "Zener diode", + "pins": { + "16ee5a5c-8eea-4447-ad48-04d973776e3a": { + "decoration": { + "clock": false, + "dot": false, + "driver": "default", + "schmitt": false + }, + "length": 2500000, + "name_orientation": "in_line", + "name_visible": false, + "orientation": "left", + "pad_visible": true, + "position": [ + -3750000, + 0 + ] + }, + "b57ca2a1-1bbf-43f0-b0a0-bf953094a8de": { + "decoration": { + "clock": false, + "dot": false, + "driver": "default", + "schmitt": false + }, + "length": 2500000, + "name_orientation": "in_line", + "name_visible": false, + "orientation": "right", + "pad_visible": true, + "position": [ + 3750000, + 0 + ] + } + }, + "polygons": {}, + "text_placements": { + "0m": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 32768, + "mirror": false, + "shift": [ + 3750000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 32768, + "mirror": false, + "shift": [ + 3750000, + 2500000 + ] + } + }, + "0n": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + 2500000 + ] + } + }, + "180m": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + 2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + -2500000 + ] + } + }, + "180n": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 32768, + "mirror": false, + "shift": [ + 3750000, + 2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 32768, + "mirror": false, + "shift": [ + 3750000, + -2500000 + ] + } + }, + "270m": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 49152, + "mirror": false, + "shift": [ + 1250000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 49152, + "mirror": false, + "shift": [ + -1250000, + -2500000 + ] + } + }, + "270n": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 49152, + "mirror": false, + "shift": [ + 1250000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 49152, + "mirror": false, + "shift": [ + -1250000, + -2500000 + ] + } + }, + "90m": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 49152, + "mirror": false, + "shift": [ + -1250000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 49152, + "mirror": false, + "shift": [ + 1250000, + -2500000 + ] + } + }, + "90n": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "angle": 49152, + "mirror": false, + "shift": [ + -1250000, + -2500000 + ] + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "angle": 49152, + "mirror": false, + "shift": [ + 1250000, + -2500000 + ] + } + } + }, + "texts": { + "584af48c-30d0-4410-98bf-257ac226902f": { + "font": "simplex", + "from_smash": false, + "layer": 0, + "origin": "center", + "placement": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + -2500000 + ] + }, + "size": 1500000, + "text": "$VALUE", + "width": 0 + }, + "ee48ba49-6541-4cf7-963d-67b474d49d0b": { + "font": "simplex", + "from_smash": false, + "layer": 0, + "origin": "center", + "placement": { + "angle": 0, + "mirror": false, + "shift": [ + -3750000, + 2500000 + ] + }, + "size": 1500000, + "text": "$REFDES", + "width": 0 + } + }, + "type": "symbol", + "unit": "99e6b7ce-dbf9-4402-85bb-543f9d80892e", + "uuid": "61bc8580-5586-45e1-a7fe-b0a9ff63c790", + "version": 1 +} \ No newline at end of file diff --git a/units/diode/zener_diode.json b/units/diode/zener_diode.json new file mode 100644 index 0000000000..6d91c95cde --- /dev/null +++ b/units/diode/zener_diode.json @@ -0,0 +1,20 @@ +{ + "manufacturer": "", + "name": "Zener diode", + "pins": { + "16ee5a5c-8eea-4447-ad48-04d973776e3a": { + "direction": "passive", + "names": [], + "primary_name": "K", + "swap_group": 0 + }, + "b57ca2a1-1bbf-43f0-b0a0-bf953094a8de": { + "direction": "passive", + "names": [], + "primary_name": "A", + "swap_group": 0 + } + }, + "type": "unit", + "uuid": "99e6b7ce-dbf9-4402-85bb-543f9d80892e" +} \ No newline at end of file From e6874b7369fccba81bbce802cf85a1fe199d54b9 Mon Sep 17 00:00:00 2001 From: LHSmicius Date: Thu, 8 Feb 2024 22:25:52 +0200 Subject: [PATCH 2/3] zener symbol fixed --- symbols/diode/zener_diode.json | 36 ++++++++++++++-------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/symbols/diode/zener_diode.json b/symbols/diode/zener_diode.json index fd00892fbf..8cb83519f8 100644 --- a/symbols/diode/zener_diode.json +++ b/symbols/diode/zener_diode.json @@ -22,7 +22,7 @@ }, "a2d20398-695c-4bb9-a275-58e5cce70a15": { "position": [ - -1625000, + -875000, 1250000 ] }, @@ -88,12 +88,6 @@ "to": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", "width": 0 }, - "b0576764-020d-4c23-98c6-cf0410b41550": { - "from": "c0244b44-f628-4ee8-b738-024c5138afa3", - "layer": 0, - "to": "0ab64161-d4fe-499b-be40-6a5707f58418", - "width": 0 - }, "d2521c2e-7c48-4c43-a542-b2f2da460835": { "from": "fc50af28-c6b4-4e2a-b865-e09a08f8f77a", "layer": 0, @@ -142,16 +136,16 @@ "text_placements": { "0m": { "584af48c-30d0-4410-98bf-257ac226902f": { - "angle": 32768, - "mirror": false, + "angle": 0, + "mirror": true, "shift": [ 3750000, -2500000 ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { - "angle": 32768, - "mirror": false, + "angle": 0, + "mirror": true, "shift": [ 3750000, 2500000 @@ -178,8 +172,8 @@ }, "180m": { "584af48c-30d0-4410-98bf-257ac226902f": { - "angle": 0, - "mirror": false, + "angle": 32768, + "mirror": true, "shift": [ -3750000, 2500000 @@ -204,8 +198,8 @@ ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { - "angle": 32768, - "mirror": false, + "angle": 0, + "mirror": true, "shift": [ 3750000, -2500000 @@ -214,11 +208,11 @@ }, "270m": { "584af48c-30d0-4410-98bf-257ac226902f": { - "angle": 49152, + "angle": 16384, "mirror": false, "shift": [ 1250000, - -2500000 + 2500000 ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { @@ -226,17 +220,17 @@ "mirror": false, "shift": [ -1250000, - -2500000 + 12500000 ] } }, "270n": { "584af48c-30d0-4410-98bf-257ac226902f": { - "angle": 49152, + "angle": 16384, "mirror": false, "shift": [ 1250000, - -2500000 + 2500000 ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { @@ -244,7 +238,7 @@ "mirror": false, "shift": [ -1250000, - -2500000 + 12500000 ] } }, From 32d412645bab989441a14e6768b2cdfe20be3a3b Mon Sep 17 00:00:00 2001 From: LHSmicius Date: Thu, 8 Feb 2024 22:45:21 +0200 Subject: [PATCH 3/3] zener symbol fixed 2 --- symbols/diode/zener_diode.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/symbols/diode/zener_diode.json b/symbols/diode/zener_diode.json index 8cb83519f8..b6c3f2dd23 100644 --- a/symbols/diode/zener_diode.json +++ b/symbols/diode/zener_diode.json @@ -216,11 +216,11 @@ ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { - "angle": 49152, + "angle": 16384, "mirror": false, "shift": [ -1250000, - 12500000 + 2500000 ] } }, @@ -234,11 +234,11 @@ ] }, "ee48ba49-6541-4cf7-963d-67b474d49d0b": { - "angle": 49152, + "angle": 16384, "mirror": false, "shift": [ -1250000, - 12500000 + 2500000 ] } },