diff --git a/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.json b/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.json new file mode 100644 index 0000000..73a6ad4 --- /dev/null +++ b/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.json @@ -0,0 +1,5 @@ +{ +"description": "", +"keywords": "", +"fields": {} +} \ No newline at end of file diff --git a/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.kicad_sch b/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.kicad_sch new file mode 100644 index 0000000..2f82e10 --- /dev/null +++ b/my_additions.kicad_blocks/Level shifter.kicad_block/Level shifter.kicad_sch @@ -0,0 +1,1208 @@ +(kicad_sch + (version 20250114) + (generator "eeschema") + (generator_version "9.0") + (uuid "a17ef04e-1639-4c65-943b-35854bb607b5") + (paper "A4") + (lib_symbols + (symbol "Device:R_Small" + (pin_numbers + (hide yes) + ) + (pin_names + (offset 0.254) + (hide yes) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "R" + (at 0 0 90) + (effects + (font + (size 1.016 1.016) + ) + ) + ) + (property "Value" "R_Small" + (at 1.778 0 90) + (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" "Resistor, small symbol" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "R 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_Small_0_1" + (rectangle + (start -0.762 1.778) + (end 0.762 -1.778) + (stroke + (width 0.2032) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "R_Small_1_1" + (pin passive line + (at 0 2.54 270) + (length 0.762) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 0 -2.54 90) + (length 0.762) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + (symbol "Transistor_FET:AO3400A" + (pin_names + (offset 0) + (hide yes) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "Q" + (at 5.08 1.905 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "AO3400A" + (at 5.08 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "Package_TO_SOT_SMD:SOT-23" + (at 5.08 -1.905 0) + (effects + (font + (size 1.27 1.27) + (italic yes) + ) + (justify left) + (hide yes) + ) + ) + (property "Datasheet" "http://www.aosmd.com/pdfs/datasheet/AO3400A.pdf" + (at 5.08 -3.81 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Description" "30V Vds, 5.7A Id, N-Channel MOSFET, SOT-23" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "N-Channel MOSFET" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "SOT?23*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "AO3400A_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.921 0.381) (xy 3.683 0.381) + ) + (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 "AO3400A_1_1" + (pin input line + (at -5.08 0 0) + (length 2.54) + (name "G" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (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 "3" + (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 "2" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + (symbol "power:+3V3" + (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 -3.81 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "+3V3" + (at 0 3.556 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 \"+3V3\"" + (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 "+3V3_0_1" + (polyline + (pts + (xy -0.762 1.27) (xy 0 2.54) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 2.54) (xy 0.762 1.27) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 0) (xy 0 2.54) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "+3V3_1_1" + (pin power_in line + (at 0 0 90) + (length 0) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + (symbol "power:+5V" + (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 -3.81 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "+5V" + (at 0 3.556 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 \"+5V\"" + (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 "+5V_0_1" + (polyline + (pts + (xy -0.762 1.27) (xy 0 2.54) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 2.54) (xy 0.762 1.27) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 0) (xy 0 2.54) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "+5V_1_1" + (pin power_in line + (at 0 0 90) + (length 0) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (embedded_fonts no) + ) + ) + (text "LV1 LOW -> Q1 on, HV1 driven low\nLV1 HIGHG -> Q1 off, HV1 pulled up by R2\nHV1 LOW -> diode conducts, Q1 turns on, LV1 pulled low\nHV1 HIGH -> LV1 pulled high by R1" + (exclude_from_sim no) + (at 176.9 126.1 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "83a07e98-8fed-4e2e-a226-e694645c11b2") + ) + (junction + (at 191.135 115.57) + (diameter 0) + (color 0 0 0 0) + (uuid "3193e3b1-0ca0-4873-9ed2-a282d9c170f9") + ) + (junction + (at 202.565 115.57) + (diameter 0) + (color 0 0 0 0) + (uuid "682d1ecb-7afa-4dcb-af9d-ba59a1fb14a2") + ) + (junction + (at 191.135 107.315) + (diameter 0) + (color 0 0 0 0) + (uuid "c5b27978-2120-488d-997a-9e7ff7842172") + ) + (wire + (pts + (xy 191.135 107.315) (xy 191.135 109.22) + ) + (stroke + (width 0) + (type default) + ) + (uuid "2ee0620a-c6c9-47ce-97a7-5640561450db") + ) + (wire + (pts + (xy 196.85 107.315) (xy 191.135 107.315) + ) + (stroke + (width 0) + (type default) + ) + (uuid "311cc9f9-8e69-42b9-9431-5b761bd36ce9") + ) + (wire + (pts + (xy 191.135 115.57) (xy 191.77 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "4369e058-b9a6-46ee-b180-75314f9c644b") + ) + (wire + (pts + (xy 196.85 107.95) (xy 196.85 107.315) + ) + (stroke + (width 0) + (type default) + ) + (uuid "508fa741-cce3-4682-bf3d-810737b589f0") + ) + (wire + (pts + (xy 202.565 115.57) (xy 203.835 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "72ae9fad-4427-4b87-b8e1-d827a3d0dba1") + ) + (wire + (pts + (xy 202.565 105.41) (xy 202.565 109.22) + ) + (stroke + (width 0) + (type default) + ) + (uuid "828c929d-21eb-44c4-bc58-27fd189d39f3") + ) + (wire + (pts + (xy 201.93 115.57) (xy 202.565 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "a858b27d-2a74-4e8f-957c-c7974e3b5deb") + ) + (wire + (pts + (xy 191.135 114.3) (xy 191.135 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "c64d39b5-c0a1-45fb-878f-4dc632b4dd6c") + ) + (wire + (pts + (xy 202.565 114.3) (xy 202.565 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "cb81b887-27a4-4d92-8d73-cd5f128b9077") + ) + (wire + (pts + (xy 191.135 105.41) (xy 191.135 107.315) + ) + (stroke + (width 0) + (type default) + ) + (uuid "ea27cc02-ceec-4d37-8bd8-03ca12f65155") + ) + (wire + (pts + (xy 189.865 115.57) (xy 191.135 115.57) + ) + (stroke + (width 0) + (type default) + ) + (uuid "f2dde7df-0837-48f8-ad18-85a4bd3494ab") + ) + (global_label "HV1" + (shape bidirectional) + (at 203.835 115.57 0) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + (uuid "33ba95be-be0e-4f0a-96dc-a5df1604ddbb") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 211.5601 115.57 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + ) + (global_label "LV1" + (shape bidirectional) + (at 189.865 115.57 180) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + (uuid "34b75a55-4e76-4a1b-9401-ca577239e726") + (property "Intersheetrefs" "${INTERSHEET_REFS}" + (at 182.4423 115.57 0) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + (hide yes) + ) + ) + ) + (symbol + (lib_id "Device:R_Small") + (at 202.565 111.76 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "1fffaeb0-62e6-418c-9e4a-7e2bc6091f96") + (property "Reference" "R2" + (at 203.36 110.895 0) + (effects + (font + (size 1.016 1.016) + ) + (justify left) + ) + ) + (property "Value" "10k" + (at 203.36 112.495 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 202.565 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 202.565 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor, small symbol" + (at 202.565 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "bdb4372c-7da6-4bec-a4cf-3b913cd4113e") + ) + (pin "2" + (uuid "cec09789-dc1c-476a-bc5c-e58f909046b5") + ) + (instances + (project "temp-work" + (path "/181f934e-c1d2-4ab3-a476-5b5eae0f4b38" + (reference "R2") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Transistor_FET:AO3400A") + (at 196.85 113.03 270) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "38c54f0d-021e-4bd1-84a5-22d7d68e6fd4") + (property "Reference" "Q1" + (at 196.9 118.6 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "AO3400A" + (at 196.8 120.5 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "Package_TO_SOT_SMD:SOT-23" + (at 194.945 118.11 0) + (effects + (font + (size 1.27 1.27) + (italic yes) + ) + (justify left) + (hide yes) + ) + ) + (property "Datasheet" "http://www.aosmd.com/pdfs/datasheet/AO3400A.pdf" + (at 193.04 118.11 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Description" "30V Vds, 5.7A Id, N-Channel MOSFET, SOT-23" + (at 196.85 113.03 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "627b9c4f-5b6f-4e5d-a9ef-8e47b7538035") + ) + (pin "2" + (uuid "b8438567-b3c6-4b33-9974-bf88fcca4a8a") + ) + (pin "3" + (uuid "d150e066-b69f-4082-a8f7-5cc269ff7665") + ) + (instances + (project "" + (path "/181f934e-c1d2-4ab3-a476-5b5eae0f4b38" + (reference "Q1") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:+3V3") + (at 191.135 105.41 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "b674a486-b5ba-4da4-98fc-51fd47c284c3") + (property "Reference" "#PWR05" + (at 191.135 109.22 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "+3V3" + (at 191.1 101.9 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 191.135 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 191.135 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"+3V3\"" + (at 191.135 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "53229937-19f2-4fcd-9733-c78a990821a5") + ) + (instances + (project "" + (path "/181f934e-c1d2-4ab3-a476-5b5eae0f4b38" + (reference "#PWR05") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:+5V") + (at 202.565 105.41 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "c74a3d81-72f2-4c0b-9a68-a01afff17579") + (property "Reference" "#PWR06" + (at 202.565 109.22 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "+5V" + (at 202.6 101.8 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 202.565 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "" + (at 202.565 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Power symbol creates a global label with name \"+5V\"" + (at 202.565 105.41 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "c2d9d503-f617-4e70-89b6-f0c573170337") + ) + (instances + (project "" + (path "/181f934e-c1d2-4ab3-a476-5b5eae0f4b38" + (reference "#PWR06") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:R_Small") + (at 191.135 111.76 0) + (mirror y) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "cedf9127-c495-4e36-99f1-aad8b00ebc26") + (property "Reference" "R1" + (at 190.34 110.895 0) + (effects + (font + (size 1.016 1.016) + ) + (justify left) + ) + ) + (property "Value" "10k" + (at 190.34 112.495 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 191.135 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 191.135 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor, small symbol" + (at 191.135 111.76 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "fe09e93c-5420-4859-bca5-438f8a528ab4") + ) + (pin "2" + (uuid "0aa1dc24-9689-46d6-a849-645a9234b6a3") + ) + (instances + (project "temp-work" + (path "/181f934e-c1d2-4ab3-a476-5b5eae0f4b38" + (reference "R1") + (unit 1) + ) + ) + ) + ) +)