(kicad_sch (version 20230121) (generator eeschema)

  (uuid c064a3f6-5c6b-4c87-a6f9-ae5ed92c5b9a)

  (paper "A4")

  (title_block
    (title "LED Torch")
    (date "2023-09-28")
    (rev "A")
    (company "Henallux")
    (comment 1 "Premier Excercice")
  )

  (lib_symbols
    (symbol "Device:Battery_Cell" (pin_numbers hide) (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "BT" (at 2.54 2.54 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Value" "Battery_Cell" (at 2.54 0 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Footprint" "" (at 0 1.524 90)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 1.524 90)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "battery cell" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Single-cell battery" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "Battery_Cell_0_1"
        (rectangle (start -2.286 1.778) (end 2.286 1.524)
          (stroke (width 0) (type default))
          (fill (type outline))
        )
        (rectangle (start -1.524 1.016) (end 1.524 0.508)
          (stroke (width 0) (type default))
          (fill (type outline))
        )
        (polyline
          (pts
            (xy 0 0.762)
            (xy 0 0)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 1.778)
            (xy 0 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.762 3.048)
            (xy 1.778 3.048)
          )
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 3.556)
            (xy 1.27 2.54)
          )
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
      )
      (symbol "Battery_Cell_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 -2.54 90) (length 2.54)
          (name "-" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Device:LED" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "D" (at 0 2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "LED" (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)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "LED diode" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Light emitting diode" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "LED_0_1"
        (polyline
          (pts
            (xy -1.27 -1.27)
            (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))
        )
        (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 -3.048 -0.762)
            (xy -4.572 -2.286)
            (xy -3.81 -2.286)
            (xy -4.572 -2.286)
            (xy -4.572 -1.524)
          )
          (stroke (width 0) (type default))
          (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)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "LED_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))))
        )
      )
    )
    (symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (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)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "R res resistor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Resistor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "R_*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (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))))
        )
      )
    )
    (symbol "Switch:SW_DPST_x2" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "SW" (at 0 3.175 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "SW_DPST_x2" (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)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "switch lever" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Single Pole Single Throw (SPST) switch, separate symbol" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "SW_DPST_x2_0_0"
        (circle (center -2.032 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.524 0.254)
            (xy 1.524 1.778)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (circle (center 2.032 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "SW_DPST_x2_1_1"
        (pin passive line (at -5.08 0 0) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 5.08 0 180) (length 2.54)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
      (symbol "SW_DPST_x2_2_1"
        (pin passive line (at -5.08 0 0) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 5.08 0 180) (length 2.54)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "4" (effects (font (size 1.27 1.27))))
        )
      )
    )
  )


  (wire (pts (xy 129.54 72.39) (xy 129.54 86.36))
    (stroke (width 0) (type default))
    (uuid 103c6029-8055-4da5-8776-3b6ba6ca5397)
  )
  (wire (pts (xy 134.62 72.39) (xy 129.54 72.39))
    (stroke (width 0) (type default))
    (uuid 24da75f1-1587-498b-bf6a-85a8290e817b)
  )
  (polyline (pts (xy 125.73 62.23) (xy 177.8 62.23))
    (stroke (width 0) (type dash))
    (uuid 31d7bac0-a02d-4cc2-be3f-89584b56baed)
  )
  (polyline (pts (xy 125.73 62.23) (xy 125.73 90.17))
    (stroke (width 0) (type dash))
    (uuid 3622388f-bf4a-44f0-8acd-d2cb27edb79c)
  )
  (polyline (pts (xy 177.8 90.17) (xy 125.73 90.17))
    (stroke (width 0) (type dash))
    (uuid 69db02eb-9430-4a70-b443-69891468cc96)
  )

  (wire (pts (xy 173.99 72.39) (xy 168.91 72.39))
    (stroke (width 0) (type default))
    (uuid 819f79a4-b878-47bd-b13f-edacac5976f4)
  )
  (wire (pts (xy 153.67 86.36) (xy 173.99 86.36))
    (stroke (width 0) (type default))
    (uuid a7b2d59a-a963-42ed-b2da-40681bf75cb9)
  )
  (wire (pts (xy 154.94 72.39) (xy 158.75 72.39))
    (stroke (width 0) (type default))
    (uuid b6af010a-e042-444b-84a4-e8495c253d48)
  )
  (polyline (pts (xy 177.8 62.23) (xy 177.8 90.17))
    (stroke (width 0) (type dash))
    (uuid b8fd8100-0782-4d98-9caa-1e8e10a64a3e)
  )

  (wire (pts (xy 173.99 86.36) (xy 173.99 72.39))
    (stroke (width 0) (type default))
    (uuid c59ad07d-37f8-4d09-96fb-ee63f126521c)
  )
  (wire (pts (xy 129.54 86.36) (xy 146.05 86.36))
    (stroke (width 0) (type default))
    (uuid c60f35ec-4647-4b74-9324-84a0cc8ea523)
  )
  (wire (pts (xy 142.24 72.39) (xy 147.32 72.39))
    (stroke (width 0) (type default))
    (uuid ce04c8c6-4381-47a5-ba57-b29e17f86f65)
  )

  (text "LED torch" (at 125.73 62.23 0)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 18981e35-bc57-4b77-8435-d5e15891efd9)
  )

  (label "bat_pos" (at 154.94 86.36 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 29b72ff4-4525-41c0-ae13-83bc25bcde22)
  )
  (label "LED_anode" (at 143.51 72.39 90) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 77e5f01d-55c2-4031-a1da-75a852656aa9)
  )
  (label "LED_Cathode" (at 129.54 80.01 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid c451645f-a1d0-45e7-8d5c-6589b2c74a96)
  )

  (symbol (lib_id "Device:R") (at 151.13 72.39 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 0b86a9f9-3c33-4f89-b478-107e86ef9cbc)
    (property "Reference" "R1" (at 151.13 66.04 90)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "R" (at 151.13 68.58 90)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal" (at 151.13 58.42 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 151.13 72.39 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid e5bb341f-9141-4257-9204-fe10f48eb627))
    (pin "2" (uuid 54339baa-7807-4888-8fba-bbef73df0c8d))
    (instances
      (project "Ex1"
        (path "/c064a3f6-5c6b-4c87-a6f9-ae5ed92c5b9a"
          (reference "R1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:Battery_Cell") (at 148.59 86.36 270) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 1862e171-e61c-4a64-9a44-2a601c0cf2cb)
    (property "Reference" "BT1" (at 150.4315 78.74 90)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "Battery_Cell" (at 150.4315 81.28 90)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "Battery:BatteryHolder_Keystone_1058_1x2032" (at 150.114 86.36 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 150.114 86.36 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid c40d4e70-5b3e-46c3-bdc4-c1fb6841a344))
    (pin "2" (uuid dc0a489c-2c1e-4d4b-a6f6-d36a7ec60bf4))
    (instances
      (project "Ex1"
        (path "/c064a3f6-5c6b-4c87-a6f9-ae5ed92c5b9a"
          (reference "BT1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:LED") (at 138.43 72.39 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid c89bb0bb-b55d-4793-8bca-6a1293e0c3c3)
    (property "Reference" "D1" (at 136.8425 66.04 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "LED" (at 136.8425 68.58 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "LED_THT:LED_D5.0mm" (at 138.43 72.39 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 138.43 72.39 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid c28c988b-7000-4432-84a2-dc836d90b99b))
    (pin "2" (uuid b3ea0931-db4a-4ac7-a0fd-aaa16402d5cc))
    (instances
      (project "Ex1"
        (path "/c064a3f6-5c6b-4c87-a6f9-ae5ed92c5b9a"
          (reference "D1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Switch:SW_DPST_x2") (at 163.83 72.39 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid d773a140-bd5c-4b34-963f-86a917ec81db)
    (property "Reference" "SW1" (at 163.83 66.04 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "SW_DPST_x2" (at 163.83 68.58 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "Button_Switch_THT:SW_TH_Tactile_Omron_B3F-10xx" (at 163.83 72.39 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 163.83 72.39 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 8f0d91ba-4972-47dd-a5b6-505251019058))
    (pin "2" (uuid 84aeca91-2c7c-4ff5-ae51-8ca41e4dc668))
    (pin "3" (uuid de521dc9-06e1-429c-82f1-be3350d68022))
    (pin "4" (uuid b8681c0a-901f-451d-beb6-65dadcb6c51f))
    (instances
      (project "Ex1"
        (path "/c064a3f6-5c6b-4c87-a6f9-ae5ed92c5b9a"
          (reference "SW1") (unit 1)
        )
      )
    )
  )

  (sheet_instances
    (path "/" (page "1"))
  )
)