<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.5.0">
<drawing>
<board>
<plain>
<wire x1="92.888" y1="27.168" x2="91.618" y2="28.438" width="0" layer="20" curve="90"/>
<wire x1="91.618" y1="28.438" x2="1.27" y2="28.438" width="0" layer="20"/>
<wire x1="1.27" y1="28.438" x2="0" y2="27.168" width="0" layer="20" curve="90"/>
<wire x1="0" y1="27.168" x2="0" y2="1.27" width="0" layer="20"/>
<wire x1="0" y1="1.27" x2="1.27" y2="0" width="0" layer="20" curve="90"/>
<wire x1="1.27" y1="0" x2="91.618" y2="0" width="0" layer="20"/>
<wire x1="91.618" y1="0" x2="92.888" y2="1.27" width="0" layer="20" curve="90"/>
<wire x1="92.888" y1="1.27" x2="92.888" y2="27.168" width="0" layer="20"/>
<text>Latch</text>
<text>Clk</text>
<text>Gnd</text>
<text>Data</text>
<text>5V</text>
<text>3.3V</text>
<text>Classic Gamepad</text>
<text>USB Adapter</text>
<text>1</text>
<text>based on</text>
<text>raphnet.net</text>
<hole x="3.4" y="25.146" drill="3.2"/>
<hole x="3.556" y="3.302" drill="3.2"/>
<hole x="89.535" y="3.302" drill="3.2"/>
<hole x="89.408" y="25.146" drill="3.2"/>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
<text>http://bitkit.io</text>
</plain>
<libraries>
<library name="atmel">
<packages>
<package name="DIL28-3">
<description>&lt;B&gt;Dual In Line&lt;/B&gt; 0.3 inch</description>
</package>
</packages>
</library>
<library name="crystal">
<packages>
<package name="HC49/S">
<description>&lt;b&gt;CRYSTAL&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun">
<packages>
<package name="USB-B-PTH">
<description>&lt;b&gt;USB Series B Hole Mounted&lt;/b&gt;</description>
</package>
<package name="SOT223">
<description>&lt;b&gt;SOT-223&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="resistor">
<packages>
<package name="0207/10">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
type 0207, grid 10 mm</description>
</package>
<package name="C025-025X050">
<description>&lt;b&gt;CAPACITOR&lt;/b&gt;&lt;p&gt;
grid 2.5 mm, outline 2.5 x 5 mm</description>
</package>
<package name="E2,5-5">
<description>&lt;b&gt;ELECTROLYTIC CAPACITOR&lt;/b&gt;&lt;p&gt;
grid 2.54 mm, diameter 5 mm</description>
</package>
</packages>
</library>
<library name="diode">
<packages>
<package name="DO41Z10">
<description>&lt;B&gt;DIODE&lt;/B&gt;&lt;p&gt;
diameter 2.54 mm, horizontal, grid 10.16 mm</description>
</package>
</packages>
</library>
<library name="pinhead">
<packages>
<package name="2X03">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
</package>
<package name="1X09">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="con-jst-xh">
<packages>
<package name="B6B-XH">
<description>&lt;b&gt;JST XH Connector&lt;/b&gt;

&lt;p&gt;JST 2.54mm connector. Folded beam contact, box-shaped shrouded header, header with a boss, interchangeability, conformance to the HA terminal&lt;/p&gt;

