From 14b0ff84703fed19fdf2016d1bf4f8cd25d8030e Mon Sep 17 00:00:00 2001 From: JHay0112 Date: Mon, 29 Dec 2025 16:43:50 +1300 Subject: [PATCH] Verify battery control circuit design --- .../keyboard_controller/battery.kicad_sch | 1471 ++--------- .../block/battery_control.kicad_sch | 2252 +++++++++++++++++ .../block/ideal_diode.kicad_sch | 414 ++- .../testbench/battery_control.kicad_sch | 1551 ++++++++++++ .../testbench/battery_control.wbk | 33 + 5 files changed, 4235 insertions(+), 1486 deletions(-) create mode 100644 Hardware/keyboard_controller/block/battery_control.kicad_sch create mode 100644 Hardware/keyboard_controller/testbench/battery_control.kicad_sch create mode 100644 Hardware/keyboard_controller/testbench/battery_control.wbk diff --git a/Hardware/keyboard_controller/battery.kicad_sch b/Hardware/keyboard_controller/battery.kicad_sch index 5d3213d..e615245 100644 --- a/Hardware/keyboard_controller/battery.kicad_sch +++ b/Hardware/keyboard_controller/battery.kicad_sch @@ -3034,6 +3034,16 @@ ) (uuid "05fa85c2-aa4d-47f0-a991-23913eadf6b0") ) + (text "Hardware interlock for charger en\nBatt output must be disabled (low) AND\nBatt must be connected (high) to enable charger" + (exclude_from_sim no) + (at 112.522 170.434 0) + (effects + (font + (size 1.27 1.27) + ) + ) + (uuid "0c9d1472-bf69-4ea9-b0fe-3d703add182a") + ) (text "TODO: \nSequence on/off of battery supply and charger\nLink overdischarge flag to control of boost circuit?" (exclude_from_sim no) (at 312.42 244.856 0) @@ -3108,16 +3118,6 @@ ) (uuid "abc65f9c-a963-4e2e-807c-e3c9a6a347e4") ) - (text "Hardware interlock for charger en\nBatt output must be disabled (low) AND\nBatt must be connected (high) to enable charger" - (exclude_from_sim no) - (at 130.81 134.874 0) - (effects - (font - (size 1.27 1.27) - ) - ) - (uuid "bd06ad62-e1f4-4c41-b335-6763513d8fd5") - ) (text "Place as close to battery as possible" (exclude_from_sim no) (at 294.64 43.688 0) @@ -3469,12 +3469,6 @@ (color 0 0 0 0) (uuid "160a759d-e27c-4933-b589-b1830617aeaf") ) - (junction - (at 148.59 147.32) - (diameter 0) - (color 0 0 0 0) - (uuid "17c79acc-0c6f-4f6a-9f73-d293c83ddc4f") - ) (junction (at 308.61 45.72) (diameter 0) @@ -3523,18 +3517,18 @@ (color 0 0 0 0) (uuid "301d1792-bdb1-49eb-98a6-239bb5b6a46c") ) + (junction + (at 280.67 63.5) + (diameter 0) + (color 0 0 0 0) + (uuid "330e363c-0822-4d56-a8a8-5d4cb326a9ef") + ) (junction (at 250.19 110.49) (diameter 0) (color 0 0 0 0) (uuid "35855a14-1085-4035-8bce-92ff20c7cf40") ) - (junction - (at 280.67 63.5) - (diameter 0) - (color 0 0 0 0) - (uuid "36b8eaa2-808c-48db-96b1-903682f86168") - ) (junction (at 64.77 24.13) (diameter 0) @@ -3548,13 +3542,13 @@ (uuid "41679822-0e61-4d5a-96db-4198545c9276") ) (junction - (at 115.57 195.58) + (at 350.52 45.72) (diameter 0) (color 0 0 0 0) - (uuid "512fa356-4351-4b89-b46f-1259dc2b3124") + (uuid "49babf51-1045-42b4-8cea-a813fa7549d8") ) (junction - (at 349.25 63.5) + (at 350.52 63.5) (diameter 0) (color 0 0 0 0) (uuid "51fdd222-bcbf-4234-9487-a8b1add9ed34") @@ -3577,24 +3571,12 @@ (color 0 0 0 0) (uuid "5a3b402d-5e79-40f8-ad2e-884869d8e0ba") ) - (junction - (at 115.57 147.32) - (diameter 0) - (color 0 0 0 0) - (uuid "5bb60ee9-6802-4360-b285-f2173fc2481a") - ) (junction (at 280.67 81.28) (diameter 0) (color 0 0 0 0) (uuid "609742bc-d611-41f3-9732-29f322b7a3e4") ) - (junction - (at 130.81 157.48) - (diameter 0) - (color 0 0 0 0) - (uuid "6378d98e-d2a6-4aff-b426-e2cb9bf48eeb") - ) (junction (at 325.12 110.49) (diameter 0) @@ -3607,36 +3589,12 @@ (color 0 0 0 0) (uuid "675e4c67-e3e4-4185-8f42-3e3eddb94651") ) - (junction - (at 130.81 179.07) - (diameter 0) - (color 0 0 0 0) - (uuid "6ba22483-2e61-405e-8e91-96edbc24e4b2") - ) - (junction - (at 349.25 81.28) - (diameter 0) - (color 0 0 0 0) - (uuid "6bd772c2-5807-4566-b2e4-b62442bd3664") - ) - (junction - (at 115.57 185.42) - (diameter 0) - (color 0 0 0 0) - (uuid "6e98a6d2-db20-40cb-ba45-9488b95f4cf9") - ) (junction (at 308.61 120.65) (diameter 0) (color 0 0 0 0) (uuid "7e4a8eb4-e1ab-46dd-9212-b762f94ed1ac") ) - (junction - (at 349.25 45.72) - (diameter 0) - (color 0 0 0 0) - (uuid "81dde5b6-181b-46eb-961a-ebe1226b3bd1") - ) (junction (at 236.22 81.28) (diameter 0) @@ -3655,6 +3613,12 @@ (color 0 0 0 0) (uuid "8f0b3d48-fb91-43a3-9324-580a5320a084") ) + (junction + (at 350.52 81.28) + (diameter 0) + (color 0 0 0 0) + (uuid "9c4bd28b-d121-42cd-ad12-ddb7a32a30bf") + ) (junction (at 308.61 81.28) (diameter 0) @@ -3751,18 +3715,6 @@ (color 0 0 0 0) (uuid "ea335185-274b-4581-8448-a925949d39e9") ) - (junction - (at 148.59 179.07) - (diameter 0) - (color 0 0 0 0) - (uuid "f95035e4-832e-4f10-9022-66f83840a9ae") - ) - (junction - (at 115.57 166.37) - (diameter 0) - (color 0 0 0 0) - (uuid "f998d937-f79c-4c4e-a753-bdd9e50848c2") - ) (junction (at 186.69 81.28) (diameter 0) @@ -3793,16 +3745,6 @@ ) (uuid "009fa997-d9d1-4d06-9296-f3bcd090e0fe") ) - (wire - (pts - (xy 115.57 157.48) (xy 130.81 157.48) - ) - (stroke - (width 0) - (type default) - ) - (uuid "00a82eb8-4568-4166-85f4-18b18eafc057") - ) (wire (pts (xy 243.84 55.88) (xy 243.84 60.96) @@ -3873,16 +3815,6 @@ ) (uuid "049dda82-c864-4cf2-9e90-8dbcef8aeae7") ) - (wire - (pts - (xy 115.57 147.32) (xy 115.57 148.59) - ) - (stroke - (width 0) - (type default) - ) - (uuid "0558710f-4ce6-4e34-a515-d1fffac12a1a") - ) (polyline (pts (xy 62.23 242.57) (xy 63.5 243.84) @@ -3893,26 +3825,6 @@ ) (uuid "0559bc17-0170-4594-8c1d-6f391491381f") ) - (wire - (pts - (xy 115.57 166.37) (xy 115.57 167.64) - ) - (stroke - (width 0) - (type default) - ) - (uuid "080c5ab2-8123-4a37-bf07-5757d314bb40") - ) - (wire - (pts - (xy 264.16 63.5) (xy 280.67 63.5) - ) - (stroke - (width 0) - (type default) - ) - (uuid "0881547f-7442-483b-be33-96aaabe41e7b") - ) (wire (pts (xy 227.33 110.49) (xy 236.22 110.49) @@ -3925,7 +3837,7 @@ ) (wire (pts - (xy 349.25 45.72) (xy 349.25 54.61) + (xy 350.52 45.72) (xy 350.52 54.61) ) (stroke (width 0) @@ -3943,6 +3855,16 @@ ) (uuid "09606d9e-d5d7-4ddc-8a9a-ee312f3a77f1") ) + (wire + (pts + (xy 132.08 189.23) (xy 151.13 189.23) + ) + (stroke + (width 0) + (type default) + ) + (uuid "099393eb-97ce-42f3-b2a9-77a928912f03") + ) (wire (pts (xy 271.78 120.65) (xy 279.4 120.65) @@ -3963,16 +3885,6 @@ ) (uuid "0a297c79-f459-43fc-b765-fc34beff57fb") ) - (wire - (pts - (xy 148.59 147.32) (xy 148.59 149.86) - ) - (stroke - (width 0) - (type default) - ) - (uuid "0dc15417-9b26-4f6d-abe6-113e5015b320") - ) (polyline (pts (xy 217.17 245.11) (xy 218.44 243.84) @@ -4003,6 +3915,16 @@ ) (uuid "12b3fe09-3525-4433-b72f-c3d3ee4a4a22") ) + (wire + (pts + (xy 73.66 193.04) (xy 93.98 193.04) + ) + (stroke + (width 0) + (type default) + ) + (uuid "15e1bd39-0686-485d-8bed-3d131fb59347") + ) (polyline (pts (xy 62.23 237.49) (xy 63.5 238.76) @@ -4033,16 +3955,6 @@ ) (uuid "195c3afa-c111-4085-b56d-f9130c2e9588") ) - (wire - (pts - (xy 148.59 177.8) (xy 148.59 179.07) - ) - (stroke - (width 0) - (type default) - ) - (uuid "199c06a3-a7e7-441b-90a3-430ba73b87d1") - ) (polyline (pts (xy 207.01 243.84) (xy 240.03 243.84) @@ -4093,16 +4005,6 @@ ) (uuid "1b882a7f-8483-49ce-8174-888fb4b40cd2") ) - (wire - (pts - (xy 148.59 147.32) (xy 171.45 147.32) - ) - (stroke - (width 0) - (type default) - ) - (uuid "1ce84227-b08c-487c-a60b-67150cf55b36") - ) (polyline (pts (xy 129.54 238.76) (xy 144.78 238.76) @@ -4113,16 +4015,6 @@ ) (uuid "1cf1f06e-1794-4ccc-8e2a-9c2453422a35") ) - (wire - (pts - (xy 148.59 170.18) (xy 148.59 168.91) - ) - (stroke - (width 0) - (type default) - ) - (uuid "1e10c76b-3abf-4ebf-b183-861a19fbfda3") - ) (polyline (pts (xy 40.64 238.76) (xy 44.45 238.76) @@ -4143,16 +4035,6 @@ ) (uuid "1f1279ad-534d-4ab9-b628-9a1da8626f88") ) - (wire - (pts - (xy 115.57 166.37) (xy 123.19 166.37) - ) - (stroke - (width 0) - (type default) - ) - (uuid "21943a7a-0a7c-41eb-9002-89109d08412f") - ) (wire (pts (xy 271.78 130.81) (xy 279.4 130.81) @@ -4213,16 +4095,6 @@ ) (uuid "2802ca0e-4777-4ede-9840-6572c39298ba") ) - (wire - (pts - (xy 115.57 147.32) (xy 125.73 147.32) - ) - (stroke - (width 0) - (type default) - ) - (uuid "297359aa-d61b-4867-a369-e962201b5a08") - ) (wire (pts (xy 303.53 120.65) (xy 303.53 118.11) @@ -4293,16 +4165,6 @@ ) (uuid "2fd14d6b-1ef2-4af3-9ed6-02f2546dc20b") ) - (wire - (pts - (xy 115.57 185.42) (xy 123.19 185.42) - ) - (stroke - (width 0) - (type default) - ) - (uuid "2ff9a66e-0eb3-4200-a71c-a6cd4de6b5e9") - ) (wire (pts (xy 290.83 63.5) (xy 297.18 63.5) @@ -4323,16 +4185,6 @@ ) (uuid "31e15c4e-1933-4750-9a6c-5d2f163fb08d") ) - (wire - (pts - (xy 148.59 168.91) (xy 158.75 168.91) - ) - (stroke - (width 0) - (type default) - ) - (uuid "3313754f-e76b-41e4-a12d-10dfac6b0427") - ) (polyline (pts (xy 152.4 238.76) (xy 162.56 238.76) @@ -4343,6 +4195,16 @@ ) (uuid "3384cbd6-89ff-4c18-b762-a68c74494c55") ) + (wire + (pts + (xy 132.08 193.04) (xy 151.13 193.04) + ) + (stroke + (width 0) + (type default) + ) + (uuid "35e98af9-b178-4bdc-ad2b-aa7afd8e5d96") + ) (wire (pts (xy 55.88 24.13) (xy 64.77 24.13) @@ -4375,33 +4237,13 @@ ) (wire (pts - (xy 115.57 196.85) (xy 115.57 195.58) + (xy 72.39 189.23) (xy 93.98 189.23) ) (stroke (width 0) (type default) ) - (uuid "3b008a67-8263-42a7-b8f4-2ba683576b68") - ) - (wire - (pts - (xy 280.67 60.96) (xy 280.67 63.5) - ) - (stroke - (width 0) - (type default) - ) - (uuid "3caf3cc7-7c5c-4137-b9fb-e239d1374514") - ) - (wire - (pts - (xy 130.81 171.45) (xy 130.81 179.07) - ) - (stroke - (width 0) - (type default) - ) - (uuid "3cc90dc2-4c7e-4d35-ac51-991387df5e58") + (uuid "3c5d31ca-83a0-465d-9cd9-3ba5ca5aedce") ) (wire (pts @@ -4523,16 +4365,6 @@ ) (uuid "4cb1ab20-5e36-4d3e-9b04-033a85a74e3a") ) - (wire - (pts - (xy 130.81 157.48) (xy 130.81 154.94) - ) - (stroke - (width 0) - (type default) - ) - (uuid "4ccde08f-3aaa-439c-a1a6-a3fd6e10e357") - ) (wire (pts (xy 363.22 64.77) (xy 363.22 81.28) @@ -4595,7 +4427,7 @@ ) (wire (pts - (xy 328.93 81.28) (xy 349.25 81.28) + (xy 328.93 81.28) (xy 350.52 81.28) ) (stroke (width 0) @@ -4643,16 +4475,6 @@ ) (uuid "5350df46-00db-4ae7-a13e-3acb5bfc62ea") ) - (wire - (pts - (xy 349.25 45.72) (xy 353.06 45.72) - ) - (stroke - (width 0) - (type default) - ) - (uuid "53a679dd-94aa-4141-b8db-12676e371207") - ) (polyline (pts (xy 212.09 237.49) (xy 210.82 238.76) @@ -4703,16 +4525,6 @@ ) (uuid "5c9bd2fe-afe5-4c95-a021-689d703d32e0") ) - (wire - (pts - (xy 130.81 195.58) (xy 130.81 190.5) - ) - (stroke - (width 0) - (type default) - ) - (uuid "5e79f529-3078-49e4-a379-383e26e5b83a") - ) (wire (pts (xy 337.82 110.49) (xy 325.12 110.49) @@ -4745,7 +4557,7 @@ ) (wire (pts - (xy 344.17 63.5) (xy 344.17 64.77) + (xy 345.44 63.5) (xy 345.44 64.77) ) (stroke (width 0) @@ -4785,7 +4597,7 @@ ) (wire (pts - (xy 280.67 63.5) (xy 280.67 66.04) + (xy 280.67 60.96) (xy 280.67 63.5) ) (stroke (width 0) @@ -4843,6 +4655,16 @@ ) (uuid "67a38c5a-2ea3-482f-898e-df6254d64903") ) + (wire + (pts + (xy 280.67 63.5) (xy 280.67 66.04) + ) + (stroke + (width 0) + (type default) + ) + (uuid "67ffef5a-cd33-439f-ad57-236f32dc0b03") + ) (polyline (pts (xy 63.5 237.49) (xy 63.5 240.03) @@ -4903,16 +4725,6 @@ ) (uuid "6f538eac-8de6-480c-bc0b-7383f516fb37") ) - (wire - (pts - (xy 135.89 147.32) (xy 148.59 147.32) - ) - (stroke - (width 0) - (type default) - ) - (uuid "702900e8-3bc1-41a4-b78c-beb575e54e43") - ) (wire (pts (xy 243.84 45.72) (xy 243.84 46.99) @@ -4983,16 +4795,6 @@ ) (uuid "758ebf63-a885-4b94-ba5b-ae80a0b40901") ) - (wire - (pts - (xy 130.81 157.48) (xy 130.81 161.29) - ) - (stroke - (width 0) - (type default) - ) - (uuid "773ab734-5122-405f-89ad-383e70b7c691") - ) (wire (pts (xy 218.44 72.39) (xy 218.44 73.66) @@ -5053,6 +4855,16 @@ ) (uuid "7e130ebd-ec8b-41d9-b513-947ff8a86eca") ) + (wire + (pts + (xy 278.13 63.5) (xy 280.67 63.5) + ) + (stroke + (width 0) + (type default) + ) + (uuid "7fd07a97-b1fa-4515-b5a5-e0b493b006ce") + ) (wire (pts (xy 233.68 81.28) (xy 236.22 81.28) @@ -5143,16 +4955,6 @@ ) (uuid "8f09ba55-aadd-4d2b-9c57-99bf8d87bc11") ) - (wire - (pts - (xy 115.57 195.58) (xy 130.81 195.58) - ) - (stroke - (width 0) - (type default) - ) - (uuid "906d240b-5882-49e0-b7ed-03dd06ddf027") - ) (wire (pts (xy 55.88 53.34) (xy 91.44 53.34) @@ -5193,16 +4995,6 @@ ) (uuid "94408840-2e5f-4044-993b-f07d14dea3ac") ) - (wire - (pts - (xy 349.25 81.28) (xy 363.22 81.28) - ) - (stroke - (width 0) - (type default) - ) - (uuid "952a0de1-342c-4e5b-94ff-0fd08fb59dde") - ) (wire (pts (xy 308.61 45.72) (xy 323.85 45.72) @@ -5315,7 +5107,7 @@ ) (wire (pts - (xy 349.25 62.23) (xy 349.25 63.5) + (xy 350.52 62.23) (xy 350.52 63.5) ) (stroke (width 0) @@ -5365,7 +5157,7 @@ ) (wire (pts - (xy 349.25 72.39) (xy 349.25 81.28) + (xy 350.52 72.39) (xy 350.52 81.28) ) (stroke (width 0) @@ -5553,16 +5345,6 @@ ) (uuid "c056450c-1c5b-4e29-9cd2-9fdd1c865ff2") ) - (wire - (pts - (xy 93.98 166.37) (xy 115.57 166.37) - ) - (stroke - (width 0) - (type default) - ) - (uuid "c2f39f9f-2444-4eb6-86fe-9934ff9e1f62") - ) (wire (pts (xy 184.15 57.15) (xy 184.15 54.61) @@ -5585,7 +5367,7 @@ ) (wire (pts - (xy 344.17 63.5) (xy 349.25 63.5) + (xy 345.44 63.5) (xy 350.52 63.5) ) (stroke (width 0) @@ -5593,6 +5375,16 @@ ) (uuid "c4c434b4-629e-4c1a-ad82-25886978b1d8") ) + (wire + (pts + (xy 350.52 45.72) (xy 353.06 45.72) + ) + (stroke + (width 0) + (type default) + ) + (uuid "c55be22d-768c-4570-a8da-0b80b8b2b0db") + ) (wire (pts (xy 365.76 120.65) (xy 365.76 146.05) @@ -5613,16 +5405,6 @@ ) (uuid "c5bc83fe-995e-4cc3-a58a-68702667f3d8") ) - (wire - (pts - (xy 110.49 147.32) (xy 115.57 147.32) - ) - (stroke - (width 0) - (type default) - ) - (uuid "c5cdb15d-0569-4619-adb7-3bb7c9443961") - ) (wire (pts (xy 243.84 68.58) (xy 243.84 81.28) @@ -5723,16 +5505,6 @@ ) (uuid "d009c61e-fb8f-4de0-b2e2-1da5ff9577c1") ) - (wire - (pts - (xy 115.57 185.42) (xy 115.57 186.69) - ) - (stroke - (width 0) - (type default) - ) - (uuid "d0750787-b0d9-48ab-96f3-55ec38b325c3") - ) (wire (pts (xy 250.19 116.84) (xy 250.19 113.03) @@ -5753,16 +5525,6 @@ ) (uuid "d177e8b4-b45c-4df3-a229-cc0c5103cdaa") ) - (wire - (pts - (xy 110.49 185.42) (xy 115.57 185.42) - ) - (stroke - (width 0) - (type default) - ) - (uuid "d2f7aebd-afc5-4c93-bfc2-8c818ef40e43") - ) (wire (pts (xy 308.61 60.96) (xy 308.61 63.5) @@ -5795,7 +5557,7 @@ ) (wire (pts - (xy 334.01 45.72) (xy 349.25 45.72) + (xy 334.01 45.72) (xy 350.52 45.72) ) (stroke (width 0) @@ -5863,6 +5625,16 @@ ) (uuid "daeb5d70-71a8-4440-9510-8d077d7c27ce") ) + (wire + (pts + (xy 350.52 81.28) (xy 363.22 81.28) + ) + (stroke + (width 0) + (type default) + ) + (uuid "dbd75742-79c2-4aca-9866-2b6ab1a114b4") + ) (polyline (pts (xy 217.17 242.57) (xy 218.44 243.84) @@ -5873,16 +5645,6 @@ ) (uuid "dcfc5fe3-98c2-44d9-8d4e-c4406a133396") ) - (wire - (pts - (xy 130.81 179.07) (xy 130.81 180.34) - ) - (stroke - (width 0) - (type default) - ) - (uuid "ddb87e7a-2ea7-4186-b0d9-1cbb78d27903") - ) (wire (pts (xy 308.61 119.38) (xy 308.61 120.65) @@ -5893,16 +5655,6 @@ ) (uuid "ddd8e5ad-58d3-41ac-972a-7f685346aaaa") ) - (wire - (pts - (xy 115.57 156.21) (xy 115.57 157.48) - ) - (stroke - (width 0) - (type default) - ) - (uuid "df5b0c89-3182-498c-8112-102ba0de5f31") - ) (polyline (pts (xy 210.82 238.76) (xy 212.09 240.03) @@ -5973,16 +5725,6 @@ ) (uuid "e904dc1f-be29-4ac6-bb7c-0acacd25ef2f") ) - (wire - (pts - (xy 130.81 179.07) (xy 148.59 179.07) - ) - (stroke - (width 0) - (type default) - ) - (uuid "ecd85273-8d38-4b7d-afe8-225e40d351f6") - ) (wire (pts (xy 308.61 81.28) (xy 328.93 81.28) @@ -6005,7 +5747,7 @@ ) (wire (pts - (xy 349.25 63.5) (xy 349.25 64.77) + (xy 350.52 63.5) (xy 350.52 64.77) ) (stroke (width 0) @@ -6053,6 +5795,16 @@ ) (uuid "f51c36de-31a8-41ba-90e7-f09f08206059") ) + (wire + (pts + (xy 72.39 196.85) (xy 93.98 196.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "f6245722-5330-45b3-83af-87a552b4a8cc") + ) (wire (pts (xy 64.77 24.13) (xy 88.9 24.13) @@ -6093,16 +5845,6 @@ ) (uuid "f90d396e-86a8-4ae7-9a6d-73c485ad41e1") ) - (wire - (pts - (xy 115.57 195.58) (xy 115.57 194.31) - ) - (stroke - (width 0) - (type default) - ) - (uuid "f9ddaa70-f871-47cb-ad06-65a96fd82f13") - ) (wire (pts (xy 114.3 66.04) (xy 114.3 53.34) @@ -6123,16 +5865,6 @@ ) (uuid "fb045d0f-43b5-4ac5-8998-e557b151cf00") ) - (wire - (pts - (xy 148.59 179.07) (xy 171.45 179.07) - ) - (stroke - (width 0) - (type default) - ) - (uuid "fdc8eeb0-2777-4f82-90ce-614ff895e628") - ) (label "PWR_BATT" (at 227.33 110.49 0) (effects @@ -6174,6 +5906,16 @@ ) (uuid "180552c9-6267-4439-8e6e-5b19e5e18a65") ) + (label "SNS_USB_CONN" + (at 73.66 196.85 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "2bc80067-0672-4d97-8893-4a7454c83b4a") + ) (label "SNS_~{STANDBY}" (at 69.85 53.34 0) (effects @@ -6184,16 +5926,6 @@ ) (uuid "4f29039d-90f8-4d7e-8d0a-53b39689923e") ) - (label "SNS_BATT_CONN" - (at 93.98 166.37 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left bottom) - ) - (uuid "59fadfc3-8a36-4d9e-addc-7d78a0d814f1") - ) (label "SNS_BATT_TEMP" (at 128.27 50.8 180) (effects @@ -6214,8 +5946,18 @@ ) (uuid "6d9f70f4-fa9f-4f09-b6aa-0531bbce2bb9") ) + (label "SNS_BATT_CONN" + (at 73.66 193.04 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "756883b8-2ebd-464e-9fe8-3702d7ee6204") + ) (label "BATT_BOOST_EN" - (at 171.45 179.07 180) + (at 151.13 193.04 180) (effects (font (size 1.27 1.27) @@ -6236,7 +5978,7 @@ (uuid "99815023-fe13-4b92-885d-c497d473a60e") ) (label "CHARGER_EN" - (at 171.45 147.32 180) + (at 151.13 189.23 180) (effects (font (size 1.27 1.27) @@ -6245,16 +5987,6 @@ ) (uuid "ad7f041e-153b-46af-9ae8-d177d2b8f160") ) - (label "SNS_BATT_CONN" - (at 264.16 63.5 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left bottom) - ) - (uuid "cb3acf68-a71b-467e-b105-48533f280937") - ) (label "PWR_BATT" (at 128.27 45.72 180) (effects @@ -6285,6 +6017,16 @@ ) (uuid "d7e6a8fa-df30-4b38-8fa3-c72691e518a8") ) + (label "CTR_CHARGER_EN" + (at 73.66 189.23 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "dea74121-6ebc-423f-b295-be71fa6f3dde") + ) (label "PWR_BATT_BOOST" (at 303.53 110.49 0) (effects @@ -6295,16 +6037,6 @@ ) (uuid "defd848f-e0ca-4859-ae64-d81c50c58727") ) - (label "PWR_BATT" - (at 158.75 168.91 180) - (effects - (font - (size 1.27 1.27) - ) - (justify right bottom) - ) - (uuid "edcfa06a-4ab2-4f42-bf0e-111c52556ec3") - ) (hierarchical_label "SNS_~{CHARGING}" (shape output) (at 46.99 50.8 180) @@ -6316,6 +6048,17 @@ ) (uuid "5425b031-b442-4894-adf9-ee30d93f44ff") ) + (hierarchical_label "SNS_BATT_CONN" + (shape output) + (at 278.13 63.5 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "73931892-b254-49bc-92d5-1357bbcb3425") + ) (hierarchical_label "I2C_SDA" (shape bidirectional) (at 171.45 64.77 180) @@ -6329,7 +6072,7 @@ ) (hierarchical_label "SNS_USB_CONN" (shape input) - (at 110.49 185.42 180) + (at 72.39 196.85 180) (effects (font (size 1.27 1.27) @@ -6363,7 +6106,7 @@ ) (hierarchical_label "CTR_CHARGER_EN" (shape input) - (at 110.49 147.32 180) + (at 72.39 189.23 180) (effects (font (size 1.27 1.27) @@ -6464,76 +6207,6 @@ ) ) ) - (symbol - (lib_id "Device:R") - (at 115.57 190.5 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "05f7565d-24a3-46a9-b9c1-82e7487b467e") - (property "Reference" "R55" - (at 118.11 189.2299 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "10k" - (at 118.11 191.7699 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 113.792 190.5 90) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "~" - (at 115.57 190.5 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Resistor" - (at 115.57 190.5 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "a6fef011-c977-4cc4-8b24-a6c8c89aeeae") - ) - (pin "1" - (uuid "75e5dccb-5493-4389-abab-66211e45b8f0") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "R55") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:R") (at 181.61 81.28 270) @@ -6602,73 +6275,6 @@ ) ) ) - (symbol - (lib_id "power:GND") - (at 115.57 175.26 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "08e797ce-baac-4aef-b934-706532f960cf") - (property "Reference" "#PWR024" - (at 115.57 181.61 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Value" "GND" - (at 115.57 180.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Footprint" "" - (at 115.57 175.26 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "" - (at 115.57 175.26 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Power symbol creates a global label with name \"GND\" , ground" - (at 115.57 175.26 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "1" - (uuid "099cbf25-46e2-47f6-934d-e50d1c9c6af6") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "#PWR024") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:R") (at 64.77 33.02 0) @@ -7087,76 +6693,6 @@ ) ) ) - (symbol - (lib_id "Device:R") - (at 148.59 153.67 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "1cc6062c-5e86-4ce3-8ed2-311552d0afe6") - (property "Reference" "R72" - (at 151.13 152.3999 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "47k" - (at 151.13 154.9399 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 146.812 153.67 90) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "~" - (at 148.59 153.67 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Resistor" - (at 148.59 153.67 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "b520137f-6cc8-49a1-9ecc-5e56c3650f98") - ) - (pin "1" - (uuid "254e5418-9cb4-4efa-9178-fc7991e768e8") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "R72") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "power:GND") (at 88.9 34.29 0) @@ -7363,76 +6899,6 @@ ) ) ) - (symbol - (lib_id "Device:R") - (at 148.59 173.99 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "2ec217eb-8f39-48ee-99d7-c52a3856c13a") - (property "Reference" "R56" - (at 151.13 172.7199 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "47k" - (at 151.13 175.2599 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 146.812 173.99 90) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "~" - (at 148.59 173.99 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Resistor" - (at 148.59 173.99 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "790dadf0-8dc8-4be9-baa4-08a519e57adc") - ) - (pin "1" - (uuid "bfeff5c2-35c9-4302-b989-687482835aec") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "R56") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:C") (at 156.21 64.77 0) @@ -7879,105 +7345,6 @@ ) ) ) - (symbol - (lib_id "Simulation_SPICE:PMOS") - (at 130.81 149.86 270) - (mirror x) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "5ad94091-8377-43ce-be60-ea6da4872715") - (property "Reference" "Q8" - (at 130.81 140.97 90) - (effects - (font - (size 1.27 1.27) - ) - ) - ) - (property "Value" "PMOS" - (at 130.81 143.51 90) - (effects - (font - (size 1.27 1.27) - ) - ) - ) - (property "Footprint" "" - (at 133.35 144.78 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" - (at 118.11 149.86 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "P-MOSFET transistor, drain/source/gate" - (at 130.81 149.86 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Device" "PMOS" - (at 113.665 149.86 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Type" "VDMOS" - (at 111.76 149.86 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Pins" "1=D 2=G 3=S" - (at 115.57 149.86 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "3" - (uuid "fd3efe9c-b508-4de7-a607-3bbcbb88d62e") - ) - (pin "2" - (uuid "854f58a3-9106-40b9-b812-e4da14001671") - ) - (pin "1" - (uuid "aeeac8db-71a4-462d-8930-f52ded57dc4a") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "Q8") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:R") (at 297.18 69.85 0) @@ -8466,106 +7833,6 @@ ) ) ) - (symbol - (lib_id "Simulation_SPICE:NMOS") - (at 128.27 166.37 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "80dbae64-d7c1-429e-8718-41c1ee2e7126") - (property "Reference" "Q11" - (at 134.62 165.0999 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "NMOS" - (at 134.62 167.6399 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 133.35 163.83 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" - (at 128.27 179.07 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "N-MOSFET transistor, drain/source/gate" - (at 128.27 166.37 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Device" "NMOS" - (at 128.27 183.515 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Type" "VDMOS" - (at 128.27 185.42 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Pins" "1=D 2=G 3=S" - (at 128.27 181.61 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "3" - (uuid "d54ca33c-521d-4097-89a6-cf641d032d13") - ) - (pin "1" - (uuid "4bfcd1ce-8470-49ca-9afd-6f03a2ff61c2") - ) - (pin "2" - (uuid "622c6ae4-b92d-42f2-bf65-b44709cfabfc") - ) - (instances - (project "" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "Q11") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Battery_Management:DS2745U") (at 181.61 64.77 0) @@ -8653,73 +7920,6 @@ ) ) ) - (symbol - (lib_id "power:GND") - (at 115.57 196.85 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "87831e99-51c6-4abf-a3c0-4366a480bc9c") - (property "Reference" "#PWR026" - (at 115.57 203.2 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Value" "GND" - (at 115.57 201.93 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Footprint" "" - (at 115.57 196.85 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "" - (at 115.57 196.85 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Power symbol creates a global label with name \"GND\" , ground" - (at 115.57 196.85 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "1" - (uuid "ba483ebf-7b88-4632-892a-61eb71ad7610") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "#PWR026") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Simulation_SPICE:NMOS") (at 228.6 78.74 90) @@ -9086,7 +8286,7 @@ ) (symbol (lib_id "Device:D_Zener") - (at 349.25 58.42 270) + (at 350.52 58.42 270) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -9095,7 +8295,7 @@ (fields_autoplaced yes) (uuid "9fa2001a-e518-4527-9682-6cf6e82d22a8") (property "Reference" "D10" - (at 351.79 57.1499 90) + (at 353.06 57.1499 90) (effects (font (size 1.27 1.27) @@ -9104,7 +8304,7 @@ ) ) (property "Value" "ESD441" - (at 351.79 59.6899 90) + (at 353.06 59.6899 90) (effects (font (size 1.27 1.27) @@ -9113,7 +8313,7 @@ ) ) (property "Footprint" "" - (at 349.25 58.42 0) + (at 350.52 58.42 0) (effects (font (size 1.27 1.27) @@ -9122,7 +8322,7 @@ ) ) (property "Datasheet" "~" - (at 349.25 58.42 0) + (at 350.52 58.42 0) (effects (font (size 1.27 1.27) @@ -9131,7 +8331,7 @@ ) ) (property "Description" "Zener diode" - (at 349.25 58.42 0) + (at 350.52 58.42 0) (effects (font (size 1.27 1.27) @@ -9154,176 +8354,6 @@ ) ) ) - (symbol - (lib_id "Simulation_SPICE:NMOS") - (at 128.27 185.42 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "a183d0db-e723-4866-805b-cc24f2793b2c") - (property "Reference" "Q12" - (at 134.62 184.1499 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "NMOS" - (at 134.62 186.6899 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 133.35 182.88 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" - (at 128.27 198.12 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "N-MOSFET transistor, drain/source/gate" - (at 128.27 185.42 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Device" "NMOS" - (at 128.27 202.565 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Type" "VDMOS" - (at 128.27 204.47 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Pins" "1=D 2=G 3=S" - (at 128.27 200.66 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "3" - (uuid "623d124f-d92b-4a89-8ef6-da14fe2e915c") - ) - (pin "1" - (uuid "cd2acf06-ede3-470d-981e-a37e2b89b422") - ) - (pin "2" - (uuid "cfa9f640-3624-4ce8-9cba-8c94dc1bb175") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "Q12") - (unit 1) - ) - ) - ) - ) - (symbol - (lib_id "Device:R") - (at 115.57 171.45 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "a1907553-59a5-4b8f-a2fa-bea6076e4c9a") - (property "Reference" "R54" - (at 118.11 170.1799 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "10k" - (at 118.11 172.7199 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 113.792 171.45 90) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "~" - (at 115.57 171.45 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Resistor" - (at 115.57 171.45 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "e92b3b8b-29df-435a-a769-39512942dc91") - ) - (pin "1" - (uuid "879b9fac-3906-4856-bd87-7ec374b23ad2") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "R54") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:C") (at 250.19 120.65 0) @@ -9753,7 +8783,7 @@ ) (symbol (lib_id "power:GND") - (at 344.17 64.77 0) + (at 345.44 64.77 0) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -9762,7 +8792,7 @@ (fields_autoplaced yes) (uuid "dea3d8f7-91ee-4637-be17-a11dbcb4741f") (property "Reference" "#PWR015" - (at 344.17 71.12 0) + (at 345.44 71.12 0) (effects (font (size 1.27 1.27) @@ -9771,7 +8801,7 @@ ) ) (property "Value" "GND" - (at 344.17 69.85 0) + (at 345.44 69.85 0) (effects (font (size 1.27 1.27) @@ -9780,7 +8810,7 @@ ) ) (property "Footprint" "" - (at 344.17 64.77 0) + (at 345.44 64.77 0) (effects (font (size 1.27 1.27) @@ -9789,7 +8819,7 @@ ) ) (property "Datasheet" "" - (at 344.17 64.77 0) + (at 345.44 64.77 0) (effects (font (size 1.27 1.27) @@ -9798,7 +8828,7 @@ ) ) (property "Description" "Power symbol creates a global label with name \"GND\" , ground" - (at 344.17 64.77 0) + (at 345.44 64.77 0) (effects (font (size 1.27 1.27) @@ -9979,79 +9009,9 @@ ) ) ) - (symbol - (lib_id "Device:R") - (at 115.57 152.4 0) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (fields_autoplaced yes) - (uuid "f42c3eeb-d5b1-4e26-903d-f67019c6483a") - (property "Reference" "R74" - (at 118.11 151.1299 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "10k" - (at 118.11 153.6699 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "" - (at 113.792 152.4 90) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "~" - (at 115.57 152.4 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "Resistor" - (at 115.57 152.4 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "6893928c-9f0f-476a-9f0f-3d541a591200") - ) - (pin "1" - (uuid "2d58c9a4-fe92-4430-bf7d-be2fcc519d34") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "R74") - (unit 1) - ) - ) - ) - ) (symbol (lib_id "Device:D_Zener") - (at 349.25 68.58 90) + (at 350.52 68.58 90) (unit 1) (exclude_from_sim no) (in_bom yes) @@ -10060,7 +9020,7 @@ (fields_autoplaced yes) (uuid "fb17bcfe-0764-4f32-a0a6-f275152fdc0c") (property "Reference" "D11" - (at 351.79 67.3099 90) + (at 353.06 67.3099 90) (effects (font (size 1.27 1.27) @@ -10069,7 +9029,7 @@ ) ) (property "Value" "ESD441" - (at 351.79 69.8499 90) + (at 353.06 69.8499 90) (effects (font (size 1.27 1.27) @@ -10078,7 +9038,7 @@ ) ) (property "Footprint" "" - (at 349.25 68.58 0) + (at 350.52 68.58 0) (effects (font (size 1.27 1.27) @@ -10087,7 +9047,7 @@ ) ) (property "Datasheet" "~" - (at 349.25 68.58 0) + (at 350.52 68.58 0) (effects (font (size 1.27 1.27) @@ -10096,7 +9056,7 @@ ) ) (property "Description" "Zener diode" - (at 349.25 68.58 0) + (at 350.52 68.58 0) (effects (font (size 1.27 1.27) @@ -10119,69 +9079,94 @@ ) ) ) - (symbol - (lib_id "power:GND") - (at 148.59 157.48 0) - (unit 1) + (sheet + (at 93.98 185.42) + (size 38.1 15.24) (exclude_from_sim no) (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced yes) - (uuid "fedc8f09-61d4-4ef9-a51e-d2d0f1469044") - (property "Reference" "#PWR062" - (at 148.59 163.83 0) + (stroke + (width 0.1524) + (type solid) + ) + (fill + (color 0 0 0 0.0000) + ) + (uuid "63e3e399-8f11-45d4-96da-ee05abfc7bfc") + (property "Sheetname" "Battery Control" + (at 93.98 184.7084 0) (effects (font (size 1.27 1.27) ) - (hide yes) + (justify left bottom) ) ) - (property "Value" "GND" - (at 148.59 162.56 0) + (property "Sheetfile" "block/battery_control.kicad_sch" + (at 93.98 201.2446 0) (effects (font (size 1.27 1.27) ) - (hide yes) + (justify left top) ) ) - (property "Footprint" "" - (at 148.59 157.48 0) + (pin "CHARGER_EN" output + (at 132.08 189.23 0) + (uuid "0bfad531-934f-4066-aae5-d6c4486cdc38") (effects (font (size 1.27 1.27) ) - (hide yes) + (justify right) ) ) - (property "Datasheet" "" - (at 148.59 157.48 0) + (pin "BATT_BOOST_EN" output + (at 132.08 193.04 0) + (uuid "652bc4a0-549f-4b90-8a7d-a099b8ba5103") (effects (font (size 1.27 1.27) ) - (hide yes) + (justify right) ) ) - (property "Description" "Power symbol creates a global label with name \"GND\" , ground" - (at 148.59 157.48 0) + (pin "CTR_CHARGER_EN" input + (at 93.98 189.23 180) + (uuid "0406f61f-bc59-4a59-b0d2-5d3b4c15e4d4") (effects (font (size 1.27 1.27) ) - (hide yes) + (justify left) ) ) - (pin "1" - (uuid "5faab3da-9649-4c99-a8f2-8c6a52e9566b") + (pin "SNS_USB_CONN" input + (at 93.98 196.85 180) + (uuid "7abb23aa-5584-4b2e-8bd8-3816a5582c03") + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "SNS_BATT_CONN" input + (at 93.98 193.04 180) + (uuid "7933d7ba-3dfc-4093-af0b-b8d50790f9c1") + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) ) (instances (project "keyboard_controller" (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5" - (reference "#PWR062") - (unit 1) + (page "10") ) ) ) diff --git a/Hardware/keyboard_controller/block/battery_control.kicad_sch b/Hardware/keyboard_controller/block/battery_control.kicad_sch new file mode 100644 index 0000000..e2a1618 --- /dev/null +++ b/Hardware/keyboard_controller/block/battery_control.kicad_sch @@ -0,0 +1,2252 @@ +(kicad_sch + (version 20250114) + (generator "eeschema") + (generator_version "9.0") + (uuid "6c16a6d2-9e17-403b-9f7c-9f978d8b224e") + (paper "A5") + (lib_symbols + (symbol "Device:D_Schottky" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 1.016) + (hide yes) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "D" + (at 0 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "D_Schottky" + (at 0 -2.54 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (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" "Schottky diode" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "diode Schottky" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "TO-???* *_Diode_* *SingleDiode* D_*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "D_Schottky_0_1" + (polyline + (pts + (xy -1.905 0.635) (xy -1.905 1.27) (xy -1.27 1.27) (xy -1.27 -1.27) (xy -0.635 -1.27) (xy -0.635 -0.635) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 1.27 1.27) (xy 1.27 -1.27) (xy -1.27 0) (xy 1.27 1.27) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 1.27 0) (xy -1.27 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "D_Schottky_1_1" + (pin passive line + (at -3.81 0 0) + (length 2.54) + (name "K" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 3.81 0 180) + (length 2.54) + (name "A" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (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 "Simulation_SPICE:NMOS" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "Q" + (at 5.08 1.27 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "NMOS" + (at 5.08 -1.27 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 5.08 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" + (at 0 -12.7 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "N-MOSFET transistor, drain/source/gate" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "NMOS" + (at 0 -17.145 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "VDMOS" + (at 0 -19.05 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=D 2=G 3=S" + (at 0 -15.24 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "transistor NMOS N-MOS N-MOSFET simulation" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "NMOS_0_1" + (polyline + (pts + (xy 0.254 1.905) (xy 0.254 -1.905) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.254 0) (xy -2.54 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 2.286) (xy 0.762 1.27) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 0.508) (xy 0.762 -0.508) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 -1.27) (xy 0.762 -2.286) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 -1.778) (xy 3.302 -1.778) (xy 3.302 1.778) (xy 0.762 1.778) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 1.016 0) (xy 2.032 0.381) (xy 2.032 -0.381) (xy 1.016 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (circle + (center 1.651 0) + (radius 2.794) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.54 2.54) (xy 2.54 1.778) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (circle + (center 2.54 1.778) + (radius 0.254) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (circle + (center 2.54 -1.778) + (radius 0.254) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (polyline + (pts + (xy 2.54 -2.54) (xy 2.54 0) (xy 0.762 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.794 0.508) (xy 2.921 0.381) (xy 3.683 0.381) (xy 3.81 0.254) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 3.302 0.381) (xy 2.921 -0.254) (xy 3.683 -0.254) (xy 3.302 0.381) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "NMOS_1_1" + (pin input line + (at -5.08 0 0) + (length 2.54) + (name "G" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 2.54 5.08 270) + (length 2.54) + (name "D" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 2.54 -5.08 90) + (length 2.54) + (name "S" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "3" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + (symbol "Simulation_SPICE:PMOS" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "Q" + (at 5.08 1.27 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "PMOS" + (at 5.08 -1.27 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 5.08 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" + (at 0 -12.7 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "P-MOSFET transistor, drain/source/gate" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "PMOS" + (at 0 -17.145 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "VDMOS" + (at 0 -19.05 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=D 2=G 3=S" + (at 0 -15.24 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "transistor PMOS P-MOS P-MOSFET simulation" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "PMOS_0_1" + (polyline + (pts + (xy 0.254 1.905) (xy 0.254 -1.905) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.254 0) (xy -2.54 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 2.286) (xy 0.762 1.27) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 1.778) (xy 3.302 1.778) (xy 3.302 -1.778) (xy 0.762 -1.778) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 0.508) (xy 0.762 -0.508) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 -1.27) (xy 0.762 -2.286) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (circle + (center 1.651 0) + (radius 2.794) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.286 0) (xy 1.27 0.381) (xy 1.27 -0.381) (xy 2.286 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (polyline + (pts + (xy 2.54 2.54) (xy 2.54 1.778) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (circle + (center 2.54 1.778) + (radius 0.254) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (circle + (center 2.54 -1.778) + (radius 0.254) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (polyline + (pts + (xy 2.54 -2.54) (xy 2.54 0) (xy 0.762 0) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 2.794 -0.508) (xy 2.921 -0.381) (xy 3.683 -0.381) (xy 3.81 -0.254) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 3.302 -0.381) (xy 2.921 0.254) (xy 3.683 0.254) (xy 3.302 -0.381) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "PMOS_1_1" + (pin input line + (at -5.08 0 0) + (length 2.54) + (name "G" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 2.54 5.08 270) + (length 2.54) + (name "D" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 2.54 -5.08 90) + (length 2.54) + (name "S" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "3" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + (symbol "power:GND" + (power) + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0) + (hide yes) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "#PWR" + (at 0 -6.35 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 0 -3.81 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (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" "Power symbol creates a global label with name \"GND\" , ground" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "global power" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "GND_0_1" + (polyline + (pts + (xy 0 0) (xy 0 -1.27) (xy 1.27 -1.27) (xy 0 -2.54) (xy -1.27 -1.27) (xy 0 -1.27) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "GND_1_1" + (pin power_in line + (at 0 0 270) + (length 0) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + ) + (text "Enabled only when battery connected and USB disconnected" + (exclude_from_sim no) + (at 129.794 69.85 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "1d02578b-11c7-410a-8519-6bfcf2d94500") + ) + (text "Charger is only enabled if all conditions are true" + (exclude_from_sim no) + (at 128.524 31.75 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "b918cdd3-e926-4615-b2e7-04cd4a5c1773") + ) + (junction + (at 81.28 67.31) + (diameter 0) + (color 0 0 0 0) + (uuid "1016aa9d-9dff-44c3-bd4f-b5860d15e1d2") + ) + (junction + (at 99.06 31.75) + (diameter 0) + (color 0 0 0 0) + (uuid "17994310-2334-469b-ace3-eed5dc6604fc") + ) + (junction + (at 66.04 57.15) + (diameter 0) + (color 0 0 0 0) + (uuid "47d27dd5-1abb-413a-98b5-61de9d316e58") + ) + (junction + (at 81.28 69.85) + (diameter 0) + (color 0 0 0 0) + (uuid "55a450b3-0c49-4892-8a77-e6bb6dc681af") + ) + (junction + (at 66.04 86.36) + (diameter 0) + (color 0 0 0 0) + (uuid "7d546d0d-5612-4069-85fd-ec934552bbbc") + ) + (junction + (at 66.04 76.2) + (diameter 0) + (color 0 0 0 0) + (uuid "86752c09-77e6-4c72-84ec-10f2c3200a57") + ) + (junction + (at 66.04 31.75) + (diameter 0) + (color 0 0 0 0) + (uuid "8c8e7c21-0c36-4c5f-846f-107e41c622cd") + ) + (junction + (at 81.28 41.91) + (diameter 0) + (color 0 0 0 0) + (uuid "f3d221ff-e978-4100-a105-5f0d875e7a7c") + ) + (wire + (pts + (xy 66.04 76.2) (xy 66.04 77.47) + ) + (stroke + (width 0) + (type default) + ) + (uuid "0a91b182-7819-40c3-b936-68fce3f9fbd1") + ) + (wire + (pts + (xy 81.28 86.36) (xy 81.28 81.28) + ) + (stroke + (width 0) + (type default) + ) + (uuid "0bf32ad5-5065-4d42-9b5d-cd7acd4fa590") + ) + (wire + (pts + (xy 66.04 57.15) (xy 66.04 58.42) + ) + (stroke + (width 0) + (type default) + ) + (uuid "268d9ad1-1132-4d57-88a0-ec359d8e6ff2") + ) + (wire + (pts + (xy 60.96 57.15) (xy 66.04 57.15) + ) + (stroke + (width 0) + (type default) + ) + (uuid "2ff87e14-3107-440f-aca2-2886edb23045") + ) + (wire + (pts + (xy 66.04 31.75) (xy 76.2 31.75) + ) + (stroke + (width 0) + (type default) + ) + (uuid "36b9e1ab-3187-4baa-8ee4-f1c2ee9b2a6a") + ) + (wire + (pts + (xy 60.96 31.75) (xy 66.04 31.75) + ) + (stroke + (width 0) + (type default) + ) + (uuid "412bd424-e065-4fed-b288-63a0874e88f4") + ) + (wire + (pts + (xy 66.04 67.31) (xy 81.28 67.31) + ) + (stroke + (width 0) + (type default) + ) + (uuid "43ed91c4-069b-40be-ba90-217734f5cb92") + ) + (wire + (pts + (xy 81.28 39.37) (xy 81.28 41.91) + ) + (stroke + (width 0) + (type default) + ) + (uuid "446e9cf5-9731-4e49-a348-38b7be3af14a") + ) + (wire + (pts + (xy 81.28 50.8) (xy 81.28 52.07) + ) + (stroke + (width 0) + (type default) + ) + (uuid "51c3db64-4f1c-4cc4-9c01-a86b9caffdc7") + ) + (wire + (pts + (xy 99.06 31.75) (xy 99.06 33.02) + ) + (stroke + (width 0) + (type default) + ) + (uuid "5df72e26-aaf2-4a44-b624-ef4e47491ee8") + ) + (wire + (pts + (xy 60.96 76.2) (xy 66.04 76.2) + ) + (stroke + (width 0) + (type default) + ) + (uuid "72723273-e99f-48f1-bfcb-69cb1efb69eb") + ) + (wire + (pts + (xy 81.28 69.85) (xy 81.28 71.12) + ) + (stroke + (width 0) + (type default) + ) + (uuid "72cf5e0e-dfda-456c-93a1-d2285e0a2c2a") + ) + (wire + (pts + (xy 66.04 87.63) (xy 66.04 86.36) + ) + (stroke + (width 0) + (type default) + ) + (uuid "75dbfe47-47bf-41b6-b1aa-08dfb4acce1e") + ) + (wire + (pts + (xy 66.04 40.64) (xy 66.04 41.91) + ) + (stroke + (width 0) + (type default) + ) + (uuid "7c5cfe0c-c099-45d1-8457-c1f3bfc10d70") + ) + (wire + (pts + (xy 66.04 41.91) (xy 81.28 41.91) + ) + (stroke + (width 0) + (type default) + ) + (uuid "84f8b7af-b655-4107-8421-ee833936b58e") + ) + (wire + (pts + (xy 66.04 66.04) (xy 66.04 67.31) + ) + (stroke + (width 0) + (type default) + ) + (uuid "86265b9d-cd42-4c56-9435-84cd09b31212") + ) + (wire + (pts + (xy 66.04 76.2) (xy 73.66 76.2) + ) + (stroke + (width 0) + (type default) + ) + (uuid "94cd21b4-1deb-4196-8c6e-e11e0c379983") + ) + (wire + (pts + (xy 81.28 62.23) (xy 81.28 67.31) + ) + (stroke + (width 0) + (type default) + ) + (uuid "9548e87e-8cdd-4724-994d-9fb57a116ae1") + ) + (wire + (pts + (xy 86.36 31.75) (xy 99.06 31.75) + ) + (stroke + (width 0) + (type default) + ) + (uuid "9dcf7bcb-a19d-4855-b913-7aede7e15cf7") + ) + (wire + (pts + (xy 99.06 31.75) (xy 111.76 31.75) + ) + (stroke + (width 0) + (type default) + ) + (uuid "adcc51b3-6821-4210-a044-aeb5fdb72cca") + ) + (wire + (pts + (xy 66.04 86.36) (xy 66.04 85.09) + ) + (stroke + (width 0) + (type default) + ) + (uuid "ae13a7b3-ad91-480f-af20-2054a74dd42f") + ) + (wire + (pts + (xy 81.28 69.85) (xy 111.76 69.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "b8113d55-6049-4446-8bd7-a288ee88bba7") + ) + (wire + (pts + (xy 66.04 86.36) (xy 81.28 86.36) + ) + (stroke + (width 0) + (type default) + ) + (uuid "b8998898-e24a-4fa5-837d-f36d770c4d9a") + ) + (wire + (pts + (xy 66.04 31.75) (xy 66.04 33.02) + ) + (stroke + (width 0) + (type default) + ) + (uuid "c9036303-92b8-4368-9db3-2b7c73111845") + ) + (wire + (pts + (xy 81.28 41.91) (xy 81.28 43.18) + ) + (stroke + (width 0) + (type default) + ) + (uuid "cf79595e-9059-4cde-8b08-4184e80e8419") + ) + (wire + (pts + (xy 81.28 67.31) (xy 81.28 69.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "d453bc68-8b2b-4258-be47-b87f44958ecb") + ) + (wire + (pts + (xy 66.04 57.15) (xy 73.66 57.15) + ) + (stroke + (width 0) + (type default) + ) + (uuid "f42eda45-085c-4b8a-a51c-92450c204e71") + ) + (hierarchical_label "SNS_USB_CONN" + (shape input) + (at 60.96 76.2 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "0886db9c-f5b2-4686-9532-83a03b8f5f05") + ) + (hierarchical_label "BATT_BOOST_EN" + (shape output) + (at 111.76 69.85 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "2acdd97d-f636-4961-92aa-5de746d39571") + ) + (hierarchical_label "SNS_BATT_CONN" + (shape input) + (at 60.96 57.15 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "3ac49502-5a83-45a8-afe0-8123a9d921d8") + ) + (hierarchical_label "CTR_CHARGER_EN" + (shape input) + (at 60.96 31.75 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "64169b50-f3c7-481f-8bb4-93ded25afd0a") + ) + (hierarchical_label "CHARGER_EN" + (shape output) + (at 111.76 31.75 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "d192d4f5-118b-475e-a313-1f36eeadf14d") + ) + (symbol + (lib_id "Simulation_SPICE:NMOS") + (at 78.74 76.2 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "babcaa4b-b503-4b40-9291-76d24e683551") + (property "Reference" "Q14" + (at 85.09 74.9299 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "NMOS" + (at 85.09 77.4699 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 83.82 73.66 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" + (at 78.74 88.9 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "N-MOSFET transistor, drain/source/gate" + (at 78.74 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "NMOS" + (at 78.74 93.345 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "VDMOS" + (at 78.74 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=D 2=G 3=S" + (at 78.74 91.44 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "3" + (uuid "bf57b6a1-1fa4-44dd-9a48-bd3234b56459") + ) + (pin "1" + (uuid "f8756db2-9355-4b62-8dcb-46ef8d2b7e46") + ) + (pin "2" + (uuid "e1bced50-b647-4cb4-8e94-6ffde1bec718") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "Q14") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "Q17") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 66.04 81.28 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "c67f185a-97b0-443a-8210-2d478188e671") + (property "Reference" "R79" + (at 68.58 80.0099 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "10k" + (at 68.58 82.5499 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 64.262 81.28 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 66.04 81.28 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 66.04 81.28 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "a979316c-d7b1-429c-ae54-8239df4e5694") + ) + (pin "1" + (uuid "63e46c7d-7e9c-48c6-9fa4-3e8c2f07506a") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "R79") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "R84") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 66.04 62.23 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "caa978cf-2d0f-4a10-832a-ad908d18a35c") + (property "Reference" "R75" + (at 68.58 60.9599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "10k" + (at 68.58 63.4999 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 64.262 62.23 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 66.04 62.23 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 66.04 62.23 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "3724677b-2cff-4a93-91c4-52e360db36e8") + ) + (pin "1" + (uuid "89405980-aae0-4657-b1fa-16c80af311ea") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "R75") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "R83") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 99.06 40.64 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "e08c7d8c-10e2-4f5c-8af5-6484e0fb2f18") + (property "Reference" "#PWR058" + (at 99.06 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 99.06 45.72 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 99.06 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 99.06 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 99.06 40.64 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "1ae19f1d-ebb6-46f3-a7b0-f74795d9f994") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "#PWR058") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "#PWR062") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 66.04 36.83 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "e541b9a1-8acd-4257-b76a-3edcb2ee6780") + (property "Reference" "R61" + (at 68.58 35.5599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "47k" + (at 68.58 38.0999 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 64.262 36.83 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 66.04 36.83 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 66.04 36.83 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "929537b4-608e-4b18-a4eb-a9966f3686f4") + ) + (pin "1" + (uuid "dda1a785-de9d-41c3-a52f-012f704e07c9") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "R61") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "R82") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 66.04 87.63 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "e5e4ed02-1336-49dd-b091-87e38d1182f7") + (property "Reference" "#PWR057" + (at 66.04 93.98 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 66.04 92.71 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 66.04 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 66.04 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 66.04 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "d153a4d8-2d94-4995-be34-03a26bc261d5") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "#PWR057") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "#PWR061") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:D_Schottky") + (at 81.28 46.99 90) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "e6807c16-93d3-4230-ac5b-a88332d2b203") + (property "Reference" "D13" + (at 83.82 46.0374 90) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (property "Value" "D" + (at 83.82 48.5774 90) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (property "Footprint" "" + (at 81.28 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 81.28 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Schottky diode" + (at 81.28 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "D" + (at 81.28 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=K 2=A" + (at 81.28 46.99 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "c710b228-9dad-4277-b97e-69f6b9e12bc5") + ) + (pin "1" + (uuid "6d90f9a0-e2c0-474b-988e-c1398db2b6a5") + ) + (instances + (project "" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "D13") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "D14") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Simulation_SPICE:PMOS") + (at 81.28 34.29 270) + (mirror x) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "f8b3d1b4-a079-4efe-b330-f2756507161e") + (property "Reference" "Q15" + (at 81.28 25.4 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "PMOS" + (at 81.28 27.94 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 83.82 29.21 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" + (at 68.58 34.29 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "P-MOSFET transistor, drain/source/gate" + (at 81.28 34.29 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "PMOS" + (at 64.135 34.29 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "VDMOS" + (at 62.23 34.29 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=D 2=G 3=S" + (at 66.04 34.29 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "3" + (uuid "df6d5dd9-e15b-4552-a27a-4e7b358a7930") + ) + (pin "2" + (uuid "097d3ed0-846a-43b4-bd0e-ea5490d20668") + ) + (pin "1" + (uuid "1848a703-5b48-4094-b1ee-5a6882aee0e9") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "Q15") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "Q18") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 99.06 36.83 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "fc57fcce-812e-4d12-83f0-d57d88ddec48") + (property "Reference" "R80" + (at 101.6 35.5599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "47k" + (at 101.6 38.0999 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 97.282 36.83 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 99.06 36.83 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 99.06 36.83 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "8d28c21b-b77a-4d41-9feb-c234588fbef3") + ) + (pin "1" + (uuid "2ef3eba1-43e4-49d3-9d4b-ea55fa31027d") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "R80") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "R85") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Simulation_SPICE:NMOS") + (at 78.74 57.15 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "fdb337dd-85b1-4cea-96c1-5bcd4533b0c4") + (property "Reference" "Q13" + (at 85.09 55.8799 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "NMOS" + (at 85.09 58.4199 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 83.82 54.61 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#cha_MOSFETs" + (at 78.74 69.85 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "N-MOSFET transistor, drain/source/gate" + (at 78.74 57.15 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "NMOS" + (at 78.74 74.295 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "VDMOS" + (at 78.74 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=D 2=G 3=S" + (at 78.74 72.39 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "3" + (uuid "180b81ba-5a4c-446e-8ba8-f115d0cb315d") + ) + (pin "1" + (uuid "84a91040-7048-4bb0-ab1c-357147e86757") + ) + (pin "2" + (uuid "c4013ac4-4b14-437c-bf40-ba0370c16269") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/63e3e399-8f11-45d4-96da-ee05abfc7bfc" + (reference "Q13") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39/7fd36229-4776-4797-8f6d-d4ae4045346d" + (reference "Q16") + (unit 1) + ) + ) + ) + ) +) diff --git a/Hardware/keyboard_controller/block/ideal_diode.kicad_sch b/Hardware/keyboard_controller/block/ideal_diode.kicad_sch index 08ea5d0..2bf44f4 100644 --- a/Hardware/keyboard_controller/block/ideal_diode.kicad_sch +++ b/Hardware/keyboard_controller/block/ideal_diode.kicad_sch @@ -1011,249 +1011,6 @@ ) (uuid "ff47488f-e6ea-43e1-9149-61b1a075a1cb") ) - (symbol - (lib_id "Transistor_BJT:BC857BS") - (at 91.44 53.34 180) - (unit 1) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (uuid "339d59ec-637f-4ade-a2ab-e3d3fd43c3cf") - (property "Reference" "Q4" - (at 86.36 54.6101 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "BC857BS" - (at 86.36 52.0701 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6" - (at 86.36 55.88 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Library" "model/BC857BS.lib" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Name" "BC857BS" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Device" "SUBCKT" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Pins" "1=1 2=2 3=3 4=4 5=5 6=6" - (at 91.44 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "1" - (uuid "0ef969b6-c0bb-4391-8263-35e528eb3c5f") - ) - (pin "5" - (uuid "a8ea70d5-542d-407a-a088-6adc40088000") - ) - (pin "3" - (uuid "4fd282d8-b478-4421-9587-a28a75b45e10") - ) - (pin "4" - (uuid "04889b31-9ee5-4759-93a3-ce1a25a20963") - ) - (pin "6" - (uuid "88e86ed6-99c2-4315-b9e4-2884fa16b329") - ) - (pin "2" - (uuid "ac178155-6378-4c77-aa67-5c3c63ea8632") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/efdabaa1-4e6c-4b02-8574-dea8c0bb89ea" - (reference "Q4") - (unit 1) - ) - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/81f7f138-c870-483b-b965-9895c9eb889f/14e475fc-3ffe-44c4-b9c9-539e1b0d41cb" - (reference "Q4") - (unit 1) - ) - ) - ) - ) - (symbol - (lib_id "Transistor_BJT:BC857BS") - (at 111.76 53.34 0) - (mirror x) - (unit 2) - (exclude_from_sim no) - (in_bom yes) - (on_board yes) - (dnp no) - (uuid "4af76aab-f986-4385-9520-d829779e4c99") - (property "Reference" "Q4" - (at 116.84 54.6101 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Value" "BC857BS" - (at 116.84 52.0701 0) - (effects - (font - (size 1.27 1.27) - ) - (justify left) - ) - ) - (property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6" - (at 116.84 55.88 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Library" "model/BC857BS.lib" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Name" "BC857BS" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Device" "SUBCKT" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (property "Sim.Pins" "1=1 2=2 3=3 4=4 5=5 6=6" - (at 111.76 53.34 0) - (effects - (font - (size 1.27 1.27) - ) - (hide yes) - ) - ) - (pin "2" - (uuid "c9ea3d90-2830-4126-b88a-0fd24360711e") - ) - (pin "3" - (uuid "1f117375-eed3-499d-810e-413161476626") - ) - (pin "4" - (uuid "82288bd0-7b05-4685-9985-15ff818cccc2") - ) - (pin "6" - (uuid "ac493fb1-6c77-4e80-881b-4ac7315c5b8e") - ) - (pin "5" - (uuid "15a8b5c0-57ca-4b56-b219-e9810d1d26f5") - ) - (pin "1" - (uuid "fe5a9cc9-809d-4ee9-bb88-6d7e9389e085") - ) - (instances - (project "keyboard_controller" - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/efdabaa1-4e6c-4b02-8574-dea8c0bb89ea" - (reference "Q4") - (unit 2) - ) - (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/81f7f138-c870-483b-b965-9895c9eb889f/14e475fc-3ffe-44c4-b9c9-539e1b0d41cb" - (reference "Q4") - (unit 2) - ) - ) - ) - ) (symbol (lib_id "Device:R") (at 114.3 67.31 0) @@ -1328,6 +1085,177 @@ ) ) ) + (symbol + (lib_id "Transistor_BJT:BC857BS") + (at 91.44 53.34 180) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "a5e62f4f-bd9f-4f84-a9a7-f6ebf87cac94") + (property "Reference" "Q4" + (at 86.36 54.6101 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "BC857BS" + (at 86.36 52.0701 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6" + (at 86.36 55.88 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf" + (at 91.44 53.34 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363" + (at 91.44 53.34 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "3" + (uuid "8943e3e5-5171-4f5a-9c87-4c3ad53a29ef") + ) + (pin "2" + (uuid "44850ec9-8de9-44c4-b0ff-ae8afbc7bb08") + ) + (pin "6" + (uuid "caa22a55-e331-47c0-9744-6e0f6378be94") + ) + (pin "4" + (uuid "29985eda-8500-4ba4-a210-6d6b1992dc69") + ) + (pin "1" + (uuid "a373da5e-d15a-4879-ad7a-ffaaf30e5bc4") + ) + (pin "5" + (uuid "b2c73db4-4c11-4655-bac8-4c4fa5211dfa") + ) + (instances + (project "" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/efdabaa1-4e6c-4b02-8574-dea8c0bb89ea" + (reference "Q4") + (unit 1) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/81f7f138-c870-483b-b965-9895c9eb889f/14e475fc-3ffe-44c4-b9c9-539e1b0d41cb" + (reference "Q8") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Transistor_BJT:BC857BS") + (at 111.76 53.34 0) + (mirror x) + (unit 2) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "ab7b9b20-c0d1-45d5-8f90-20f8b4b28502") + (property "Reference" "Q4" + (at 116.84 54.6101 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "BC857BS" + (at 116.84 52.0701 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6" + (at 116.84 55.88 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf" + (at 111.76 53.34 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363" + (at 111.76 53.34 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "3" + (uuid "8943e3e5-5171-4f5a-9c87-4c3ad53a29ef") + ) + (pin "2" + (uuid "44850ec9-8de9-44c4-b0ff-ae8afbc7bb08") + ) + (pin "6" + (uuid "caa22a55-e331-47c0-9744-6e0f6378be94") + ) + (pin "4" + (uuid "29985eda-8500-4ba4-a210-6d6b1992dc69") + ) + (pin "1" + (uuid "a373da5e-d15a-4879-ad7a-ffaaf30e5bc4") + ) + (pin "5" + (uuid "b2c73db4-4c11-4655-bac8-4c4fa5211dfa") + ) + (instances + (project "" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5/efdabaa1-4e6c-4b02-8574-dea8c0bb89ea" + (reference "Q4") + (unit 2) + ) + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/81f7f138-c870-483b-b965-9895c9eb889f/14e475fc-3ffe-44c4-b9c9-539e1b0d41cb" + (reference "Q8") + (unit 2) + ) + ) + ) + ) (symbol (lib_id "Device:R") (at 88.9 67.31 0) diff --git a/Hardware/keyboard_controller/testbench/battery_control.kicad_sch b/Hardware/keyboard_controller/testbench/battery_control.kicad_sch new file mode 100644 index 0000000..fffbd35 --- /dev/null +++ b/Hardware/keyboard_controller/testbench/battery_control.kicad_sch @@ -0,0 +1,1551 @@ +(kicad_sch + (version 20250114) + (generator "eeschema") + (generator_version "9.0") + (uuid "68e5dc54-89ad-42b8-9653-3008e40fad9e") + (paper "A4") + (lib_symbols + (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 "Simulation_SPICE:VPULSE" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0.0254) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "V" + (at 2.54 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "VPULSE" + (at 2.54 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, pulse" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "PULSE" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Sim.Params" "y1=0 y2=1 td=2n tr=2n tf=2n tw=50n per=100n" + (at 2.54 -2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "ki_keywords" "simulation" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "VPULSE_0_0" + (polyline + (pts + (xy -2.032 -0.762) (xy -1.397 -0.762) (xy -1.143 0.762) (xy -0.127 0.762) (xy 0.127 -0.762) (xy 1.143 -0.762) + (xy 1.397 0.762) (xy 2.032 0.762) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (text "+" + (at 0 1.905 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (symbol "VPULSE_0_1" + (circle + (center 0 0) + (radius 2.54) + (stroke + (width 0.254) + (type default) + ) + (fill + (type background) + ) + ) + ) + (symbol "VPULSE_1_1" + (pin passive line + (at 0 5.08 270) + (length 2.54) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 0 -5.08 90) + (length 2.54) + (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 + (hide yes) + ) + (pin_names + (offset 0) + (hide yes) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "#PWR" + (at 0 -6.35 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 0 -3.81 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (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" "Power symbol creates a global label with name \"GND\" , ground" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "global power" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "GND_0_1" + (polyline + (pts + (xy 0 0) (xy 0 -1.27) (xy 1.27 -1.27) (xy 0 -2.54) (xy -1.27 -1.27) (xy 0 -1.27) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "GND_1_1" + (pin power_in line + (at 0 0 270) + (length 0) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + ) + (wire + (pts + (xy 252.73 86.36) (xy 252.73 93.98) + ) + (stroke + (width 0) + (type default) + ) + (uuid "063a0c41-114b-4d82-a965-b9e0118feecd") + ) + (wire + (pts + (xy 115.57 86.36) (xy 135.89 86.36) + ) + (stroke + (width 0) + (type default) + ) + (uuid "111f5c92-9827-49e7-a0d6-3b7778d5fb26") + ) + (wire + (pts + (xy 46.99 88.9) (xy 68.58 88.9) + ) + (stroke + (width 0) + (type default) + ) + (uuid "125d29fc-b07c-4326-8a63-50113c037db2") + ) + (wire + (pts + (xy 46.99 106.68) (xy 46.99 107.95) + ) + (stroke + (width 0) + (type default) + ) + (uuid "25611842-b67a-47fc-a41b-9157d6b523df") + ) + (wire + (pts + (xy 46.99 71.12) (xy 46.99 69.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "36b2a383-f555-468f-a5a3-b6ad63b29c4a") + ) + (wire + (pts + (xy 46.99 69.85) (xy 68.58 69.85) + ) + (stroke + (width 0) + (type default) + ) + (uuid "3dc3c560-1e17-4726-aedc-11c056471707") + ) + (wire + (pts + (xy 240.03 90.17) (xy 240.03 93.98) + ) + (stroke + (width 0) + (type default) + ) + (uuid "4fdf8169-4c0e-471e-8c50-2033edb5b060") + ) + (wire + (pts + (xy 218.44 86.36) (xy 252.73 86.36) + ) + (stroke + (width 0) + (type default) + ) + (uuid "67ce1a86-3997-4317-892d-05d8fb48f8b1") + ) + (wire + (pts + (xy 115.57 90.17) (xy 135.89 90.17) + ) + (stroke + (width 0) + (type default) + ) + (uuid "77e865ab-98d6-4171-84b1-438088940abc") + ) + (wire + (pts + (xy 115.57 93.98) (xy 135.89 93.98) + ) + (stroke + (width 0) + (type default) + ) + (uuid "9446aca9-34ad-424e-8baa-2a4164138677") + ) + (wire + (pts + (xy 46.99 90.17) (xy 46.99 88.9) + ) + (stroke + (width 0) + (type default) + ) + (uuid "9b1d4dca-51c3-436c-af50-25486ea2fef6") + ) + (wire + (pts + (xy 68.58 106.68) (xy 46.99 106.68) + ) + (stroke + (width 0) + (type default) + ) + (uuid "bc7970c4-0812-4993-9a96-53f2a29c5ed3") + ) + (wire + (pts + (xy 173.99 90.17) (xy 193.04 90.17) + ) + (stroke + (width 0) + (type default) + ) + (uuid "be71ca8c-2b7a-487a-aa1b-236f550145db") + ) + (wire + (pts + (xy 173.99 86.36) (xy 193.04 86.36) + ) + (stroke + (width 0) + (type default) + ) + (uuid "c90fb226-fa5f-40d3-bace-4c76697df88f") + ) + (wire + (pts + (xy 218.44 90.17) (xy 240.03 90.17) + ) + (stroke + (width 0) + (type default) + ) + (uuid "e79ad579-ce96-496c-8d71-c3bb8b7427c9") + ) + (label "SNS_BATT_CONN" + (at 115.57 90.17 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "09b0ae31-91a4-440e-bf7a-32d3783a2d79") + ) + (label "CHARGER_EN" + (at 193.04 86.36 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right bottom) + ) + (uuid "2d4a1419-8e18-4c96-be01-7311b8d61492") + ) + (label "BATT_BOOST_EN" + (at 218.44 90.17 0) + (effects + (font + (size 1.27 1.27) + (thickness 0.1588) + ) + (justify left bottom) + ) + (uuid "4a36f8e5-0965-47d2-bc64-db93b8575c0a") + ) + (label "CTR_CHARGER_EN" + (at 68.58 69.85 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right bottom) + ) + (uuid "ba281921-649c-48b4-80dc-28e0535a8228") + ) + (label "SNS_BATT_CONN" + (at 68.58 88.9 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right bottom) + ) + (uuid "be496dd4-b1f9-495e-aeae-93d791e3570a") + ) + (label "CHARGER_EN" + (at 218.44 86.36 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "bff470f0-5d61-48b1-a7f0-eb3e54162927") + ) + (label "SNS_USB_CONN" + (at 68.58 106.68 180) + (effects + (font + (size 1.27 1.27) + ) + (justify right bottom) + ) + (uuid "cf5e72c3-f390-4322-a20d-59eb078e47da") + ) + (label "CTR_CHARGER_EN" + (at 115.57 86.36 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "dcac9d50-996b-4645-b630-ef954b443839") + ) + (label "BATT_BOOST_EN" + (at 193.04 90.17 180) + (effects + (font + (size 1.27 1.27) + (thickness 0.1588) + ) + (justify right bottom) + ) + (uuid "e75222cf-65c2-4d50-9061-d4c32d502944") + ) + (label "SNS_USB_CONN" + (at 115.57 93.98 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "f6fc35b7-633a-4be7-beff-ca49a9adccf3") + ) + (symbol + (lib_id "power:GND") + (at 240.03 101.6 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "0604e0b5-545e-48b5-9264-30ec2000484a") + (property "Reference" "#PWR065" + (at 240.03 107.95 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 240.03 106.68 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 240.03 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 240.03 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 240.03 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "c2177875-40be-4bde-8999-877a27505b85") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "#PWR065") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 46.99 81.28 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "1d060a56-456e-4873-8ed0-ae63001b55a4") + (property "Reference" "#PWR064" + (at 46.99 87.63 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 46.99 86.36 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 46.99 81.28 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 46.99 81.28 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 46.99 81.28 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "f9c313bb-4a37-48bd-a841-cb7f2b9fb54d") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "#PWR064") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Simulation_SPICE:VPULSE") + (at 46.99 76.2 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "26c0b96d-5432-4122-915c-2ff7aca3331d") + (property "Reference" "V5" + (at 50.8 73.5301 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "VPULSE" + (at 50.8 76.0701 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, pulse" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "PULSE" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 46.99 76.2 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Sim.Params" "y1=0 y2=5 td=2n tr=2n tf=2n tw=10m per=20m" + (at 50.8 78.6101 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "1" + (uuid "ebe2a95b-e885-42bd-b70a-e154f94c928e") + ) + (pin "2" + (uuid "ee6dce5e-3fc9-4439-a30a-6617642db5e0") + ) + (instances + (project "" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "V5") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 46.99 118.11 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "2d9807c1-b42d-4f06-ace8-896094970a3b") + (property "Reference" "#PWR026" + (at 46.99 124.46 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 46.99 123.19 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 46.99 118.11 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 46.99 118.11 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 46.99 118.11 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "cb753708-a2e6-4004-b7b4-b86a1d997c16") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "#PWR026") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 252.73 101.6 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "68563a37-d974-45a0-9337-74abd680c167") + (property "Reference" "#PWR066" + (at 252.73 107.95 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 252.73 106.68 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 252.73 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 252.73 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 252.73 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "f52b1b67-1b2a-4201-9a84-22733a2dad1d") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "#PWR066") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 240.03 97.79 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "76e6b013-cde7-4b41-b3f0-abd20eae731e") + (property "Reference" "R54" + (at 242.57 96.5199 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "10M" + (at 242.57 99.0599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 238.252 97.79 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 240.03 97.79 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 240.03 97.79 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "a16d4bfa-ddb8-4bb4-a256-3832a7c7a18b") + ) + (pin "2" + (uuid "414ec919-2909-4def-8b05-611440e02404") + ) + (instances + (project "" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "R54") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Simulation_SPICE:VPULSE") + (at 46.99 113.03 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "82599b7d-ab17-4731-a727-46f6b9d696f7") + (property "Reference" "V2" + (at 50.8 110.3601 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "VPULSE" + (at 50.8 112.9001 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, pulse" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "PULSE" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 46.99 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Sim.Params" "y1=0 y2=5 td=2n tr=2n tf=2n tw=40m per=80m" + (at 50.8 115.4401 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "1" + (uuid "0bebe75b-4fdf-4410-9b38-ec087f7a9f13") + ) + (pin "2" + (uuid "cdb4ccef-479e-47a4-967c-6662e9e5f486") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "V2") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:GND") + (at 46.99 100.33 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "abf8499c-a7bc-44c1-93ab-f5101deba35c") + (property "Reference" "#PWR059" + (at 46.99 106.68 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "GND" + (at 46.99 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Footprint" "" + (at 46.99 100.33 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 46.99 100.33 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"GND\" , ground" + (at 46.99 100.33 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "5328232a-320b-478f-82f1-7c3f4f9a4a9d") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "#PWR059") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R") + (at 252.73 97.79 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "d66ccceb-1547-4812-ab73-c316cd4ebccd") + (property "Reference" "R55" + (at 255.27 96.5199 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "10M" + (at 255.27 99.0599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 250.952 97.79 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 252.73 97.79 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 252.73 97.79 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "943ca29a-cb09-420f-8245-571d5940f9ed") + ) + (pin "2" + (uuid "8166d5cc-1e31-475c-88f0-118dfe0a53bd") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "R55") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Simulation_SPICE:VPULSE") + (at 46.99 95.25 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "e1961b2f-9ff8-40d9-a6a4-67fe80e49ae0") + (property "Reference" "V1" + (at 50.8 92.5801 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "VPULSE" + (at 50.8 95.1201 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "https://ngspice.sourceforge.io/docs/ngspice-html-manual/manual.xhtml#sec_Independent_Sources_for" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Voltage source, pulse" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Pins" "1=+ 2=-" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Type" "PULSE" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Sim.Device" "V" + (at 46.99 95.25 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Sim.Params" "y1=0 y2=5 td=2n tr=2n tf=2n tw=20m per=40m" + (at 50.8 97.6601 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "1" + (uuid "7bf79125-e3c7-4bf9-bb24-c261ec00f212") + ) + (pin "2" + (uuid "44996132-4448-489f-a1ae-29c66255babb") + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (reference "V1") + (unit 1) + ) + ) + ) + ) + (sheet + (at 135.89 82.55) + (size 38.1 15.24) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (stroke + (width 0.1524) + (type solid) + ) + (fill + (color 0 0 0 0.0000) + ) + (uuid "7fd36229-4776-4797-8f6d-d4ae4045346d") + (property "Sheetname" "Battery Control" + (at 135.89 81.8384 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + ) + (property "Sheetfile" "block/battery_control.kicad_sch" + (at 135.89 98.3746 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left top) + ) + ) + (pin "CHARGER_EN" output + (at 173.99 86.36 0) + (uuid "89b39f14-2aa4-44cf-8339-1cf969965ce7") + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (pin "BATT_BOOST_EN" output + (at 173.99 90.17 0) + (uuid "917ca3c7-cceb-465d-876e-396c3399973c") + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (pin "CTR_CHARGER_EN" input + (at 135.89 86.36 180) + (uuid "17066dec-9ac1-4c70-80c9-7ec8174eb896") + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "SNS_USB_CONN" input + (at 135.89 93.98 180) + (uuid "6e7baf1b-d392-4a03-86fd-99d5296806c6") + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (pin "SNS_BATT_CONN" input + (at 135.89 90.17 180) + (uuid "500ca1c3-faf6-4b24-9ffc-687c7734b4ef") + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (instances + (project "keyboard_controller" + (path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/b142b31d-ecee-4339-a207-bc1b4c6ffd39" + (page "13") + ) + ) + ) + ) +) diff --git a/Hardware/keyboard_controller/testbench/battery_control.wbk b/Hardware/keyboard_controller/testbench/battery_control.wbk new file mode 100644 index 0000000..5c8ca64 --- /dev/null +++ b/Hardware/keyboard_controller/testbench/battery_control.wbk @@ -0,0 +1,33 @@ +{ + "last_sch_text_sim_command": "", + "tabs": [ + { + "analysis": "TRAN", + "commands": [ + ".tran 10m 80m 0", + ".kicad adjustpaths", + ".save all", + ".probe alli", + ".probe allp" + ], + "dottedSecondary": true, + "margins": { + "bottom": 45, + "left": 70, + "right": 70, + "top": 30 + }, + "measurements": [], + "showGrid": true, + "traces": [ + { + "color": "rgb(228, 26, 28)", + "signal": "V(/Battery_Control_Testbench/BATT_BOOST_EN)", + "trace_type": 257 + } + ] + } + ], + "user_defined_signals": [], + "version": 6 +}