(kicad_sch (version 20211123) (generator eeschema)
  (paper "A4")
  (lib_symbols
    (symbol "Connector:Conn_01x04_Female" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "J" (id 0) (at 0 5.08 0))
      (property "Value" "Conn_01x04_Female" (id 1) (at 0 -7.62 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, 01x04, 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_01x04_Female_1_1"
        (arc (start 0 -4.572) (mid -0.508 -5.08) (end 0 -5.588)
          (fill (type none))
        )
        (arc (start 0 -2.032) (mid -0.508 -2.54) (end 0 -3.048)
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.27 -5.08)
            (xy -0.508 -5.08)
          )
          (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))
        )
        (polyline
          (pts
            (xy -1.27 2.54)
            (xy -0.508 2.54)
          )
          (fill (type none))
        )
        (arc (start 0 0.508) (mid -0.508 0) (end 0 -0.508)
          (fill (type none))
        )
        (arc (start 0 3.048) (mid -0.508 2.54) (end 0 2.032)
          (fill (type none))
        )
        (pin passive line (at -5.08 2.54 0) (length 3.81)
          (name "Pin_1")
          (number "1")
        )
        (pin passive line (at -5.08 0 0) (length 3.81)
          (name "Pin_2")
          (number "2")
        )
        (pin passive line (at -5.08 -2.54 0) (length 3.81)
          (name "Pin_3")
          (number "3")
        )
        (pin passive line (at -5.08 -5.08 0) (length 3.81)
          (name "Pin_4")
          (number "4")
        )
      )
    )
    (symbol "Device:LED" (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" "LED" (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" "LED diode" (id 4) (at 0 0 0))
      (property "ki_description" "Light emitting diode" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*" (id 6) (at 0 0 0))
      (symbol "LED_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))
        )
        (polyline
          (pts
            (xy -3.048 -0.762)
            (xy -4.572 -2.286)
            (xy -3.81 -2.286)
            (xy -4.572 -2.286)
            (xy -4.572 -1.524)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.778 -0.762)
            (xy -3.302 -2.286)
            (xy -2.54 -2.286)
            (xy -3.302 -2.286)
            (xy -3.302 -1.524)
          )
          (fill (type none))
        )
      )
      (symbol "LED_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:R_Pack04" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "RN" (id 0) (at -7.62 0 90))
      (property "Value" "R_Pack04" (id 1) (at 5.08 0 90))
      (property "Footprint" "" (id 2) (at 6.985 0 90))
      (property "Datasheet" "~" (id 3) (at 0 0 0))
      (property "ki_keywords" "R network parallel topology isolated" (id 4) (at 0 0 0))
      (property "ki_description" "4 resistor network, parallel topology" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "DIP* SOIC* R*Array*Concave* R*Array*Convex*" (id 6) (at 0 0 0))
      (symbol "R_Pack04_0_1"
        (rectangle (start -6.35 -2.413) (end 3.81 2.413)
          (fill (type background))
        )
        (rectangle (start -5.715 1.905) (end -4.445 -1.905)
          (fill (type none))
        )
        (rectangle (start -3.175 1.905) (end -1.905 -1.905)
          (fill (type none))
        )
        (rectangle (start -0.635 1.905) (end 0.635 -1.905)
          (fill (type none))
        )
        (polyline
          (pts
            (xy -5.08 -2.54)
            (xy -5.08 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -5.08 1.905)
            (xy -5.08 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -2.54 -2.54)
            (xy -2.54 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -2.54 1.905)
            (xy -2.54 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 -2.54)
            (xy 0 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 1.905)
            (xy 0 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 -2.54)
            (xy 2.54 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 2.54 1.905)
            (xy 2.54 2.54)
          )
          (fill (type none))
        )
        (rectangle (start 1.905 1.905) (end 3.175 -1.905)
          (fill (type none))
        )
      )
      (symbol "R_Pack04_1_1"
        (pin passive line (at -5.08 -5.08 90) (length 2.54)
          (name "R1.1")
          (number "1")
        )
        (pin passive line (at -2.54 -5.08 90) (length 2.54)
          (name "R2.1")
          (number "2")
        )
        (pin passive line (at 0 -5.08 90) (length 2.54)
          (name "R3.1")
          (number "3")
        )
        (pin passive line (at 2.54 -5.08 90) (length 2.54)
          (name "R4.1")
          (number "4")
        )
        (pin passive line (at 2.54 5.08 270) (length 2.54)
          (name "R4.2")
          (number "5")
        )
        (pin passive line (at 0 5.08 270) (length 2.54)
          (name "R3.2")
          (number "6")
        )
        (pin passive line (at -2.54 5.08 270) (length 2.54)
          (name "R2.2")
          (number "7")
        )
        (pin passive line (at -5.08 5.08 270) (length 2.54)
          (name "R1.2")
          (number "8")
        )
      )
    )
    (symbol "Sensor_Optical:BPW40" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "Q" (id 0) (at 5.08 1.27 0))
      (property "Value" "BPW40" (id 1) (at 5.08 -1.27 0))
      (property "Footprint" "LED_THT:LED_D5.0mm_Clear" (id 2) (at 12.192 -3.556 0))
      (property "Datasheet" "https://www.rcscomponents.kiev.ua/datasheets/bpw40.pdf" (id 3) (at 0 0 0))
      (property "ki_keywords" "npn phototransistor" (id 4) (at 0 0 0))
      (property "ki_description" "Phototransistor NPN" (id 5) (at 0 0 0))
      (property "ki_fp_filters" "LED*D5.0mm*Clear*" (id 6) (at 0 0 0))
      (symbol "BPW40_0_1"
        (polyline
          (pts
            (xy -1.905 1.27)
            (xy -2.54 1.27)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.27 2.54)
            (xy -1.905 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 0.635)
            (xy 2.54 2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -3.81 3.175)
            (xy -1.905 1.27)
            (xy -1.905 1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy -3.175 4.445)
            (xy -1.27 2.54)
            (xy -1.27 3.175)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 -0.635)
            (xy 2.54 -2.54)
            (xy 2.54 -2.54)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 1.905)
            (xy 0.635 -1.905)
            (xy 0.635 -1.905)
          )
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 -1.778)
            (xy 1.778 -1.27)
            (xy 2.286 -2.286)
            (xy 1.27 -1.778)
            (xy 1.27 -1.778)
          )
          (fill (type outline))
        )
        (circle (center 1.27 0) (radius 2.8194)
          (fill (type none))
        )
      )
      (symbol "BPW40_1_1"
        (pin passive line (at 2.54 5.08 270) (length 2.54)
          (name "C")
          (number "1")
        )
        (pin passive line (at 2.54 -5.08 90) (length 2.54)
          (name "E")
          (number "2")
        )
      )
    )
  )
  (junction (at 36.83 36.83) (diameter 0) (color 0 0 0 0))
  (junction (at 48.26 49.53) (diameter 0) (color 0 0 0 0))
  (junction (at 64.77 22.86) (diameter 0) (color 0 0 0 0))
  (junction (at 43.18 48.26) (diameter 0) (color 0 0 0 0))
  (junction (at 36.83 48.26) (diameter 0) (color 0 0 0 0))
  (junction (at 31.75 38.1) (diameter 0) (color 0 0 0 0))
  (junction (at 50.8 49.53) (diameter 0) (color 0 0 0 0))
  (junction (at 29.21 35.56) (diameter 0) (color 0 0 0 0))
  (wire (pts (xy 45.72 38.1) (xy 45.72 35.56)))
  (wire (pts (xy 48.26 49.53) (xy 50.8 49.53)))
  (wire (pts (xy 48.26 33.02) (xy 46.99 33.02)))
  (wire (pts (xy 36.83 36.83) (xy 36.83 33.02)))
  (wire (pts (xy 36.83 36.83) (xy 54.61 36.83)))
  (wire (pts (xy 50.8 49.53) (xy 64.77 49.53)))
  (wire (pts (xy 49.53 22.86) (xy 49.53 30.48)))
  (wire (pts (xy 54.61 33.02) (xy 54.61 36.83)))
  (wire (pts (xy 38.1 22.86) (xy 29.21 22.86)))
  (wire (pts (xy 62.23 38.1) (xy 62.23 33.02)))
  (wire (pts (xy 31.75 30.48) (xy 31.75 38.1)))
  (wire (pts (xy 36.83 52.07) (xy 36.83 48.26)))
  (wire (pts (xy 29.21 35.56) (xy 45.72 35.56)))
  (wire (pts (xy 64.77 49.53) (xy 64.77 22.86)))
  (wire (pts (xy 48.26 17.78) (xy 48.26 22.86)))
  (wire (pts (xy 50.8 49.53) (xy 50.8 48.26)))
  (wire (pts (xy 53.34 22.86) (xy 49.53 22.86)))
  (wire (pts (xy 36.83 48.26) (xy 43.18 48.26)))
  (wire (pts (xy 36.83 33.02) (xy 39.37 33.02)))
  (wire (pts (xy 64.77 22.86) (xy 63.5 22.86)))
  (wire (pts (xy 36.83 48.26) (xy 36.83 36.83)))
  (wire (pts (xy 34.29 52.07) (xy 34.29 49.53)))
  (wire (pts (xy 43.18 48.26) (xy 45.72 48.26)))
  (wire (pts (xy 64.77 17.78) (xy 48.26 17.78)))
  (wire (pts (xy 48.26 48.26) (xy 48.26 49.53)))
  (wire (pts (xy 31.75 38.1) (xy 43.18 38.1)))
  (wire (pts (xy 34.29 49.53) (xy 48.26 49.53)))
  (wire (pts (xy 29.21 22.86) (xy 29.21 35.56)))
  (wire (pts (xy 64.77 22.86) (xy 64.77 17.78)))
  (wire (pts (xy 29.21 35.56) (xy 29.21 52.07)))
  (wire (pts (xy 50.8 38.1) (xy 62.23 38.1)))
  (wire (pts (xy 49.53 30.48) (xy 31.75 30.48)))
  (wire (pts (xy 31.75 38.1) (xy 31.75 52.07)))
  (wire (pts (xy 48.26 38.1) (xy 48.26 33.02)))
  (symbol (lib_id "Device:LED") (at 58.42 33.02 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "D?" (id 0) (at 56.8325 28.0502 0))
    (property "Value" "LED" (id 1) (at 56.8325 30.5871 0))
    (property "Footprint" "" (id 2) (at 58.42 33.02 0))
    (property "Datasheet" "~" (id 3) (at 58.42 33.02 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Device:R_Pack04") (at 48.26 43.18 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "RN?" (id 0) (at 52.832 42.3453 0))
    (property "Value" "" (id 1) (at 52.832 44.8822 0))
    (property "Footprint" "" (id 2) (at 55.245 43.18 90))
    (property "Datasheet" "~" (id 3) (at 48.26 43.18 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
    (pin "5")
    (pin "6")
    (pin "7")
    (pin "8")
  )
  (symbol (lib_id "Connector:Conn_01x04_Female") (at 34.29 57.15 270) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "J?" (id 0) (at 33.02 59.1296 90))
    (property "Value" "" (id 1) (at 33.02 61.6665 90))
    (property "Footprint" "" (id 2) (at 34.29 57.15 0))
    (property "Datasheet" "~" (id 3) (at 34.29 57.15 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
  )
  (symbol (lib_id "Sensor_Optical:BPW40") (at 43.18 25.4 90) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "Q?" (id 0) (at 42.4307 17.6108 90))
    (property "Value" "" (id 1) (at 42.4307 20.1477 90))
    (property "Footprint" "" (id 2) (at 46.736 13.208 0))
    (property "Datasheet" "https://www.rcscomponents.kiev.ua/datasheets/bpw40.pdf" (id 3) (at 43.18 25.4 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Sensor_Optical:BPW40") (at 58.42 25.4 90) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "Q?" (id 0) (at 57.6707 17.6108 90))
    (property "Value" "BPW40" (id 1) (at 57.6707 20.1477 90))
    (property "Footprint" "LED_THT:LED_D5.0mm_Clear" (id 2) (at 61.976 13.208 0))
    (property "Datasheet" "https://www.rcscomponents.kiev.ua/datasheets/bpw40.pdf" (id 3) (at 58.42 25.4 0))
    (pin "1")
    (pin "2")
  )
  (symbol (lib_id "Device:LED") (at 43.18 33.02 0) (unit 1)
    (in_bom yes) (on_board yes) (fields_autoplaced)
    (property "Reference" "D?" (id 0) (at 41.5925 28.0502 0))
    (property "Value" "" (id 1) (at 41.5925 30.5871 0))
    (property "Footprint" "" (id 2) (at 43.18 33.02 0))
    (property "Datasheet" "~" (id 3) (at 43.18 33.02 0))
    (pin "1")
    (pin "2")
  )
  (sheet_instances
    (path (page "1"))
  )
  (symbol_instances
    (path
      (reference "D?") (unit 1) (value "LED") (footprint "")
    )
    (path
      (reference "D?") (unit 1) (value "LED") (footprint "")
    )
    (path
      (reference "J?") (unit 1) (value "Conn_01x04_Female") (footprint "")
    )
    (path
      (reference "Q?") (unit 1) (value "BPW40") (footprint "LED_THT:LED_D5.0mm_Clear")
    )
    (path
      (reference "Q?") (unit 1) (value "BPW40") (footprint "LED_THT:LED_D5.0mm_Clear")
    )
    (path
      (reference "RN?") (unit 1) (value "R_Pack04") (footprint "")
    )
  )
)