&lt;p&gt;Datasheet: &lt;a href="http://www.jst-mfg.com/product/pdf/eng/eXH.pdf"&gt; eXH.pdf&lt;/a&gt;&lt;/p&gt;</description>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="ATMEGA8/88/168/328" library="atmel" package="DIL28-3" value="MEGA8-P">
<attribute name="NAME"/>
</element>
<element name="Q1" library="crystal" package="HC49/S" value="12Mhz">
<attribute name="VALUE"/>
</element>
<element name="C1" library="resistor" package="C025-025X050" value="22pf">
<attribute name="VALUE"/>
</element>
<element name="C2" library="resistor" package="C025-025X050" value="22pf"/>
<element name="R4" library="resistor" package="0207/10" value="68">
<attribute name="VALUE"/>
</element>
<element name="R5" library="resistor" package="0207/10" value="68">
<attribute name="VALUE"/>
</element>
<element name="D3" library="diode" package="DO41Z10" value="3.6V zeners">
<attribute name="VALUE"/>
</element>
<element name="D4" library="diode" package="DO41Z10" value="3.6V"/>
<element name="USB" library="SparkFun" package="USB-B-PTH" value="USBPTH">
<attribute name="NAME"/>
</element>
<element name="R6" library="resistor" package="0207/10" value="1.5k">
<attribute name="VALUE"/>
</element>
<element name="3.3V" library="SparkFun" package="SOT223" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C3" library="resistor" package="C025-025X050" value="0.1uf">
<attribute name="VALUE"/>
</element>
<element name="C4" library="resistor" package="E2,5-5" value="10uf">
<attribute name="VALUE"/>
</element>
<element name="ISP" library="pinhead" package="2X03" value=""/>
<element name="DB9" library="pinhead" package="1X09" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="CTRL1" library="con-jst-xh" package="B6B-XH" value="06-JST-B6B-XH-A">
<attribute name="NAME"/>
</element>
<element name="CTRL2" library="con-jst-xh" package="B6B-XH" value="06-JST-B6B-XH-A">
<attribute name="NAME"/>
</element>
<element name="CTRL3" library="con-jst-xh" package="B6B-XH" value="06-JST-B6B-XH-A">
<attribute name="NAME"/>
</element>
<element name="CTRL4" library="con-jst-xh" package="B6B-XH" value="06-JST-B6B-XH-A">
<attribute name="NAME"/>
</element>
</elements>
<signals>
<signal name="CLOCK">
<contactref element="CTRL1" pad="P$2"/>
<contactref element="CTRL2" pad="P$2"/>
<contactref element="CTRL3" pad="P$2"/>
<contactref element="CTRL4" pad="P$2"/>
<contactref element="ATMEGA8/88/168/328" pad="28"/>
<contactref element="DB9" pad="1"/>
</signal>
<signal name="LATCH">
<contactref element="CTRL1" pad="P$3"/>
<contactref element="CTRL2" pad="P$3"/>
<contactref element="CTRL3" pad="P$3"/>
<contactref element="CTRL4" pad="P$3"/>
<contactref element="ATMEGA8/88/168/328" pad="27"/>
<contactref element="DB9" pad="2"/>
</signal>
<signal name="N$1">
<contactref element="ATMEGA8/88/168/328" pad="10"/>
<contactref element="C2" pad="2"/>
<contactref element="Q1" pad="1"/>
</signal>
<signal name="N$2">
<contactref element="ATMEGA8/88/168/328" pad="9"/>
<contactref element="C1" pad="2"/>
<contactref element="Q1" pad="2"/>
</signal>
<signal name="N$6">
<contactref element="ATMEGA8/88/168/328" pad="4"/>
<contactref element="R4" pad="1"/>
</signal>
<signal name="DATA1">
<contactref element="CTRL1" pad="P$4"/>
<contactref element="ATMEGA8/88/168/328" pad="26"/>
<contactref element="DB9" pad="3"/>
</signal>
<signal name="5V">
<contactref element="ATMEGA8/88/168/328" pad="20"/>
<contactref element="ATMEGA8/88/168/328" pad="7"/>
<contactref element="USB" pad="VBUS"/>
<contactref element="R6" pad="2"/>
<contactref element="3.3V" pad="3"/>
<contactref element="C3" pad="2"/>
<contactref element="ISP" pad="2"/>
<contactref element="DB9" pad="5"/>
<contactref element="CTRL1" pad="P$5"/>
<contactref element="CTRL2" pad="P$5"/>
<contactref element="CTRL3" pad="P$5"/>
<contactref element="CTRL4" pad="P$5"/>
</signal>
<signal name="3.3V">
<contactref element="3.3V" pad="4"/>
<contactref element="3.3V" pad="2"/>
<contactref element="C4" pad="+"/>
<contactref element="CTRL1" pad="P$6"/>
<contactref element="CTRL2" pad="P$6"/>
<contactref element="CTRL3" pad="P$6"/>
<contactref element="CTRL4" pad="P$6"/>
</signal>
<signal name="DATA2">
<contactref element="CTRL2" pad="P$4"/>
<contactref element="ATMEGA8/88/168/328" pad="25"/>
<contactref element="DB9" pad="4"/>
</signal>
<signal name="DATA3">
<contactref element="CTRL3" pad="P$4"/>
<contactref element="ATMEGA8/88/168/328" pad="24"/>
<contactref element="DB9" pad="6"/>
</signal>
<signal name="DATA4">
<contactref element="CTRL4" pad="P$4"/>
<contactref element="ATMEGA8/88/168/328" pad="23"/>
<contactref element="DB9" pad="7"/>
</signal>
<signal name="N$5">
<contactref element="ATMEGA8/88/168/328" pad="2"/>
<contactref element="R5" pad="1"/>
<contactref element="ATMEGA8/88/168/328" pad="3"/>
</signal>
<signal name="D+">
<contactref element="D4" pad="C"/>
<contactref element="R4" pad="2"/>
<contactref element="USB" pad="D+"/>
</signal>
<signal name="D-">
<contactref element="R6" pad="1"/>
<contactref element="R5" pad="2"/>
<contactref element="D3" pad="C"/>
<contactref element="USB" pad="D-"/>
</signal>
<signal name="MISO">
<contactref element="ATMEGA8/88/168/328" pad="18"/>
<contactref element="ISP" pad="1"/>
</signal>
<signal name="SCK">
<contactref element="ATMEGA8/88/168/328" pad="19"/>
<contactref element="ISP" pad="3"/>
<contactref element="DB9" pad="9"/>
</signal>
<signal name="MOSI">
<contactref element="ATMEGA8/88/168/328" pad="17"/>
<contactref element="ISP" pad="4"/>
</signal>
<signal name="SS">
<contactref element="ATMEGA8/88/168/328" pad="16"/>
</signal>
<signal name="RESET">
<contactref element="ATMEGA8/88/168/328" pad="1"/>
<contactref element="ISP" pad="5"/>
</signal>
<signal name="GND">
<contactref element="ATMEGA8/88/168/328" pad="8"/>
<contactref element="C1" pad="1"/>
<contactref element="C2" pad="1"/>
<contactref element="ATMEGA8/88/168/328" pad="22"/>
<contactref element="D3" pad="A"/>
<contactref element="D4" pad="A"/>
<contactref element="USB" pad="GND"/>
<contactref element="3.3V" pad="1"/>
<contactref element="C3" pad="1"/>
<contactref element="C4" pad="-"/>
<contactref element="ISP" pad="6"/>
<contactref element="DB9" pad="8"/>
<contactref element="CTRL1" pad="P$1"/>
<contactref element="CTRL2" pad="P$1"/>
<contactref element="CTRL3" pad="P$1"/>
<contactref element="CTRL4" pad="P$1"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
