keyboard interface #1

Closed
sirlilpanda wants to merge 10 commits from keyboard_interface into main
Showing only changes of commit 6be601b13e - Show all commits

View File

@@ -1172,202 +1172,6 @@
) )
(embedded_fonts no) (embedded_fonts no)
) )
(symbol "Device:Q_PNP"
(pin_numbers
(hide yes)
)
(pin_names
(offset 0)
(hide yes)
)
(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" "Q_PNP"
(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" "~"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "PNP bipolar junction transistor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_keywords" "BJT"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "Q_PNP_0_1"
(polyline
(pts
(xy -2.54 0) (xy 0.635 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 1.905) (xy 0.635 -1.905)
)
(stroke
(width 0.508)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 0.635) (xy 2.54 2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 -0.635) (xy 2.54 -2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(circle
(center 1.27 0)
(radius 2.8194)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 2.286 -1.778) (xy 1.778 -2.286) (xy 1.27 -1.27) (xy 2.286 -1.778)
)
(stroke
(width 0)
(type default)
)
(fill
(type outline)
)
)
)
(symbol "Q_PNP_1_1"
(pin input line
(at -5.08 0 0)
(length 2.54)
(name "B"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "B"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 2.54 5.08 270)
(length 2.54)
(name "C"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "C"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 2.54 -5.08 90)
(length 2.54)
(name "E"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "E"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "Device:R" (symbol "Device:R"
(pin_numbers (pin_numbers
(hide yes) (hide yes)
@@ -2663,6 +2467,272 @@
) )
(embedded_fonts no) (embedded_fonts no)
) )
(symbol "Transistor_BJT:BC857BS"
(pin_names
(offset 0)
(hide yes)
)
(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" "BC857BS"
(at 5.08 -1.27 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6"
(at 5.08 2.54 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_locked" ""
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
)
)
(property "ki_keywords" "PNP/PNP Transistor"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "ki_fp_filters" "SOT?363*"
(at 0 0 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(symbol "BC857BS_0_1"
(polyline
(pts
(xy 0.635 1.905) (xy 0.635 -1.905)
)
(stroke
(width 0.508)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 0.635) (xy 2.54 2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 0) (xy -2.54 0)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 0.635 -0.635) (xy 2.54 -2.54)
)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
)
(circle
(center 1.27 0)
(radius 2.8194)
(stroke
(width 0.254)
(type default)
)
(fill
(type none)
)
)
(polyline
(pts
(xy 2.286 -1.778) (xy 1.778 -2.286) (xy 1.27 -1.27) (xy 2.286 -1.778)
)
(stroke
(width 0)
(type default)
)
(fill
(type outline)
)
)
)
(symbol "BC857BS_1_1"
(pin input line
(at -5.08 0 0)
(length 2.54)
(name "B1"
(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 "C1"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "6"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 2.54 -5.08 90)
(length 2.54)
(name "E1"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(symbol "BC857BS_2_1"
(pin input line
(at -5.08 0 0)
(length 2.54)
(name "B2"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "5"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 2.54 5.08 270)
(length 2.54)
(name "C2"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "3"
(effects
(font
(size 1.27 1.27)
)
)
)
)
(pin passive line
(at 2.54 -5.08 90)
(length 2.54)
(name "E2"
(effects
(font
(size 1.27 1.27)
)
)
)
(number "4"
(effects
(font
(size 1.27 1.27)
)
)
)
)
)
(embedded_fonts no)
)
(symbol "power:GND" (symbol "power:GND"
(power) (power)
(pin_numbers (pin_numbers
@@ -3025,9 +3095,9 @@
) )
(uuid "1f11ea80-bc78-4104-b636-6060082bf86a") (uuid "1f11ea80-bc78-4104-b636-6060082bf86a")
) )
(text "Ideal diode\nRequires well matched BJTs" (text "Ideal diode\nRequires well matched BJTs\n\nAlternative: DMMT5401, BC857B is cheaper\n\nNotes on blog https://www.microfarad.de/blog/the-ideal-diode/\nare pertinent wrt soft startup. May be fixable with gate drive?"
(exclude_from_sim no) (exclude_from_sim no)
(at 373.38 108.966 0) (at 373.38 111.76 0)
(effects (effects
(font (font
(size 1.27 1.27) (size 1.27 1.27)
@@ -3049,7 +3119,7 @@
) )
(uuid "e4df4b10-3a26-45db-aebe-067feec72cbe") (uuid "e4df4b10-3a26-45db-aebe-067feec72cbe")
) )
(text "On resistance of FET controls current threshold. \nShould be 25 mOhm. DW01 suggested" (text "On resistance of FET controls current threshold. \nShould be 25 mOhm. DW01 suggested\n\nBody diode direction is important! Think about it!"
(exclude_from_sim no) (exclude_from_sim no)
(at 145.034 115.316 0) (at 145.034 115.316 0)
(effects (effects
@@ -6595,6 +6665,88 @@
) )
) )
) )
(symbol
(lib_id "Transistor_BJT:BC857BS")
(at 381 82.55 0)
(mirror x)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(uuid "0ce9d3ed-dfc7-4256-8214-ec20725ebcf6")
(property "Reference" "Q7"
(at 386.08 83.8201 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "BC857BS"
(at 386.08 81.2801 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6"
(at 386.08 85.09 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf"
(at 381 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363"
(at 381 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "5"
(uuid "cc4d2c0f-e378-4089-9d3f-63c9d0bb909c")
)
(pin "1"
(uuid "a2f5bc86-f1e4-4f76-80df-73ef190f91bb")
)
(pin "4"
(uuid "be56ff6c-89dd-4fc0-83cf-02110388a387")
)
(pin "6"
(uuid "3b935a5e-2115-4c9e-8ae2-69220540728f")
)
(pin "2"
(uuid "a2383228-7ae3-4bf0-86a9-aadcdb40dade")
)
(pin "3"
(uuid "9e0866fd-6c89-44ec-9e6a-71112a305f9b")
)
(instances
(project ""
(path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5"
(reference "Q7")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "Device:C") (lib_id "Device:C")
(at 342.9 77.47 0) (at 342.9 77.47 0)
@@ -6684,7 +6836,7 @@
(justify left) (justify left)
) )
) )
(property "Value" "R" (property "Value" "10k"
(at 363.22 95.2499 0) (at 363.22 95.2499 0)
(effects (effects
(font (font
@@ -8180,79 +8332,6 @@
) )
) )
) )
(symbol
(lib_id "Device:Q_PNP")
(at 363.22 82.55 180)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "706ff612-8165-40c1-bef0-c5da910b042e")
(property "Reference" "Q7"
(at 358.14 81.2799 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "Q_PNP"
(at 358.14 83.8199 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" ""
(at 358.14 85.09 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 363.22 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "PNP bipolar junction transistor"
(at 363.22 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "B"
(uuid "a1e54199-4ea9-4aa8-9ef3-043d025c05cf")
)
(pin "E"
(uuid "8e9d603b-6fca-4469-9470-c7dc35f17379")
)
(pin "C"
(uuid "6cb230d1-123c-453d-9483-3fe7d15c01f4")
)
(instances
(project ""
(path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5"
(reference "Q7")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "Device:R") (lib_id "Device:R")
(at 313.69 82.55 0) (at 313.69 82.55 0)
@@ -8734,7 +8813,7 @@
(justify left) (justify left)
) )
) )
(property "Value" "R" (property "Value" "10k"
(at 386.08 95.2499 0) (at 386.08 95.2499 0)
(effects (effects
(font (font
@@ -9377,6 +9456,88 @@
) )
) )
) )
(symbol
(lib_id "Transistor_BJT:BC857BS")
(at 363.22 82.55 180)
(unit 2)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(fields_autoplaced yes)
(uuid "b7455ea3-dad8-475a-9eec-5cc555544111")
(property "Reference" "Q7"
(at 358.14 81.2799 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "BC857BS"
(at 358.14 83.8199 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-363_SC-70-6"
(at 358.14 85.09 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "https://assets.nexperia.com/documents/data-sheet/BC857BS.pdf"
(at 363.22 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "100mA IC, 45V Vce, Dual PNP/PNP Transistors, SOT-363"
(at 363.22 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "5"
(uuid "cc4d2c0f-e378-4089-9d3f-63c9d0bb909c")
)
(pin "1"
(uuid "a2f5bc86-f1e4-4f76-80df-73ef190f91bb")
)
(pin "4"
(uuid "be56ff6c-89dd-4fc0-83cf-02110388a387")
)
(pin "6"
(uuid "3b935a5e-2115-4c9e-8ae2-69220540728f")
)
(pin "2"
(uuid "a2383228-7ae3-4bf0-86a9-aadcdb40dade")
)
(pin "3"
(uuid "9e0866fd-6c89-44ec-9e6a-71112a305f9b")
)
(instances
(project ""
(path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5"
(reference "Q7")
(unit 2)
)
)
)
)
(symbol (symbol
(lib_id "Device:R") (lib_id "Device:R")
(at 100.33 91.44 0) (at 100.33 91.44 0)
@@ -9955,79 +10116,6 @@
) )
) )
) )
(symbol
(lib_id "Device:Q_PNP")
(at 381 82.55 0)
(mirror x)
(unit 1)
(exclude_from_sim no)
(in_bom yes)
(on_board yes)
(dnp no)
(uuid "e1720a70-14d5-4334-8a05-5041395ac155")
(property "Reference" "Q8"
(at 386.08 81.2799 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Value" "Q_PNP"
(at 386.08 83.8199 0)
(effects
(font
(size 1.27 1.27)
)
(justify left)
)
)
(property "Footprint" ""
(at 386.08 85.09 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Datasheet" "~"
(at 381 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "Description" "PNP bipolar junction transistor"
(at 381 82.55 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(pin "B"
(uuid "826b48fe-b0d9-4a1f-a730-771211520aca")
)
(pin "E"
(uuid "2ae882c0-628a-48cf-8959-8f5bc7ba7c62")
)
(pin "C"
(uuid "70f47b23-d885-49ec-a0f2-c1ca4d73367d")
)
(instances
(project "keyboard_controller"
(path "/b230ff6d-d62b-4e9b-b4a9-a03792e35fdd/596f4890-a5ff-4776-a61d-272e3bcbcdd5"
(reference "Q8")
(unit 1)
)
)
)
)
(symbol (symbol
(lib_id "power:GND") (lib_id "power:GND")
(at 317.5 196.85 0) (at 317.5 196.85 0)