From ad1e3f311a3af8576b73f35bd7c385956cf7155a Mon Sep 17 00:00:00 2001 From: nickdante Date: Thu, 20 Aug 2026 20:42:27 +0300 Subject: [PATCH] Schematic fix to CMD-7 and CMD-12 --- CMD-12/CMD-12.kicad_sch | 152 ++++++++++++++++++++-------------------- CMD-7/CMD-7.kicad_sch | 130 ++++++++++++++++++---------------- CMD-7/parse_sch.py | 12 ++++ README.md | 23 +++++- 4 files changed, 179 insertions(+), 138 deletions(-) create mode 100644 CMD-7/parse_sch.py diff --git a/CMD-12/CMD-12.kicad_sch b/CMD-12/CMD-12.kicad_sch index 0303108..4a518e9 100644 --- a/CMD-12/CMD-12.kicad_sch +++ b/CMD-12/CMD-12.kicad_sch @@ -2303,24 +2303,30 @@ (color 0 0 0 0) (uuid "74d25d95-7fc6-48ad-b9c1-ad64ed157da7") ) - (junction - (at 121.92 26.67) - (diameter 0) - (color 0 0 0 0) - (uuid "80f5f11e-8f23-4d12-b76a-1ff95b42e765") - ) (junction (at 135.89 62.23) (diameter 0) (color 0 0 0 0) (uuid "8145ff8b-5b9a-41fa-88b6-bd954fa2e246") ) + (junction + (at 127 22.86) + (diameter 0) + (color 0 0 0 0) + (uuid "b24bf7d1-f548-4952-a6b0-e92c98edd5b8") + ) (junction (at 93.98 26.67) (diameter 0) (color 0 0 0 0) (uuid "b68916c0-ac58-4a52-a144-61c0d85dba20") ) + (junction + (at 121.92 26.67) + (diameter 0) + (color 0 0 0 0) + (uuid "d351c9e1-64e5-486c-9d1a-116460103bb4") + ) (junction (at 93.98 60.96) (diameter 0) @@ -2333,12 +2339,6 @@ (color 0 0 0 0) (uuid "f29ddbee-8d85-4e26-8415-7360d6c11053") ) - (junction - (at 127 22.86) - (diameter 0) - (color 0 0 0 0) - (uuid "fc1d6e92-c9e1-4f06-bca1-78420777dc0f") - ) (wire (pts (xy 69.85 26.67) (xy 93.98 26.67) @@ -2369,16 +2369,6 @@ ) (uuid "0ff7f27b-ec34-4524-8a18-7e0900665926") ) - (wire - (pts - (xy 121.92 59.69) (xy 121.92 64.77) - ) - (stroke - (width 0) - (type default) - ) - (uuid "101aa081-2a7f-43d0-a8c1-61b6cba31132") - ) (wire (pts (xy 33.02 54.61) (xy 36.83 54.61) @@ -2399,6 +2389,16 @@ ) (uuid "2273f333-1da5-4228-8e0d-dd53fe70380d") ) + (wire + (pts + (xy 109.22 45.72) (xy 116.84 45.72) + ) + (stroke + (width 0) + (type default) + ) + (uuid "239c2c6c-efe1-42bf-a3fc-eb918d2aee94") + ) (wire (pts (xy 63.5 63.5) (xy 111.76 63.5) @@ -2557,7 +2557,7 @@ (width 0) (type default) ) - (uuid "6a395d4a-6afa-46e7-b04c-e804f6d6b620") + (uuid "65e8c53b-0c87-464a-90e3-9c9ab8f1409f") ) (wire (pts @@ -2589,6 +2589,16 @@ ) (uuid "6ef4fb8b-6fb2-4509-b1be-bf037d2e12bc") ) + (wire + (pts + (xy 127 22.86) (xy 127 45.72) + ) + (stroke + (width 0) + (type default) + ) + (uuid "6f873958-dc54-4980-96fb-ea2c3c431dd3") + ) (wire (pts (xy 82.55 60.96) (xy 93.98 60.96) @@ -2621,7 +2631,7 @@ ) (wire (pts - (xy 127 22.86) (xy 129.54 22.86) + (xy 124.46 22.86) (xy 127 22.86) ) (stroke (width 0) @@ -2629,16 +2639,6 @@ ) (uuid "76926ee6-d52f-4069-9e7d-73c8b6802428") ) - (wire - (pts - (xy 109.22 45.72) (xy 116.84 45.72) - ) - (stroke - (width 0) - (type default) - ) - (uuid "7a2a0502-1cd2-451b-b739-c2c6729e91c0") - ) (wire (pts (xy 135.89 62.23) (xy 140.97 62.23) @@ -2709,16 +2709,6 @@ ) (uuid "9c76fe8c-72f1-4419-a58e-bf4f83128905") ) - (wire - (pts - (xy 124.46 22.86) (xy 127 22.86) - ) - (stroke - (width 0) - (type default) - ) - (uuid "a390bb92-44e0-456e-b307-9edf4b625c06") - ) (wire (pts (xy 105.41 72.39) (xy 105.41 83.82) @@ -2729,6 +2719,16 @@ ) (uuid "a6192d45-2770-46f2-adb7-36d790418ba6") ) + (wire + (pts + (xy 116.84 59.69) (xy 116.84 60.96) + ) + (stroke + (width 0) + (type default) + ) + (uuid "a7691eae-292a-44df-ba9c-5da50b6b787e") + ) (wire (pts (xy 33.02 69.85) (xy 36.83 69.85) @@ -2769,6 +2769,16 @@ ) (uuid "b24828af-88b0-46d3-bf40-a16c4fa45bb6") ) + (wire + (pts + (xy 121.92 59.69) (xy 121.92 64.77) + ) + (stroke + (width 0) + (type default) + ) + (uuid "b5060937-fd07-434b-9ca9-608d8b56919b") + ) (wire (pts (xy 69.85 36.83) (xy 73.66 36.83) @@ -2839,26 +2849,6 @@ ) (uuid "cfb1988d-370c-40fb-9e15-574a18bbc1aa") ) - (wire - (pts - (xy 121.92 45.72) (xy 121.92 26.67) - ) - (stroke - (width 0) - (type default) - ) - (uuid "d0d052f9-e834-42ec-8c8f-20b3af957087") - ) - (wire - (pts - (xy 127 22.86) (xy 127 45.72) - ) - (stroke - (width 0) - (type default) - ) - (uuid "d0f5be73-5b10-484b-8196-4d52c9ca34d4") - ) (wire (pts (xy 111.76 60.96) (xy 116.84 60.96) @@ -2929,6 +2919,26 @@ ) (uuid "dedf3065-08b7-4769-990b-b6328e6c0d81") ) + (wire + (pts + (xy 121.92 26.67) (xy 121.92 45.72) + ) + (stroke + (width 0) + (type default) + ) + (uuid "e0cbaad4-d116-49ee-9ae1-e76dfad98867") + ) + (wire + (pts + (xy 127 22.86) (xy 129.54 22.86) + ) + (stroke + (width 0) + (type default) + ) + (uuid "e1a066a8-8986-4eca-bbdf-34467fccaa55") + ) (wire (pts (xy 67.31 36.83) (xy 69.85 36.83) @@ -2939,16 +2949,6 @@ ) (uuid "e2f38eb8-0555-44ae-828c-55ae71335f5b") ) - (wire - (pts - (xy 116.84 60.96) (xy 116.84 59.69) - ) - (stroke - (width 0) - (type default) - ) - (uuid "e63251ce-94c3-4906-8b9c-9c6eb91fe3f7") - ) (wire (pts (xy 121.92 26.67) (xy 135.89 26.67) @@ -5307,6 +5307,7 @@ (symbol (lib_id "Switch_GhostCat:SW_DIP_DEEC_H012-10") (at 121.92 48.26 0) + (mirror y) (unit 1) (body_style 1) (exclude_from_sim no) @@ -5314,10 +5315,9 @@ (on_board yes) (in_pos_files yes) (dnp no) - (fields_autoplaced yes) (uuid "e460fc77-d439-4a45-baed-3e02c118c843") (property "Reference" "SW2" - (at 128.27 52.7049 0) + (at 115.57 52.7049 0) (show_name no) (do_not_autoplace no) (effects diff --git a/CMD-7/CMD-7.kicad_sch b/CMD-7/CMD-7.kicad_sch index d9b14a0..f6f86f1 100644 --- a/CMD-7/CMD-7.kicad_sch +++ b/CMD-7/CMD-7.kicad_sch @@ -2261,6 +2261,16 @@ (embedded_fonts no) ) ) + (text "Hook switch states:\n - in default (closed), 3 with 2 and 4 with 5 are shorted\n - in active (open), 3 with 1 and 4 with 6 are shorted" + (exclude_from_sim yes) + (at 41.402 18.034 0) + (effects + (font + (size 1.27 1.27) + ) + ) + (uuid "f85ad272-10ce-476e-8d46-40c658cf5dfc") + ) (junction (at 140.97 91.44) (diameter 0) @@ -2273,6 +2283,12 @@ (color 0 0 0 0) (uuid "2b8a00a5-51e4-40e6-b505-6a606c229902") ) + (junction + (at 127 31.75) + (diameter 0) + (color 0 0 0 0) + (uuid "3a9a4c60-7191-4cc4-b7a1-d94e0ffccefd") + ) (junction (at 99.06 31.75) (diameter 0) @@ -2292,10 +2308,10 @@ (uuid "5fe8fe66-6b26-45ce-9b1b-79eb7b37d233") ) (junction - (at 127 31.75) + (at 132.08 27.94) (diameter 0) (color 0 0 0 0) - (uuid "69b25a47-c859-42b0-8a83-0175d5bc5477") + (uuid "681eba4e-e1b1-452f-98f5-4ead2352dce6") ) (junction (at 116.84 66.04) @@ -2309,12 +2325,6 @@ (color 0 0 0 0) (uuid "9cde15cf-6fe0-4ab2-850b-80c9f3cd1f8a") ) - (junction - (at 132.08 27.94) - (diameter 0) - (color 0 0 0 0) - (uuid "c5ec189f-716f-4338-adc1-53817c373748") - ) (junction (at 140.97 67.31) (diameter 0) @@ -2449,6 +2459,26 @@ ) (uuid "318ca088-f7f7-44bb-b673-5cd1883a94cc") ) + (wire + (pts + (xy 121.92 64.77) (xy 121.92 66.04) + ) + (stroke + (width 0) + (type default) + ) + (uuid "356ce402-92ba-4a04-8d94-a22b8d59c877") + ) + (wire + (pts + (xy 127 64.77) (xy 127 69.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "39031f80-531a-45d0-8349-7057f4caea68") + ) (wire (pts (xy 90.17 52.07) (xy 90.17 41.91) @@ -2509,16 +2539,6 @@ ) (uuid "4cfb19f9-55f9-43c6-8712-8b5081e8027f") ) - (wire - (pts - (xy 132.08 27.94) (xy 132.08 50.8) - ) - (stroke - (width 0) - (type default) - ) - (uuid "4d43b1be-74a7-4fa4-a7dc-1460a37f0574") - ) (wire (pts (xy 106.68 77.47) (xy 110.49 77.47) @@ -2629,16 +2649,6 @@ ) (uuid "7ee295d4-1e6e-4df5-bc17-cd1f7432c272") ) - (wire - (pts - (xy 127 64.77) (xy 127 69.85) - ) - (stroke - (width 0) - (type default) - ) - (uuid "7f99a914-f973-48ab-be0d-f124ba8a42da") - ) (wire (pts (xy 110.49 77.47) (xy 110.49 88.9) @@ -2769,6 +2779,16 @@ ) (uuid "bb091821-ebe6-4409-8709-d552370bb381") ) + (wire + (pts + (xy 127 31.75) (xy 127 50.8) + ) + (stroke + (width 0) + (type default) + ) + (uuid "bb2fd9f3-635c-40e8-8f2f-90b6c5f31285") + ) (wire (pts (xy 99.06 82.55) (xy 99.06 96.52) @@ -2779,6 +2799,16 @@ ) (uuid "bb55a502-a47b-4937-b9c0-0cd8d1b81e87") ) + (wire + (pts + (xy 132.08 64.77) (xy 132.08 67.31) + ) + (stroke + (width 0) + (type default) + ) + (uuid "bd9db07a-941a-4111-8184-e28fae57571c") + ) (wire (pts (xy 110.49 77.47) (xy 115.57 77.47) @@ -2799,26 +2829,6 @@ ) (uuid "bff8eded-ae39-4af7-b187-a2a8f7c00eb2") ) - (wire - (pts - (xy 121.92 66.04) (xy 121.92 64.77) - ) - (stroke - (width 0) - (type default) - ) - (uuid "c109b717-1f08-4ffc-997b-ffe2b1683c98") - ) - (wire - (pts - (xy 132.08 64.77) (xy 132.08 67.31) - ) - (stroke - (width 0) - (type default) - ) - (uuid "c2ce0cff-4b32-42ce-9a80-19680cd1c329") - ) (wire (pts (xy 124.46 88.9) (xy 128.27 88.9) @@ -2879,16 +2889,6 @@ ) (uuid "d26fc90b-2342-46a5-9992-a66bae1db02f") ) - (wire - (pts - (xy 127 50.8) (xy 127 31.75) - ) - (stroke - (width 0) - (type default) - ) - (uuid "d6807202-09a7-4448-9cf4-788007395ba5") - ) (wire (pts (xy 140.97 91.44) (xy 140.97 88.9) @@ -2909,6 +2909,16 @@ ) (uuid "d8991a4a-e2a4-44e2-b211-80fcab886b07") ) + (wire + (pts + (xy 132.08 27.94) (xy 132.08 50.8) + ) + (stroke + (width 0) + (type default) + ) + (uuid "da61a743-4423-49e6-97d1-2b7b279ac394") + ) (wire (pts (xy 146.05 91.44) (xy 140.97 91.44) @@ -4663,6 +4673,7 @@ (symbol (lib_id "Switch_GhostCat:SW_DIP_DEEC_H012-10") (at 127 53.34 0) + (mirror y) (unit 1) (body_style 1) (exclude_from_sim no) @@ -4670,10 +4681,9 @@ (on_board yes) (in_pos_files yes) (dnp no) - (fields_autoplaced yes) (uuid "848409ab-839d-4275-959e-7da5725dc94d") (property "Reference" "SW2" - (at 133.35 57.7849 0) + (at 120.65 57.7849 0) (show_name no) (do_not_autoplace no) (effects diff --git a/CMD-7/parse_sch.py b/CMD-7/parse_sch.py new file mode 100644 index 0000000..2778c3d --- /dev/null +++ b/CMD-7/parse_sch.py @@ -0,0 +1,12 @@ +import re +import sys + +def parse_kicad_sch(filepath): + with open(filepath, 'r') as f: + data = f.read() + + # Very rudimentary parsing, but let's just find the connections. + # It might be easier to use kicad-cli or python kicad libraries if available. + print("Use schematic parser") + +parse_kicad_sch("CMD-7.kicad_sch") diff --git a/README.md b/README.md index 920c142..61a1585 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ -# hw-heater-on-oil +# hw-stroy-master-domofon -HW for heater on oil \ No newline at end of file +HW for intercom from stroy master domofon. + +## CMD-7 + +```mermaid +stateDiagram-v2 + [*] --> Idle: High Impedance (>10kΩ) + Idle --> Ringing: Panel applies AC/Pulsed DC + Ringing --> OffHook: Line load drops to ~300Ω–600Ω (Answer Call) + OffHook --> DoorRelease: Line shorted to <50Ω (Press Button) + DoorRelease --> Idle: Panel unlocks door & resets +``` + + +| state | Resistance | Voltage | +| -- | -- | -- | +| idle | 56 kOhm | 0V | +| ring | | | +| peak | | | +| open | | |