(export (version D)
  (design
    (source /home/yannik/electronic_projects/headphoneswitch/electrical/headphoneswitch.sch)
    (date "Wed 28 Apr 2021 10:14:06 PM CEST")
    (tool "Eeschema 5.1.9")
    (sheet (number 1) (name /) (tstamps /)
      (title_block
        (title)
        (company)
        (rev)
        (date)
        (source headphoneswitch.sch)
        (comment (number 1) (value ""))
        (comment (number 2) (value ""))
        (comment (number 3) (value ""))
        (comment (number 4) (value "")))))
  (components
    (comp (ref J1)
      (value USB_C_Receptacle_USB2.0)
      (footprint electrical:USB4105-GF-A)
      (datasheet https://www.usb.org/sites/default/files/documents/usb_type-c.zip)
      (libsource (lib Connector) (part USB_C_Receptacle_USB2.0) (description "USB 2.0-only Type-C Receptacle connector"))
      (sheetpath (names /) (tstamps /))
      (tstamp 60885129))
    (comp (ref J3)
      (value AVR-ISP-6)
      (footprint Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMD)
      (datasheet " ~")
      (libsource (lib Connector) (part AVR-ISP-6) (description "Atmel 6-pin ISP connector"))
      (sheetpath (names /) (tstamps /))
      (tstamp 60888651))
    (comp (ref J2)
      (value Screw_Terminal_01x02)
      (footprint TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal)
      (datasheet ~)
      (libsource (lib Connector) (part Screw_Terminal_01x02) (description "Generic screw terminal, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)"))
      (sheetpath (names /) (tstamps /))
      (tstamp 60889C79))
    (comp (ref U1)
      (value ATmega32U4-AU)
      (footprint Package_QFP:TQFP-44_10x10mm_P0.8mm)
      (datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf)
      (libsource (lib MCU_Microchip_ATmega) (part ATmega32U4-AU) (description "16MHz, 32kB Flash, 2.5kB SRAM, 1kB EEPROM, USB 2.0, TQFP-44"))
      (sheetpath (names /) (tstamps /))
      (tstamp 6088435A))
    (comp (ref R1)
      (value 5k1)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 608A3148))
    (comp (ref R2)
      (value 5k1)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 608A3759))
    (comp (ref C1)
      (value 1uF)
      (footprint Capacitor_SMD:C_1206_3216Metric)
      (datasheet ~)
      (libsource (lib Device) (part C) (description "Unpolarized capacitor"))
      (sheetpath (names /) (tstamps /))
      (tstamp 6089DF38))
    (comp (ref R3)
      (value 22)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 608A2782))
    (comp (ref R4)
      (value 22)
      (datasheet ~)
      (libsource (lib Device) (part R) (description Resistor))
      (sheetpath (names /) (tstamps /))
      (tstamp 608A31DC)))
  (libparts
    (libpart (lib Connector) (part AVR-ISP-6)
      (description "Atmel 6-pin ISP connector")
      (docs " ~")
      (footprints
        (fp IDC?Header*2x03*)
        (fp Pin?Header*2x03*))
      (fields
        (field (name Reference) J)
        (field (name Value) AVR-ISP-6))
      (pins
        (pin (num 1) (name MISO) (type passive))
        (pin (num 2) (name VCC) (type passive))
        (pin (num 3) (name SCK) (type passive))
        (pin (num 4) (name MOSI) (type passive))
        (pin (num 5) (name ~RST) (type passive))
        (pin (num 6) (name GND) (type passive))))
    (libpart (lib Connector) (part Screw_Terminal_01x02)
      (description "Generic screw terminal, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)")
      (docs ~)
      (footprints
        (fp TerminalBlock*:*))
      (fields
        (field (name Reference) J)
        (field (name Value) Screw_Terminal_01x02))
      (pins
        (pin (num 1) (name Pin_1) (type passive))
        (pin (num 2) (name Pin_2) (type passive))))
    (libpart (lib Connector) (part USB_C_Receptacle_USB2.0)
      (description "USB 2.0-only Type-C Receptacle connector")
      (docs https://www.usb.org/sites/default/files/documents/usb_type-c.zip)
      (footprints
        (fp USB*C*Receptacle*))
      (fields
        (field (name Reference) J)
        (field (name Value) USB_C_Receptacle_USB2.0))
      (pins
        (pin (num A1) (name GND) (type passive))
        (pin (num A4) (name VBUS) (type passive))
        (pin (num A5) (name CC1) (type BiDi))
        (pin (num A6) (name D+) (type BiDi))
        (pin (num A7) (name D-) (type BiDi))
        (pin (num A8) (name SBU1) (type BiDi))
        (pin (num A9) (name VBUS) (type passive))
        (pin (num A12) (name GND) (type passive))
        (pin (num B1) (name GND) (type passive))
        (pin (num B4) (name VBUS) (type passive))
        (pin (num B5) (name CC2) (type BiDi))
        (pin (num B6) (name D+) (type BiDi))
        (pin (num B7) (name D-) (type BiDi))
        (pin (num B8) (name SBU2) (type BiDi))
        (pin (num B9) (name VBUS) (type passive))
        (pin (num B12) (name GND) (type passive))
        (pin (num S1) (name SHIELD) (type passive))))
    (libpart (lib Device) (part C)
      (description "Unpolarized capacitor")
      (docs ~)
      (footprints
        (fp C_*))
      (fields
        (field (name Reference) C)
        (field (name Value) C))
      (pins
        (pin (num 1) (name ~) (type passive))
        (pin (num 2) (name ~) (type passive))))
    (libpart (lib Device) (part R)
      (description Resistor)
      (docs ~)
      (footprints
        (fp R_*))
      (fields
        (field (name Reference) R)
        (field (name Value) R))
      (pins
        (pin (num 1) (name ~) (type passive))
        (pin (num 2) (name ~) (type passive))))
    (libpart (lib MCU_Microchip_ATmega) (part ATmega16U4-AU)
      (aliases
        (alias ATmega16U4RC-AU)
        (alias ATmega32U4-AU)
        (alias ATmega32U4RC-AU))
      (description "16MHz, 16kB Flash, 1.25kB SRAM, 512B EEPROM, USB 2.0, TQFP-44")
      (docs http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf)
      (footprints
        (fp TQFP*10x10mm*P0.8mm*))
      (fields
        (field (name Reference) U)
        (field (name Value) ATmega16U4-AU)
        (field (name Footprint) Package_QFP:TQFP-44_10x10mm_P0.8mm))
      (pins
        (pin (num 1) (name PE6) (type BiDi))
        (pin (num 2) (name UVCC) (type power_in))
        (pin (num 3) (name D-) (type BiDi))
        (pin (num 4) (name D+) (type BiDi))
        (pin (num 5) (name UGND) (type passive))
        (pin (num 6) (name UCAP) (type passive))
        (pin (num 7) (name VBUS) (type input))
        (pin (num 8) (name PB0) (type BiDi))
        (pin (num 9) (name PB1) (type BiDi))
        (pin (num 10) (name PB2) (type BiDi))
        (pin (num 11) (name PB3) (type BiDi))
        (pin (num 12) (name PB7) (type BiDi))
        (pin (num 13) (name ~RESET) (type input))
        (pin (num 14) (name VCC) (type power_in))
        (pin (num 15) (name GND) (type power_in))
        (pin (num 16) (name XTAL2) (type output))
        (pin (num 17) (name XTAL1) (type input))
        (pin (num 18) (name PD0) (type BiDi))
        (pin (num 19) (name PD1) (type BiDi))
        (pin (num 20) (name PD2) (type BiDi))
        (pin (num 21) (name PD3) (type BiDi))
        (pin (num 22) (name PD5) (type BiDi))
        (pin (num 23) (name GND) (type passive))
        (pin (num 24) (name AVCC) (type power_in))
        (pin (num 25) (name PD4) (type BiDi))
        (pin (num 26) (name PD6) (type BiDi))
        (pin (num 27) (name PD7) (type BiDi))
        (pin (num 28) (name PB4) (type BiDi))
        (pin (num 29) (name PB5) (type BiDi))
        (pin (num 30) (name PB6) (type BiDi))
        (pin (num 31) (name PC6) (type BiDi))
        (pin (num 32) (name PC7) (type BiDi))
        (pin (num 33) (name ~HWB~/PE2) (type BiDi))
        (pin (num 34) (name VCC) (type passive))
        (pin (num 35) (name GND) (type passive))
        (pin (num 36) (name PF7) (type BiDi))
        (pin (num 37) (name PF6) (type BiDi))
        (pin (num 38) (name PF5) (type BiDi))
        (pin (num 39) (name PF4) (type BiDi))
        (pin (num 40) (name PF1) (type BiDi))
        (pin (num 41) (name PF0) (type BiDi))
        (pin (num 42) (name AREF) (type passive))
        (pin (num 43) (name GND) (type passive))
        (pin (num 44) (name AVCC) (type passive)))))
  (libraries
    (library (logical Connector)
      (uri /usr/share/kicad/library/Connector.lib))
    (library (logical Device)
      (uri /usr/share/kicad/library/Device.lib))
    (library (logical MCU_Microchip_ATmega)
      (uri /usr/share/kicad/library/MCU_Microchip_ATmega.lib)))
  (nets
    (net (code 1) (name "Net-(J1-PadB5)")
      (node (ref R2) (pin 2))
      (node (ref J1) (pin B5)))
    (net (code 2) (name +5V)
      (node (ref U1) (pin 44))
      (node (ref J1) (pin A4))
      (node (ref U1) (pin 7))
      (node (ref J1) (pin B4))
      (node (ref U1) (pin 34))
      (node (ref U1) (pin 24))
      (node (ref U1) (pin 2))
      (node (ref U1) (pin 14))
      (node (ref J1) (pin A9))
      (node (ref J1) (pin B9))
      (node (ref J3) (pin 2)))
    (net (code 3) (name "Net-(J1-PadA5)")
      (node (ref R1) (pin 2))
      (node (ref J1) (pin A5)))
    (net (code 4) (name GND)
      (node (ref C1) (pin 2))
      (node (ref U1) (pin 35))
      (node (ref J1) (pin A1))
      (node (ref U1) (pin 43))
      (node (ref J3) (pin 6))
      (node (ref J2) (pin 2))
      (node (ref U1) (pin 15))
      (node (ref J1) (pin S1))
      (node (ref J1) (pin B12))
      (node (ref J1) (pin B1))
      (node (ref J1) (pin A12))
      (node (ref U1) (pin 5))
      (node (ref U1) (pin 23))
      (node (ref R1) (pin 1))
      (node (ref R2) (pin 1)))
    (net (code 5) (name "Net-(C1-Pad1)")
      (node (ref U1) (pin 6))
      (node (ref C1) (pin 1)))
    (net (code 6) (name "Net-(U1-Pad8)")
      (node (ref U1) (pin 8)))
    (net (code 7) (name /SCK)
      (node (ref U1) (pin 9))
      (node (ref J3) (pin 3)))
    (net (code 8) (name "Net-(R4-Pad1)")
      (node (ref R4) (pin 1))
      (node (ref U1) (pin 3)))
    (net (code 9) (name /RESET)
      (node (ref J3) (pin 5))
      (node (ref U1) (pin 13)))
    (net (code 10) (name "Net-(R3-Pad1)")
      (node (ref U1) (pin 4))
      (node (ref R3) (pin 1)))
    (net (code 11) (name "Net-(J2-Pad1)")
      (node (ref J2) (pin 1))
      (node (ref U1) (pin 21)))
    (net (code 12) (name /USBP)
      (node (ref J1) (pin A6))
      (node (ref J1) (pin B6))
      (node (ref R3) (pin 2)))
    (net (code 13) (name "Net-(J1-PadA8)")
      (node (ref J1) (pin A8)))
    (net (code 14) (name "Net-(J1-PadB8)")
      (node (ref J1) (pin B8)))
    (net (code 15) (name "Net-(U1-Pad17)")
      (node (ref U1) (pin 17)))
    (net (code 16) (name "Net-(U1-Pad16)")
      (node (ref U1) (pin 16)))
    (net (code 17) (name /MOSI)
      (node (ref U1) (pin 10))
      (node (ref J3) (pin 4)))
    (net (code 18) (name /USBN)
      (node (ref R4) (pin 2))
      (node (ref J1) (pin A7))
      (node (ref J1) (pin B7)))
    (net (code 19) (name "Net-(U1-Pad27)")
      (node (ref U1) (pin 27)))
    (net (code 20) (name "Net-(U1-Pad28)")
      (node (ref U1) (pin 28)))
    (net (code 21) (name "Net-(U1-Pad29)")
      (node (ref U1) (pin 29)))
    (net (code 22) (name "Net-(U1-Pad30)")
      (node (ref U1) (pin 30)))
    (net (code 23) (name "Net-(U1-Pad31)")
      (node (ref U1) (pin 31)))
    (net (code 24) (name "Net-(U1-Pad32)")
      (node (ref U1) (pin 32)))
    (net (code 25) (name "Net-(U1-Pad33)")
      (node (ref U1) (pin 33)))
    (net (code 26) (name "Net-(U1-Pad26)")
      (node (ref U1) (pin 26)))
    (net (code 27) (name "Net-(U1-Pad36)")
      (node (ref U1) (pin 36)))
    (net (code 28) (name "Net-(U1-Pad37)")
      (node (ref U1) (pin 37)))
    (net (code 29) (name "Net-(U1-Pad38)")
      (node (ref U1) (pin 38)))
    (net (code 30) (name "Net-(U1-Pad39)")
      (node (ref U1) (pin 39)))
    (net (code 31) (name "Net-(U1-Pad40)")
      (node (ref U1) (pin 40)))
    (net (code 32) (name "Net-(U1-Pad41)")
      (node (ref U1) (pin 41)))
    (net (code 33) (name "Net-(U1-Pad42)")
      (node (ref U1) (pin 42)))
    (net (code 34) (name "Net-(U1-Pad18)")
      (node (ref U1) (pin 18)))
    (net (code 35) (name "Net-(U1-Pad1)")
      (node (ref U1) (pin 1)))
    (net (code 36) (name /MISO)
      (node (ref J3) (pin 1))
      (node (ref U1) (pin 11)))
    (net (code 37) (name "Net-(U1-Pad12)")
      (node (ref U1) (pin 12)))
    (net (code 38) (name "Net-(U1-Pad19)")
      (node (ref U1) (pin 19)))
    (net (code 39) (name "Net-(U1-Pad20)")
      (node (ref U1) (pin 20)))
    (net (code 40) (name "Net-(U1-Pad22)")
      (node (ref U1) (pin 22)))
    (net (code 41) (name "Net-(U1-Pad25)")
      (node (ref U1) (pin 25)))))