From 614023283cd8afdc4d406eb5e5b988e01ea13e0f Mon Sep 17 00:00:00 2001 From: phiwan-dev <75113544+phiwan-dev@users.noreply.github.com> Date: Tue, 7 Apr 2026 18:26:38 +0200 Subject: [PATCH] board: sch replace key13 with voltage divider battery sense --- board/battery.kicad_sch | 460 +++++++++++++++++++++++++++++++- board/board.kicad_sch | 4 +- board/board_to_board.kicad_sch | 26 +- board/mcu.kicad_sch | 54 ++-- board/swd.kicad_sch | 8 +- board/usb-c_to_magnet.kicad_sch | 24 +- 6 files changed, 512 insertions(+), 64 deletions(-) diff --git a/board/battery.kicad_sch b/board/battery.kicad_sch index a011345..12c83a6 100644 --- a/board/battery.kicad_sch +++ b/board/battery.kicad_sch @@ -147,6 +147,130 @@ ) (embedded_fonts no) ) + (symbol "Device:R" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "R" + (at 2.032 0 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "R" + (at 0 0 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at -1.778 0 90) + (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" "Resistor" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "R res resistor" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "R_*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "R_0_1" + (rectangle + (start -1.016 -2.54) + (end 1.016 2.54) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "R_1_1" + (pin passive line + (at 0 3.81 270) + (length 1.27) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 0 -3.81 90) + (length 1.27) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) (symbol "power:GND" (power) (pin_numbers @@ -259,6 +383,28 @@ ) (uuid "7b25ecbc-ffcb-4a7d-8332-d9876421277f") ) + (junction + (at 158.75 87.63) + (diameter 0) + (color 0 0 0 0) + (uuid "1c5b4d8c-ce89-4f12-8af8-de368a8058e2") + ) + (junction + (at 146.05 87.63) + (diameter 0) + (color 0 0 0 0) + (uuid "88ca55a8-a03d-4d29-bda1-81073aa5d8e2") + ) + (wire + (pts + (xy 146.05 87.63) (xy 148.59 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "1cb6f8fb-35dc-4641-8604-b0d75d4864ff") + ) (wire (pts (xy 144.78 91.44) (xy 144.78 90.17) @@ -269,6 +415,16 @@ ) (uuid "3d4ead19-445f-465f-92f0-86afdf77f9f8") ) + (wire + (pts + (xy 170.18 87.63) (xy 170.18 91.44) + ) + (stroke + (width 0) + (type default) + ) + (uuid "4f53066b-be9d-49a6-b4ee-9105eb237456") + ) (wire (pts (xy 144.78 90.17) (xy 142.24 90.17) @@ -279,9 +435,91 @@ ) (uuid "54bbef23-2df0-4dc4-a01a-9f6d10cf85f2") ) + (wire + (pts + (xy 146.05 83.82) (xy 146.05 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "5ffcd879-01c9-417c-bc1f-d9d8fe492e80") + ) + (wire + (pts + (xy 142.24 87.63) (xy 146.05 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "6222b73c-e4f2-4311-bd75-f137a82b50ef") + ) + (wire + (pts + (xy 158.75 87.63) (xy 161.29 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "6b097ea9-c114-41e8-8565-49a23b856065") + ) + (wire + (pts + (xy 158.75 87.63) (xy 156.21 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "9eec6dd2-4ce3-4d57-9dd0-87cdaedb3590") + ) + (wire + (pts + (xy 170.18 87.63) (xy 168.91 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "d6241c7f-f10c-4e38-9331-5849f5b8b439") + ) + (wire + (pts + (xy 158.75 83.82) (xy 158.75 87.63) + ) + (stroke + (width 0) + (type default) + ) + (uuid "ef35ca37-7c6c-4327-a91a-bf46d9f5530b") + ) + (global_label "vbat_sense" + (shape input) + (at 158.75 83.82 90) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "2261c427-95e2-4e79-96f7-2ce587e97654") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 158.75 70.4935 90) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + ) (global_label "vbat" (shape input) - (at 142.24 87.63 0) + (at 146.05 83.82 90) (fields_autoplaced yes) (effects (font @@ -291,7 +529,7 @@ ) (uuid "4023feaf-63c3-421e-875e-e68e0c39b266") (property "Intersheetrefs" "${INTERSHEET_REFS}" - (at 149.2165 87.63 0) + (at 146.05 76.8435 90) (effects (font (size 1.27 1.27) @@ -301,6 +539,82 @@ ) ) ) + (symbol + (lib_id "Device:R") + (at 152.4 87.63 90) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "185fd536-2bb0-491b-ac44-dda9d2fb8685") + (property "Reference" "R12" + (at 150.114 85.09 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "2MR" + (at 155.194 85.09 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "Resistor_SMD:R_0201_0603Metric" + (at 152.4 89.408 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 152.4 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 152.4 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "LSCS PN" "C22976" + (at 152.4 87.63 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "aefd2d83-bd7a-42a8-8e9c-e5d44bedce6e") + ) + (pin "1" + (uuid "e6514729-ed47-49ff-9f77-3dc944947a56") + ) + (instances + (project "" + (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/4543c738-0d26-4c0c-91cd-6e4abf059641" + (reference "R12") + (unit 1) + ) + ) + ) + ) (symbol (lib_id "Connector_Generic:Conn_01x02") (at 137.16 87.63 0) @@ -436,4 +750,146 @@ ) ) ) + (symbol + (lib_id "power:GND") + (at 170.18 91.44 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "c06ed048-7567-4180-a510-b0bdd6d7bcd4") + (property "Reference" "#PWR031" + (at 170.18 97.79 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 170.18 96.52 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 170.18 91.44 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 170.18 91.44 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 170.18 91.44 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "5a3e7eb6-5728-4627-b95f-7678d14759ca") + ) + (instances + (project "board" + (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/4543c738-0d26-4c0c-91cd-6e4abf059641" + (reference "#PWR031") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 165.1 87.63 90) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "c8e4304b-b306-4a8b-ab68-7c36e4768012") + (property "Reference" "R13" + (at 163.068 85.09 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "2MR" + (at 167.386 85.09 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "Resistor_SMD:R_0201_0603Metric" + (at 165.1 89.408 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 165.1 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 165.1 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "LSCS PN" "C22976" + (at 165.1 87.63 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "741e807d-012b-469c-96fb-3a7982ba946e") + ) + (pin "1" + (uuid "b7db0fac-dad2-422e-8e09-69036da3208d") + ) + (instances + (project "board" + (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/4543c738-0d26-4c0c-91cd-6e4abf059641" + (reference "R13") + (unit 1) + ) + ) + ) + ) ) diff --git a/board/board.kicad_sch b/board/board.kicad_sch index 790cc86..71e17a4 100644 --- a/board/board.kicad_sch +++ b/board/board.kicad_sch @@ -11,9 +11,9 @@ (company "phiwan") ) (lib_symbols) - (text "mouting points\nground case\nadd usb c to magnet connector back in (uncheck remove from board)\nusb c magnet adapter change tvs diode" + (text "add usb c to magnet connector back in (uncheck remove from board)\nusb c magnet adapter change tvs diode" (exclude_from_sim no) - (at 56.134 178.054 0) + (at 89.408 165.1 0) (effects (font (size 1.27 1.27) diff --git a/board/board_to_board.kicad_sch b/board/board_to_board.kicad_sch index df5ddb3..f321fa9 100644 --- a/board/board_to_board.kicad_sch +++ b/board/board_to_board.kicad_sch @@ -1364,6 +1364,10 @@ (at 110.49 82.55) (uuid "2a30fa34-8948-4d5d-ad2d-51aecf05bddc") ) + (no_connect + (at 138.43 82.55) + (uuid "a892d8d8-8949-4d15-b10e-0e434a7b3d6b") + ) (no_connect (at 97.79 77.47) (uuid "edc82ba1-4202-481d-9696-e1d485fefc68") @@ -1948,28 +1952,6 @@ ) ) ) - (global_label "key13" - (shape input) - (at 138.43 82.55 270) - (fields_autoplaced yes) - (effects - (font - (size 1.27 1.27) - ) - (justify right) - ) - (uuid "d746668e-c47f-4664-8725-ae0b5f5ab020") - (property "Intersheetrefs" "${INTERSHEET_REFS}" - (at 138.43 91.0385 90) - (effects - (font - (size 1.27 1.27) - ) - (justify right) - (hide yes) - ) - ) - ) (global_label "key19" (shape input) (at 123.19 82.55 270) diff --git a/board/mcu.kicad_sch b/board/mcu.kicad_sch index dfe35b0..cc3a695 100644 --- a/board/mcu.kicad_sch +++ b/board/mcu.kicad_sch @@ -2239,6 +2239,16 @@ ) (uuid "2a0dad17-391a-4fb5-8f39-137b96a612ad") ) + (wire + (pts + (xy 109.22 88.9) (xy 114.3 88.9) + ) + (stroke + (width 0) + (type default) + ) + (uuid "3d65ed5e-6a6b-4b36-a48a-5ee691531323") + ) (wire (pts (xy 163.83 114.3) (xy 154.94 114.3) @@ -2775,6 +2785,28 @@ ) ) ) + (global_label "vbat_sense" + (shape input) + (at 109.22 88.9 180) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "567a1373-023a-4d82-8fc0-4e62059f8d97") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 95.8935 88.9 0) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + (hide yes) + ) + ) + ) (global_label "scs" (shape input) (at 163.83 132.08 0) @@ -2885,28 +2917,6 @@ ) ) ) - (global_label "key13" - (shape input) - (at 114.3 88.9 180) - (fields_autoplaced yes) - (effects - (font - (size 1.27 1.27) - ) - (justify right) - ) - (uuid "80b86742-99a6-43f4-9080-a61bac11de1a") - (property "Intersheetrefs" "${INTERSHEET_REFS}" - (at 105.8115 88.9 0) - (effects - (font - (size 1.27 1.27) - ) - (justify right) - (hide yes) - ) - ) - ) (global_label "swd_data" (shape input) (at 107.95 78.74 180) diff --git a/board/swd.kicad_sch b/board/swd.kicad_sch index 56dc992..ac15f80 100644 --- a/board/swd.kicad_sch +++ b/board/swd.kicad_sch @@ -620,7 +620,7 @@ (on_board yes) (dnp no) (uuid "24cc659b-844a-432a-94b6-73e1cef89301") - (property "Reference" "#PWR031" + (property "Reference" "#PWR032" (at 140.97 106.68 0) (effects (font @@ -670,7 +670,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/028c853a-37cc-4ba0-90fa-e323c33e0c70" - (reference "#PWR031") + (reference "#PWR032") (unit 1) ) ) @@ -768,7 +768,7 @@ (dnp no) (fields_autoplaced yes) (uuid "f46c8c01-a73c-400c-8514-9b08c582aa3e") - (property "Reference" "#PWR032" + (property "Reference" "#PWR033" (at 140.97 124.46 0) (effects (font @@ -818,7 +818,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/028c853a-37cc-4ba0-90fa-e323c33e0c70" - (reference "#PWR032") + (reference "#PWR033") (unit 1) ) ) diff --git a/board/usb-c_to_magnet.kicad_sch b/board/usb-c_to_magnet.kicad_sch index a9c8db3..a4bc191 100644 --- a/board/usb-c_to_magnet.kicad_sch +++ b/board/usb-c_to_magnet.kicad_sch @@ -1620,7 +1620,7 @@ (on_board no) (dnp no) (uuid "06b9955f-88e9-4d9c-906e-0b3947bd412f") - (property "Reference" "#PWR034" + (property "Reference" "#PWR035" (at 114.3 95.25 0) (effects (font @@ -1670,7 +1670,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "#PWR034") + (reference "#PWR035") (unit 1) ) ) @@ -1754,7 +1754,7 @@ (on_board no) (dnp no) (uuid "344229bb-97d1-4024-a16b-aee11f853ca1") - (property "Reference" "R14" + (property "Reference" "R16" (at 147.574 119.38 90) (effects (font @@ -1817,7 +1817,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "R14") + (reference "R16") (unit 1) ) ) @@ -1832,7 +1832,7 @@ (on_board no) (dnp no) (uuid "4179810d-9b37-4653-86b6-7eb882074c56") - (property "Reference" "R13" + (property "Reference" "R15" (at 122.174 86.36 90) (effects (font @@ -1895,7 +1895,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "R13") + (reference "R15") (unit 1) ) ) @@ -1910,7 +1910,7 @@ (on_board no) (dnp no) (uuid "5059b54e-57f1-46f5-a9cf-7e8657debe8b") - (property "Reference" "R12" + (property "Reference" "R14" (at 122.174 83.82 90) (effects (font @@ -1973,7 +1973,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "R12") + (reference "R14") (unit 1) ) ) @@ -1988,7 +1988,7 @@ (on_board no) (dnp no) (uuid "55c7c3af-3737-4f8e-814e-96e3c2624725") - (property "Reference" "#PWR035" + (property "Reference" "#PWR036" (at 139.7 130.81 0) (effects (font @@ -2038,7 +2038,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "#PWR035") + (reference "#PWR036") (unit 1) ) ) @@ -2205,7 +2205,7 @@ (on_board no) (dnp no) (uuid "a46dc845-c566-4566-b806-40822c923a4b") - (property "Reference" "#PWR033" + (property "Reference" "#PWR034" (at 102.87 88.9 0) (effects (font @@ -2255,7 +2255,7 @@ (instances (project "board" (path "/0bf1fdd4-5a89-4735-8383-190e40fb0179/497c31e8-fc4c-4a28-be6e-d2a623107cdc" - (reference "#PWR033") + (reference "#PWR034") (unit 1) ) )