(kicad_sch (version 20211123) (generator eeschema)
  (paper "A4")
  (lib_symbols
    (symbol "Connector:Conn_01x02_Female" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "J" (id 0) (at 0 2.54 0))
      (property "Value" "Conn_01x02_Female" (id 1) (at 0 -5.08 0))
      (property "Footprint" "" (id 2) (at 0 0 0))
      (property "Datasheet" "~" (id 3) (at 0 0 0))
      (property "ki_keywords" "connector" (id 4) (at 0 0 0))
      (property "ki_description" "Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "Connector*:*_1x??_*" (id 6) (at 0 0 0))
      (symbol "Conn_01x02_Female_1_1"
        (arc (start 0 -2.032) (mid -0.508 -2.54) (end 0 -3.048)
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.27 -2.54)
            (xy -0.508 -2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.27 0)
            (xy -0.508 0)
          )
          (fill (type none))
        )
        (arc (start 0 0.508) (mid -0.508 0) (end 0 -0.508)
          (fill (type none))
        )
        (pin passive line (at -5.08 0 0) (length 3.81)
          (name "Pin_1")
          (number "1")
        )
        (pin passive line (at -5.08 -2.54 0) (length 3.81)
          (name "Pin_2")
          (number "2")
        )
      )
    )
    (symbol "Device:D" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "D" (id 0) (at 0 2.54 0))
      (property "Value" "D" (id 1) (at 0 -2.54 0))
      (property "Footprint" "" (id 2) (at 0 0 0))
      (property "Datasheet" "~" (id 3) (at 0 0 0))
      (property "ki_keywords" "diode" (id 4) (at 0 0 0))
      (property "ki_description" "Diode" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "TO-???* *_Diode_* *SingleDiode* D_*" (id 6) (at 0 0 0))
      (symbol "D_0_1"
        (polyline
          (pts
            (xy -1.27 1.27)
            (xy -1.27 -1.27)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 0)
            (xy -1.27 0)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 1.27)
            (xy 1.27 -1.27)
            (xy -1.27 0)
            (xy 1.27 1.27)
          )
          (fill (type none))
        )
      )
      (symbol "D_1_1"
        (pin passive line (at -3.81 0 0) (length 2.54)
          (name "K")
          (number "1")
        )
        (pin passive line (at 3.81 0 180) (length 2.54)
          (name "A")
          (number "2")
        )
      )
    )
    (symbol "Device:Q_PMOS_GDS" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "Q" (id 0) (at 5.08 1.27 0))
      (property "Value" "Q_PMOS_GDS" (id 1) (at 5.08 -1.27 0))
      (property "Footprint" "" (id 2) (at 5.08 2.54 0))
      (property "Datasheet" "~" (id 3) (at 0 0 0))
      (property "ki_keywords" "transistor PMOS P-MOS P-MOSFET" (id 4) (at 0 0 0))
      (property "ki_description" "P-MOSFET transistor, gate/drain/source" (id 5) (at 0 0 0))
      (symbol "Q_PMOS_GDS_0_1"
        (polyline
          (pts
            (xy 0.254 0)
            (xy -2.54 0)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.254 1.905)
            (xy 0.254 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.762 -1.27)
            (xy 0.762 -2.286)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.762 0.508)
            (xy 0.762 -0.508)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.762 2.286)
            (xy 0.762 1.27)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 2.54)
            (xy 2.54 1.778)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 -2.54)
            (xy 2.54 0)
            (xy 0.762 0)
          )
          (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)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.286 0)
            (xy 1.27 0.381)
            (xy 1.27 -0.381)
            (xy 2.286 0)
          )
          (fill (type outline))
        )
        (polyline
          (pts
            (xy 2.794 -0.508)
            (xy 2.921 -0.381)
            (xy 3.683 -0.381)
            (xy 3.81 -0.254)
          )
          (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)
          )
          (fill (type none))
        )
        (circle (center 1.651 0) (radius 2.794)
          (fill (type none))
        )
        (circle (center 2.54 -1.778) (radius 0.254)
          (fill (type outline))
        )
        (circle (center 2.54 1.778) (radius 0.254)
          (fill (type outline))
        )
      )
      (symbol "Q_PMOS_GDS_1_1"
        (pin input line (at -5.08 0 0) (length 2.54)
          (name "G")
          (number "1")
        )
        (pin passive line (at 2.54 5.08 270) (length 2.54)
          (name "D")
          (number "2")
        )
        (pin passive line (at 2.54 -5.08 90) (length 2.54)
          (name "S")
          (number "3")
        )
      )
    )
    (symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "R" (id 0) (at 2.032 0 90))
      (property "Value" "R" (id 1) (at 0 0 90))
      (property "Footprint" "" (id 2) (at -1.778 0 90))
      (property "Datasheet" "~" (id 3) (at 0 0 0))
      (property "ki_keywords" "R res resistor" (id 4) (at 0 0 0))
      (property "ki_description" "Resistor" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "R_*" (id 6) (at 0 0 0))
      (symbol "R_0_1"
        (rectangle (start -1.016 -2.54) (end 1.016 2.54)
          (fill (type none))
        )
      )
      (symbol "R_1_1"
        (pin passive line (at 0 3.81 270) (length 1.27)
          (name "~")
          (number "1")
        )
        (pin passive line (at 0 -3.81 90) (length 1.27)
          (name "~")
          (number "2")
        )
      )
    )
    (symbol "Isolator:PC817" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
      (property "Reference" "U" (id 0) (at -5.08 5.08 0))
      (property "Value" "PC817" (id 1) (at 0 5.08 0))
      (property "Footprint" "Package_DIP:DIP-4_W7.62mm" (id 2) (at -5.08 -5.08 0))
      (property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" (id 3) (at 0 0 0))
      (property "ki_keywords" "NPN DC Optocoupler" (id 4) (at 0 0 0))
      (property "ki_description" "DC Optocoupler, Vce 35V, CTR 50-300%, DIP-4" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "DIP*W7.62mm*" (id 6) (at 0 0 0))
      (symbol "PC817_0_1"
        (rectangle (start -5.08 3.81) (end 5.08 -3.81)
          (fill (type background))
        )
        (polyline
          (pts
            (xy -3.175 -0.635)
            (xy -1.905 -0.635)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 0.635)
            (xy 4.445 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 4.445 -2.54)
            (xy 2.54 -0.635)
          )
          (fill (type outline))
        )
        (polyline
          (pts
            (xy 4.445 -2.54)
            (xy 5.08 -2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 4.445 2.54)
            (xy 5.08 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -5.08 2.54)
            (xy -2.54 2.54)
            (xy -2.54 -0.635)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -2.54 -0.635)
            (xy -2.54 -2.54)
            (xy -5.08 -2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 1.905)
            (xy 2.54 -1.905)
            (xy 2.54 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -2.54 -0.635)
            (xy -3.175 0.635)
            (xy -1.905 0.635)
            (xy -2.54 -0.635)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -0.508 -0.508)
            (xy 0.762 -0.508)
            (xy 0.381 -0.635)
            (xy 0.381 -0.381)
            (xy 0.762 -0.508)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -0.508 0.508)
            (xy 0.762 0.508)
            (xy 0.381 0.381)
            (xy 0.381 0.635)
            (xy 0.762 0.508)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 3.048 -1.651)
            (xy 3.556 -1.143)
            (xy 4.064 -2.159)
            (xy 3.048 -1.651)
            (xy 3.048 -1.651)
          )
          (fill (type outline))
        )
      )
      (symbol "PC817_1_1"
        (pin passive line (at -7.62 2.54 0) (length 2.54)
          (name "~")
          (number "1")
        )
        (pin passive line (at -7.62 -2.54 0) (length 2.54)
          (name "~")
          (number "2")
        )
        (pin passive line (at 7.62 -2.54 180) (length 2.54)
          (name "~")
          (number "3")
        )
        (pin passive line (at 7.62 2.54 180) (length 2.54)
          (name "~")
          (number "4")
        )
      )
    )
    (symbol "power:+12V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "#PWR" (id 0) (at 0 -3.81 0))
      (property "Value" "+12V" (id 1) (at 0 3.556 0))
      (property "Footprint" "" (id 2) (at 0 0 0))
      (property "Datasheet" "" (id 3) (at 0 0 0))
      (property "ki_keywords" "global power" (id 4) (at 0 0 0))
      (property "ki_description" "Power symbol creates a global label with name \"+12V\"" (id 5) (at 0 0 0))
      (symbol "+12V_0_1"
        (polyline
          (pts
            (xy -0.762 1.27)
            (xy 0 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 0)
            (xy 0 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 2.54)
            (xy 0.762 1.27)
          )
          (fill (type none))
        )
      )
      (symbol "+12V_1_1"
        (pin power_in line (at 0 0 90) (length 0) hide
          (name "+12V")
          (number "1")
        )
      )
    )
    (symbol "power:GND" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "#PWR" (id 0) (at 0 -6.35 0))
      (property "Value" "GND" (id 1) (at 0 -3.81 0))
      (property "Footprint" "" (id 2) (at 0 0 0))
      (property "Datasheet" "" (id 3) (at 0 0 0))
      (property "ki_keywords" "global power" (id 4) (at 0 0 0))
      (property "ki_description" "Power symbol creates a global label with name \"GND\" , ground" (id 5) (at 0 0 0))
      (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)
          )
          (fill (type none))
        )
      )
      (symbol "GND_1_1"
        (pin power_in line (at 0 0 270) (length 0) hide
          (name "GND")
          (number "1")
        )
      )
    )
  )
  (junction (at 106.68 92.71) (diameter 0) (color 0 0 0 0))
  (junction (at 99.06 72.39) (diameter 0) (color 0 0 0 0))
  (junction (at 106.68 81.28) (diameter 0) (color 0 0 0 0))
  (junction (at 106.68 55.88) (diameter 0) (color 0 0 0 0))
  (wire (pts (xy 58.42 86.36) (xy 76.2 86.36)))
  (wire (pts (xy 119.38 92.71) (xy 106.68 92.71)))
  (wire (pts (xy 121.92 88.9) (xy 119.38 88.9)))
  (wire (pts (xy 106.68 81.28) (xy 106.68 82.55)))
  (wire (pts (xy 106.68 52.07) (xy 106.68 55.88)))
  (wire (pts (xy 119.38 81.28) (xy 106.68 81.28)))
  (wire (pts (xy 91.44 86.36) (xy 99.06 86.36)))
  (wire (pts (xy 62.23 83.82) (xy 62.23 81.28)))
  (wire (pts (xy 73.66 81.28) (xy 76.2 81.28)))
  (wire (pts (xy 99.06 62.23) (xy 99.06 55.88)))
  (wire (pts (xy 99.06 69.85) (xy 99.06 72.39)))
  (wire (pts (xy 106.68 92.71) (xy 106.68 95.25)))
  (wire (pts (xy 58.42 83.82) (xy 62.23 83.82)))
  (wire (pts (xy 62.23 81.28) (xy 66.04 81.28)))
  (wire (pts (xy 119.38 88.9) (xy 119.38 92.71)))
  (wire (pts (xy 99.06 72.39) (xy 99.06 81.28)))
  (wire (pts (xy 106.68 55.88) (xy 106.68 67.31)))
  (wire (pts (xy 99.06 55.88) (xy 106.68 55.88)))
  (wire (pts (xy 119.38 86.36) (xy 119.38 81.28)))
  (wire (pts (xy 121.92 86.36) (xy 119.38 86.36)))
  (wire (pts (xy 99.06 92.71) (xy 106.68 92.71)))
  (wire (pts (xy 106.68 90.17) (xy 106.68 92.71)))
  (wire (pts (xy 99.06 86.36) (xy 99.06 92.71)))
  (wire (pts (xy 91.44 81.28) (xy 99.06 81.28)))
  (wire (pts (xy 106.68 77.47) (xy 106.68 81.28)))
  (symbol (lib_id "power:GND") (at 106.68 95.25 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "#PWR02" (id 0) (at 106.68 101.6 0))
    (property "Value" "GND" (id 1) (at 106.68 100.33 0))
    (property "Footprint" "" (id 2) (at 106.68 95.25 0))
    (property "Datasheet" "" (id 3) (at 106.68 95.25 0))
    (pin "1")
  )
  (symbol (lib_id "Device:D") (at 106.68 86.36 270) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "D1" (id 0) (at 109.22 85.0899 90))
    (property "Value" "1N5822" (id 1) (at 109.22 87.6299 90))
    (property "Footprint" "" (id 2) (at 106.68 86.36 0))
    (property "Datasheet" "~" (id 3) (at 106.68 86.36 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Connector:Conn_01x02_Female") (at 127 86.36 0) (unit 1)
    (in_bom yes) (on_board yes)
    (property "Reference" "J2" (id 0) (at 128.27 87.63 0))
    (property "Value" "Ausgang" (id 1) (at 125.73 82.55 0))
    (property "Footprint" "" (id 2) (at 127 86.36 0))
    (property "Datasheet" "~" (id 3) (at 127 86.36 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Connector:Conn_01x02_Female") (at 53.34 86.36 180) (unit 1)
    (in_bom yes) (on_board yes)
    (property "Reference" "J1" (id 0) (at 49.53 85.09 0))
    (property "Value" "Eingang" (id 1) (at 50.8 80.01 0))
    (property "Footprint" "" (id 2) (at 53.34 86.36 0))
    (property "Datasheet" "~" (id 3) (at 53.34 86.36 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Device:R") (at 99.06 66.04 0) (unit 1)
    (in_bom yes) (on_board yes)
    (property "Reference" "R2" (id 0) (at 92.71 63.5 0))
    (property "Value" "2,2kΩ" (id 1) (at 91.44 66.04 0))
    (property "Footprint" "" (id 2) (at 97.282 66.04 90))
    (property "Datasheet" "~" (id 3) (at 99.06 66.04 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Device:Q_PMOS_GDS") (at 104.14 72.39 0) (mirror x) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "Q1" (id 0) (at 110.49 71.1199 0))
    (property "Value" "IRFU9024" (id 1) (at 110.49 73.6599 0))
    (property "Footprint" "" (id 2) (at 109.22 74.93 0))
    (property "Datasheet" "~" (id 3) (at 104.14 72.39 0))
    (pin "1")
    (pin "2")
    (pin "3")
  )
  (symbol (lib_id "Isolator:PC817") (at 83.82 83.82 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "U1" (id 0) (at 83.82 74.93 0))
    (property "Value" "PC817" (id 1) (at 83.82 77.47 0))
    (property "Footprint" "Package_DIP:DIP-4_W7.62mm" (id 2) (at 78.74 88.9 0))
    (property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" (id 3) (at 83.82 83.82 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
  )
  (symbol (lib_id "Device:R") (at 69.85 81.28 90) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "R1" (id 0) (at 69.85 74.93 90))
    (property "Value" "220Ω" (id 1) (at 69.85 77.47 90))
    (property "Footprint" "" (id 2) (at 69.85 83.058 90))
    (property "Datasheet" "~" (id 3) (at 69.85 81.28 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "power:+12V") (at 106.68 52.07 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "#PWR01" (id 0) (at 106.68 55.88 0))
    (property "Value" "+12V" (id 1) (at 106.68 46.99 0))
    (property "Footprint" "" (id 2) (at 106.68 52.07 0))
    (property "Datasheet" "" (id 3) (at 106.68 52.07 0))
    (pin "1")
  )
  (sheet_instances
    (path (page "1"))
  )
  (symbol_instances
    (path
      (reference "#PWR01") (unit 1) (value "+12V") (footprint "")
    )
    (path
      (reference "#PWR02") (unit 1) (value "GND") (footprint "")
    )
    (path
      (reference "D1") (unit 1) (value "1N5822") (footprint "")
    )
    (path
      (reference "J1") (unit 1) (value "Eingang") (footprint "")
    )
    (path
      (reference "J2") (unit 1) (value "Ausgang") (footprint "")
    )
    (path
      (reference "Q1") (unit 1) (value "IRFU9024") (footprint "")
    )
    (path
      (reference "R1") (unit 1) (value "220Ω") (footprint "")
    )
    (path
      (reference "R2") (unit 1) (value "2,2kΩ") (footprint "")
    )
    (path
      (reference "U1") (unit 1) (value "PC817") (footprint "Package_DIP:DIP-4_W7.62mm")
    )
  )
)
