<?xml version="1.0" encoding="UTF-8"?>
<export version="D">
  <design>
    <source>/home/yannik/electronic_projects/headphoneswitch/electrical/headphoneswitch.sch</source>
    <date>Thu 29 Apr 2021 12:27:52 AM CEST</date>
    <tool>Eeschema 5.1.9</tool>
    <sheet number="1" name="/" tstamps="/">
      <title_block>
        <title/>
        <company/>
        <rev/>
        <date/>
        <source>headphoneswitch.sch</source>
        <comment number="1" value=""/>
        <comment number="2" value=""/>
        <comment number="3" value=""/>
        <comment number="4" value=""/>
      </title_block>
    </sheet>
  </design>
  <components>
    <comp ref="J1">
      <value>USB_C_Receptacle_USB2.0</value>
      <footprint>electrical:USB4105-GF-A</footprint>
      <datasheet>https://www.usb.org/sites/default/files/documents/usb_type-c.zip</datasheet>
      <libsource lib="Connector" part="USB_C_Receptacle_USB2.0" description="USB 2.0-only Type-C Receptacle connector"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>60885129</tstamp>
    </comp>
    <comp ref="J3">
      <value>AVR-ISP-6</value>
      <footprint>Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMD</footprint>
      <datasheet> ~</datasheet>
      <libsource lib="Connector" part="AVR-ISP-6" description="Atmel 6-pin ISP connector"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>60888651</tstamp>
    </comp>
    <comp ref="J2">
      <value>Screw_Terminal_01x02</value>
      <footprint>TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal</footprint>
      <datasheet>~</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</tstamp>
    </comp>
    <comp ref="U1">
      <value>ATmega32U4-AU</value>
      <footprint>Package_QFP:TQFP-44_10x10mm_P0.8mm</footprint>
      <datasheet>http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf</datasheet>
      <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</tstamp>
    </comp>
    <comp ref="R1">
      <value>5k1</value>
      <footprint>Resistor_SMD:R_1206_3216Metric</footprint>
      <datasheet>~</datasheet>
      <libsource lib="Device" part="R" description="Resistor"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>608A3148</tstamp>
    </comp>
    <comp ref="R2">
      <value>5k1</value>
      <footprint>Resistor_SMD:R_1206_3216Metric</footprint>
      <datasheet>~</datasheet>
      <libsource lib="Device" part="R" description="Resistor"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>608A3759</tstamp>
    </comp>
    <comp ref="C1">
      <value>1uF</value>
      <footprint>Capacitor_SMD:C_1206_3216Metric</footprint>
      <datasheet>~</datasheet>
      <libsource lib="Device" part="C" description="Unpolarized capacitor"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>6089DF38</tstamp>
    </comp>
    <comp ref="R3">
      <value>22</value>
      <footprint>Resistor_SMD:R_1206_3216Metric</footprint>
      <datasheet>~</datasheet>
      <libsource lib="Device" part="R" description="Resistor"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>608A2782</tstamp>
    </comp>
    <comp ref="R4">
      <value>22</value>
      <footprint>Resistor_SMD:R_1206_3216Metric</footprint>
      <datasheet>~</datasheet>
      <libsource lib="Device" part="R" description="Resistor"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>608A31DC</tstamp>
    </comp>
  </components>
  <libparts>
    <libpart lib="Connector" part="AVR-ISP-6">
      <description>Atmel 6-pin ISP connector</description>
      <docs> ~</docs>
      <footprints>
        <fp>IDC?Header*2x03*</fp>
        <fp>Pin?Header*2x03*</fp>
      </footprints>
      <fields>
        <field name="Reference">J</field>
        <field name="Value">AVR-ISP-6</field>
      </fields>
      <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"/>
      </pins>
    </libpart>
    <libpart lib="Connector" part="Screw_Terminal_01x02">
      <description>Generic screw terminal, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)</description>
      <docs>~</docs>
      <footprints>
        <fp>TerminalBlock*:*</fp>
      </footprints>
      <fields>
        <field name="Reference">J</field>
        <field name="Value">Screw_Terminal_01x02</field>
      </fields>
      <pins>
        <pin num="1" name="Pin_1" type="passive"/>
        <pin num="2" name="Pin_2" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="Connector" part="USB_C_Receptacle_USB2.0">
      <description>USB 2.0-only Type-C Receptacle connector</description>
      <docs>https://www.usb.org/sites/default/files/documents/usb_type-c.zip</docs>
      <footprints>
        <fp>USB*C*Receptacle*</fp>
      </footprints>
      <fields>
        <field name="Reference">J</field>
        <field name="Value">USB_C_Receptacle_USB2.0</field>
      </fields>
      <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"/>
      </pins>
    </libpart>
    <libpart lib="Device" part="C">
      <description>Unpolarized capacitor</description>
      <docs>~</docs>
      <footprints>
        <fp>C_*</fp>
      </footprints>
      <fields>
        <field name="Reference">C</field>
        <field name="Value">C</field>
      </fields>
      <pins>
        <pin num="1" name="~" type="passive"/>
        <pin num="2" name="~" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="Device" part="R">
      <description>Resistor</description>
      <docs>~</docs>
      <footprints>
        <fp>R_*</fp>
      </footprints>
      <fields>
        <field name="Reference">R</field>
        <field name="Value">R</field>
      </fields>
      <pins>
        <pin num="1" name="~" type="passive"/>
        <pin num="2" name="~" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="MCU_Microchip_ATmega" part="ATmega16U4-AU">
      <aliases>
        <alias>ATmega16U4RC-AU</alias>
        <alias>ATmega32U4-AU</alias>
        <alias>ATmega32U4RC-AU</alias>
      </aliases>
      <description>16MHz, 16kB Flash, 1.25kB SRAM, 512B EEPROM, USB 2.0, TQFP-44</description>
      <docs>http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf</docs>
      <footprints>
        <fp>TQFP*10x10mm*P0.8mm*</fp>
      </footprints>
      <fields>
        <field name="Reference">U</field>
        <field name="Value">ATmega16U4-AU</field>
        <field name="Footprint">Package_QFP:TQFP-44_10x10mm_P0.8mm</field>
      </fields>
      <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"/>
      </pins>
    </libpart>
  </libparts>
  <libraries>
    <library logical="Connector">
      <uri>/usr/share/kicad/library/Connector.lib</uri>
    </library>
    <library logical="Device">
      <uri>/usr/share/kicad/library/Device.lib</uri>
    </library>
    <library logical="MCU_Microchip_ATmega">
      <uri>/usr/share/kicad/library/MCU_Microchip_ATmega.lib</uri>
    </library>
  </libraries>
  <nets>
    <net code="1" name="Net-(J1-PadB5)">
      <node ref="R2" pin="2"/>
      <node ref="J1" pin="B5"/>
    </net>
    <net code="2" name="+5V">
      <node ref="U1" pin="44"/>
      <node ref="J1" pin="B4"/>
      <node ref="U1" pin="7"/>
      <node ref="U1" pin="34"/>
      <node ref="U1" pin="14"/>
      <node ref="U1" pin="24"/>
      <node ref="U1" pin="2"/>
      <node ref="J1" pin="A4"/>
      <node ref="J3" pin="2"/>
      <node ref="J1" pin="B9"/>
      <node ref="J1" pin="A9"/>
    </net>
    <net code="3" name="Net-(J1-PadA5)">
      <node ref="R1" pin="2"/>
      <node ref="J1" pin="A5"/>
    </net>
    <net code="4" name="GND">
      <node ref="U1" pin="35"/>
      <node ref="C1" pin="2"/>
      <node ref="J1" pin="A1"/>
      <node ref="U1" pin="43"/>
      <node ref="J3" pin="6"/>
      <node ref="J2" pin="1"/>
      <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="23"/>
      <node ref="U1" pin="5"/>
      <node ref="R1" pin="1"/>
      <node ref="R2" pin="1"/>
    </net>
    <net code="5" name="Net-(C1-Pad1)">
      <node ref="C1" pin="1"/>
      <node ref="U1" pin="6"/>
    </net>
    <net code="6" name="Net-(U1-Pad8)">
      <node ref="U1" pin="8"/>
    </net>
    <net code="7" name="/SCK">
      <node ref="U1" pin="9"/>
      <node ref="J3" pin="3"/>
    </net>
    <net code="8" name="Net-(R4-Pad1)">
      <node ref="U1" pin="3"/>
      <node ref="R4" pin="1"/>
    </net>
    <net code="9" name="/RESET">
      <node ref="J3" pin="5"/>
      <node ref="U1" pin="13"/>
    </net>
    <net code="10" name="Net-(R3-Pad1)">
      <node ref="U1" pin="4"/>
      <node ref="R3" pin="1"/>
    </net>
    <net code="11" name="Net-(J2-Pad2)">
      <node ref="U1" pin="36"/>
      <node ref="J2" pin="2"/>
    </net>
    <net code="12" name="/USBP">
      <node ref="J1" pin="B6"/>
      <node ref="J1" pin="A6"/>
      <node ref="R3" pin="2"/>
    </net>
    <net code="13" name="Net-(J1-PadA8)">
      <node ref="J1" pin="A8"/>
    </net>
    <net code="14" name="Net-(J1-PadB8)">
      <node ref="J1" pin="B8"/>
    </net>
    <net code="15" name="Net-(U1-Pad17)">
      <node ref="U1" pin="17"/>
    </net>
    <net code="16" name="Net-(U1-Pad16)">
      <node ref="U1" pin="16"/>
    </net>
    <net code="17" name="/MOSI">
      <node ref="U1" pin="10"/>
      <node ref="J3" pin="4"/>
    </net>
    <net code="18" name="/USBN">
      <node ref="R4" pin="2"/>
      <node ref="J1" pin="A7"/>
      <node ref="J1" pin="B7"/>
    </net>
    <net code="19" name="Net-(U1-Pad27)">
      <node ref="U1" pin="27"/>
    </net>
    <net code="20" name="Net-(U1-Pad28)">
      <node ref="U1" pin="28"/>
    </net>
    <net code="21" name="Net-(U1-Pad29)">
      <node ref="U1" pin="29"/>
    </net>
    <net code="22" name="Net-(U1-Pad30)">
      <node ref="U1" pin="30"/>
    </net>
    <net code="23" name="Net-(U1-Pad31)">
      <node ref="U1" pin="31"/>
    </net>
    <net code="24" name="Net-(U1-Pad32)">
      <node ref="U1" pin="32"/>
    </net>
    <net code="25" name="Net-(U1-Pad33)">
      <node ref="U1" pin="33"/>
    </net>
    <net code="26" name="Net-(U1-Pad26)">
      <node ref="U1" pin="26"/>
    </net>
    <net code="27" name="Net-(U1-Pad37)">
      <node ref="U1" pin="37"/>
    </net>
    <net code="28" name="Net-(U1-Pad38)">
      <node ref="U1" pin="38"/>
    </net>
    <net code="29" name="Net-(U1-Pad39)">
      <node ref="U1" pin="39"/>
    </net>
    <net code="30" name="Net-(U1-Pad40)">
      <node ref="U1" pin="40"/>
    </net>
    <net code="31" name="Net-(U1-Pad41)">
      <node ref="U1" pin="41"/>
    </net>
    <net code="32" name="Net-(U1-Pad42)">
      <node ref="U1" pin="42"/>
    </net>
    <net code="33" name="Net-(U1-Pad18)">
      <node ref="U1" pin="18"/>
    </net>
    <net code="34" name="Net-(U1-Pad1)">
      <node ref="U1" pin="1"/>
    </net>
    <net code="35" name="/MISO">
      <node ref="U1" pin="11"/>
      <node ref="J3" pin="1"/>
    </net>
    <net code="36" name="Net-(U1-Pad12)">
      <node ref="U1" pin="12"/>
    </net>
    <net code="37" name="Net-(U1-Pad19)">
      <node ref="U1" pin="19"/>
    </net>
    <net code="38" name="Net-(U1-Pad20)">
      <node ref="U1" pin="20"/>
    </net>
    <net code="39" name="Net-(U1-Pad21)">
      <node ref="U1" pin="21"/>
    </net>
    <net code="40" name="Net-(U1-Pad22)">
      <node ref="U1" pin="22"/>
    </net>
    <net code="41" name="Net-(U1-Pad25)">
      <node ref="U1" pin="25"/>
    </net>
  </nets>
</export>
